P0171 means the engine computer has been adding fuel for too long to correct a mixture it sees as too lean on Bank 1, and has run out of adjustment range. Either more air is entering the engine than is being measured, or less fuel is arriving than commanded.
Short distances only
A mildly lean engine will usually still drive, but a lean mixture runs hotter and sustained lean running can damage pistons and valves. If the check engine light is flashing, stop driving — that means active misfire and raw fuel reaching the catalytic converter.
The first thing to look for. Cracked and hardened hoses are the usual culprit.
Under-reports incoming air, so the computer under-fuels. Often fixable with proper MAF cleaner.
Reports lean when the mixture is actually fine.
Symptoms get worse under load and at higher speeds.
Often accompanied by a specific cylinder misfire code.
More likely on higher-mileage engines with plastic manifolds.
Draws in fresh air and fools the sensor.
Work down this list in order. The most expensive mistake with this code is replacing a costly part before ruling out a cheap one.
Compare short and long term trims at idle and at higher rpm. Lean only at idle points at a vacuum leak; lean at all speeds points at fuel delivery or the MAF.
Squeeze hoses to find cracks that only open when hot. Check the oil filler cap and dipstick seal too.
Never use brake cleaner or touch the wire — that turns a cheap fix into a new sensor.
The definitive way to find leaks you cannot hear or see.
Rules out a weak pump, clogged filter or failing regulator.
Only once leaks and fuel delivery have been ruled out.
| Repair | Estimated range |
|---|---|
| Vacuum hose or intake boot replacementOften the cheapest possible outcome, and the most likely one. | $20 – $200 |
| Mass airflow sensor cleaningA can of cleaner and twenty minutes if you do it yourself. | $10 – $60 |
| Mass airflow sensor replacementOnly if cleaning does not restore correct readings. | $150 – $450 |
| Fuel pump replacementVaries enormously depending on whether the tank must come out. | $400 – $1,200 |
| Intake manifold gasket replacementLabour-dominated. | $300 – $900 |
Estimate only. Ranges vary widely by region, vehicle and shop rate, and are not quotes. Always get a written estimate before authorising work.
Cracked intake boots and failing MAF sensors are the classic pairing on several EcoBoost and Duratec engines.
Brittle plastic PCV and crankcase ventilation components are a very frequent cause. Inspect them early.
Check the PCV valve and intake manifold gaskets; both are known weak points on TSI engines.
Often a dirty MAF sensor. Clean before replacing anything.
It means there is more air relative to fuel than the engine wants. The computer compensates by adding fuel, and sets this code once it has added as much as it is allowed to and the mixture is still lean.
For short distances usually yes, but do not ignore it. Sustained lean running raises combustion temperatures and can damage pistons and valves over time.
If the code returns after cleaning, the sensor is likely failing rather than just dirty, or a dirty air filter is re-contaminating it.
Both banks reading lean points at something shared between them: the MAF sensor, fuel pressure, or a leak at the common intake, rather than a bank-specific problem.
Describe what the car is actually doing and get a diagnosis narrowed to your vehicle, or find a shop near you.
AI-generated and informational only. This is not a diagnosis of your specific vehicle and does not replace inspection by a qualified technician.