P0171 fault code? Here’s what it means.
The engine has detected a lean fuel mixture on bank 1. Here’s what a garage should test before replacing parts.
P0171 at a glance.
| Question | Short answer |
|---|---|
| What does P0171 mean? | The engine management system has detected a mixture that is too lean, or excessive correction towards adding fuel, on bank 1. |
| What is bank 1? | The cylinder bank containing cylinder number 1. On an inline engine there is normally only one bank. |
| Does it mean the lambda sensor has failed? | No. The sensor can be reporting a real mixture or exhaust problem. Its readings and circuit need testing before replacement. |
| Common areas to check | Intake and vacuum leaks, PCV/breather system, airflow measurement, fuel supply and injection; sometimes an exhaust leak ahead of the upstream sensor. |
| Can I drive? | If the car runs smoothly and the warning is steady, arrange diagnosis soon and avoid demanding driving. Stop safely for a flashing warning, strong misfire, stalling, substantial power loss or another serious warning. |
| What should the garage show me? | Other codes, fuel-trim readings at idle and raised speed/load, leak and fuel checks as indicated, and the test that supports the proposed repair. |
What does P0171 mean?
The standard description is ‘System Too Lean (Bank 1).’ Petrol engines adjust the amount of fuel delivered using information from airflow and exhaust sensors. When the system repeatedly has to add more fuel than expected, it can store P0171. ‘Lean’ refers to the balance of fuel and air: relatively too much air or too little fuel. The code describes the mixture-control result, not the failed component.
Bank 1 is the side of an engine with cylinder number 1. It matters mainly on engines with two-cylinder banks; P0174 is the corresponding system-too-lean code for bank 2. On an inline engine, bank 1 generally means the engine’s only bank. Do not assume a particular physical side of a V engine without the manufacturer’s cylinder layout.
An upstream oxygen or air-fuel sensor may help the computer detect the problem, but that does not make the sensor the cause. Extra air entering after the airflow meter, insufficient fuel, or air entering an exhaust leak ahead of the sensor can affect the readings. Toyota’s P0171 guidance discusses intake/PCV leaks, airflow measurement, fuel delivery and upstream exhaust leaks as possible avenues; diagnosis must follow the exact car’s system.
Can you drive with P0171?
If the warning light is steady, the car idles and accelerates normally, and there are no other serious symptoms, a gentle trip to a garage may be reasonable. Book a diagnosis soon; avoid prolonged hard acceleration and do not treat a temporarily extinguished light as proof of repair.
Stop in a safe place and seek advice or recovery if the engine management light flashes, the engine misfires strongly, repeatedly stalls, loses enough power to be unsafe in traffic, overheats or displays another serious warning. A flashing engine warning can accompany a misfire that risks catalytic-converter damage. Follow the vehicle handbook for its warning-light instructions. Never open or test a fuel line yourself to investigate P0171.
The code alone cannot tell you whether the car is safe for a particular journey. Symptoms and companion fault codes matter.
Symptoms that can occur with P0171
- Engine management light, sometimes with few other symptoms.
- Rough or uneven idle, hesitation or reduced response to the accelerator.
- Misfires, especially if the underlying problem has worsened.
- Stalling or difficult starting on some vehicles.
- A hissing sound that may point to an intake leak but does not establish one.
Note whether the problem is worst at idle, during acceleration, when cold or after refuelling. These details help the garage narrow its checks. P0171 can also appear without an obvious change in how the car drives.
Tell the garage if the warning appeared soon after an air-filter change, intake repair or other engine work; a loose connection may be relevant, but the timing alone does not prove the cause.
What causes P0171?
Possible causes, and what should confirm them.
| Possible cause | Useful clue | What should confirm it |
|---|---|---|
| Unmetered air through a split intake or vacuum hose, intake gasket or loose joint | Rough idle; correction may be more pronounced at idle on some systems | Inspection and a suitable smoke/leak test, interpreted with live data |
| PCV or crankcase-breather fault | Whistling or idle symptoms; other symptoms depend on design | Test the breather and its hoses/valves using the car’s procedure |
| Fault in airflow measurement | Airflow data does not fit engine conditions; related MAF/MAP codes may appear | Compare sensor data and wiring with manufacturer specifications; check intake path |
| Insufficient fuel delivery or injector problem | Lean correction under load, hesitation or related fuel-pressure/misfire codes | Vehicle-specific fuel-pressure, delivery and injector tests |
| Purge valve allowing unintended vapour/air flow, where fitted | Intermittent idle fault or symptoms linked to refuelling | Test purge-valve operation and control rather than guessing from timing alone |
| Leak in the exhaust before the upstream mixture sensor | Exhaust noise, leak evidence or suspicious readings | Inspect and test the relevant exhaust section |
| Faulty upstream oxygen/air-fuel sensor or circuit | Implausible or unresponsive readings after other causes are considered | Test sensor response, heater/circuit and wiring to the vehicle specification |
These are possibilities, not a ranking of what most often fails on your model. More than one fault can be present. The relevant tests vary with whether the engine uses a MAF sensor, a MAP-based strategy, turbocharging or another design.
How should a garage diagnose P0171?
Seven steps to a confirmed diagnosis
- Read the full fault-code report before clearing it. Save freeze-frame information and note when P0171 set. A simultaneous P0174, misfire code, airflow-sensor code, fuel-pressure code or oxygen-sensor circuit code changes the likely route. Check the exact model, engine and year for manufacturer technical information.
- Check whether the lean correction is still present. Compare short- and long-term fuel trims at a warmed-up idle and under appropriate raised-speed or load conditions. Positive trim generally means the system is adding fuel. The pattern can help direct tests, but no single percentage diagnoses a component on every car. Check that the underlying sensor data is plausible.
- Inspect and test for unwanted air. Examine the intake between air meter and engine, vacuum lines, manifold joints and PCV/breather system. A suitable smoke test can locate leaks that a visual inspection misses. Check for an upstream exhaust leak if the readings and symptoms point that way.
- Check airflow measurement and related wiring. Compare MAF or MAP readings with the expected values and relevant vehicle data. Dirt alone does not prove the meter has failed; cleaning or replacement should follow a confirmed finding and the maker’s procedure.
- Test fuel supply if the evidence calls for it. Use the vehicle’s specification to assess fuel pressure or delivery and investigate injectors when appropriate. Fuel-system work requires trained personnel and proper equipment.
- Test the upstream oxygen/air-fuel sensor if it remains suspect. Check its response and circuit and distinguish a sensor that is correctly reporting a lean mixture from one that is giving a false reading.
- Agree a repair based on the findings, then verify it. Before approving work, ask the garage to put the confirmed fault and supporting test result on the estimate. After the repair, check trims and operation in the conditions that previously set P0171, and confirm the code does not return.
OBDeleven’s fuel-trim explanation describes positive trim as fuel being added to compensate for a lean indication. The actual diagnostic thresholds and test conditions come from the vehicle manufacturer. A code reader displaying ‘system too lean’ cannot identify the failed part by itself.
What should you ask the garage?
- Was P0171 the only code, or were there P0174, misfire, airflow, fuel-pressure or sensor-circuit codes too?
- At what engine speed and load did the code set, and how did the fuel trims behave at idle versus under load?
- What leak test was performed, and where exactly was a leak found?
- If a fuel-system fault is proposed, what measurement showed inadequate pressure or delivery?
- If an oxygen sensor or MAF sensor is proposed, which test showed that its reading or circuit was wrong?
- What diagnosis, parts, fitting, VAT and warranty are included in the quote, and how will the repair be verified?
If the recommendation is simply “replace the lambda sensor because P0171 mentions mixture,” ask for the supporting test. The same applies to a fuel pump or catalytic converter recommendation.
How much does P0171 cost to fix in the UK?
P0171 has no single repair price. The cause could be a small hose leak or require more involved testing and repair of the intake, breather, fuel or sensor system. A diagnostic booking may cover a scan but not every test needed to locate an intermittent fault.
For a budgeting reference, FixMyCar publishes an average £51.66 for a car diagnostic test, excluding subsequent repairs. That is a published service average, not a P0171 repair quote or a promise that full leak and fuel-system tests are included. Figure checked on the 21 September 2026.
Ask for a written price for the confirmed fault, separating diagnosis, parts, fitting and VAT. If the garage suggests a sensor, ask whether it is an original-equipment or suitable aftermarket part and how the fault was demonstrated. Do not add an unrelated diagnostic average to a generic parts price and present it as the cost of fixing P0171.
Will P0171 fail an MOT?
A stored P0171 code is not itself a listed MOT defect. Under the DVSA MOT inspection manual, an engine malfunction lamp indicating a fault is a major defect on vehicles where the lamp inspection applies. For the usual passenger petrol cars, that check applies if first used on or after 1 July 2003, subject to the manual’s categories and exceptions. A car can also fail relevant emissions checks or for an induction or exhaust leak that could affect emissions. A car with the lamp off can still fail an applicable emissions test. Clearing the code before the MOT does not fix the cause.
Two numbers to know.
£51.66
Average car diagnostic test on FixMyCar, excluding repairs
2003
Petrol cars first used from 1 July 2003: lamp check applies
*Sources: FixMyCar (checked 21 September 2026; a general diagnostic average, not a P0171 repair quote); DVSA MOT inspection manual. Other vehicle categories and exceptions differ.
If P0171 returns after a repair
Record whether it comes back at idle, under load, cold, warm or after refuelling. Tell the garage what was replaced and request the pre- and post-repair findings. One repaired hose does not rule out a second air leak; a replaced sensor does not rule out a fuel-delivery fault. If P0174 now appears as well, mention it: a fault affecting both banks may call for different checks from one confined to bank 1.
FAQs
Does P0171 mean the oxygen sensor is broken?
No. The sensor may be accurately reporting the effects of extra air, too little fuel or an upstream exhaust leak. Replace it only if testing supports a sensor or circuit fault.
What is the difference between P0171 and P0174?
Both describe a mixture system that is too lean. P0171 concerns bank 1; P0174 concerns bank 2. If both appear, a shared intake, airflow or fuel-supply issue may deserve particular attention, although the codes alone do not prove one.
Can a vacuum leak cause P0171 only at idle?
It can be more noticeable at idle on some engines, when unintended air forms a larger share of the total airflow. Compare fuel trims across operating conditions and confirm the leak; the pattern alone is not proof.
Does P0171 mean the engine always has too much air?
No. Too little fuel, misleading airflow or exhaust readings, and other control problems can produce a lean indication. The garage needs to distinguish the measured result from its cause.
Will clearing P0171 fix it?
No. Clearing the fault erases useful evidence and may turn off the lamp temporarily. Keep the code and freeze-frame details, repair the demonstrated fault and verify that the lean correction and code do not return.
