P0171: Engine computer has reached its limit adding fuel on bank 1: the mixture is lean
System too lean, bank 1
Severity: Monitor
If the engine runs normally, a lean code is an emissions and efficiency fault you can drive on briefly while booking a diagnosis; it should not be left, because the lean condition can worsen into misfire and converter damage.
It gets more serious if:
- Inspect soon: Inspect soon if the engine idles roughly, hesitates, stalls, misfires or pings under load; a mixture that far off stresses the catalytic converter and can leave you stranded.
- Stop: Stop if the check engine light starts flashing: that means an active misfire hot enough to damage the catalytic converter. Pull over where nothing flammable is under the car and let it cool.
P0171 in short
P0171 means the engine computer is adding as much extra fuel as it is allowed on bank 1 and the mixture is still lean. The usual cause is unmeasured air from a vacuum or crankcase-vent leak, then a dirty airflow sensor or weak fuel delivery. Get it checked soon if the engine hesitates, idles roughly or stalls.
The upstream oxygen sensor tells the computer whether the exhaust is rich or lean, and the computer corrects by adding or removing fuel. That correction is called fuel trim. P0171 sets on bank 1 (the side with cylinder 1; an inline engine has only bank 1) when the computer has been adding fuel up to its calibrated limit and still can't bring the mixture back.
The code says the mixture looks lean; it doesn't name a part. Most often extra air is getting in that the airflow sensor never measured, through a split intake boot, a cracked vacuum hose or a leaking crankcase ventilation hose. Less often the airflow sensor under-reads, the fuel pump or filter can't keep up, or an exhaust leak lets air reach the sensor and fool it.
How the trims behave narrows it down. A leak usually shows up most at idle and fades as engine speed rises, while a fuel-supply or airflow-sensor problem tends to stay or worsen under load. If both banks are lean, look first at something they share.
Most likely causes
These are general causes for this code across vehicles. None is specific to one make or model.
Cause 1: Vacuum leak: split intake boot, cracked hose or leaking intake gasket
Common general cause- Why it ranks here
- Air that sneaks in after the airflow sensor is never measured, so the engine runs lean. It is the most common lean cause and cheap to find with a smoke test, so it is checked first.
- What would change this
- Fuel trims that are high at idle and improve as engine speed rises point here; a smoke test that shows the leak confirms it. Trims that stay high or get worse under load move other causes up.
Cause 2: Leaking crankcase ventilation (PCV) valve, hose or oil-filler seal
Common general cause- Why it ranks here
- The crankcase ventilation system connects to the intake, so a split hose, failed valve or loose oil cap is a vacuum leak. Saab's own procedure checks it before anything else.
- What would change this
- A cracked PCV hose, whistling at the oil filler or a change in idle when the cap is loosened raises this; a sealed system lowers it.
Cause 3: Dirty or skewed mass airflow (MAF) sensor
Common general cause- Why it ranks here
- If the MAF under-reports airflow, the computer injects too little fuel, typically on both banks at once. Contamination, a wrong replacement part or air bypassing the sensor all do this.
- What would change this
- Airflow readings below known-good values for the engine, or trims that change after an approved cleaning, raise this; readings in range lower it.
Cause 4: Weak fuel pump, clogged filter or faulty pressure regulator
Common general cause- Why it ranks here
- Too little fuel pressure or volume leaves the engine lean, often worst under load or at higher speed. It ranks below air leaks because it needs a gauge to prove.
- What would change this
- Fuel pressure or volume below specification during the conditions that set the code confirms it; pressure in specification rules it out.
Cause 5: Exhaust leak ahead of the bank 1 upstream oxygen sensor
Common general cause- Why it ranks here
- Outside air drawn in at a cracked manifold or gasket makes the sensor read lean even when the mixture is fine, so the computer adds fuel it doesn't need.
- What would change this
- Ticking at cold start, soot at the manifold or a leak found by smoke testing on that bank raises this; a sealed exhaust ahead of the sensor rules it out.
Cause 6: EVAP purge valve stuck open
Possible — needs testing- Why it ranks here
- A purge valve that never closes feeds vapour and air into the intake at idle. It is less common, but quick to check by pinching or plugging the purge line.
- What would change this
- Trims that drop toward normal when the purge line is blocked confirm it; no change rules it out.
Cause 7: Restricted or under-delivering fuel injectors on bank 1
Possible — needs testing- Why it ranks here
- Clogged or worn injectors deliver less fuel than commanded. A shop can compare injector balance and cylinder contribution, but injectors are not replaced just because the code is stored.
- What would change this
- One cylinder lagging on an injector balance or contribution test raises this; even results lower it.
Cause 8: Slow or biased bank 1 upstream oxygen or air-fuel sensor
Possible — needs testing- Why it ranks here
- A sensor that reads falsely lean makes the computer add fuel. Ranked last because a correctly responding sensor is usually reporting a real lean condition.
- What would change this
- A sensor that responds slowly or stays lean during a controlled rich change raises this; crisp response rules it out.
What to test first
Start at step 1. Each result tells you what it means and where to go next.
Step 1: Record all codes and freeze-frame data, then compare long-term and short-term fuel trims on both banks at idle and at a steady 2,500 rpm on a warm engine
Warning:Keep hands, hair and loose clothing clear of the belts and fan while the engine runs, and never run the engine in a closed garage.
IfTrims are high at idle and come down toward normal at 2,500 rpm
It meansClassic unmetered-air pattern; look for a vacuum leak.
IfTrims stay high or rise as engine speed and load increase
It meansAirflow measurement or fuel delivery is more likely.
IfOnly bank 1 is lean on a V-type engine
It meansLook for something specific to that bank: an exhaust leak ahead of its sensor, an injector or the sensor itself.
Step 2: Inspect the intake boot, vacuum hoses, PCV hose and oil-filler seal, then have the intake smoke-tested. Briefly block the EVAP purge line and watch the trims
Warning:Keep hands, hair and loose clothing clear of the belts and fan while the engine runs, and never run the engine in a closed garage.
IfA crankcase ventilation hose, valve or seal leaks
It meansRepair the crankcase ventilation leak.
Points to: Leaking crankcase ventilation (PCV) valve, hose or oil-filler seal
IfSmoke escapes from an intake boot, hose or gasket
It meansRepair the leak, clear the code and recheck trims.
Points to: Vacuum leak: split intake boot, cracked hose or leaking intake gasket
IfTrims drop toward normal with the purge line blocked
It meansThe purge valve is stuck open.
IfNo leak found
It meansCheck the airflow sensor next.
Step 3: Check the airflow (MAF) reading against known-good values for your engine, and inspect the duct between the MAF and the throttle for cracks or loose clamps
IfAirflow reads low for the engine size and speed, or the sensor element is visibly dirty
It meansThe MAF is under-reporting; clean it with dedicated MAF cleaner if your maker allows, then recheck.
IfAirflow reads normally
It meansCheck fuel delivery next.
Step 4: Have fuel pressure, and volume where specified, measured under the conditions that set the code
Warning:The fuel system is under pressure and gasoline is a fire risk. Fuel-pressure testing means opening the fuel system: relieve pressure first, no flames or sparks nearby, and leave it to a shop if you don't have the gauge and procedure for your engine.
IfPressure or volume is below specification
It meansThe pump, filter or regulator is not delivering enough fuel.
Points to: Weak fuel pump, clogged filter or faulty pressure regulator
IfPressure and volume are in specification
It meansFuel supply is fine; check the injectors and the bank's sensor and exhaust.
Step 5: Check the exhaust ahead of the bank 1 upstream sensor for leaks, test that sensor's response to a controlled rich and lean change, and compare injector balance
Warning:Exhaust parts stay hot enough to burn skin long after the engine stops. Let the car cool for at least an hour, and never get under a car held up only by a jack.
IfAn exhaust leak ahead of the sensor is found
It meansOutside air is fooling the sensor; repair the leak.
Points to: Exhaust leak ahead of the bank 1 upstream oxygen sensor
IfThe sensor is slow or stays lean when the mixture is driven rich
It meansThe sensor is biased.
Points to: Slow or biased bank 1 upstream oxygen or air-fuel sensor
IfOne cylinder lags on the injector balance test
It meansThat injector is under-delivering.
Points to: Restricted or under-delivering fuel injectors on bank 1
Symptoms
- Check engine light with no change in how the car drives
- Rough or hunting idle, hesitation, or stalling Gets more serious: stop and have it checked.
- Pinging or spark knock when accelerating Gets more serious: stop and have it checked.
- Hissing from the engine bay at idle
- Check engine light flashing, or the engine shakes and stumbles under load Gets more serious: stop and have it checked.
Compare with: Rough idle with the check engine light on, Check engine light with loss of power
How to fix
Step 1: With the engine off, look over the intake duct between the air filter box and the throttle for splits and loose clamps, and check the vacuum and crankcase ventilation hoses for cracks or disconnected ends.
Step 2: Make sure the oil filler cap and dipstick are fully seated; on many engines a loose cap is a crankcase vacuum leak.
Step 3: If the airflow sensor is dirty and your maker allows cleaning, spray only the sensing element with dedicated MAF sensor cleaner, never touch it, and let it dry fully before reconnecting.
Warning:Disconnect the sensor before cleaning, use only cleaner made for MAF sensors, and do not refit it wet.
Parts and cost context
- Vacuum hoses and intake leaks:Hoses, intake boots and PCV parts are usually inexpensive; finding the leak is most of the job.
- Mass airflow (MAF) sensor:Try an approved cleaning before replacing, and use the correct part for your engine; a wrong sensor can cause this code by itself.
- Fuel pump:Replace the pump only after a pressure or volume test proves it weak; fuel-system work involves fire risk.
Labor varies by vehicle and shop; get a quote before you approve a repair.
Compare used part prices on PartPriceGuideOn your vehicle
SaabYour car
2008 · 9-3
Supported by vehicle dataSaab's service information for the 2008 9-3 says the code sets when the long-term fuel adaptation passes about +17.5%, lists stalling, uneven running and misfire as possible symptoms, and tells the technician to check the crankcase ventilation system for leaks first.
FordYour car
2021–2023 · F-150
Supported by vehicle dataOn 2021-2023 F-150s, Ford links P0171 to the PCM software level; a software update is the bulletin repair.
TSB 25-2342Status unverified
MIL on with P0171 from PCM software level
2021–2023f-150 · issued · NHTSA 11020977
Ford attributes a lit MIL with P0171 on listed F-150s to the PCM software level; the repair is a PCM software update. Supersedes 23-2195.
We couldn't confirm whether this bulletin is still current, so it doesn't count as confirmation.
ChevroletYour car
2012–2014 · Sonic
Supported by vehicle dataOn 2012-2014 Sonics, a cracked air cleaner outlet duct after the MAF can set P0171; GM covers the duct replacement.
NHTSA owner complaints mentioning P0171: 8. That shows what owners reported, not how often a cause sets the code.
2020 · Silverado 1500
Supported by vehicle dataOn some 2020 Silverado 1500s, a loose right-hand PCV tube causes an air-leak whistle and can set P0171 or P0174.
GCUS-9-3731Status unverified
Cracked air cleaner outlet duct (P0171 or P0101)
2012–2014sonic · issued · NHTSA 10126022
A cracked air cleaner outlet duct can set P0171 or P0101; dealers replace the duct as needed under the special coverage.
We couldn't confirm whether this bulletin is still current, so it doesn't count as confirmation.
N192273400Status unverified
Right-hand PCV tube not fully seated
2020silverado-1500 · issued · NHTSA 10169635
A loose right-hand crankcase ventilation (PCV) tube can cause a whistle or air-leak noise and, in the worst case, P0171 and/or P0174; dealers check that the tube is fully seated.
We couldn't confirm whether this bulletin is still current, so it doesn't count as confirmation.
Related codes
Seen together
P0171 questions
Can I drive with P0171?
For short trips, if the engine runs normally, usually yes. Get it diagnosed soon: a lean engine can start to misfire, run hotter and damage the catalytic converter. If it stalls, hesitates badly or the light flashes, stop driving it.
Will a new oxygen sensor fix P0171?
Rarely. The sensor is usually reporting a real lean mixture. Replace it only if a test shows it responds slowly or reads falsely lean.
What is the difference between P0171 and P0174?
They are the same lean test on different sides of a V-type or flat engine. Bank 1 contains cylinder 1. When both appear together, look for a cause shared by both banks, such as a large vacuum leak, the airflow sensor or low fuel pressure.
Can a dirty air filter cause a lean code?
Unlikely on its own; a restricted filter reduces the air the sensor measures rather than adding unmeasured air. It is still worth checking the filter and the duct after it while you look for leaks.
Will my car pass an emissions inspection?
Not while the check engine light is on. After the repair, the light normally goes out after three consecutive drives without the fault, and the readiness monitors must complete before a retest.
Sources and review
- P0171 Code: Causes, Symptoms, and How to Fix It
- Saab 9-3 (2008) WIS DTC P0171 00 (ME9): Long term fuel trim max value, air/fuel too lean
- Bosch Oxygen Sensors consumer brochure
- Final Regulation Order: 13 CCR §1968.2, Malfunction and Diagnostic System Requirements (OBD II) for 2004 and later passenger cars, light-duty trucks and medium-duty vehicles
- 2026 Honda Pilot Owner's Manual: Indicator Coming On/Blinking (Malfunction Indicator Lamp)
- Saab 9-2X 2.5i (2005) WIS DTC P0172 System too rich (bank 1); P0171 uses the same procedure
- Saab 9-3 (2008) WIS DTC P0101 00 (ME9): Mass air flow sensor performance (deviation from calculated mass air)
- How to Clean a Mass Air Flow Sensor
- P0420 Code: The Guide to Diagnosis and Fast Fixes
- Ford Motor Company bulletin TSB 25-2342: MIL on with P0171 from PCM software level
- General Motors bulletin GCUS-9-3731: Cracked air cleaner outlet duct (P0171 or P0101)
- NHTSA ODI consumer complaints flat files
- General Motors bulletin N192273400: Right-hand PCV tube not fully seated
- 40 CFR §85.2222 Onboard diagnostic test procedures
- Last reviewed
- Written by
- Saurabh K.
- Editorial review
- Pending
- Technician review
- Technician review pending
This page explains what a code usually means; it is not a substitute for a professional inspection. How we source and review · Report an error