A P0171 code means the engine’s control unit has decided the air-to-fuel mixture is running lean on bank 1 — too much air, too little fuel — and has run out of room adding fuel to correct it. It has several possible root causes, from a vacuum or intake leak to a dirty MAF sensor or a faulty throttle body, so the fix depends entirely on which one is at fault. Where the cause is an electronic engine-management part such as the throttle body or mass air flow sensor, that is our specialism — we diagnose, repair and remanufacture those units on a mail-in basis, backed by a lifetime warranty.
On this page
- What does the P0171 fault code mean?
- What are the symptoms of a P0171 code?
- What causes a P0171 code?
- How is a P0171 fault diagnosed?
- Can I still drive my car with a P0171 code?
- How much does it cost to fix a P0171?
- How is a P0171 fault fixed?
- Frequently Asked Questions
What does the P0171 fault code mean?
P0171 is a generic engine-management code that means “System Too Lean, Bank 1”. Your engine control unit constantly compares the actual air-to-fuel mixture — read from the upstream lambda (oxygen) sensor — against the ideal ratio for clean, efficient combustion. When it sees a lean mixture, meaning too much air and not enough fuel, it adds extra fuel to bring things back into balance. That correction is called fuel trim. P0171 is logged at the point where the control unit has added as much fuel as it is allowed to and the mixture is still running lean. In other words, the code is not the fault itself — it is the ECU telling you it has run out of headroom trying to hide one.
“Bank 1” simply refers to the side of the engine containing cylinder number one. On a four-cylinder engine there is only one bank, so P0171 covers the whole engine. On a V6 or V8 you may see it alongside P0174 (the same lean condition on bank 2), and if both appear together it points to a cause that affects the whole engine rather than one side.
What are the symptoms of a P0171 code?
A lean mixture disturbs how smoothly and cleanly the engine burns fuel, so the symptoms usually show up in how the car idles, pulls and drinks petrol. You may notice one of these or several together:
- The engine warning light (MIL) — the most common trigger for people to have the code read in the first place. It may be steady, or flash under load if the lean condition is severe.
- A rough, lumpy or uneven idle — the engine feels like it is hunting or shaking at a standstill, and can occasionally stall when you come to a stop.
- Hesitation or a stumble on acceleration — a flat spot or a stutter as you press the throttle, because there is not enough fuel to match the air coming in.
- Poor fuel economy — with the mixture disturbed and the ECU working to compensate, you may find you are filling up more often.
- A noticeable loss of power — the car feels flat or sluggish, particularly when accelerating or climbing.
- In some cases, difficulty starting or a stall shortly after start-up, especially when the engine is cold.
None of these symptoms on its own tells you which part has failed — a rough idle can come from a vacuum leak just as easily as from a dirty air flow sensor. They confirm the engine is running lean; the diagnosis is what identifies why.
What causes a P0171 code?
This is the part that generic code lookups tend to gloss over. P0171 is a symptom with several genuine root causes, and pinning down which one you have is the whole job. Broadly, a lean mixture happens either because the engine is drawing in air the ECU cannot account for, or because fuel is not arriving in the quantity the engine needs. The usual causes are:
- Unmetered air — vacuum and intake leaks. A split or perished vacuum hose, a leaking intake manifold gasket, a failed PCV valve or a loose intake pipe lets extra air into the engine after it has been measured. The ECU never counts that air, so the mixture runs lean. Leaks like these are one of the single most common causes of P0171.
- A dirty or faulty MAF (mass air flow) sensor. The MAF sensor measures how much air is entering the engine so the ECU knows how much fuel to add. When it is contaminated with oil or dust, or failing electronically, it under-reads — the ECU thinks less air is coming in than really is, and fuels lean to match.
- A dirty or faulty throttle body. The throttle body controls how much air the engine draws in, and it carries the sensors and, on drive-by-wire cars, the motor that report and set that airflow. Carbon build-up or an electronic fault here upsets the airflow reading and the idle control, which can push the mixture lean.
- Weak fuel delivery. A tiring fuel pump, low fuel pressure, a blocked fuel filter or dirty, partially clogged injectors all mean less fuel reaches the cylinders than the ECU is asking for — so the engine runs lean even though plenty of air is being measured correctly.
- A lazy or failing upstream lambda (oxygen) sensor. This is the sensor the ECU relies on to judge the mixture. If it reads slowly or inaccurately, the ECU can be misled into trimming fuel the wrong way and logging a lean fault.
- An exhaust leak before the lambda sensor. A leak upstream of the sensor lets outside air reach it, which the sensor reads as a lean exhaust — so the ECU adds fuel it does not actually need and can trip P0171.
Because so many different parts produce the same code, replacing components on a guess is how a P0171 gets expensive without ever getting fixed. The order in which these are checked matters, which is what proper diagnosis is for.
How is a P0171 fault diagnosed?
Diagnosing P0171 is a process of elimination that follows the logic of the code rather than swapping parts and hoping. A proper diagnosis reads the engine’s live data and tests the suspect components in turn.
The starting point is the fuel trims — the live figures showing how much fuel the ECU is adding or removing. These reveal whether the engine is lean everywhere or only at certain speeds and loads, which narrows the cause considerably: a lean condition that is worst at idle and improves as the revs rise points towards a vacuum leak, while one that is roughly constant across the range points more towards fuelling or the air flow sensor. From there, a smoke test pressurises the intake to reveal vacuum and intake leaks, the MAF sensor’s readings are checked against the airflow the engine should be seeing, fuel pressure is measured to rule the fuel side in or out, and the throttle body and lambda sensor are tested. Working through it in this order is what separates a targeted repair from a string of replaced parts.
Can I still drive my car with a P0171 code?
In most cases you can drive short-term — a P0171 rarely leaves a car undriveable, and if the symptoms are mild you will often reach a garage without trouble. It is not, however, a code to leave indefinitely. A persistently lean mixture burns hotter than normal, and over time that can damage components such as the pistons, valves and catalytic converter, turning a modest repair into a much larger one. You will also be paying for the poor fuel economy the fault causes.
If the engine is misfiring, stalling, badly down on power or the warning light is flashing, treat that as a stronger signal and get it looked at promptly rather than driving on. The sensible approach with any P0171 is to have it diagnosed sooner rather than later, before a lean-running engine does avoidable harm.
How much does it cost to fix a P0171?
There is no single price for fixing a P0171, because the code does not tell you what has failed — and anyone quoting a flat figure before diagnosis is guessing. The cost depends entirely on the root cause. A perished vacuum hose or a clean-up of a contaminated MAF sensor sits at the modest end. A failing fuel pump, a faulty throttle body or a lambda sensor is a larger job. This is exactly why diagnosis comes first: identifying the real cause is what stops you paying to replace parts that were never the problem.
Where the fault turns out to be an electronic engine-management component — a throttle body or a mass air flow sensor — remanufacturing your existing unit is normally far cheaper than a new dealer part, and it keeps your vehicle’s original coding intact. We quote against your specific unit and fault rather than a generic price.
How is a P0171 fault fixed?
The fix is whatever the diagnosis points to, done properly. A vacuum or intake leak is repaired by replacing the failed hose, gasket or valve. A contaminated MAF sensor may clean up, or need renewing if it has failed electronically. A fuel-side fault means renewing the pump, filter or injectors. A faulty throttle body or lambda sensor is repaired or replaced. Because a lean fault can involve fuel pressure and safety-relevant engine parts, it is professional work rather than something to attempt from an online video — and the components are precise enough that fitting the wrong part cures nothing.
Our wheelhouse is the electronic side of that list. We are UK automotive-electronics remanufacturers who work at circuit-board and component level on engine-management units — so when a P0171 traces back to the throttle body or the mass air flow sensor, rather than selling you a complete new part we diagnose the actual fault in your unit and rebuild it, then bench-test it before it comes back. Every remanufactured unit is tested on our in-house Hardware-in-the-Loop rigs, which replicate the heat, vibration and electrical load the part faces on the engine, and most come back ready to fit with no coding required. Our remanufactured parts carry a lifetime, unlimited-mileage warranty.
The service is mail-in: you send us the suspect unit and we repair and return it. If your diagnosis has already pointed at the throttle body or air flow sensor, complete our repair form with your vehicle and fault details to get started. If you are not yet sure which part is causing the lean condition, get in touch and we will help you work out the next step. Where the cause turns out to be a vacuum leak or the fuel supply, a local garage is the right port of call — but for the engine-management electronics, that is what we specialise in.
Frequently Asked Questions
How do I fix a P0171 too lean code?
You fix a P0171 by diagnosing which root cause is making the engine run lean, then repairing that specific part — because the code can come from a vacuum or intake leak, a dirty MAF sensor, a faulty throttle body, weak fuel delivery or a failing lambda sensor. Reading the live fuel trims and running a smoke test for leaks is what identifies the cause. Replacing parts on a guess rarely clears it.
What is the most common cause of a P0171 code?
Unmetered air is the most common culprit — a vacuum or intake leak, such as a split hose, a leaking intake manifold gasket or a failed PCV valve, that lets air into the engine after it has been measured. A dirty or under-reading mass air flow sensor is the next most common cause. Both leave the engine running lean because the ECU is not accounting for all the air coming in.
Can I still drive my car with a P0171 code?
Usually yes, in the short term, if the symptoms are mild. But a persistently lean mixture runs hot and can, over time, damage parts such as the catalytic converter, so it is not a code to ignore. If the engine is misfiring, stalling or the warning light is flashing, get it diagnosed promptly rather than driving on.
How much does it cost to fix a P0171?
It depends entirely on the root cause, so there is no single price — a perished vacuum hose or a MAF clean-up is modest, while a fuel pump, throttle body or lambda sensor is more. This is why diagnosis comes first. Where the fault is an electronic part such as the throttle body or air flow sensor, remanufacturing your existing unit is normally far cheaper than a new dealer part, and we quote against your specific unit.