$150–$800
DIY from $20
Moderate
If you do it yourself
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.
Unmetered air entering after the MAF sensor.
How to diagnose it
- Read live fuel-trim data — high positive long-term fuel trim at idle that improves at higher rpm points to a vacuum leak.
- Inspect intake boots, vacuum lines, and the PCV system for cracks or loose connections; a smoke test finds leaks quickly.
- Clean the MAF sensor with MAF-specific cleaner and recheck.
- Check fuel pressure against spec to rule out weak fuel delivery.
- Inspect the EVAP purge valve for being stuck open.
DIY vs shop cost
$150–$800
Parts + labour at an independent shop.
Make-specific notes
Cracked intake manifold gaskets and PCV hoses are classic P0171 causes on Ford 4.6/5.4 V8s and many EcoBoost engines.
Often a dirty MAF sensor or a leaking intake boot on Toyota four-cylinders; clean the MAF before parts-swapping.
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.