What P0171 Means
P0171 means the engine is running leaner than the target air-fuel ratio on Bank 1 — there's more air relative to fuel than the PCM commanded — and the fuel trim correction needed to compensate has exceeded the calibrated threshold. The PCM constantly fine-tunes fuel delivery using short-term and long-term fuel trim values based on feedback from the upstream O2 sensor (or wideband air-fuel sensor on newer vehicles). When it has to keep adding more fuel than normal, for a sustained period, to bring the mixture back to the target ratio, it sets P0171 to flag that something upstream of its fuel corrections is causing an actual lean condition. Because a lean condition can stem from anywhere air might be entering the engine without being measured — a vacuum leak, a dirty MAF sensor undercounting airflow, or a fuel delivery problem not supplying enough fuel in the first place — P0171 is one of the more open-ended codes to diagnose, and freeze-frame fuel trim data is usually the best starting point for narrowing down the actual cause.
Common Causes
- Vacuum leak in intake hoses, gaskets, or the PCV system allowing unmetered air into the engine
- Dirty or failing MAF sensor undercounting actual airflow, causing the PCM to under-fuel
- Weak fuel pump or clogged fuel filter restricting fuel delivery to match demand
- Clogged or partially clogged fuel injectors reducing delivered fuel volume
- Exhaust leak upstream of the O2 sensor pulling in outside air and skewing the sensor's reading
- Failing or contaminated upstream O2 sensor giving an inaccurate lean signal
Symptoms You Might Notice
- Check Engine Light on, sometimes with a hissing sound if a vacuum leak is the cause
- Rough or unstable idle, particularly noticeable at a stop
- Hesitation or lack of power during acceleration
- Reduced fuel economy as the engine compensates with extra fuel trim adjustments
- Occasional stalling at idle in more pronounced cases
What to Check First
- 1
Pull freeze-frame data and check both short-term and long-term fuel trim values to gauge how severe the lean condition is and under what conditions it occurs
- 2
Inspect all vacuum hoses, intake boots, and the PCV system for cracks, disconnections, or leaks, since this is the most common cause
- 3
Clean the MAF sensor with dedicated cleaner and inspect intake ducting for leaks between the sensor and throttle body
- 4
Check fuel pressure at idle and under load against factory specification to rule out a weak fuel pump or clogged filter
- 5
If fuel trims correct significantly with propane or carb cleaner sprayed around vacuum-prone areas (professional smoke testing is safer and more precise), that confirms a vacuum leak as the source
Frequently Asked Questions
Is P0171 the same as P0174?
They're the same type of fault — a lean condition — but on different cylinder banks. P0171 is Bank 1, P0174 is Bank 2. On a V6 or V8 engine, seeing both codes together often points to a shared cause like a vacuum leak or MAF sensor issue affecting the whole engine, rather than two separate bank-specific problems.
Can I keep driving with a lean code?
For a short period, usually yes, but a sustained lean condition can cause the engine to run hotter than normal and, over time, contribute to detonation or catalytic converter stress. It's worth diagnosing within a week or two rather than letting it run indefinitely.
Why does my mechanic want to do a smoke test for this code?
A smoke test pumps a visible, harmless smoke into the intake system with the engine off, making even small vacuum leaks immediately visible as smoke escaping from cracks or loose connections — it's a far more precise method than guessing based on symptoms alone.
Reviewed by Emmanuel Erere, Auto Mechanic. Causes and diagnostic steps checked for workshop accuracy.