AI-powered OBD-II fault code diagnostic tool for UK drivers
P0171

P0171 System Too Lean (Bank 1)

P0171 indicates system too lean (bank 1). The exact repair depends on whether the underlying issue is a sensor fault, wiring problem, mechanical wear, or a related system problem on the vehicle being diagnosed.

Last reviewed 14 June 2026 AI-Diagnostics-Pro Editorial Team

This guide is reviewed against current UK fault-code usage patterns, MOT guidance, and indicative repair-cost context. It is educational guidance for P0171, not a substitute for live data, workshop testing, or a final quote.

Editorial policy UK MOT guide DVSA MOT inspection manual
UK Repair Cost
£50–£350
MOT Risk
High risk of MOT failure
Safe to Drive?
Short distances are usually fine, but a lean condition can damage the engine over time.

At a glance: P0171 for UK drivers

Fault family
Fuel trim and mixture
Best first check
Check for unmetered air leaks before replacing sensors.
Typical garage risk
The common mistake is replacing the oxygen sensor because the code sounds fuel-related. P0171 more often starts with air leaks, MAF errors, or weak fuel delivery.

How to use this page

This page explains the code in plain English and gives indicative UK repair and MOT context. It does not confirm the exact failed part. Vehicle age, engine, related codes, live data, and workshop inspection can all change the final diagnosis and quote.

What does fault code P0171 mean?

P0171: Bank 1 running lean (too much air, not enough fuel). Check for vacuum leaks first — often cheaper than sensors (£50-£350). When this fault is detected, the ECU (Engine Control Unit) stores the code and usually illuminates the check engine light on the dashboard.

In practice, P0171 should be treated as a fuel trim and mixture problem first, not as proof that one named part has failed. The value of the code is in narrowing the system, checking related data, and avoiding the usual misdiagnosis before parts are ordered.

Symptoms of fault code P0171

These are the most common symptoms UK drivers report when this code is active:

  • Check engine light on
  • Rough idle or hunting idle
  • Hesitation on acceleration
  • Poor fuel economy
  • Engine may run lean and sound harsh under load

Note that some vehicles show no drivability symptoms at all — the check engine light may be the only sign. This is why scanning the fault code is essential rather than guessing at the cause.

What causes P0171?

These are typical causes to check first:

  1. Vacuum leak — cracked hose or intake manifold gasket issue
  2. Dirty or faulty MAF (Mass Air Flow) sensor
  3. Blocked or weak fuel injectors
  4. Failing fuel pump not maintaining pressure
  5. Faulty or stuck-open PCV valve
  6. Clogged fuel filter

It is important to diagnose the root cause before replacing parts. Many unnecessary and expensive repairs happen because the most expensive component is replaced first without proper testing. Always work through the diagnostic steps systematically.

How to fix P0171 — step by step

Work through these steps in order to avoid unnecessary parts replacement:

  1. Check for intake leaks before replacing sensors — smoke testing is safer and more conclusive than guessing by smell or sound
  2. Clean the MAF sensor with dedicated MAF cleaner if the intake tract is otherwise sound
  3. Check fuel pressure at idle and under load if trims stay lean after intake checks
  4. Inspect the PCV valve and hoses for cracks, loose connections, or collapse under vacuum

After any repair, clear the fault code with an OBD-II scanner and carry out a test drive. If the code returns, continue to the next diagnostic step. For a personalised repair guide specific to your vehicle's make, model, year and engine, use our AI Diagnostic Report below.

UK vehicles commonly affected by P0171

These are examples of UK-market cars where garages frequently see this code:

  • Volkswagen Golf and Audi A3 petrol models
  • Ford Focus and Fiesta petrol models
  • BMW 3 Series petrol models
  • Vauxhall Astra and Corsa petrol models

This code can appear on OBD-II compatible vehicles. OBD-II is standard on most UK petrol cars from 2001 and diesel cars from 2004, with many later-1990s vehicles also compatible. The models listed above are examples where owners and garages often encounter this fault, but they are not an exhaustive or ranked list.

DIY difficulty and cost guide

Difficulty: Easy to medium — vacuum leaks and MAF cleaning are DIY. Fuel system work is better left to a garage.

UK repair cost estimate: £50–£350 including parts and labour at average UK workshop rates (inc. VAT). Independent garages are typically 30–50% cheaper than main dealers. Always get at least two quotes.

Prevention: Inspect intake hoses annually, replace the fuel filter every 30,000 miles, and use quality air filters.

Detailed analysis for P0171

What usually triggers P0171 on UK cars

Lean-running codes are especially common on UK petrol engines that have aging intake hoses, PCV faults, or dirty MAF sensors. The symptom pattern usually gets worse at idle or light throttle before it becomes obvious under load.

Checks that save money before replacing parts

  1. Check for unmetered air leaks before replacing sensors.
  2. Clean and inspect the MAF sensor if the intake tract is otherwise intact.
  3. Review long-term and short-term fuel trims to see whether the lean condition is constant or only appears in certain conditions.

Common misdiagnosis to avoid

The common mistake is replacing the oxygen sensor because the code sounds fuel-related. P0171 more often starts with air leaks, MAF errors, or weak fuel delivery.

Questions to ask your garage about P0171

  • What are the fuel trims at idle versus 2500 rpm?
  • Was the intake smoke-tested for leaks?
  • What fuel pressure was measured before quoting parts?

P0171 and the UK MOT test

Fault code P0171 is likely to cause an MOT failure. A stored code does not automatically fail an MOT, but if it keeps the malfunction indicator lamp (MIL / check engine light) on where MIL inspection applies, or affects emissions, it can cause a failure.

Even if the light is not currently on, if the fault is intermittent it could reappear during the test. Use our AI Diagnostic Report to understand the MOT risk specific to your vehicle and get advice on whether it is safe to proceed to your test.

Sources and references

This guide is informed by the following authoritative UK sources:

Repair cost estimates are based on UK labour rates and parts pricing from AA, RAC and independent garage surveys, reviewed quarterly. All content is for educational purposes and is not a substitute for professional mechanical diagnosis.

Get Your Full AI Diagnostic Report for P0171

Specific to your vehicle — year, make, model and engine.
Includes step-by-step repair guide, exact UK labour costs and MOT impact.

Get My Report for P0171 — £1.59 →
One-time payment No subscription Detailed report UK-specific advice

Frequently asked questions about P0171

What does P0171 mean in plain English?

P0171 is a fuel trim and mixture fault code. In practice, P0171 should be treated as a fuel trim and mixture problem first, not as proof that one named part has failed. The code helps narrow the system, check related data, and avoid misdiagnosis before parts are ordered.

Will P0171 fail an MOT?

P0171 is likely to affect MOT outcome if the fault is active, keeps the warning light on, or causes emissions failure.

Can I keep driving with P0171?

Short distances are usually fine, but a lean condition can damage the engine over time.

How much does it usually cost to fix P0171 in the UK?

Typical UK repair costs for P0171 range from £50–£350, depending on the underlying fault, your exact vehicle, and local labour rates.

Does P0171 usually mean a bad oxygen sensor?

Usually not. P0171 more often starts with an intake leak, PCV fault, dirty MAF sensor, or weak fuel delivery than a failed oxygen sensor.

What check saves the most money on P0171?

A smoke test or careful intake-leak inspection usually gives the highest value first. On many UK petrol engines, unmetered air is the real reason the code appears.

Related guides for P0171

Use these supporting pages to compare likely repair paths, warning-light behaviour, MOT risk, and the questions to ask before approving work.

P0171 symptoms UKWill P0171 fail MOT in the UK?Will an engine management light fail MOT?UK MOT failure rates by fault code

Related and nearby OBD2 codes

Compare P0171 with closely related faults, nearby codes in the same family, and adjacent module or sensor faults that often need to be ruled out during diagnosis.

P0174
Bank 2 Lean Condition — MAF, Intake or Fuel I…
P0101
MAF Sensor Out of Range — Clean or Replace?
P0420
Cat Efficiency Below Threshold — Check O2 Sen…
P0172
System Too Rich Bank 1
P0300
Multi-Cylinder Misfire — Why It Happens & How…
P0161
O2 Sensor Heater Circuit Malfunction Bank 2 S…
P0155
O2 Sensor Heater Circuit Malfunction Bank 2 S…
P0102
Mass Air Flow Circuit Low Input
P0103
Mass Air Flow Circuit High Input
P0113
IAT Sensor High Reading — Connector & Wiring …
P0115
Engine Coolant Temperature Circuit Malfunctio…
P0116
Engine Coolant Temperature Circuit Range/Perf…

Last updated: August 2026. AI-Diagnostics-Pro provides AI-generated information for educational purposes only. It is not a substitute for professional automotive advice. Always consult a qualified mechanic before carrying out vehicle repairs. Repair cost estimates are approximate and may vary by region and vehicle.