P0171 — system too lean, bank 1. P0174 is the same fault on bank 2.
It is easy to read this as a sensor fault. It is not. The oxygen sensor is working correctly, and what it is reporting is that after the module added all the fuel it is permitted to add, the mixture is still lean.
Fuel trim, in one paragraph
The module calculates a base injector pulse from airflow, then corrects it based on what the upstream oxygen sensor reports.
Short-term fuel trim is the immediate correction, swinging constantly. Long-term fuel trim is the learned average that the module carries over between trips. Both are percentages: positive means adding fuel to correct a lean reading, negative means removing it.
Around ±5% is normal. Beyond roughly ±10% something real is happening. P0171 sets when the total correction stays pinned high for long enough.
The single most useful measurement
Compare long-term fuel trim at idle with the same figure at around 2,500 rpm.
- High at idle, back near zero at speed → an air leak downstream of the mass airflow sensor. A fixed-size leak admits roughly the same amount of air whatever the engine is doing, so it is a large fraction of total airflow at idle and a negligible one at speed.
- High at both → the mixture is lean across the range. That points at fuel delivery — a weak pump, a blocked filter, dirty injectors — or at the mass airflow sensor under-reporting.
- Normal at idle, high at speed → fuel delivery that cannot keep up with demand, which is the classic failing-pump or clogged-filter signature.
One reading taken twice separates the two largest families of cause, before any part is touched.
Where the air gets in
Unmetered air is air that entered after the mass airflow sensor measured it. The module does not know it exists, so it does not fuel for it.
The usual places, roughly in order of how often they turn up:
- Intake boot between the airflow sensor and the throttle body, especially where it flexes and cracks on the underside
- Vacuum hoses, which go hard and split at the ends
- PCV system — hose, valve, or the grommet it sits in
- Intake manifold gasket
- Brake booster hose or the booster diaphragm — worth suspecting when the brake pedal feel has changed too
- A leaking or stuck-open purge valve in the evaporative system
- The dipstick tube or oil filler cap seal, which is why a missing oil cap can set a lean code
Smoke testing finds all of these quickly and is the reason a workshop can locate in ten minutes what takes an afternoon to find by hand.
When the sensor is not lying but the meter is
A mass airflow sensor that has drifted low reports less air than is really entering. The module fuels for the smaller number, the mixture goes lean, and the oxygen sensor correctly reports it.
Contamination is the usual cause — oil from an over-oiled aftermarket air filter is a common one. Cleaning the sensing element with the proper cleaner is cheap and sometimes sufficient.
An unmetered air leak and an under-reporting airflow sensor produce nearly identical fuel trims, which is why the idle-versus-speed comparison matters: the leak's effect changes with engine speed, the meter's does not.
Why both banks matter
P0171 alone points at something specific to bank 1 — that side's injectors, that side's intake runner gasket.
P0171 and P0174 together point at something shared: the airflow sensor, fuel pressure, a large leak at a common point such as the throttle body or the brake booster. That pairing is a meaningful clue and it is worth checking whether the second code is stored before assuming a one-sided fault.
What lean actually does
A lean mixture burns hotter. Left long enough it can damage valves and pistons, and it accelerates the demise of the catalytic converter — which is how a lean code eventually turns into a P0420 as well.
It also drives poorly: hesitation on acceleration, a rough or hunting idle, and often worse fuel economy rather than better, because the module compensates elsewhere.
None of that makes it an emergency. It does make it something to fix before it sets a second, more expensive code.
