Known Issues/P0171/BMW

P0171 on BMW

System Too Lean (Bank 1)

Moderate12 BMW models affected$180-$15,000 typical repairSystem: Fuel System
NewAI Photo & Video Diagnosis
Not sure this is what you've got?
Upload a photo or video — Au7o will confirm the match and check for other common failures at the same time.
Upload & confirm

P0171 on BMW vehicles indicates system too lean (bank 1). Au7o has documented this code across 12 BMW models — most commonly on 1 Series, 3 Series, 4 Series. This code means the engine's computer has detected that the air-fuel mixture on Bank 1 (the side of the engine with cylinder #1) is running too lean — meaning there is too much air relative to fuel. The computer watches the oxygen sensors and has had to add a large amount of extra fuel (long-term fuel trim) to try to compensate, but it has hit its correction limit. A lean condition can cause rough idle, hesitation, reduced power, and over time can run the engine hotter than normal. It usually points to either unmetered air leaking into the engine or not enough fuel being delivered. Typical repair costs on BMW range from $180 to $15,000, depending on the specific model and root cause.

Common Causes of P0171

  • •Vacuum or intake air leak (cracked hose, gasket, or PCV system)
  • •Dirty or failing mass airflow (MAF) sensor
  • •Weak fuel pump or restricted fuel filter
  • •Clogged or dirty fuel injectors
  • •Faulty or aged upstream oxygen sensor
  • •Leaking intake manifold gasket
  • •Low fuel pressure or failing fuel pressure regulator
  • •Exhaust leak ahead of the oxygen sensor

P0171 on BMW by Model

BMW 1 Series(3 issues)

  • N54 High-Pressure Fuel Pump (HPFP) Failure (135i / 1M)2008-2011

    The N54 3.0L twin-turbo inline-6 in 2008-2010 135i and 2011 1M Coupe suffers from high-pressure fuel pump (HPFP) failure. The HPFP piston and internal O-ring wear prematurely, causing loss of fuel rail pressure and engine stalling or failure to start. This was one of BMW's most widespread N54 issues, affecting tens of thousands of vehicles. BMW issued a recall in October 2010 and extended the warranty to 10 years/120,000 miles on affected vehicles. The OEM Bosch HPFP has gone through multiple revisions (current Rev D, PN 13517616170) to address the failure mode. Symptoms typically appear as sudden loss of power under load, long cranking times, or complete failure to start. N54Tuners and 1Addicts forums report this as the single most common N54 failure, with some owners experiencing multiple pump replacements before the revised part was available.

  • Valve Cover & PCV System Failure (All 1 Series E82/E88)2008-2013

    All BMW 1 Series E82/E88 models (2008-2013) use plastic valve covers that crack, warp, and deteriorate from engine heat cycling. The valve cover integrates the PCV (Positive Crankcase Ventilation) system, so when the valve cover fails, the PCV also fails - causing oil leaks, vacuum leaks, rough idle, and check engine lights. The plastic valve cover warps from repeated heating/cooling cycles, breaking the seal with the cylinder head. N52 (128i) uses Genuine BMW valve cover PN 11127552281 ($225). N54/N55 (135i/1M) uses Genuine BMW valve cover PN 11127565284 ($350-500), with URO Parts offering a cheaper alternative ($180). This is a well-documented failure on 1Addicts and Bimmerpost - the plastic valve covers are considered a design flaw that BMW has not corrected. Replace with OEM BMW for best longevity.

  • N54 Spark Plug & Ignition Coil Failure (135i / 1M)2008-2011

    The N54 twin-turbo engine in 2008-2010 135i and 2011 1M operates at high cylinder pressures from direct injection and forced induction, demanding more frequent spark plug replacement than BMW's suggested 100,000-mile interval. Real-world experience from N54Tuners and 1Addicts forums shows plugs should be replaced every 25,000-30,000 miles (not 100,000 as BMW claims). The OEM Bosch ZGR6STE2 spark plugs (PN 12120037244, $12-15 each) are gapped at 0.024" from factory for the N54's high boost pressures - do NOT use standard gap. Ignition coils (Delphi/Genuine BMW PN 12138616153, $25-40 each) also fail prematurely from the high electrical demands, causing misfires. Worn plugs and weak coils cause cascading misfires, rough idle, and reduced power. Replace all 6 plugs and inspect coils every 25,000-30,000 miles as preventive maintenance.

BMW 3 Series(5 issues)

  • Valve Cover/Gasket Oil Leak2012-2018

    The valve cover gasket can fail, causing oil leaks onto the exhaust manifold which creates a burning oil smell. The PCV valve is integrated into the valve cover, so both are often replaced together.

  • Intake Valve Carbon Buildup2012-2018

    Direct injection engines like the N55 don't have fuel washing over intake valves, leading to carbon buildup that restricts airflow. This causes rough running and performance loss, typically noticeable after 50,000-80,000 miles.

  • High-Pressure Fuel Injector Issues2012-2018

    The piezo direct injection fuel injectors can fail or develop deposits, causing rough running and misfires. BMW has updated injector design over the years. Failed injectors may need index-matched replacements.

  • CCV/Oil Separator Failure Causing Vacuum Leaks, Oil Consumption, and Cold-Weather Hydrolock Risk2000-2005

    The crankcase ventilation system on E46 six-cylinder cars uses a plastic oil separator and multiple hoses that become brittle, clog, or rupture with age. When the CCV fails, owners commonly experience lean codes, rough idle, whistling noises, mayonnaise-like sludge in cold climates, and increased oil consumption; in severe winter cases, frozen CCV systems can pull oil into the intake and hydrolock the engine. This is a long-standing, well-documented E46 issue with extensive forum and repair database coverage.

  • Carbon Buildup on Intake Valves (Direct Injection Engines)2006-2023

    BMW 3 Series with direct-injection engines (N54, N55, N20, B48, B58) suffer from carbon buildup on intake valves. Fuel bypasses valves in DI engines, leaving them exposed only to oil vapors from PCV system which bake into hard deposits over 60,000-100,000 miles. Carbon restricts airflow causing rough idle, misfires, hesitation, and power loss. The N54 twin-turbo is particularly susceptible. The ONLY effective fix is walnut blasting every 60,000-80,000 miles. Chemical cleaners don't work on DI engines. Bimmerpost recommends this as preventive maintenance, not "if needed." Failure to clean can cause valve damage on BMW's expensive turbocharged engines.

BMW 4 Series(1 issue)

  • Fuel Injector Failure - 428i/430i/435i/440i F32/F33/F362014-2020

    Direct injection fuel injectors on N20 and N55 engines commonly fail between 60,000-100,000 miles due to carbon buildup and high-pressure operation. Injector internal seals wear out, causing fuel leaks or inconsistent spray patterns. Failed injectors cause rough running, misfires, and poor fuel economy. Carbon deposits on intake valves (common on direct injection engines) worsen the problem. BMW uses Bosch high-pressure injectors that operate at 2,000+ PSI. When one injector fails, others often follow soon after.

BMW M3(1 issue)

  • G80 S58 Engine Carbon Buildup on Intake Valves2021-2023

    The S58 twin-turbo engine in the G80 M3 uses direct injection, which sprays fuel directly into the combustion chamber rather than over the intake valves. Oil vapors from the crankcase ventilation system deposit carbon on the backs of intake valves over time. Without fuel washing over the valves to clean them, carbon accumulates and restricts airflow, reducing performance.

BMW M3 CS(1 issue)

  • S58 Intake Valve Carbon Buildup2024

    The S58 twin-turbo engine uses direct injection exclusively, meaning no fuel washes over the intake valves to keep them clean. Oil vapors from the crankcase ventilation system deposit carbon on the valve backs over time, restricting airflow and reducing performance. The M3 CS's higher boost pressures and more aggressive driving style can accelerate carbon accumulation. While the S58 has improved crankcase ventilation over the older S55, carbon buildup remains an inevitable maintenance item on all direct-injection engines.

BMW M340i(1 issue)

  • Intake Valve Carbon Buildup2020-2024

    As a direct-injection engine, the B58 in the M340i does not have fuel washing over the intake valves, leading to gradual carbon deposit buildup on the valve backs. Oil vapors from the crankcase ventilation system deposit carbon that restricts airflow and reduces performance. Symptoms typically become noticeable after 50,000-80,000 miles, with rough idle, reduced throttle response, and minor misfires. The M340i's higher boost pressures can accelerate carbon accumulation compared to non-M B58 applications.

BMW M4(1 issue)

  • S55 High-Pressure Fuel Injector Failure - F82/F83 M42015-2020

    The S55 twin-turbo engine uses high-pressure direct injection fuel injectors that commonly fail between 60,000-100,000 miles. The injectors operate at extremely high pressures (2,900+ PSI) and are subject to carbon buildup and internal seal wear. Failed injectors cause rough running, misfires, and reduced power. When one injector fails, others often follow soon after due to similar wear patterns. Carbon deposits on intake valves (inherent to direct injection) worsen the problem. This issue is shared across all S55-powered cars (M3, M4, M2 Competition).

BMW M4 CS(1 issue)

  • S58 Intake Valve Carbon Buildup2024

    Like all S58-powered BMWs, the M4 CS's direct-injection-only fuel system means no fuel washes over the intake valves. Carbon deposits from crankcase ventilation oil vapors accumulate on the back of the intake valves over time, gradually restricting airflow. The M4 CS's aggressive driving profile and higher boost pressures may accelerate carbon accumulation. Symptoms typically develop gradually and become noticeable after 40,000-60,000 miles of driving.

BMW M5(3 issues)

  • S63/S63TU Ignition Coil Premature Failure2012-2023

    Ignition coils on S63 and S63TU engines (F10 M5 2012-2016, F90 M5 2018-2023) fail far more frequently than on other BMW engines, with failures common before 30,000 miles. High-performance turbocharged nature of S63 creates extreme heat and electrical demands that stress ignition coils beyond their design limits. When one coil fails, it typically signals that other coils are nearing end of life. Failed coils cause misfires, rough running, and can damage catalytic converters if not addressed promptly. M5Board: ignition coil failure before 30k miles is NORMAL on S63 engines - budget for this, don't be shocked when dealer says "common issue." When one coil fails, M5Post recommends replacing all 8 at once since they'll all fail within 10k miles anyway - saves second service appointment and labor cost.

  • MAF Sensor Degradation Causing Lean Codes, Hesitation, and Reduced Power2000-2003

    The S62 uses dual mass-airflow sensors, and aging or contaminated MAFs are a recurring E39 M5 issue. Owners commonly report rough idle, hesitation, poor throttle response, reduced power, and check-engine lights with mixture adaptation faults. BMW service literature and independent repair databases frequently reference diagnosis of intake leaks versus faulty MAF readings on E39 V8 applications.

  • S63/S63TU Valve Stem Seal Failure & Oil Consumption2012-2023

    The S63 and S63TU engines (F10 M5 2012-2016, F90 M5 2018-2023) share valve stem seal issues with N63 engine platform. Worn valve stem seals allow engine oil to leak into combustion chamber, causing excessive oil consumption (1 quart per 1,000-2,000 miles) and blue smoke from exhaust. This issue becomes more prevalent in higher-mileage engines (60,000+ miles). Failed seals contribute to carbon buildup on intake valves, fouled spark plugs, and potential catalytic converter damage from oil burning ($3,000-$5,000 additional). S63TU improved oiling system but still experiences this issue. BMW issued TSB for N63/S63 engines addressing valve stem seal replacement procedure and updated parts. M5Board: catch this early before catalytic converter damage.

BMW X5(1 issue)

  • Carbon Buildup on Intake Valves (Direct Injection Engines)2007-2023

    Direct injection engines (N55, N63 in E70/F15/G05 X5) don't spray fuel over intake valves - fuel is injected directly into cylinder. This means carbon deposits build up on intake valve backs over time from PCV system oil vapors that bake into hard deposits. This reduces airflow, causes rough idle, misfires, and loss of power. ALL BMW direct injection engines (N54, N55, N63, S63, B58) suffer from this issue. Walnut blasting service required every 60,000-80,000 miles to clean intake valves ($400-800). Chemical cleaners (Seafoam, CRC) don't work on DI engines - only physical walnut blasting removes carbon. Catch can installation ($300-500) helps reduce carbon buildup by filtering PCV oil vapors before they reach intake valves.

BMW X6(1 issue)

  • N63 Valve Stem Seal / Oil Consumption (xDrive50i)2008-2023

    The N63 4.4L twin-turbo V8 engine in X6 xDrive50i across all generations (E71, F16, G06) suffers from premature valve stem seal degradation causing excessive oil consumption. The hot-vee configuration where turbos sit between the cylinder banks creates extreme heat that degrades the valve stem seals faster than normal. Oil consumption of 1 quart per 1,000 miles or more is common. BMW issued TSB MC-10149960-9999 acknowledging the issue. The repair is extremely labor-intensive requiring cylinder head removal. Elring seals 11340039494 ($80-120/set of 16, need 2 sets for V8) are OEM spec. 5150 AutoSport Viton seals ($150-200) are upgraded aftermarket option. AGA Tools kit AGA-N63-VSK-K ($500-800) includes specialized tools for the job.

BMW Z4(1 issue)

  • N54 High Pressure Fuel Pump (HPFP) Failure - E89 Z4 sDrive35i/35is2009-2011

    The E89 Z4 sDrive35i and 35is use the N54 3.0L twin-turbo engine which has a well-documented high pressure fuel pump (HPFP) failure. The original HPFP used a split-design where fuel goes to one half and lubrication to the other, separated by an internal O-ring that degrades prematurely causing loss of fuel rail pressure. When the HPFP fails, the engine cannot maintain fuel pressure under boost, causing immediate loss of power, misfires, and potential engine stalling at highway speeds - a serious safety concern. BMW issued TSB SI B13 03 09 acknowledging the defect and released multiple revised pump versions. Early 2009 Z4 35i models are most affected. The HPFP went through multiple revision indexes, with the latest being the most reliable.

Looking for P0171 on a different make?

View P0171 across all makes →

Frequently Asked Questions

What does P0171 mean on BMW?▼

P0171 stands for "System Too Lean (Bank 1)." This code means the engine's computer has detected that the air-fuel mixture on Bank 1 (the side of the engine with cylinder #1) is running too lean — meaning there is too much air relative to fuel. The computer watches the oxygen sensors and has had to add a large amount of extra fuel (long-term fuel trim) to try to compensate, but it has hit its correction limit. A lean condition can cause rough idle, hesitation, reduced power, and over time can run the engine hotter than normal. It usually points to either unmetered air leaking into the engine or not enough fuel being delivered. On BMW specifically, this code is documented across 12 models.

What causes P0171 on BMW vehicles?▼

Common causes on BMW: Vacuum or intake air leak (cracked hose, gasket, or PCV system), Dirty or failing mass airflow (MAF) sensor, Weak fuel pump or restricted fuel filter, Clogged or dirty fuel injectors, Faulty or aged upstream oxygen sensor. Specific causes vary by model and year — see the per-model sections below.

How much does it cost to fix P0171 on a BMW?▼

Repair costs on BMW range from $180 to $15,000, depending on the specific model and root cause.

Which BMW models have P0171 documented?▼

Au7o has documented P0171 on 12 BMW models: 1 Series, 3 Series, 4 Series, M3, M3 CS, M340i, M4, M4 CS, M5, X5, X6, Z4.

Share:@au7o.io