P0171
System Too Lean (Bank 1)
P0171 tells you the engine is running with too much air relative to fuel on Bank 1. It's rarely a single obvious fault — it's usually the symptom of a small leak or a dirty sensor that adds up over time. This guide covers the usual suspects and how to test them safely.
Fuel-system work involves flammable vapors and hot surfaces. Never test near open flame, always let the engine cool before opening fuel lines, and use the correct MAF-safe cleaner — brake or carburetor cleaner will damage a MAF sensor. This article is educational and does not replace a certified mechanic.
What P0171 means in simple words
The engine control unit (ECU) uses oxygen sensors to measure how much unburned oxygen leaves the exhaust. If there's more oxygen than expected, the mixture was lean — not enough fuel for the amount of air. The ECU compensates by adding fuel (positive fuel trim). When it has to add more than about 25% for long enough, it stores P0171.
"Bank 1" simply means the side of the engine that contains cylinder 1. On inline engines there's only one bank, so P0171 applies to the whole engine.
Common symptoms
- Rough or unstable idle, often worse when the engine is cold.
- Hesitation or stumbling under light acceleration.
- Slightly reduced fuel economy or power.
- Occasional stalling at stops.
- A steady check engine light. In many cars a lean condition never feels dramatic — the code is the main clue.
Possible causes
Vacuum / air leaks
Cracked intake hoses, torn PCV lines, brittle vacuum tees, or a leaking intake manifold gasket let unmetered air into the engine after the MAF sensor. The ECU doesn't know that air is there, so the mixture goes lean.
Mass airflow (MAF) sensor
A MAF sensor covered in oil film or dirt under-reports how much air is entering the engine. The ECU trusts the low reading and injects too little fuel.
Fuel delivery
A weakening fuel pump, a clogged fuel filter, a partially blocked injector, or a leaking fuel pressure regulator can all reduce how much fuel actually reaches the cylinders.
Oxygen sensor
An aging upstream O2 sensor can read lean even when the mixture is fine, which fools the ECU into overcorrecting and setting P0171. Watching the sensor's live signal is the way to confirm this.
Exhaust leaks before the O2 sensor
A crack in the exhaust manifold or a bad gasket ahead of the upstream O2 sensor lets outside air pulse into the exhaust stream, which the sensor reads as extra oxygen.
What to check first
- Visual inspection. Engine off and cool, look for cracked or disconnected hoses on the intake tract, oil-soaked PCV plumbing, and rodent damage.
- Live fuel-trim data. With an OBD2 scanner. Short- and long-term trims that climb together at idle and settle at higher rpm usually point at a vacuum leak. Our OBD2 Helper explains what the numbers mean.
- Clean the MAF sensor. With a dedicated MAF-safe cleaner only. Never use brake cleaner. Let it dry before reinstalling.
- Smoke test. The intake at a shop — this is the fastest way to find small vacuum leaks that are impossible to hear.
- Fuel pressure test. If you own the gauge and know how to attach it safely. Otherwise, leave this one for a shop.
Test before replacing parts. A code points at a system, not at a specific failed component, so confirming the fault with a measurement is what keeps the repair bill low. An affordable scanner is enough for most of these checks — see our OBD2 scanner guide.
Common mistakes when diagnosing P0171
- Avoid: spraying flammable starter fluid around a hot engine to "find" a vacuum leak, and replacing the O2 sensor first just because it's cheap.
When to stop driving
- You smell raw fuel.
- The exhaust smells unusually sharp or the catalytic converter is glowing.
- The engine stalls repeatedly or won't hold idle.
If any of the above applies, park somewhere safe and arrange a tow or a professional inspection. Review our safety guidelines before doing any work yourself.
Risk level: Moderate. Fuel-system work involves flammable vapors and hot surfaces. Never test near open flame, always let the engine cool before opening fuel lines, and use the correct MAF-safe cleaner — brake or carburetor cleaner will damage a MAF sensor.
Approximate repair cost ranges
Prices vary a lot by vehicle, region, and shop rates. These are rough ranges for context only — not a quote, and not a prediction of what your repair will cost.
| Repair | Typical range | Notes |
|---|---|---|
| Vacuum hose, PCV valve, or MAF cleaning | Inexpensive | Many P0171 fixes are inexpensive. |
| Intake manifold gasket or fuel pump | Several hundred dollars | Labor-heavy and can climb into that range quickly. |
| Diagnosis quality | — | Matters more here than for almost any other code. |
Related codes
- P0300 — Random / Multiple Cylinder Misfire
- P0420 — Catalyst Efficiency Below Threshold
- P0455 — EVAP Large Leak
- Full OBD-II code index
- Best OBD2 scanners to read this yourself
Related symptoms
Frequently asked questions
Can I keep driving with a P0171?
Short trips are usually safe if the engine runs normally and the check engine light is steady. Long-term lean operation can overheat the exhaust and damage the catalytic converter, so get it diagnosed soon rather than ignoring it.
Is P0171 always a vacuum leak?
Vacuum leaks are the single most common cause, but a dirty mass airflow (MAF) sensor, weak fuel pump, clogged injectors, or a bad oxygen sensor can produce the same code. Testing before replacing parts is essential.
Will a gas cap cause P0171?
No. A loose gas cap triggers EVAP codes like P0455, not a lean-mixture code. P0171 is about how much air the engine gets versus how much fuel it burns.
What is the difference between P0171 and P0174?
P0171 is a lean condition on Bank 1 (the side with cylinder 1). P0174 is the same problem on Bank 2. Seeing both together usually points to something that affects the whole engine, like a MAF sensor or fuel pressure issue, rather than one bank in isolation.
How much does fixing P0171 cost?
It varies widely. A can of MAF cleaner and a torn hose can be a $30 fix. A failing fuel pump or a leaking intake manifold gasket can run into several hundred dollars in parts plus labor. Correct diagnosis is what keeps the bill reasonable.
Fuel-system work involves flammable vapors and hot surfaces. Never test near open flame, always let the engine cool before opening fuel lines, and use the correct MAF-safe cleaner — brake or carburetor cleaner will damage a MAF sensor. This article is educational and does not replace a certified mechanic.
Last reviewed and updated: . Reviewed following the WrenchPulse editorial process for technical accuracy.