The engine is getting more air than the fuel it is being given can burn. The control unit has already added as much extra fuel as it is allowed to, run out of adjustment, and stored the code. On most cars the cause is unmetered air leaking in after the air flow sensor.
The engine is getting more air than the fuel it is being given can burn. The control unit has already added as much extra fuel as it is allowed to, run out of adjustment, and stored the code. On most cars the cause is unmetered air leaking in after the air flow sensor.
The code is stored by the engine control unit the moment the reading falls outside the range the manufacturer allows. Stored is not the same as diagnosed: P0171 names the symptom the car detected, not the part that caused it. That is why the repair figures below sit in a range rather than at a single price.
In rough order of how often each one turns out to be the culprit:
Parts cost roughly the same wherever you are. What moves the total is the shop rate, which is why the same job is two to three times the price in the United States that it is in Italy. These figures assume an independent workshop, not a franchised dealer, and cover the cheapest and the most expensive of the causes listed above.
| Country | Parts | Labour | Total |
|---|---|---|---|
| United States | $15 to $350 | $60 to $300 | $75 to $650 |
| United Kingdom | £10 to £290 | £40 to £200 | £50 to £490 |
| Germany | €10 to €320 | €50 to €250 | €60 to €570 |
| Italy | €10 to €320 | €20 to €110 | €35 to €430 |
Based on 0.5 to 2.5 hours of book labour at local shop rates, plus parts at local retail. Indicative ranges, not quotes.
Usually yes, for a few days. The car will drive, but the fault will not clear on its own and the bill grows the longer it is left.
Usually yes, because the warning light will be on, and an illuminated engine light fails the visual part of the check in every market we cover.
Clearing the code the day before a test is a false economy: erasing the memory also resets the readiness monitors, and a car that arrives with its monitors incomplete is refused on that ground alone in most testing regimes.
This is a negotiation code, not a dealbreaker. It is a real repair with a real bill, so the fair move is to price the fix and take it off the asking price. What matters more than the code is whether the seller knew about it.
The thing worth checking is not the code on its own. It is whether the memory was cleared recently. Every car keeps two numbers alongside the fault list: the distance travelled since the codes were last erased, and the state of the readiness monitors. A car with no stored faults, incomplete monitors and 30 km since the last reset was wiped in the seller's driveway, probably this week. That combination tells you more than any single code does.
TrustThisCar reads all of it during the viewing, in three minutes, with the kind of Bluetooth adapter that costs about 20 euro: stored, pending and permanent codes, readiness monitors, distance since the last reset, and a verdict in plain words you can send to the seller while you are still standing next to the car.
The engine is getting more air than the fuel it is being given can burn. The control unit has already added as much extra fuel as it is allowed to, run out of adjustment, and stored the code. On most cars the cause is unmetered air leaking in after the air flow sensor.
Usually yes, for a few days. The car will drive, but the fault will not clear on its own and the bill grows the longer it is left.
Usually yes, because the warning light will be on, and an illuminated engine light fails the visual part of the check in every market we cover.
It depends on the shop rate where you live: United States $75 to $650, United Kingdom £50 to £490, Germany €60 to €570, Italy €35 to €430. Parts are close to the same everywhere; labour is what moves the total.
Last reviewed 2026-10-03.