OBD-II Car P0171 Error Code

What the P0171 code means

System Too Lean (Bank 1): the upstream oxygen sensor on bank 1 reports too much oxygen in the exhaust, and the engine computer has added as much extra fuel as it allows without correcting it. In plain terms the engine is getting too much air or not enough fuel on that bank. The oxygen sensor itself is rarely the root cause - don't replace it first.

Likely causes

  1. Vacuum leak downstream of the mass airflow (MAF) sensor - cracked vacuum or PCV hoses, leaking intake gaskets
  2. Dirty or faulty MAF sensor under-reporting airflow (over-oiled aftermarket air filters can contaminate it)
  3. Low fuel pressure from a clogged fuel filter or weak fuel pump
  4. Stuck-open or leaking PCV valve
  5. Exhaust leak ahead of the first oxygen sensor letting outside air in
  6. Clogged or sticking fuel injector

How to fix it — step by step

  1. Inspect every vacuum hose, PCV hose, and the intake ducting between the MAF sensor and throttle body for cracks, splits, and loose clamps; listen for hissing at idle
  2. Remove and clean the MAF sensor with dedicated MAF cleaner spray - don't touch the sensing element
  3. Use a scan tool to watch fuel trims: trims that are very positive at idle but improve with RPM confirm a vacuum leak; trims that worsen under load point to fuel delivery or the MAF
  4. Check fuel pressure against spec and replace a clogged fuel filter if fitted
  5. Only suspect the oxygen sensor after leaks, MAF, and fuel pressure check out - a smoke test at a shop will find a stubborn vacuum leak quickly

Parts that commonly fix the P0171 code

Source: manufacturer / repair documentation. Codes can vary by model — confirm against your manual.

Related OBD-II car error codes

See all OBD-II car codes & guides →