P0171 code: system too lean

Standard definition: System Too Lean (Bank 1)

The oxygen sensors see too much oxygen in the exhaust, so the engine is running lean: too much air or not enough fuel. The engine computer has added as much fuel as it's allowed to and still can't correct it.

Fuel and air metering · Reviewed Nov 19, 2026 by the MyAutoSpex Editorial Team

A mass airflow sensor next to a cracked rubber vacuum hose

Can you drive with P0171?

Drive with caution

Usually safe to drive for a short while if the car runs normally. Get it fixed soon: a lean engine can start misfiring, which can damage the catalytic converter, and it puts out more smog-forming NOx.

Symptoms

  • Check engine light
  • Hesitation or lack of power when accelerating
  • Rough or unstable idle, especially when warm or at a stop
  • Occasional misfiring or "coughing"

Common causes

Most common first.

  • Vacuum leaks: cracked hoses, intake manifold gaskets or PCV hoses
  • A dirty or faulty mass air flow (MAF) sensor
  • A plugged fuel filter or weak fuel pump
  • Plugged or dirty fuel injectors
  • Engine computer software that needs a manufacturer update

Often replaced without fixing it

Oxygen sensors: they report the lean condition, but rarely cause it.

What to check first

  1. Look for other codes. P0174 too means both sides of a V6 or V8 are lean, which points to something shared, like the MAF sensor, a vacuum leak or fuel pressure.
  2. Check the intake boot between the air filter and the engine for cracks, and listen for hissing vacuum leaks.
  3. Clean the MAF sensor with MAF-specific cleaner (never touch the sensing wire).
  4. Ask a shop to check fuel pressure and long-term fuel trim at idle and at 3,000 rpm: which one is high shows where to look.
  5. Ask the dealer whether there is a software update or service bulletin for lean codes on your model.

How the computer sets P0171

The engine aims for about 14.7 parts air to 1 part fuel and corrects the mixture using oxygen sensor readings. That correction is called fuel trim. A healthy engine needs only a few percent; when the long-term fuel trim reaches roughly 15% to 35% extra fuel, the computer stores P0171.

What the repair costs depend on

  • The cause: a cracked vacuum hose or cleaning a MAF sensor is a small job; a fuel pump or intake gasket is much more.
  • Access: some intake gaskets and fuel pumps take hours of labor to reach.
  • Diagnosis time: finding a small vacuum leak can need a smoke test.

For a cost estimate for your car, look up P0171 with your year, make and model in the check engine code lookup, then check any quote you get with the repair quote checker.

Questions about P0171

What does "bank 1" mean?
On a V6 or V8, bank 1 is the side of the engine with cylinder 1. A four-cylinder engine only has bank 1. If you also see P0174, both banks are lean.
Can a dirty air filter cause P0171?
Not usually. A clogged filter restricts air rather than adding it. A torn or loose intake boot after the filter, or a dirty MAF sensor, is far more likely.
Will replacing the oxygen sensor fix P0171?
Rarely. The oxygen sensor is usually reporting the lean mixture correctly. Replacing it without finding the air leak or fuel problem is one of the most common wasted repairs for this code.

More code guides