OBD-II code · P0171
On this page
- What the code actually means
- Symptoms
- Is it safe to drive?
- What causes it — most common first
- How to diagnose it, in order
- 1. Read fuel trim data, not just the code
- 2. Inspect for vacuum leaks
- 3. Check MAF sensor reading
- 4. Check fuel pressure if the easier steps came up empty
- 5. Test the upstream O2 sensor last
- Fixes, cheapest first
- How to reset the code after a repair
- What to do if it comes back
- Vehicle-specific patterns
- Frequently asked questions
P0171 Code: System Too Lean (Bank 1)
What the code actually means
SAE J2012 defines P0171 as "System Too Lean (Bank 1)". Bank 1 is the
side of the engine that contains cylinder #1. On inline engines this is
the whole engine; on V6 and V8 engines the partner code on the other
side is P0174.
To set P0171, the long-term fuel trim (LTFT) on Bank 1 has held above
about +10% for long enough that the PCM considers the deviation no
longer a transient. Fuel trim is the PCM's running correction to the
amount of fuel it injects. Positive trim means the engine was running
lean and the PCM had to add fuel; negative trim means rich and the PCM
had to subtract. Healthy LTFT lives roughly between -8% and +8%.
P0171 is a continuous monitor code. It can set on a single drive cycle
once the threshold is crossed; you do not need two trips like with
P0420.
Symptoms
- Check engine light is on, sometimes flashing under load.
- Rough or lopey idle, especially when warm.
- Hesitation or stumble during light throttle.
- A faint hissing sound from under the hood at idle (vacuum leak giveaway).
- Slight fuel-economy drop, 1–4 mpg.
- Hard starting after the car has been sitting overnight (fuel pump pressure drop).
- Occasional cylinder misfires that set short-lived
P0300codes alongsideP0171.
Is it safe to drive?
Usually yes for a few weeks, no for a few months. P0171 does not
cause immediate engine damage in most cases, and the vehicle will keep
running. But sustained lean operation has compounding consequences:
The catalytic converter overheats trying to oxidize unburned air, which
shortens its life and eventually sets P0420 on top of
the original code. Oxygen sensors age faster in a chronically lean
exhaust stream. And misfires that ignite inside the catalyst can crack
the substrate. Fix P0171 within a few weeks of seeing it, not a few
months.
What causes it — most common first
Frequencies below are rough patterns from iATN diagnostic threads and r/MechanicAdvice posts, not exact statistics for any one platform.
1. Vacuum leak (~40%). The single most common cause across all makes. Common leak points include intake manifold gaskets, PCV hoses that have hardened with age, the brake booster check valve, and torn vacuum lines for the EVAP system. Clue: a hissing sound at idle, or LTFT that drops back to normal when you spray carb cleaner near a suspected leak (the cleaner gets burned and the PCM reads it as fuel).
2. Dirty or failing MAF sensor (~25%). Oil from a worn air filter, or fine dust that got past it, coats the MAF sensor's hot wire and makes it under-report incoming air mass. The PCM then under-injects fuel and the engine runs lean. Clue: MAF reading at idle is below the expected range for engine displacement (rough rule: grams-per-second at idle should be roughly engine displacement in liters; a 2.0L engine should pull around 2 g/s at idle).
3. Weak fuel pump or clogged fuel filter (~15%). Less fuel reaches the injectors, the PCM commands more pulse width to compensate, LTFT climbs. Clue: fuel-pressure test reads low, and the lean condition gets worse at high load instead of better.
4. Failing upstream O2 sensor (~10%). A slow upstream sensor reports a leaner mixture than is actually present, and the PCM over-corrects by adding fuel that was not needed. Clue: sensor switches slowly in live data, or settles at a fixed voltage instead of oscillating.
5. Leaking injector or PCV diaphragm (~5%). A weeping injector under-delivers fuel under boost or high RPM; a torn PCV diaphragm introduces unmetered air. Clue: lean condition worsens at specific operating ranges (high load for injector, all loads for PCV).
6. Wiring or connector corrosion (~3%). Corroded ground at the MAF connector or upstream O2 sensor connector throws off the reading without setting a circuit code. Clue: the lean condition appears and disappears with vibration.
7. PCM calibration or TSB (~2%). A handful of platforms have service bulletins that update the lean-condition threshold. Clue: the TSB matches your year, make, model, and engine.
A vacuum leak or a dirty MAF sensor explains about two out of three
P0171cases. Look there first, even if you suspect the fuel pump.
How to diagnose it, in order
1. Read fuel trim data, not just the code
Pull short-term (STFT) and long-term (LTFT) fuel trim live, both at idle and at 2,500 rpm under no load. The pattern of trims tells you where to look:
- High LTFT at idle, normal at 2,500 rpm: small vacuum leak (idle air budget is small, leak is a bigger percentage; at higher rpm the leak is diluted).
- High LTFT at all rpm: big vacuum leak, MAF sensor, or fuel delivery problem.
- LTFT normal, STFT swinging wildly positive: failing O2 sensor, not a true lean condition.
2. Inspect for vacuum leaks
The cheapest, highest-yield diagnostic step. Look and listen with the engine warm:
- Inspect every vacuum hose for cracks, especially where they meet metal fittings.
- Spray carburetor cleaner along the intake manifold gasket, at the base of the throttle body, and at the brake booster check valve. If rpm changes when you spray a location, you found the leak.
- On engines with PCV systems, pull the PCV valve and shake it; a stuck valve rattles loosely or not at all.
- A smoke machine, if you have access to one, makes leaks obvious in about 30 seconds.
3. Check MAF sensor reading
With a scan tool that reads MAF in g/s, compare to engine displacement at idle. Numbers far below the expected range indicate a dirty sensor. CRC MAF cleaner ($8) sprayed onto the hot wire from about 6 inches away, then allowed to fully evaporate before reassembly, fixes about 60% of dirty-MAF cases.
4. Check fuel pressure if the easier steps came up empty
A fuel pressure gauge on the test port, with the engine at idle, should read the platform spec (usually 35–60 psi for port injection, much higher for direct injection). Pressure that holds spec at idle but drops under load points to a weak pump or a clogged filter.
5. Test the upstream O2 sensor last
If LTFT is high but the upstream sensor data looks normal, the sensor is probably not the issue. If the sensor switches slowly or sits at a fixed voltage, swap in a known-good sensor as the final check.
Fixes, cheapest first
| Fix | Cost (USD) | When it applies |
|---|---|---|
| Clean the MAF sensor with CRC MAF cleaner | $8 | MAF reading below expected at idle |
| Replace a cracked vacuum hose or PCV valve | $10–$40 | Hissing sound, carb-cleaner test localizes leak |
| Replace intake manifold gasket | $80–$200 part, $200–$400 labor | Carb-cleaner test localizes leak at the gasket |
| Replace upstream O2 sensor | $50–$200 | Sensor reads slow or fixed in live data |
| Replace MAF sensor | $80–$300 | Cleaning didn't restore the reading |
| Replace fuel filter | $25–$80 | Filter has not been changed in 60k+ miles |
| Replace fuel pump | $200–$700 part | Fuel-pressure test reads low under load |
| Replace leaking injectors | $50–$150 per injector | Lean condition worsens at high load only |
How to reset the code after a repair
Clear P0171 with a scan tool, then drive a mix of city and highway
for 1–2 drive cycles. The fuel-trim monitor re-evaluates LTFT
continuously, so the code will return within a few minutes of driving
if the lean condition is still present.
Without a scan tool, disconnect the negative battery terminal for 10–15 minutes. Skip this if you depend on a radio code, paired navigation, or learned transmission shift schedules; the reset wipes those too.
What to do if it comes back
- Within 50 miles of a repair: the underlying lean condition was not fully resolved. If you replaced a vacuum hose, look for a second leak. If you cleaned the MAF, check whether the air filter is letting oil or dust through. If you replaced the fuel pump, verify the fuel pressure under load.
- Months after a repair, gradually returning: a different lean cause has crept in. PCV systems and intake gaskets age out on their own schedules. Re-run fuel-trim diagnostics from scratch.
P0171andP0174together on a V6/V8: the leak is somewhere both banks share — the intake plenum, the throttle body, the brake booster, or the PCV system. Stop chasing bank-specific causes.
Vehicle-specific patterns
A few known platforms where P0171 is a recurring story:
- 2004–2010 Ford F-150 4.6L and 5.4L: the intake manifold cracks on the underside near coolant passages. Look for a hairline leak between cylinders 3 and 4. Common enough that there is a Ford TSB.
- 1996–2005 Toyota Camry and Sienna 1MZ-FE V6: the rubber sleeve on the intake plenum cracks. Replace the sleeve, not the whole manifold.
- 2007–2014 BMW N54 and N55 engines: the PCV diaphragm in the valve
cover fails routinely around 80k miles. Sets
P0171andP0174together. - 2003–2009 Subaru EJ25: intake manifold gasket at the heads,
almost always sets
P0171first.