System Too Lean (Bank 1)
In plain English: The engine computer has run out of room adding fuel to correct a mixture that keeps reading lean on bank one.
Short trips are fine. Sustained lean running raises combustion temperature and, left long enough, damages the catalytic converter and can burn valves — so this is one to fix in weeks, not months.
Most likely cause: unmetered air leak — vacuum hose, intake boot or gasket (42% of cases). Cheapest first test: read long term fuel trim at idle, then at twenty five hundred rpm. Typical repair runs $8–$600 in parts.
What P0171 actually means
The oxygen sensor tells the computer there is too much oxygen left in the exhaust, so the computer adds fuel to compensate. That correction is called fuel trim, and you can read it as a percentage on any scan tool. Short term trim is the instant correction; long term trim is what the computer has learned it needs all the time.
Trim is supposed to hover near zero, within about plus or minus five percent. When the computer has to add roughly twenty five percent extra fuel and still cannot get the mixture right, it gives up and sets this code. So the code does not mean the engine is lean — it means the correction ran out of headroom.
Symptoms
- Rough or hunting idleWorst at idle, because a fixed-size air leak is a much larger fraction of a small airflow.
- Hesitation or stumble on accelerationEspecially from a stop, when the mixture is furthest from correct.
- Noticeably worse fuel economyCounter-intuitive, but the computer is dumping in extra fuel to chase the reading.
- Hard starting, particularly when coldThe learned trim correction is wrong for a cold start.
- A lean misfire, sometimes with P0300 alongsideIf you also see misfire codes, they are usually a symptom of this, not a separate fault.
Most likely causes, ranked
Long term fuel trim vs engine speed — the test that splits the causes
Warm the engine up, put your scan tool on long term fuel trim for bank one, and record it at idle, then at fifteen hundred, two thousand and twenty five hundred RPM.
This flat line near zero is what a healthy engine looks like. The correction barely moves as airflow rises.
This is an air leak. Trim is enormous at idle and falls away as RPM climbs, because a fixed-size leak matters less and less as real airflow increases. If your line slopes down like this, go looking for the leak.
And this one is fuel delivery. Trim is acceptable at idle and gets worse as demand rises, because the pump or injectors cannot keep up. Same code, opposite slope, completely different repair.
How to diagnose it, in order
-
Read long term fuel trim at idle, then at twenty five hundred RPM.This single reading splits the entire diagnosis in two, and it costs nothing. High at idle and falling means unmetered air. Low at idle and rising means fuel delivery. Write both numbers down before you touch anything.Then → step 2
-
Does the trim improve when you find and block a suspected air leak?Smoke test the intake if you have the tool. If not, watch live trim while spraying a little carburettor cleaner around the intake boot, vacuum lines and gaskets. A sudden trim swing tells you exactly where the leak is. Do not skip the PCV hoses.Yes → Repair the leak, clear, re-driveNo → go to step 3
-
Is the mass airflow reading plausible for the engine size?A rough rule for a naturally aspirated engine: at idle expect roughly one to two grams per second per litre of displacement, and near wide open throttle expect about eighty percent of the engine's litres times its RPM in grams per second. Reading low means the sensor is under-reporting. Clean it properly with MAF cleaner before you buy one.Yes → go to step 4No → Clean the MAF sensor; replace only if cleaning fails
-
Does fuel pressure hold to spec under load?Gauge on the rail, then load the engine. Pressure that sags as demand rises is a weak pump, a clogged filter or a failing regulator. This is the path the rising-trim line pointed at.Yes → go to step 5No → Repair fuel delivery — filter, pump or regulator
-
Is the upstream oxygen sensor switching normally?Only now, with air leaks, metering and fuel pressure all ruled out, does the sensor itself become the likely fault. A sensor stuck low reports lean forever and the computer keeps chasing it.Yes → Re-check for small leaks — something was missedNo → Replace the upstream O2 sensor
Read the trims first and you won't replace a fuel pump when it was a five dollar hose.
What you need to do this yourself
- A scan tool that reads live data — Every diagnosis on this site depends on watching sensor values in real time. A code-reader that only shows the code number cannot do it.
- Oxygen sensor socket — A slotted socket that clears the wiring pigtail. A normal socket will not fit.
- Digital multimeter — For checking sensor signals and grounds when live data alone isn't conclusive.
Some links may be affiliate links. They cost you nothing extra and do not change which tools are recommended — the diagnostic order on this site is the same either way.
What it costs to fix
| Repair | Parts | Labour |
|---|---|---|
| Vacuum hose or intake boot The most common outcome, and often a ten minute job. |
$8–$60 | 0.5 h |
| MAF sensor cleaner Try this before buying any sensor. It frequently is the whole repair. |
$8–$15 | 0.2 h |
| Intake manifold gasket Cheap part, real labour, depending on how buried the manifold is. |
$25–$120 | 2.5 h |
| Mass airflow sensor Use an OEM or known-good brand; cheap MAF sensors frequently read wrong out of the box. |
$60–$300 | 0.3 h |
| Fuel pump or filter The expensive branch, and the one the rising-trim line points to. |
$60–$600 | 2.5 h |
Most of the time this is a hose. The reason to read the trims before spending anything is that the cheapest and the most expensive repairs on this list set exactly the same code.