P0171 means the engine computer is adding more fuel than expected to correct a lean reading on bank 1. An intake leak, inaccurate airflow reading or low fuel pressure can cause it. Book diagnosis soon. Drive only briefly if the engine runs smoothly. Stop safely if the check engine light flashes or the engine stalls.
What P0171 means
A lean mixture has too much air for the fuel being supplied. The computer uses an oxygen or air-fuel sensor to adjust fuelling. P0171 appears when bank 1 needs more added fuel than the system allows. Bank 1 contains cylinder 1. An engine with one cylinder bank usually has only bank 1. The code can also come from a misleading sensor reading. It does not identify one failed part.
Technical definition
Positive short-term and long-term fuel trims mean the computer is adding fuel. The code appears when those adjustments go beyond the set lean limit under specified conditions. Limits vary by car. Large adjustments at idle that improve at higher speed can suggest a vacuum leak. An exhaust leak ahead of the feedback sensor can also give a false lean reading.
Symptoms
- Steady check engine light
- Rough or high idle
- Hesitation or weak acceleration
- Misfire, sometimes with P0300 or a cylinder-specific code
- Sometimes no noticeable change in driving
Find out what's wrong with your car
Tell us your car and what you've noticed. You'll get a safety verdict and the three most likely causes of P0171 for your car, free.
Code selectedP0171
Free result
- Can you keep driving
- Top 3 likely causes for your car
- DIY or mechanic for each
Fix Plan
- Every cause, ranked for your car
- What to test first
- Parts list and step-by-step DIY guide
- Printable PDF
Start free. You can choose the Fix Plan after you see your result.
Common causes
These are general possibilities. Your car, symptoms and fault codes help narrow them down.
Intake, vacuum or PCV hose leak
Air entering after the airflow meter is not measured. Check hoses and intake ducting first.
Leaking intake manifold gasket
A bank-specific leak may affect one side more than the other. Confirm with a smoke test.
Dirty or inaccurate mass airflow sensor
Compare data with the service procedure. A lean code alone does not prove sensor failure.
Low fuel pressure or restricted injector
Have a mechanic test pressure and delivery. High-pressure direct-injection lines need special precautions.
Exhaust leak before the upstream sensor
Outside air can make the sensor report a lean mixture when fuelling is not the cause.
Biased upstream oxygen or air-fuel sensor
Check sensor response and wiring after ruling out air leaks and fuel supply faults.
How to diagnose it
- Stop safely if the light flashes, the engine stalls or power comes and goes. Do not drive through an active misfire.
- Save codes and freeze-frame data. Check whether the opposite bank also has a lean code.
- With the engine off and cool, check intake boots, hose connections and accessible PCV hoses for splits or loose fittings.
- Compare fuel trims at idle and a steady raised speed using the service procedure. Have a garage smoke-test the intake. Do not spray flammable cleaners around a running engine.
- Have a mechanic check fuel pressure and injector delivery if trims remain high. Check for exhaust leaks before deciding an oxygen sensor has failed.
- Repair the confirmed fault, then check trims under the original conditions and check for returning codes.
Common fixes
Check the cause before you replace parts. Your diagnosis shows the parts and whether you can do the job yourself or need a mechanic.
- Repair vacuum or intake hose leak (estimate)
- Replace intake manifold gasket (estimate)
- Replace mass airflow sensor (estimate)
- Replace fuel pump (estimate)
- Replace upstream oxygen or air-fuel sensor (estimate)
At a glance
- Severity
- ▲ Check soon
- Can I keep driving?
- Yes, for a short trip if the light is steady and the engine runs smoothly. Stop if the light flashes, the engine stalls or it loses power.
- Most common cause
- Unmetered air from an intake or vacuum leak
- DIY difficulty
- Moderate
- Systems
- Air intake, fuel delivery, fuel trim, bank 1 oxygen feedback
P0171 by make
Common questions
What does P0171 mean?
P0171 means bank 1 needs more added fuel than expected to correct a lean reading. Too much unmeasured air, not enough fuel or misleading oxygen feedback can cause this. Bank 1 contains cylinder 1.
Can I drive with P0171?
Only briefly if the check engine light is steady and the engine runs smoothly. Book diagnosis soon and avoid heavy acceleration. Stop safely if the light flashes, the engine stalls or it loses power. Misfires can damage the catalytic converter.
How much does it cost to fix P0171?
The repair depends on the cause. You may need hose repair, intake gasket replacement or fuel pump replacement. Read the codes and diagnose the fault first. The diagnosis shows the parts needed and whether it is a DIY job or a mechanic job. Testing is needed to choose the right repair.
Does P0171 mean I need an oxygen sensor?
No, this code does not prove an oxygen sensor has failed. The sensor may be correctly reporting unmetered air or weak fuel delivery. Check intake leaks, fuel pressure and exhaust leaks before testing sensor response.
Will clearing P0171 fix the problem?
No, clearing the code does not correct the air or fuel fault. Save the data, repair the cause and check fuel trims before resetting the light. This is guidance, not a professional inspection. If in doubt, stop safely and call for help.
Sources
- SAE J2012: Diagnostic Trouble Code Definitions
- Ford: OBD-II code definitions
- Ford: OBD system operation, gasoline engines
Last updated · How we write our guides
This is guidance, not a professional inspection. If in doubt, stop safely and call for help.


