All OBD-II codes
P0171Fuel and air meteringModerate severity

P0171: System Too Lean (Bank 1)

Written and maintained by AI Car MechanicUpdated July 27, 2026

P0171 means the engine computer has been adding fuel for too long to correct a mixture it sees as too lean on Bank 1, and has run out of adjustment range. Either more air is entering the engine than is being measured, or less fuel is arriving than commanded.

Can I still drive with P0171?

Short distances only

A mildly lean engine will usually still drive, but a lean mixture runs hotter and sustained lean running can damage pistons and valves. If the check engine light is flashing, stop driving — that means active misfire and raw fuel reaching the catalytic converter.

What you will actually notice

  • Rough or hunting idle, sometimes stalling at a stop
  • Hesitation or stumble when accelerating
  • Noticeably worse fuel economy
  • Check engine light, sometimes flashing under load if it causes a misfire
  • A hissing or whistling noise from the engine bay on some vacuum leaks

Causes, ordered by how often they turn out to be the fault

1.Vacuum leak in an intake hose, gasket or PCV line

Very common

The first thing to look for. Cracked and hardened hoses are the usual culprit.

2.Dirty or failing mass airflow sensor

Very common

Under-reports incoming air, so the computer under-fuels. Often fixable with proper MAF cleaner.

3.Failing upstream oxygen sensor

Common

Reports lean when the mixture is actually fine.

4.Weak fuel pump or clogged fuel filter

Common

Symptoms get worse under load and at higher speeds.

5.Dirty or partially blocked fuel injectors

Common

Often accompanied by a specific cylinder misfire code.

6.Leaking intake manifold gasket

Less common

More likely on higher-mileage engines with plastic manifolds.

7.Exhaust leak upstream of the oxygen sensor

Less common

Draws in fresh air and fools the sensor.

How to diagnose it, cheapest test first

Work down this list in order. The most expensive mistake with this code is replacing a costly part before ruling out a cheap one.

  1. 1

    Read fuel trim values on a scan tool

    Low

    Compare short and long term trims at idle and at higher rpm. Lean only at idle points at a vacuum leak; lean at all speeds points at fuel delivery or the MAF.

  2. 2

    Inspect every vacuum hose, the intake boot and the PCV system

    Free to inspect

    Squeeze hoses to find cracks that only open when hot. Check the oil filler cap and dipstick seal too.

  3. 3

    Clean the mass airflow sensor with dedicated MAF cleaner

    Low

    Never use brake cleaner or touch the wire — that turns a cheap fix into a new sensor.

  4. 4

    Smoke test the intake system

    Moderate, shop test

    The definitive way to find leaks you cannot hear or see.

  5. 5

    Check fuel pressure against specification

    Moderate

    Rules out a weak pump, clogged filter or failing regulator.

  6. 6

    Test or replace the upstream oxygen sensor

    Moderate

    Only once leaks and fuel delivery have been ruled out.

What the repairs typically cost

RepairEstimated range
Vacuum hose or intake boot replacementOften the cheapest possible outcome, and the most likely one.$20 – $200
Mass airflow sensor cleaningA can of cleaner and twenty minutes if you do it yourself.$10 – $60
Mass airflow sensor replacementOnly if cleaning does not restore correct readings.$150 – $450
Fuel pump replacementVaries enormously depending on whether the tank must come out.$400 – $1,200
Intake manifold gasket replacementLabour-dominated.$300 – $900

Estimate only. Ranges vary widely by region, vehicle and shop rate, and are not quotes. Always get a written estimate before authorising work.

Notes for specific makes

Ford

Cracked intake boots and failing MAF sensors are the classic pairing on several EcoBoost and Duratec engines.

BMW

Brittle plastic PCV and crankcase ventilation components are a very frequent cause. Inspect them early.

Volkswagen / Audi

Check the PCV valve and intake manifold gaskets; both are known weak points on TSI engines.

Toyota

Often a dirty MAF sensor. Clean before replacing anything.

Common questions

What does "too lean" actually mean?

It means there is more air relative to fuel than the engine wants. The computer compensates by adding fuel, and sets this code once it has added as much as it is allowed to and the mixture is still lean.

Can I drive with P0171?

For short distances usually yes, but do not ignore it. Sustained lean running raises combustion temperatures and can damage pistons and valves over time.

Why did cleaning the MAF sensor fix it temporarily?

If the code returns after cleaning, the sensor is likely failing rather than just dirty, or a dirty air filter is re-contaminating it.

I also have P0174. What does that mean?

Both banks reading lean points at something shared between them: the MAF sensor, fuel pressure, or a leak at the common intake, rather than a bank-specific problem.

Not sure which of these applies to your car?

Describe what the car is actually doing and get a diagnosis narrowed to your vehicle, or find a shop near you.

AI-generated and informational only. This is not a diagnosis of your specific vehicle and does not replace inspection by a qualified technician.