P0171 — System too lean (Bank 1)
Bank 1 is getting too much air or not enough fuel relative to what the computer expects.
What it means in plain English
P0171 means fuel trims on bank 1 show a lean condition (more air than the target mixture). Causes range from a cheap vacuum leak or dirty MAF to a weak fuel pump. Throwing an O2 sensor at it without checking trims and smoke-testing for leaks is a common waste of money.
Common causes
- Vacuum / intake leak (hoses, PCV, gasket)
- Dirty or failing MAF sensor
- Low fuel pressure (pump, filter, regulator)
- Exhaust leak ahead of the upstream O2 sensor (can fake lean)
- Faulty upstream O2 / A/F sensor
What you can safely check
- Listen for hissing vacuum leaks after a cold start; inspect cracked rubber hoses you can see.
- Note recent work (intake cleaning, air filter) that might have left a clamp loose.
- Scan fuel trims if your tool shows them — large positive long-term trims support a lean story.
Pull the code yourself (disclosed)
BlueDriver is a BlueDriver/Levanta affiliate link. We may earn from qualifying purchases. See our affiliate disclosure. Shop directory listings are never affiliate links.
A reusable Bluetooth OBD-II scanner lets you read the code and freeze-frame data before authorizing “mystery” diagnostics. One option: BlueDriver Bluetooth Pro OBD-II scan tool (BlueDriver/Levanta affiliate). Any capable OBD-II reader is fine — this is not required to use Fair Auto Shops.
When to go to a shop
If the light returns, power feels down, or you smell fuel oddly, get a smoke test and fuel-pressure check. Ask for trim data on the estimate conversation — see questions before you authorize.
Typical related repair costs (U.S. national averages)
These are related repairs shops may find after diagnosis — not a guaranteed bill for every P0171. Ranges exclude taxes, fees, diagnostics, and your location.
- $274–$381 national average for mass airflow sensor replacement (RepairPal; estimates last updated September 3, 2026; excludes taxes/fees and location; source). Labor $51–$75; parts $223–$306.
- $440–$523 national average for oxygen sensor replacement (RepairPal; estimates last updated September 3, 2026; excludes taxes/fees and location; source). Labor $93–$136; parts $347–$387.
Many lean codes are vacuum leaks fixed with hoses/gaskets — far cheaper than sensors. Sensor prices above apply only if testing confirms them.
Related cost guides: Maf Sensor · Oxygen Sensor
Questions to ask before you authorize work
Use questions before you authorize a repair and how to read a repair estimate. Watch for patterns in spotting upselling.
Find an honest independent shop
Greater LA · NYC · Chicago · Houston · Phoenix · Seattle · Denver · Dallas · Atlanta · DC
Shop listings are never affiliate links.
FAQ
Can a dirty air filter cause P0171?
A severely restricted filter usually richer, not leaner. Lean codes more often track unmetered air (leaks) or fuel delivery / MAF errors.
More check-engine codes
P0420 · P0430 · P0300 · P0301 · P0174 · P0455 · P0456 · P0442 · P0446 · P0128 · P0401 · P0133 · P0113 · P0506 · P0507 · P0700 · P0741 · P0011 · P0325 · P0340 · P0335 · P0101 · P0299 · P0135 · P0440 · P0441 · P0010 · P0500 · P0121
Hub: How to read a check-engine code · Repair cost guides · Affiliate disclosure