Decode a code
Warning Powertrain · P0171

P0171 — System Too Lean (Bank 1)

The engine is running with too much air or not enough fuel on Bank 1, so the computer is adding fuel to compensate and has hit its correction limit.

Can I drive?
Drive with caution

Fix soon — limit driving

Repair cost

$150–$800

DIY from $20

DIY difficulty

Moderate

If you do it yourself

Urgency

Within 1–2 weeks

Before bigger damage

Common symptoms

  • Check engine light on
  • Rough or unstable idle
  • Hesitation or stumble on acceleration
  • Slightly reduced power and fuel economy
  • Occasional surging at steady speed

Common causes, ranked by likelihood

Based on typical diagnoses for P0171. Work from the most likely cause down before replacing expensive parts.

Vacuum or intake air leak 40%

Unmetered air entering after the MAF sensor.

Dirty or failing mass airflow (MAF) sensor 25%
Weak fuel delivery (pump, filter, injectors) 15%
Faulty PCV valve or hose 12%
Dirty or stuck-open EVAP purge valve 8%

How to diagnose it

  1. Read live fuel-trim data — high positive long-term fuel trim at idle that improves at higher rpm points to a vacuum leak.
  2. Inspect intake boots, vacuum lines, and the PCV system for cracks or loose connections; a smoke test finds leaks quickly.
  3. Clean the MAF sensor with MAF-specific cleaner and recheck.
  4. Check fuel pressure against spec to rule out weak fuel delivery.
  5. Inspect the EVAP purge valve for being stuck open.

DIY vs shop cost

DIY Moderate

$20–$250

Parts, if you do the labour yourself.

Start the DIY fix
Shop

$150–$800

Parts + labour at an independent shop.

Make-specific notes

Ford

Cracked intake manifold gaskets and PCV hoses are classic P0171 causes on Ford 4.6/5.4 V8s and many EcoBoost engines.

Toyota

Often a dirty MAF sensor or a leaking intake boot on Toyota four-cylinders; clean the MAF before parts-swapping.

BMW

Cracked plastic intake components, the CCV (crankcase vent) valve, and brittle vacuum lines commonly cause lean codes on BMW engines.

P0171 questions, answered

Is it safe to drive with P0171?

Short trips are usually fine, but a persistent lean condition can cause misfires and, over time, damage the catalytic converter. Fix it within a week or two.

What's the most common cause of P0171?

An unmetered air (vacuum) leak or a dirty mass airflow sensor. Both let the engine run lean, and both are relatively inexpensive to address.

Can a dirty air filter cause P0171?

Rarely on its own. A clogged filter usually causes a rich condition, not lean. Focus on vacuum leaks, the MAF sensor, and fuel delivery instead.