P0171 means the engine is running lean on bank 1 - there is too much air relative to fuel, and the computer has run out of room to add fuel to compensate. It is most often caused by unmetered air sneaking into the engine (a vacuum leak) or by the mass airflow sensor under-reporting airflow. Left alone, a persistent lean condition can cause misfires and, over time, engine damage.
Yes for a short trip, though it is worth fixing soon rather than ignoring. A lean condition mostly causes rough idle, hesitation, and mildly reduced power rather than a breakdown, so driving to a shop is normally fine. Left unaddressed for weeks or months, a lean mixture runs hotter than designed and can eventually cause misfires or engine wear, so get it diagnosed within a couple of weeks.
| Fix | DIY parts | At a shop |
|---|---|---|
| Find and seal a vacuum leak | $10 - $50 | $100 - $300 |
| Clean or replace the MAF sensor | $10 - $150 | $50 - $250 |
| Replace the PCV valve or hose | $10 - $40 | $80 - $180 |
| Replace a weak fuel pump | $80 - $300 | $300 - $600 |
Ranges are rounded and for the US market only - actual price depends on region, shop labor rates, and the exact make and model.
P0171 means bank 1 is running lean - the PCM has been adding fuel to compensate and has hit the limit of what it is allowed to add. Crucially, this code is almost never a fuel problem. It is usually an air problem: the engine is getting more air than the sensors measured, so the fuel the PCM calculated is not enough. Unmetered air entering after the mass airflow sensor is the dominant cause, which is why the diagnosis is largely a hunt for vacuum leaks rather than anything to do with the fuel system.
The name pushes people toward the fuel system, and replacing a fuel pump or injectors for P0171 is an expensive and usually wrong move. Lean almost always means extra unmetered air, not missing fuel. Eliminate every air path before spending anything on fuel components.
Difficulty: Easy to Moderate. Time: 0.5 - 3 hours. DIY parts: $15 - $250. Shop total: $120 - $600.
One of the better DIY codes, because the most likely causes are a cracked intake tube, a dirty MAF sensor, and a split PCV hose - all cheap, all reachable from the top of the engine, all fixable with hand tools. The only reason to involve a shop is if you need a smoke test to locate a leak you cannot find by hand.
Replace intake hoses, PCV components, and the air filter on schedule. Every common cause of this code is a rubber or plastic part that hardens with heat and age. They fail on a predictable timeline, and replacing them proactively is far cheaper than the misfires and converter damage a long-running lean condition causes. Track the air filter and PCV service in ServiceSage and you replace the parts that cause this code before they crack, rather than after a warning light. Track this maintenance free.
Related trouble codes: P0174 - System Too Lean (Bank 2), P0172 - System Too Rich (Bank 1), P0113 - Intake Air Temperature (IAT) Sensor 1 Circuit High