P0171: how to diagnose a lean mixture without guessing
Check symptoms, intake leaks and fuel-trim evidence before ordering a MAF sensor or fuel pump.
1. Save the context
Record every code and freeze-frame data. Note whether rough running happens at idle, during acceleration or only when cold.
Stop driving if there is severe misfiring, a flashing engine light or a fuel leak.
2. Start with safe observations
With the engine off and cool, look for a loose intake duct or obvious damaged hose. Do not use flammable spray to hunt for vacuum leaks.
Ask the garage to compare fuel trims at idle and under load and perform a smoke test if an intake leak is suspected.
3. Confirm before replacing
Unmetered air, fuel-delivery problems or inaccurate sensor readings can all produce a lean code. Test fuel pressure and sensor performance as appropriate.
Do not automatically replace the oxygen sensor or MAF. Ask for test results and confirm engine-specific bank and sensor numbering.
Frequently asked questions
Does P0171 always mean a vacuum leak?
No. A leak is one possible cause; fuel supply and sensor errors can cause similar readings.
What if I also have P0174?
Both banks reporting lean can point to a shared cause on a two-bank engine. First confirm your engine actually has two banks.
Decode my fault code