P0171 means "system too lean, bank 1". The engine control unit has been adding fuel to compensate for something, and it has run out of adjustment. In plain terms: more air is getting into the engine than the ECU is measuring, or less fuel is arriving than it asked for. On UK petrol cars the overwhelming favourite is an unmetered air leak — a split hose, a perished vacuum pipe or a tired intake gasket — followed by a dirty air mass sensor. It is rarely an expensive fault, but it should not be ignored, because a lean engine runs hot.
How the ECU decides the engine is lean
The oxygen sensor before the catalytic converter reports how much oxygen is left in the exhaust. If there is too much, the ECU adds fuel — that adjustment is called fuel trim. Short-term trim reacts second by second; long-term trim is the learned correction stored over time. When long-term trim climbs past roughly 20 to 25 per cent, the ECU decides it can no longer compensate and stores P0171. That number is the most useful diagnostic tool you have. On a scan tool showing live data: - Trims high at idle but normal at 2,500rpm — a vacuum leak, because the leak matters most when total airflow is low. - Trims high at all engine speeds — fuel supply, a failing pump, blocked filter or dirty injectors. - Trims high only under load — fuel delivery struggling at high demand.
The usual causes, in order
1. **Vacuum or intake leak.** Split crankcase breather hose, cracked intake boot, perished brake servo pipe, leaking intake manifold gasket. On many VW, BMW and Mini engines a failed PCV valve or diaphragm is a known pattern fault. £70 to £300. 2. **Dirty or failing MAF sensor.** The hot-wire element gets coated in oil mist from the air filter and under-reads airflow, so the ECU under-fuels. Cleaning with a proper MAF cleaner is a £15 job; a replacement sensor is £80 to £280 fitted. 3. **Weak fuel delivery.** Blocked filter, tired pump or clogged injectors. £60 to £600 depending which. 4. **Exhaust leak before the oxygen sensor.** Fresh air drawn into a cracked manifold or flexi pipe makes the sensor read lean when the mixture is fine. £90 to £300. 5. **Lazy oxygen sensor.** An old sensor reads slow and biased. £90 to £220 fitted. 6. **Carbon on inlet valves** on direct-injection engines, disrupting airflow. £250 to £500 to walnut blast.
Finding the leak yourself
A lot of P0171s are solvable in a driveway with patience. With the engine idling, listen for a hiss around the intake and the bulkhead. Look carefully at every black rubber pipe on top of the engine, bending each one gently — cracks open up when flexed and are invisible at rest. Check the oil filler cap and dipstick are seated properly; a loose one on some engines is enough to throw the code. Inspect the air intake ducting between the filter box and the throttle body for splits at the ribs. The professional version is a smoke test: the workshop seals the intake and fills it with smoke, and the leak shows itself. It takes twenty minutes, costs £50 to £90, and is far cheaper than replacing parts on a hunch.
Why lean running matters
A lean mixture burns hotter than a correct one. Sustained, that means higher combustion temperatures, more stress on exhaust valves and, on a turbocharged engine, a genuine risk of detonation under load. You will usually also notice a rough or hunting idle, hesitation when pulling away, occasional stalling, worse economy rather than better, and sometimes a misfire code alongside — P0300 and P0171 together almost always mean an air leak. It is drivable in the short term. It is not something to leave for six months on a turbo petrol car.
What it costs
| Fix | Typical UK price | |---|---| | Smoke test / diagnostic | £50 – £90 | | MAF sensor clean | £20 – £60 | | MAF sensor replacement | £80 – £280 | | Vacuum or breather hose | £70 – £200 | | PCV valve / oil separator | £150 – £400 | | Intake manifold gasket | £180 – £450 | | Fuel filter | £60 – £120 | | Oxygen sensor | £90 – £220 | | Fuel pump | £250 – £600 | The majority of cases resolve for under £300.
If you also have P0174
P0174 is the same fault on bank 2, and having both at once is genuinely informative: two separate banks rarely fail identically, so a shared cause is almost certain. Look at anything common to both — the MAF sensor, the throttle body, a large vacuum leak before the manifold splits, fuel pressure, or a PCV system fault. If you only have P0171 on a V-engine, the fault is on one side: that bank's injectors, its manifold gasket, or its oxygen sensor.
What does P0171 mean? — System too lean on bank 1 — the ECU has added as much fuel as it can and the exhaust still reads oxygen-rich. It points at unmetered air entering the engine or fuel not arriving in the quantity commanded.
What is the most common cause of P0171? — A vacuum or intake air leak, followed closely by a dirty mass airflow sensor. On several VW, BMW and Mini engines a failed PCV valve or oil separator diaphragm is a known pattern fault.
Can I drive with a P0171 code? — For short periods yes, but a lean mixture runs hot and on a turbocharged petrol engine that carries a real risk of detonation under load. Get it diagnosed within a week or two rather than leaving it.
How much does it cost to fix P0171? — Most cases are £70 to £300 — a hose, a gasket or a MAF sensor. A PCV or oil separator is £150 to £400, and a fuel pump at the far end is £250 to £600.
Will cleaning the MAF sensor fix P0171? — Sometimes, and it costs almost nothing to try with a dedicated MAF cleaner spray. Never touch the hot wire with anything solid. If trims stay high after cleaning, look for an air leak next.
What is the difference between P0171 and P0174? — P0171 is bank 1 and P0174 is bank 2. Having both means the cause is shared between banks — usually the MAF sensor, throttle body, fuel supply or a large vacuum leak.