P0171

OBD-II Car Error Code P0171

System Too Lean (Bank 1)

Severity

Medium

DIY Difficulty

Moderate

Est. Cost

$0 - $400

Est. Time

90 min

What Does P0171 Mean?

OBD-II code P0171 means the engine is running with too much air relative to fuel on cylinder bank 1. The oxygen sensor sees less unburned fuel in the exhaust than expected, so the engine computer (ECU) sets the code and turns on the check engine light. The car often still runs, but fuel economy drops and the engine may hesitate or stumble at idle and low load.

Common Causes

💨

Vacuum leak

40%

A cracked vacuum hose, intake manifold gasket leak, or loose PCV valve lets unmetered air into the engine. This is the #1 cause of P0171 and the cheapest to fix.

🔧

Dirty MAF sensor

25%

The mass airflow sensor under-reports incoming air because oil mist or dust has coated its hot wire, causing the ECU to under-fuel.

Weak fuel delivery

20%

Clogged fuel filter, failing fuel pump, or dirty injectors deliver less fuel than the ECU commands.

🔍

Faulty O2 sensor

15%

The upstream oxygen sensor itself can lie about the air-fuel ratio. Less common than the above but possible on higher-mileage vehicles.

Step-by-Step Fix

1

Read the freeze-frame data

A basic OBD-II scanner ($25–40) can pull the freeze-frame data captured when P0171 was set. Note the engine load, RPM, and short/long-term fuel trims (STFT/LTFT). Trims above +10% confirm a real lean condition.

2

Inspect for vacuum leaks

With the engine idling, listen for hissing around the intake. Spray a small amount of carb cleaner along intake hoses, manifold gaskets, and the PCV valve — if idle changes when sprayed, you found the leak.

⚠️

Use carb cleaner sparingly. Excessive spraying can dilute oil or damage rubber components.

3

Clean the MAF sensor

Remove the MAF sensor (usually 2 screws in the intake hose) and spray it gently with MAF sensor cleaner — never carb cleaner or starting fluid. Let it dry completely before reinstalling. This costs about $8 and resolves the issue on many high-mileage vehicles.

4

Check fuel pressure

If vacuum and MAF check out, test fuel pressure with a gauge attached to the fuel rail. Compare to the spec in your service manual. Low pressure points to filter, pump, or pressure regulator.

5

Clear the code and recheck

After any fix, clear the code with the scanner and drive 50–100 miles in mixed conditions. If P0171 returns, the underlying cause is not fixed — keep diagnosing rather than ignoring it.

✅ Click each step to mark as completed (0/5 done)

Parts You Might Need

MAF sensor cleaner spray$8-15
Replacement vacuum hose (if cracked)$5-20
Intake manifold gasket (if leaking)$20-60
O2 sensor (Bank 1, upstream)$40-120
Fuel filter$15-40

Frequently Asked Questions

Can I keep driving with a P0171 code?
Short term, yes — the engine will run, but you will lose fuel economy and may damage the catalytic converter over time. Unburned oxygen in the exhaust runs the catalyst hot. Fix it within a few weeks, not a few months.
Does P0171 always mean a vacuum leak?
No. Vacuum leaks are the most common cause (about 40% of cases), but dirty MAF sensors, weak fuel delivery, and failing O2 sensors also trigger it. Use freeze-frame data and fuel trim readings to narrow it down before throwing parts at the problem.
Is P0171 expensive to fix?
Usually no. The most common fix (vacuum hose or MAF cleaning) costs $0–25 in parts. Worst case (fuel pump replacement) runs $300–500 including labor. Most owners spend under $100 to resolve P0171.
What is the difference between P0171 and P0174?
P0171 is "lean" on Bank 1 (typically cylinders 1, 3, 5, 7 on V-engines). P0174 is the same condition on Bank 2 (cylinders 2, 4, 6, 8). On inline engines you only see P0171 because there is only one bank. Both codes appearing together usually points to an intake-side problem affecting the whole engine.