Your check engine light is on and your car occasionally runs rough at idle. You pull the code and see P0171. No need to panic: this is a common fault code, and the cause is often a small air leak or a dirty sensor that you can fix yourself for minimal cost.
Quick answer:Fault code P0171 means the fuel mixture on bank 1 is too lean: there's too much air or not enough fuel. The most common culprits are a vacuum leak (false air) or a dirty mass airflow sensor (MAF). You can usually keep driving, but fix it promptly to prevent further damage.
What does fault code P0171 mean?
Your engine needs a precise air-to-fuel ratio. When the oxygen sensor detects too much oxygen, the mixture is too lean, and the computer injects extra fuel to compensate. If it can't compensate anymore, it triggers P0171 (bank 1 = the side of the engine with cylinder 1). You'll see this reflected in a high, positive fuel trim correction.
Severity: amber. Not an immediate crisis in the short term, but a persistently lean mixture can strain your engine and catalytic converter over time.
Symptoms
Rough idle. The engine runs unevenly or nearly stalls when stopped.
Slight hesitation or power loss. You'll notice the engine doesn't respond smoothly, especially when accelerating.
Higher fuel consumption. The computer compensates with extra fuel, which you'll see at the pump.
Possible causes (from cheapest to most expensive)
Vacuum leak or false air (€0 to €50). A torn intake hose or leaking gasket lets unmeasured air in. By far the number one cause.
Dirty mass airflow sensor (MAF) (€0 to €150). A clogged MAF reads too little air. Cleaning costs almost nothing; replacement costs a bit more.
Low fuel pressure or clogged filter (€20 to €120). Insufficient fuel also creates a lean mixture.
Leaking or dirty fuel injector (€60 to €200). Delivers too little fuel to one or more cylinders.
Step-by-step guide: how to find the cause yourself
- Read and clear the code. Is P0174 (other bank) or a MAF code also present? That helps point you in the right direction.
- Read the fuel trim live. Use an app like OBDeleven to check short- and long-term fuel trim values. A high positive value confirms a lean mixture.
- Hunt for the vacuum leak. Inspect intake hoses and gaskets for cracks and loose connections; false air is the most common culprit.
- Check the MAF live. Compare the measured air mass (g/s) with what you'd expect; a low reading points to a dirty or weak MAF. Clean it carefully.
- See if the correction improves. If fuel trim gets better after sealing the leak or cleaning the MAF, you're on the right track.
- Clear and test drive. Clear the code and take a drive to see if P0171 stays gone.
What will it cost?
DIY: replace a hose or clean the MAF. €0 to €30. Often the complete fix.
DIY: replace the mass air flow sensor. €40 to €150 for the part.
Mechanic: fuel pressure or injector.€80 to €150 for diagnosis, repair costs separate.
Fix it yourself or visit a mechanic?
You can easily track down a vacuum leak and clean the MAF sensor yourself, and that solves most P0171 cases. If the live data points to fuel pressure or an injector issue, a mechanic will get you sorted faster than guessing on parts.
The right diagnostic tool for this code
With P0171, fuel trim correction is your key measurement, along with the MAF reading. A basic scanner reads and clears codes, OBDeleven shows fuel trims and MAF data live, and the Launch provides detailed graphs for deeper analysis.
View the Topdon CarPal →
View the OBDeleven 3 →
View the Launch CRP919X →
Related fault codes
If your vehicle has dual exhaust banks, you might also see P0174 (mixture too lean bank 2). A faulty mass air flow sensor often triggers P0101, and a persistently lean mixture can cause misfires (P0300). Not sure how to read and clear codes yet? Start with how to read and clear fault codes.
Frequently asked questions
Can I keep driving with P0171?
Usually yes, but don't put off fixing it. A prolonged lean mixture can damage the engine and catalytic converter.
What does a lean mixture mean?
Too much air relative to fuel. Combustion won't be optimal, which costs power and makes the engine hesitate.
Does cleaning the MAF sensor really help?
Often it does. A dirty mass air flow sensor reads too little air; sometimes a specialized MAF cleaner solves it for just a few euros.
Will the warning light turn off on its own?
Once you fix the underlying cause, the car usually clears the code after a few drive cycles. You can also clear it manually with a scanner.
Quick summary
• P0171 = mixture too lean on bank 1 (too much air or too little fuel).
• Start with a vacuum leak and dirty MAF sensor; together they account for most cases.
• Read the fuel trim correction live to confirm the issue.
• Often a cheap fix you can do yourself.