OBD-II Car Error Code P0171
System Too Lean (Bank 1)
Severity
DIY Difficulty
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
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
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
Clogged fuel filter, failing fuel pump, or dirty injectors deliver less fuel than the ECU commands.
Faulty O2 sensor
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
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.
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.
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.
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.
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)