Audi VW P0171 Fault Code: Causes and Step-by-Step Fixes
6 min read · by Nicole Bennett · Last updated: November 14, 2026
An audi vw p0171 fault code means the engine is running lean, with too much air for the fuel it receives. The engine computer tried to add fuel and could not bring the mixture back into range.
Most P0171 cases come from unmetered air, such as a vacuum leak, or from a sensor reading that is wrong. Start with the leaks and the mass airflow sensor before you replace the oxygen sensor.
Do not keep driving with this code active, because a lean engine can be damaged over time.
What P0171 means on an Audi or VW
P0171 means the powertrain control module sees the air-to-fuel ratio running too lean in bank 1, which is the side of the engine that contains cylinder 1.
According to KBB’s P0171 code page, the computer adds fuel to correct a lean condition. When it can no longer compensate, the code sets along with the check engine light.
The ideal ratio is 14.7 parts air to 1 part fuel, according to the YouCanIC guide to the Audi and VW version of this code. Any reading that drifts far from that ratio can set a lean code, so the goal is to find what is adding unmetered air or reducing fuel.
KBB notes that P0171 is almost always set together with P0170, which signals a general fuel trim problem. If both codes are stored, treat them as one fuel-mixture fault.

Common causes of an audi vw p0171 fault code
KBB calls unmetered air entering the intake the most common cause of P0171. The other causes it lists are shown below, and the diagnostic steps later in this article check them in turn.
- Vacuum or intake leaks, including cracked hoses and loose clamps.
- A dirty or faulty mass airflow sensor that under-reports incoming air.
- A weak fuel pump, low fuel pressure or a plugged fuel filter.
- Dirty or plugged fuel injectors.
- A defective oxygen sensor, which KBB says is less likely than the causes above.
- Exhaust leaks that let air into the exhaust near the sensor.
The YouCanIC guide says a dirty or failing MAF may under-report air, and that a control module software update can sometimes help. Check for updates with a dealer or qualified shop, because the guide gives no detail on which software version applies.
How to diagnose P0171 step by step
Work through the checks in order. Each one rules out a cause before you spend money on parts.
- Use an OBD-II scanner to read fuel trim and freeze-frame data, which shows how far off the mixture is and under what conditions.
- Inspect all vacuum lines and intake hoses for cracks, and repair any leak you find.
- Remove, clean or inspect the mass airflow sensor, reconnect it and rerun the diagnostics.
- Test fuel pressure to see whether the pump, the fuel filter or the regulator is at fault.
- Check the injectors and fuel lines for restrictions or leaks.
- Look for exhaust leaks near the sensors.
- Clear the codes, road test the car and rescan to see whether P0171 returns.
KBB advises against replacing the oxygen or air-fuel sensor early, because that often does not fix the root cause. YouCanIC gives the same advice, and says to check for vacuum leaks before you touch the O2 sensor. If you do test it, follow O2 sensor multimeter test steps.

Repairs that fix P0171 and what they cost
The right repair depends on what the diagnosis finds. A cracked hose or loose clamp is a small job, while a fuel pump or a sensor replacement costs more and should follow a confirmed test. A weak regulator is another fuel-delivery cause, covered in fuel pressure regulator testing.
Cost estimates depend on the model and the shop, so get a written quote before you approve any part. Treat any price you find online as a starting point, not a fixed figure.
Clearing the code without a repair means the light is likely to come back. If P0171 returns after a repair, the first step is to recheck the fuel trims and the leak check, not to swap more parts.
When to stop driving and call a shop
KBB advises against driving with this code active, because running lean can cause long-term engine damage. If the engine misfires, overheats or loses power, stop and have the car towed.
Have a qualified technician handle fuel pressure tests and any work near the fuel system. Those tests need gauges and safety steps that are not part of a basic home check. See how to test a fuel pump for the steps.
A useful habit is to record the fuel trim values before and after each repair. Those numbers show whether a change moved the mixture back toward normal, which tells you more than the warning light alone. On VW and Audi, how to use VCDS shows how to read live fuel trims.
Common mistakes when fixing P0171
- Replacing the oxygen sensor first, before checking for leaks.
- Cleaning the mass airflow sensor and never checking the intake hoses.
- Ignoring the paired P0170 code.
- Clearing the code and assuming the fault is gone.
Frequently Asked Questions
What does an audi vw p0171 fault code mean?
It means the engine runs too lean in bank 1, with more air than fuel in the mixture. The engine computer tried to add fuel and could not correct the mixture enough to clear the fault.
Is the oxygen sensor usually the cause?
Usually not. KBB describes a defective O2 sensor as a less likely cause, and advises checking vacuum leaks and fuel delivery first before replacing it.
Can I drive with a P0171 code?
KBB advises against it, because a lean engine can be damaged over time. Get the car checked soon, and stop driving if the engine misfires, overheats or loses power.
Will a MAF cleaning fix an audi vw p0171 fault code?
It can, if the sensor is dirty or under-reading air. Clean the sensor only after checking the intake for leaks, then rescan to see whether the code returns.
Find the leak before you buy parts. Most P0171 faults are an air leak or a sensor reading, so a careful check of the hoses and the airflow sensor often settles the question before any repair is needed.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0171 Audi Fault Code: Meaning, Common Causes, and Scanner Diagnosis
LearnP2195 Audi: Find the Lean Sensor Fault and Fix It
LearnP2138 Audi: Causes, Symptoms, Diagnosis, and Repair
LearnP2112 Audi: Causes, Symptoms, Diagnosis, and Fixes
LearnP2111 Audi: Causes, Symptoms, Diagnosis, and Repair
LearnP0171 Mazda Code: Meaning, Causes and MAF Checks