P0171 Code on BMW, Audi, VW & Mercedes: Meaning, Causes and How to Fix – Euro Premium Parts
LED Yellow CSL-Style DRL Angel Eyes Modules for BMW 2 Series F22 / M2 F87 (2014–2021) BMW > LED Lighting Euro Premium Parts

OUR BLOG SECTION

ALL THE PARTS YOU NEED FOR YOUR GERMAN CAR

Find all the performance parts and modern accessories you need for your vehicle

OUR BLOG SECTION

IMPROVE IT. CUSTOMIZE IT. ENJOY IT.

Enhance your driving experience with all the mods available on our website.

Carbon fiber mirror caps for Volkswagen Golf Mk7 (2012-2020) VW > Mirrors Euro Premium Parts

OUR BLOG SECTION

THE RIGHT CHOICE

You're looking for info on your future dream car? Browse our blog and find the answer to every questions you might have.

Wireless Apple CarPlay/AndroidAuto retrofit kit for Mercedes C-Class W205 (2014-2021) Mercedes > Carplay Euro Premium Parts

OUR BLOG SECTION

READY TO TAKE ACTION?

You already own a german car? Check our online performance car parts store and start modding your vehicle now!

P0171 Code on BMW, Audi, VW & Mercedes: Meaning, Causes and How to Fix It

OBD2 code P0171

What Does Code P0171 Mean?

P0171 is a generic OBD2 code defined as "System Too Lean (Bank 1)." It means the engine control module (ECM) has detected that the air-fuel mixture on bank 1 is running with too much air or too little fuel, and that it has reached the limit of how much it can correct. The ECM monitors the upstream oxygen (or air-fuel ratio) sensor and adjusts fuel delivery through short-term and long-term fuel trims. When the total positive fuel trim exceeds a calibrated threshold, typically around +20–25%, the code is set. Bank 1 is the side of the engine containing cylinder 1; on four-cylinder and inline-six engines there is only one bank.

P0171 turns on the check engine light, but the car often drives almost normally at first. Drivers may notice a rough or unstable idle, hesitation when accelerating, or reduced fuel economy (lower mpg). Because a lean mixture burns hotter, an untreated lean condition can lead to misfires and, over time, damage to the catalytic converter. On V6 and V8 engines, P0171 often appears together with P0174 (bank 2 lean), which points to a cause shared by both banks such as a large vacuum leak, a dirty MAF sensor or low fuel pressure.


Symptoms of P0171

  • Check engine light on, often with no obvious drivability problem at first
  • Rough, unstable or hunting idle, especially when the engine is warm
  • Hesitation, stumbling or lack of power during acceleration
  • Whistling or hissing noise from the engine bay (vacuum leak)
  • Misfire codes (P0300–P0306) appearing alongside P0171
  • Hard starting or stalling, especially after a cold start
  • Reduced fuel economy and occasional fuel smell

Common Causes of P0171 on German Cars

BMW

On BMW gas engines, P0171 is very often caused by vacuum leaks. On the N52 and N51 inline-sixes found in the 128i, 328i, 528i and X3, the crankcase ventilation (PCV) valve integrated in the valve cover fails, as do the oil filler cap seal, the DISA valve O-rings and intake boots. Older M54 engines suffer from cracked crankcase vent valve (CCV) hoses. A cracked intake boot after the MAF sensor is another classic culprit. See our N52 engine guide for these weak points.

Other common BMW causes include a dirty or failing mass airflow (MAF) sensor, weak fuel pumps, a leaking valve cover gasket, and failing injectors. On direct-injection turbo engines such as the N54, N55 and N20, a lean code may also be caused by low fuel pressure from the low-pressure pump or high-pressure fuel pump.

Audi / Volkswagen

On the 1.8 TSI and 2.0 TSI EA888 engines in the GTI, Jetta, Passat, Tiguan, Audi A3, A4 and Q5, the most common cause is a failed PCV valve (oil separator) diaphragm, which creates a large vacuum leak and often a whistling noise. Cracked breather hoses, leaking intake manifold gaskets and failing diverter valves also cause lean codes. Read our EA888 engine guide for more details.

Older VW and Audi engines, such as the 1.8T and 2.5 five-cylinder, frequently set P0171 because of brittle vacuum and breather hoses, dirty MAF sensors and leaking intake boots. On the 2.0T FSI and TSI, low fuel pressure from a worn cam follower or a failing high-pressure fuel pump can also create a lean condition.

Mercedes-Benz

On Mercedes-Benz V6 and V8 engines such as the M112, M113, M272 and M273, P0171 often appears with P0174. Typical causes include cracked crankcase breather hoses, leaking intake manifold gaskets, a faulty MAF sensor and failed intake air duct seals. On the M272, intake manifold and runner flap problems can also contribute. Our M272 engine guide covers these in depth.

On four-cylinder turbo engines such as the M270 and M274, lean codes can come from leaking charge air hoses or PCV components, faulty fuel pressure sensors and weak fuel pumps. A clogged fuel filter, where fitted as a serviceable part, can also reduce fuel supply.


Launch X431 CR319 — OBD2 Diagnostic Scanner

Don't Pay $100+ Just to Read a Fault Code

Read P0171, check for companion codes like P0174 and watch live fuel trims to find the leak faster. The Launch X431 CR319 reads them in under 30 seconds — compact enough for the glove box, no subscription required.

→ Get the OBD2 Scanner

How to Diagnose P0171

Step 1: Read codes and freeze frame data. Note engine speed, load, coolant temperature and fuel trim values when the code set. A lean condition mainly at idle suggests a vacuum leak, while a lean condition under load points toward fuel delivery or MAF problems. Check for related codes such as P0174, misfires or fuel pressure codes.

Step 2: Watch fuel trims in live data. Monitor short-term and long-term fuel trims at idle and at around 2,500 rpm. If trims are strongly positive at idle and improve at higher rpm, a vacuum leak is likely. If they get worse at higher rpm, suspect low fuel pressure or a weak MAF signal.

Step 3: Perform a smoke test. A smoke machine is the most effective way to find vacuum leaks in PCV valves, breather hoses, intake boots, manifold gaskets and the oil filler cap. On turbo engines, also pressure test the charge air system. Listen for whistling noises and check the oil filler cap for strong suction with the engine running, which indicates a failed PCV valve.

Step 4: Check the MAF sensor. Compare the MAF reading at idle with the expected value for the engine size (roughly 2–7 grams per second for most four- and six-cylinder engines at warm idle). Inspect the sensor element for contamination and the air filter for blockage. Clean with dedicated MAF cleaner only.

Step 5: Test fuel pressure and injectors. Measure low-side fuel pressure and, on direct injection engines, compare specified and actual high-pressure values in live data. Check fuel injectors for clogging or leaks, and inspect the upstream oxygen sensor for slow response before replacing parts.


How Much Does It Cost to Fix P0171?

Repair Parts Labor Total
Vacuum / breather hose $15–120 $50–250 $65–370
PCV valve / oil separator $40–300 $80–300 $120–600
Valve cover with integrated PCV (BMW) $150–400 $200–450 $350–850
MAF sensor $80–350 $30–100 $110–450
Fuel pump (low-pressure) $150–600 $150–400 $300–1,000

Related Codes

  • P0174 — System Too Lean (Bank 2)
  • P0172 — System Too Rich (Bank 1)
  • P2187 — System Too Lean at Idle (Bank 1)
  • P0101 — Mass or Volume Air Flow Sensor A Circuit Range/Performance
  • P0300 — Random/Multiple Cylinder Misfire Detected

FAQ — P0171

Can I drive with code P0171?

Usually yes, for a short time, if the engine runs smoothly. However, a persistent lean condition can cause misfires and overheating of the catalytic converter, so diagnose it soon. If the check engine light flashes, stop driving and have the car checked.

Will P0171 clear itself?

If the cause was temporary, such as a loose oil filler cap, the light may turn off after several drive cycles. Most German cars, however, have a real vacuum leak or sensor fault that will make the code return until it is repaired.

Can P0171 damage the engine or catalytic converter?

Yes, if ignored. Lean mixtures burn hotter and can cause misfires that overheat and damage the catalytic converter. Extreme lean conditions under load can also damage pistons on turbocharged engines.

Is it covered by warranty?

Vacuum hoses and PCV parts are usually covered only under the basic warranty. In the US, the federal emissions warranty covers major components such as the catalytic converter and engine control module for 8 years/80,000 miles, so a catalytic converter damaged by an emissions fault may be covered on newer vehicles.

How do I clear P0171?

Fix the cause first, then clear the code with an OBD2 scanner and reset fuel trim adaptations if your tool supports it. Drive normally and recheck fuel trims to make sure they have returned close to zero. For more tips, see our guide on how to turn off your check engine light.