P0171 System Too Lean Bank 1

P0171 means the control module reports a lean condition on bank 1. The useful starting point is fuel-trim data: the module is adding fuel because measured combustion appears too lean.

Code details

Generic OBD-II · P0
System
Fuel / Air
Code type
Generic (SAE / ISO controlled)
Standard
SAE J2012 / ISO 15031-6

Diagnostic boundary

A diagnostic trouble code reports that a monitored test failed. It does not prove one specific part is bad, and manufacturer logic can add vehicle-specific conditions.

Do not treat P0171 as an oxygen-sensor replacement instruction. The sensor may simply be reporting a real lean condition.

Symptoms of P0171

Common causes of P0171

Useful checks before replacing parts

How serious is P0171, and can you keep driving?

Urgency
Moderate
Safe to drive?
Usually, for short trips and gentle throttle — but do not leave it.

A mixture or airflow fault rarely strands a car, which is exactly why it gets ignored. The risk is not the drive home, it is the months after. An engine running lean under load runs hotter and is more prone to detonation; one running rich washes oil off the bores and loads the catalytic converter with unburnt fuel. Both damage things that cost far more than the sensor or the leak that started it. Treat it as a fault to fix this month, not this year, and avoid sustained high load until it is fixed.

Clearing P0171, and making it stay gone

Clearing P0171 with a scan tool switches the lamp off; it does not fix anything, and it throws away the freeze-frame snapshot the car saved when the fault set. That snapshot is the most useful diagnostic evidence you have, because it records the load, RPM and temperature at the moment the test failed. Read it before you erase it.

Left alone, the lamp goes out on its own once the monitor that failed runs and passes on three consecutive driving cycles. The code stays in history after that, which is how a workshop can still see it. Disconnecting the battery is not a shortcut — it clears the stored codes and every learned fuel-trim value with them, so the car relearns from scratch and the underlying fault simply sets the code again.

On vehicles from roughly 2010 onward there is also a permanent DTC, which no scan tool can erase at all. It clears only when the monitor genuinely passes. That is deliberate: it stops a code being wiped in the car park outside an emissions test.

What P0171 costs to put right

There is no honest single figure for P0171, and any page that gives you one is guessing. The code names a circuit or a failed monitor, not a part — the same code can be a chafed wire, a connector full of water, or the component itself, and those are three very different bills.

The number worth budgeting for is diagnostic time. An hour of it is almost always cheaper than the second part you buy after the first one does not fix it, and parts fitted on a guess are rarely refundable once installed. If you are getting a quote, ask what the diagnosis found rather than what is being replaced — a fuel / air fault traced to a specific cause is a repair, and a list of parts is a hopeful shopping list.

Questions people ask about P0171

What does P0171 mean?

P0171 means the control module reports a lean condition on bank 1. The useful starting point is fuel-trim data: the module is adding fuel because measured combustion appears too lean.

Can I drive with P0171?

Usually, for short trips and gentle throttle — but do not leave it. A mixture or airflow fault rarely strands a car, which is exactly why it gets ignored. The risk is not the drive home, it is the months after. An engine running lean under load runs hotter and is more prone to detonation; one running rich washes oil off the bores and loads the catalytic converter with unburnt fuel. Both damage things that cost far more than the sensor or the leak that started it. Treat it as a fault to fix this month, not this year, and avoid sustained high load until it is fixed.

What causes P0171?

The usual candidates are unmetered air — a vacuum leak, split intake boot, or PCV hose; a dirty or failing mass-airflow (MAF) sensor; low fuel pressure or weak/clogged injectors; an exhaust leak near the upstream oxygen sensor. The code tells you which test failed, not which of those did it — that is what the checks on this page are for.

Will P0171 clear itself?

Left alone, the lamp goes out on its own once the monitor that failed runs and passes on three consecutive driving cycles. The code stays in history after that, which is how a workshop can still see it. Disconnecting the battery is not a shortcut — it clears the stored codes and every learned fuel-trim value with them, so the car relearns from scratch and the underlying fault simply sets the code again.

Does P0171 mean I need to replace a part?

Do not treat P0171 as an oxygen-sensor replacement instruction. The sensor may simply be reporting a real lean condition.

How much does it cost to fix P0171?

There is no honest single figure for P0171, and any page that gives you one is guessing. The code names a circuit or a failed monitor, not a part — the same code can be a chafed wire, a connector full of water, or the component itself, and those are three very different bills.

Related OBD-II codes

These nearby fuel / air entries can help compare wording and pin down the fault area.