P0171 System Too Lean: Diagnosis Guide
P0171 means the engine is adding all the fuel it can and still running lean. Use fuel trims to tell a vacuum leak from a dirty MAF or weak fuel pump.
On this page· 7 sections
P0171 means "System Too Lean (Bank 1)." The engine computer has been adding extra fuel to correct a lean mixture, and it has hit the limit of how much correction it is allowed to make. The code tells you the symptom, too much air or too little fuel, not the part that caused it.
The good news is that P0171 is one of the most diagnosable codes there is, because the computer shows you its own correction in the fuel trim numbers. With a scanner that reads live data, you can usually narrow the cause to one of three areas before you spend anything on parts.
What "lean" means and what fuel trims tell you
Gasoline engines aim for a precise air-fuel ratio. The upstream oxygen or air-fuel sensor reports whether the exhaust is rich or lean, and the computer adjusts injector time to compensate. Those adjustments are fuel trims:
- Short-term fuel trim (STFT) changes quickly, many times a second.
- Long-term fuel trim (LTFT) is the learned correction the computer carries forward.
Positive trims mean the computer is adding fuel because it sees a lean mixture. Negative trims mean it is removing fuel. A healthy warm engine usually keeps the combined total within roughly plus or minus 5 to 10%. P0171 commonly sets when the total stays somewhere around +20 to +25% or more, though the exact threshold varies by manufacturer.
"Bank 1" is the side of the engine with cylinder 1. On a V6 or V8, the same fault on bank 2 is P0174. Both codes together point to something shared by the whole engine: the MAF sensor, fuel pressure, or a large vacuum leak in a common area like the intake plenum or PCV system. One bank only points to something on that side, like an intake gasket or injector.
Is it safe to drive?
Usually yes in the short term, if the light is steady and the car runs normally. Over time, a lean mixture burns hotter, which can cause misfires (see our P0300 guide), hesitation and, in severe cases, engine or catalytic converter damage. Fix it within a reasonable time, not months.
Get it checked promptly if you also have misfire codes, a flashing light, a fuel smell, or hesitation under acceleration.
The three-question fuel trim test
With the engine fully warm and accessories off, record the combined trim (STFT + LTFT) in three conditions:
- Idle in park or neutral
- Steady 2,500 rpm, parked
- Light cruise on the road, if you can safely watch the data or record it
| Pattern | Most likely cause |
|---|---|
| High at idle, improves a lot at 2,500 rpm | Vacuum leak (fixed leak matters more when total airflow is low) |
| High at all speeds, worse under load or uphill | Fuel delivery: weak pump, clogged filter, bad pressure regulator |
| Rises with airflow, worse at higher rpm and load | Dirty or failing MAF sensor under-reading airflow |
| High only on one bank | Something on that bank: intake gasket leak, injectors, exhaust leak before that sensor |
- High at idle, improves a lot at 2,500 rpm
- Most likely cause
- Vacuum leak (fixed leak matters more when total airflow is low)
- High at all speeds, worse under load or uphill
- Most likely cause
- Fuel delivery: weak pump, clogged filter, bad pressure regulator
- Rises with airflow, worse at higher rpm and load
- Most likely cause
- Dirty or failing MAF sensor under-reading airflow
- High only on one bank
- Most likely cause
- Something on that bank: intake gasket leak, injectors, exhaust leak before that sensor
These patterns are guides, not proof, but they tell you where to test first.
Causes and how to confirm each
| Cause | How to confirm | Typical repair cost (estimate) |
|---|---|---|
| Vacuum leak (hoses, PCV, intake gasket, brake booster hose) | Smoke test, hissing, trims drop when leak is blocked | about $20 to $500 depending on location |
| Dirty MAF sensor | Clean it and recheck trims; compare grams/sec to spec | about $10 for cleaner |
| Failed MAF sensor | Readings stay low after cleaning | about $100 to $400 |
| Low fuel pressure (pump, filter, regulator) | Fuel pressure gauge against service spec | about $150 to $1,200 |
| Clogged or leaking injectors | Balance test, trims on one bank | about $100 to $250 per injector |
| Exhaust leak before the upstream sensor | Ticking, soot; extra air fools the sensor | about $100 to $400 |
| Faulty upstream O2 or air-fuel sensor | Sensor data slow or stuck; less common | about $100 to $350 |
- Vacuum leak (hoses, PCV, intake gasket, brake booster hose)
- How to confirm
- Smoke test, hissing, trims drop when leak is blocked
- Typical repair cost (estimate)
- about $20 to $500 depending on location
- Dirty MAF sensor
- How to confirm
- Clean it and recheck trims; compare grams/sec to spec
- Typical repair cost (estimate)
- about $10 for cleaner
- Failed MAF sensor
- How to confirm
- Readings stay low after cleaning
- Typical repair cost (estimate)
- about $100 to $400
- Low fuel pressure (pump, filter, regulator)
- How to confirm
- Fuel pressure gauge against service spec
- Typical repair cost (estimate)
- about $150 to $1,200
- Clogged or leaking injectors
- How to confirm
- Balance test, trims on one bank
- Typical repair cost (estimate)
- about $100 to $250 per injector
- Exhaust leak before the upstream sensor
- How to confirm
- Ticking, soot; extra air fools the sensor
- Typical repair cost (estimate)
- about $100 to $400
- Faulty upstream O2 or air-fuel sensor
- How to confirm
- Sensor data slow or stuck; less common
- Typical repair cost (estimate)
- about $100 to $350
Costs are typical estimates and vary widely by vehicle and region.
Vacuum leaks
This is the most common cause, especially on engines more than a few years old. Rubber and plastic hoses crack with heat. The PCV valve and its hoses are frequent culprits, as are intake manifold gaskets. On many engines a cracked PCV diaphragm in the valve cover causes a whistle at idle.
How to find one:
- Listen around the intake with the engine idling. A hiss or whistle is a strong clue.
- Look for cracked, collapsed or disconnected hoses, especially at bends.
- Smoke test. A shop pushes visible smoke into the intake and watches where it comes out. It finds leaks too small to hear and is often worth the fee.
MAF sensor
The mass airflow sensor measures incoming air. If its sensing element is dirty, it under-reports airflow, the computer injects too little fuel, and trims climb. A torn or loose intake boot between the MAF and the throttle body also lets in unmeasured air and acts like a vacuum leak.
To clean it, unplug the connector, remove the sensor and spray only MAF-specific cleaner onto the element. Do not touch the wires or use brake or carb cleaner, which can leave residue or damage the element. Let it dry completely before reinstalling. Over-oiled reusable air filters are a known source of MAF contamination.
Fuel delivery
A tired pump, a clogged filter or a failing pressure regulator lets pressure drop when demand rises. The car often feels flat under acceleration or on hills. The definitive test is a fuel pressure gauge at the test port, compared to the specification in your service information. Some newer direct-injection engines have no easy test port and need a scanner that reads fuel rail pressure.
Exhaust leak before the upstream sensor
A leak at the exhaust manifold or its gasket can pull in outside air, so the sensor sees extra oxygen and reports lean even though the mixture is fine. A ticking sound at cold start that quiets as the engine warms is a classic sign.
A practical repair order
- Read and record codes and freeze frame. Note whether it set at idle, cruise or under load.
- Fix related codes first: MAF codes like P0101 or P0102, oxygen sensor heater codes like P0141, and misfire codes.
- Inspect intake plumbing from the air filter to the throttle body and all vacuum hoses.
- Run the three-condition fuel trim test above.
- Clean the MAF if trims rise with airflow. Recheck.
- Smoke test if trims point to a vacuum leak and you cannot find it.
- Test fuel pressure if trims are high under load.
- Consider injectors and sensors last, after the cheaper causes are ruled out.
After any repair, clear codes or reset fuel trims (a scanner can do this, or the computer relearns over time) and drive normally. Long-term trims should settle back toward zero over the next few drives.
What not to do
- Do not replace the oxygen sensor first. It reports the lean condition, and in most cases it is the messenger, not the cause.
- Do not add fuel injector cleaner and hope. A quality cleaner rarely hurts, but it will not fix a cracked hose or a weak pump.
- Do not ignore it for months. Lean running raises combustion temperatures and can lead to misfires and converter damage.
Keep a log of what you tested and replaced in your free CarManager garage. Lean codes sometimes come back from a second, smaller leak, and notes on which hoses are new save time.
Frequently asked questions
What is the most common cause of P0171?
A vacuum leak is the most frequent cause on most engines, often a cracked hose, PCV valve or hose, or intake gasket. A dirty MAF sensor and low fuel pressure are the next things to check.
Can a dirty air filter cause P0171?
A dirty air filter by itself usually does not, since it restricts air rather than adding unmeasured air. An over-oiled reusable filter can contaminate the MAF sensor and cause lean readings, and a poorly seated filter housing can let unmeasured air in.
Should I replace the oxygen sensor for P0171?
Usually not as a first step. The upstream sensor is reporting the lean mixture. Replace it only if live data shows it is slow, stuck or out of range, or if there is a sensor-specific code.
What does it mean if I have P0171 and P0174 together?
Both banks are lean, which points to a cause shared by the whole engine: the MAF sensor, fuel pressure, or a vacuum leak in a common area like the intake plenum or PCV system. See P0174.
Will P0171 make me fail an emissions inspection?
In most OBD-based inspection programs, any active check engine light with a stored code is a failure. Check your state's inspection rules, and fix the cause before the test rather than clearing the code.
Look it up on CarManager
Related tools
General guidance, not professional advice. Intervals, specifications and legal requirements vary by vehicle, manufacturer and state: your owner’s manual, a qualified mechanic and your state agency come first. Costs mentioned are estimates. Our data sources.