P0171 on BMW: How to Diagnose & Fix
System Too Lean (Bank 1)
11 BMW models · 18 documented issues · 2 critical · $150-$15,000 repair
P0171 on BMW by model: symptoms, diagnosis and fix
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.
Common Symptoms
- Burning oil smell
- Visible oil on engine
- Smoke from engine bay
- Oil drips on ground
- Rough idle if PCV failed
How to Fix
Replace valve cover and gasket as an assembly (PCV valve is integrated). Clean oil from exhaust manifold. Monitor for leaks after repair. This is a common maintenance item at higher mileage.
What you need to fix it
Only diagnosis- and fitment-reviewed repair parts are linked here.
- Rein N55 valve-cover kit 11127570292KT4OEM11127570292
Complete valve-cover/PCV replacement kit. Fitment: Verified F30 335i 2012-2015, 335i xDrive 2013-2015, and listed N55 applications; select the exact vehicle/VIN before ordering..
As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.
Sources for this issue (1)
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.
Common Symptoms
- Rough idle
- Loss of power
- Hesitation during acceleration
- Misfire codes
- Poor fuel economy
How to Fix
Walnut blast cleaning of intake valves every 50,000-70,000 miles. Install catch can to reduce oil vapor. Use quality fuel. BMW port injection on later engines helps reduce this issue.
Sources for this issue (1)
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.
Common Symptoms
- Rough idle
- Misfire codes
- Cold start rough running
- Knocking sound
- Check engine light
How to Fix
Replace failed injector(s) with correct index version. Consider cleaning service for carbon buildup. Use quality fuel. All injectors should be same index for proper operation.
What you need to fix it
Only diagnosis- and fitment-reviewed repair parts are linked here.
- Bosch N55 EU5 bottom-mounted injector 0261500063 / BMW 13537568607OEM13537568607Cross-ref0261500063
Fitment: N55 EU5 engines up to engine number 14407684 with bottom-mounted/secured injectors only..
- Bosch N55 EU5 top-mounted injector 0261500109 / BMW 13647597870OEM13647597870Cross-ref0261500109
Fitment: N55 EU5 engines from engine number 14407685 with top-mounted/secured injectors only..
- Genuine BMW N55 EU6 injector 13648625397OEM13648625397Cross-ref0261500260
Fitment: N55 EU6 applications only; verify VIN/engine data and installed injector EU version before ordering..
As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.
Sources for this issue (1)
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.
Common Symptoms
- Rough or unstable idle
- Hesitation on acceleration
- Power loss
- Poor fuel economy (2-3 MPG drop)
- Check engine light with misfire codes
- Engine runs rough when cold
- Hard starting
How to Fix
WALNUT BLASTING: Remove intake manifold and blast walnut shells through intake ports ($700-$1,200). Requires specialized equipment—not DIY-friendly. Repeat every 60,000-80,000 miles as PREVENTIVE maintenance. PREVENTION: Install catch can ($300-$500) to filter PCV vapors—extends cleaning interval. Use Top Tier gasoline. Change oil every 5,000-7,500 miles. Drive hard occasionally (Italian tune-up).
Sources for this issue (1)
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.
Common Symptoms
- Rough or uneven idle developing gradually
- Reduced throttle response and power
- Slight hesitation during acceleration from low RPM
- Minor misfires at idle, especially when cold
- Decreased fuel economy over time
How to Fix
Walnut blast the intake valves every 50,000-60,000 miles. This involves removing the intake manifold and blasting walnut shell media at the valve backs to remove carbon deposits. Some owners use catch cans to reduce oil vapor entering the intake. BMW's official position is that carbon buildup is normal for direct-injection engines.
Sources for this issue (1)
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.
Common Symptoms
- Gradual loss of power and throttle response
- Rough idle
- Decreased fuel economy
- Engine misfires
- Hesitation during acceleration
How to Fix
Walnut shell blasting to clean intake valves (every 50,000-70,000 miles). Catch can installation to reduce oil vapor entering intake. Regular Italian tune-ups (sustained high RPM driving) may slow buildup. Chemical cleaning treatments (less effective than walnut blasting).
Sources for this issue (1)
P0171 code reference
General diagnostic-code context. The code alone does not confirm a cause for your vehicle; use the applicable issue card and its sources.
Frequently asked questions
What does P0171 mean on a 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 it is documented across 11 models: 3 Series, M340i, M3, M3 CS, M4 CS, M4, M5, Z4, 1 Series, X6, 4 Series.
What are the most common causes of P0171?
The most common causes of P0171 are: 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. The specific cause varies by vehicle.
How much does it cost to fix P0171 on a BMW?
Published repair estimates on BMW range from $150 to $15,000 depending on the model and root cause. If an issue mentions a recall or campaign, check your VIN with the manufacturer or NHTSA and confirm eligibility and coverage with a dealer.
Looking for P0171 on a different make?
View P0171 across all makes →Content compiled with AI assistance using NHTSA complaints, TSBs, and owner reports. May contain errors. Always verify with your vehicle's service manual.