P0171: System Too Lean (Bank 1)

What P0171 means

P0171 means the engine is running lean on bank 1 - there is too much air relative to fuel, and the computer has run out of room to add fuel to compensate. It is most often caused by unmetered air sneaking into the engine (a vacuum leak) or by the mass airflow sensor under-reporting airflow. Left alone, a persistent lean condition can cause misfires and, over time, engine damage.

Symptoms of P0171

Is it safe to drive with P0171?

Yes for a short trip, though it is worth fixing soon rather than ignoring. A lean condition mostly causes rough idle, hesitation, and mildly reduced power rather than a breakdown, so driving to a shop is normally fine. Left unaddressed for weeks or months, a lean mixture runs hotter than designed and can eventually cause misfires or engine wear, so get it diagnosed within a couple of weeks.

What the P0171 fix costs

FixDIY partsAt a shop
Find and seal a vacuum leak$10 - $50$100 - $300
Clean or replace the MAF sensor$10 - $150$50 - $250
Replace the PCV valve or hose$10 - $40$80 - $180
Replace a weak fuel pump$80 - $300$300 - $600

Ranges are rounded and for the US market only - actual price depends on region, shop labor rates, and the exact make and model.

What P0171 actually means

P0171 means bank 1 is running lean - the PCM has been adding fuel to compensate and has hit the limit of what it is allowed to add. Crucially, this code is almost never a fuel problem. It is usually an air problem: the engine is getting more air than the sensors measured, so the fuel the PCM calculated is not enough. Unmetered air entering after the mass airflow sensor is the dominant cause, which is why the diagnosis is largely a hunt for vacuum leaks rather than anything to do with the fuel system.

How to diagnose P0171 step by step

  1. Step 1: Read short and long term fuel trims at idle and at cruise This single reading directs everything that follows. Large positive trims at idle that shrink at higher RPM mean a vacuum leak, because a fixed-size leak matters far less once airflow is high. Trims that stay high at all speeds point at fuel delivery or a MAF sensor under-reporting.
  2. Step 2: Inspect the intake tube between the MAF sensor and the throttle body A split in the accordion section, or a loose clamp, lets air bypass the sensor entirely. Flex the tube by hand with the engine running and listen for a change. This is the single most common P0171 cause on high-mileage vehicles and costs nothing to check.
  3. Step 3: Smoke test the intake for vacuum leaks Introduce smoke into the intake and watch for escapes at the manifold gasket, the PCV hoses, the brake booster line, and the throttle body gasket. Brittle plastic vacuum fittings are a known failure across many makes and crack invisibly.
  4. Step 4: Clean the mass airflow sensor A contaminated hot wire under-reports airflow, which produces exactly this code. Use MAF-specific cleaner only - brake cleaner and carb cleaner destroy the element. This is a five minute job that fixes a real share of these outright.
  5. Step 5: Check the PCV system A stuck-open PCV valve or a cracked breather hose is a large, calibrated vacuum leak by design. On several makes the PCV hose hardens and splits at the elbow, and it is a standard cause of a lean bank 1.
  6. Step 6: Verify fuel pressure and injector delivery last Only after air has been eliminated. A weak pump, restricted filter, or dirty injectors can lean out a bank, but they are far less common than an air leak and much more expensive to chase. Check pressure under load, not just at idle.

The most common P0171 misdiagnosis

The name pushes people toward the fuel system, and replacing a fuel pump or injectors for P0171 is an expensive and usually wrong move. Lean almost always means extra unmetered air, not missing fuel. Eliminate every air path before spending anything on fuel components.

Tools you need for P0171

Parts you may need for P0171

P0171: DIY or pay a shop?

Difficulty: Easy to Moderate. Time: 0.5 - 3 hours. DIY parts: $15 - $250. Shop total: $120 - $600.

One of the better DIY codes, because the most likely causes are a cracked intake tube, a dirty MAF sensor, and a split PCV hose - all cheap, all reachable from the top of the engine, all fixable with hand tools. The only reason to involve a shop is if you need a smoke test to locate a leak you cannot find by hand.

How to stop P0171 coming back

Replace intake hoses, PCV components, and the air filter on schedule. Every common cause of this code is a rubber or plastic part that hardens with heat and age. They fail on a predictable timeline, and replacing them proactively is far cheaper than the misfires and converter damage a long-running lean condition causes. Track the air filter and PCV service in ServiceSage and you replace the parts that cause this code before they crack, rather than after a warning light. Track this maintenance free.

Related trouble codes: P0174 - System Too Lean (Bank 2), P0172 - System Too Rich (Bank 1), P0113 - Intake Air Temperature (IAT) Sensor 1 Circuit High