P0171 Code: System Too Lean (Bank 1) — Causes, Fix & Cost

Mechanic inspecting car engine bay — P0171 system too lean diagnosis vacuum leak MAF sensor
Photo: Sergey Meshkov / Pexels

P0171 means: System Too Lean (Bank 1) — the engine's air/fuel ratio on Bank 1 is more than ~10% leaner than the ideal 14.7:1 stoichiometric ratio.
Most common fix: 50% of cases = vacuum leak ($5–$30 hose). 25% = dirty MAF sensor ($10 cleaner). 15% = weak fuel pump ($150–$400). 10% = other.
Time to diagnose: 30 minutes with smoke machine or carb cleaner test.

P0171 is one of the most common "Check Engine" codes on every modern car — and one of the most misdiagnosed. People throw $400 worth of fuel pumps, oxygen sensors, and injectors at it when the actual fix is usually a $5 vacuum hose. This guide walks you through the diagnosis in the right order so you fix it the first time.

In this guide:

What P0171 Means

P0171 reads as "System Too Lean (Bank 1)". The ECU monitors air/fuel ratio via the upstream oxygen sensor. Stoichiometric ratio is 14.7 parts air to 1 part fuel by mass. The ECU constantly trims fuel injection (Short-Term Fuel Trim and Long-Term Fuel Trim) to maintain that ratio.

If the ECU has to add more than ~10% fuel (LTFT > +10%) to keep the ratio correct, it stores P0171 — meaning "I'm adding fuel as fast as I can but the engine is still running lean".

"Bank 1" means the side of the engine containing cylinder #1. On inline engines (4-cylinder, inline-6) Bank 1 is the only bank. On V engines, it's typically the front bank (V6 transverse) or driver-side (V8 longitudinal).

If you see P0174 with P0171, that's "System Too Lean (Bank 2)" — both banks affected. That usually points to a problem upstream of the engine (vacuum leak, MAF sensor, fuel pressure) rather than a single-cylinder issue.

Symptoms

  • Check Engine Light on solid
  • Engine misfire or rough idle, especially when cold
  • Hesitation on acceleration
  • Reduced power and fuel economy drop
  • "Lean cough" backfire through intake on hard acceleration (rare but distinctive)
  • Whistling sound under bonnet if the cause is a vacuum leak

Causes Ranked by Frequency

1. Vacuum leak — 50% of cases

The single most common cause. Cracked PCV hose, split intake boot, leaking brake booster line, broken vacuum tee, leaking intake manifold gasket. Air enters after the MAF sensor so the ECU doesn't know to add more fuel for it. Result: lean condition.

2. Dirty / failing MAF sensor — 25% of cases

The Mass Air Flow sensor measures incoming air. If it's dirty (oily film from improperly oiled K&N filters, dust, soot), it under-reports air mass. ECU under-fuels accordingly. Lean condition.

3. Weak fuel pump or clogged filter — 15% of cases

Fuel pressure too low → injectors can't deliver enough fuel even at 100% duty cycle. Symptom: lean condition that worsens at high RPM / load. Confirm with fuel pressure gauge.

4. Failing upstream O2 sensor — 5% of cases

O2 sensor reading lazy or stuck-lean. ECU thinks it's lean and adds fuel, but actual mixture is fine. Counterintuitive but happens past 100,000 miles.

5. Clogged fuel injectors — 3% of cases

One or more injectors not flowing rated volume. Bank 1 cylinders run lean. Test with injector flow bench.

6. Exhaust leak before O2 sensor — 2% of cases

Cracked manifold or loose downpipe upstream of the O2 sensor pulls in fresh air, fooling the sensor into reading lean.

Step-by-Step Diagnosis (Right Order)

  1. Read live data with OBD-II scanner. Watch Short-Term Fuel Trim (STFT) and Long-Term Fuel Trim (LTFT) at idle and at 2500 RPM. LTFT > +10% confirms the lean condition.
  2. Spray carb cleaner around vacuum hoses, intake boot, intake manifold seam, brake booster. If RPM rises = vacuum leak found. Replace the leaking part.
  3. Disconnect MAF sensor connector. If LTFT improves, MAF is bad — clean with MAF-specific cleaner ($10) or replace ($60–$200).
  4. Smoke test the intake with a smoke machine if you have access — pinpoints leaks even ones you can't reach with cleaner.
  5. Check fuel pressure with gauge at the fuel rail. Should be 40–60 PSI on most modern engines (verify spec for your car). Low pressure = weak pump or clogged filter.
  6. Inspect upstream O2 sensor signal. Should toggle 0.1V to 0.9V multiple times per second at idle. Stuck low = sensor lazy.
  7. Inspect exhaust manifold and downpipe for leaks. Tap-test bolts and listen for hissing at idle.

Repair Cost Breakdown

FixDIY costShop cost
Vacuum hose replacement$5–$30$80–$160
MAF sensor cleaning$10 (cleaner)$80
MAF sensor replacement$60–$200$140–$320
Fuel pump replacement$150–$400$500–$900
Fuel filter$15–$40$80–$160
Upstream O2 sensor$40–$120$180–$320
Intake manifold gasket$25–$80$280–$700

Don't let a shop start with the most expensive fix. Vacuum leak diagnosis takes 5 minutes with carb cleaner. Insist they do that first.

Frequently Asked Questions

Can I drive with P0171?

Short-term yes. Long-term no — running lean increases combustion temperature and can damage exhaust valves, catalytic converter, and oxygen sensors. Fix within a few weeks of code appearing.

Will P0171 fail emissions testing?

Yes in OBD-II markets. Active P0171 = automatic fail in any state with emissions testing. Code must be cleared and not return after a drive cycle to pass.

What's the difference between P0171 and P0172?

P0171 = System Too Lean. P0172 = System Too Rich (opposite — too much fuel). Different causes entirely. P0172 is usually injectors stuck open, fuel pressure regulator failure, or contaminated fuel.

My car has P0171 + P0174 together — what does that mean?

Both banks lean = a problem upstream of the cylinder banks, affecting both equally. Top suspects: vacuum leak in a shared part (intake plenum, brake booster, PCV system) or MAF sensor underreporting air for both banks.

Can a bad gas cap cause P0171?

No. A loose gas cap causes P0440 / P0455 (EVAP leak), not P0171. EVAP and fuel injection are separate systems.

Will clearing P0171 with a scanner make it stay gone?

Only if you fixed the root cause. If you clear without fixing, the code returns within 1–3 drive cycles.

Related OBD Guides