BMW · Fuel System · Moderate code

P0171 on BMW: How to Diagnose & Fix

System Too Lean (Bank 1)

8 BMW models · 12 documented issues · 2 critical · $180-$12,000 repair

Share:@au7o.io

P0171 on BMW by model: symptoms, diagnosis and fix

Community reported
1,300 owners

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 11127570292KT4
    OEM11127570292

    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.

Typical repair cost:$400 - $900
Sources for this issue (1)

Research This Issue

Based on 1,300 owner reports

Community Reported
High ConfidenceVerified1,300 owner reportsLast reported by owners Apr 2023Updated Oct 27, 2026
Community reported
950 owners

The N55 in the 335i is a direct-injection engine. Fuel is sprayed straight into the cylinders, so it never washes over the backs of the intake valves, and carbon builds up on them. Oil vapor that gets into the intake adds to the deposits. Over time the buildup restricts airflow and can cause rough idle, misfires, loss of power and lower fuel economy. FCP Euro notes the buildup on the N54 and N55 can get bad enough to almost close off the intake ports and valves.

Common Symptoms

  • Rough idle
  • Misfire codes
  • Hesitation or loss of power
  • Poor fuel economy

How to Fix

1. Confirm the cause first. A rough idle or misfire alone does not prove the valves need cleaning. Read the fault codes and rule out other causes such as ignition faults, fuel delivery problems and air leaks. If those check out, have the intake valves inspected to see whether the deposits are heavy enough to explain the problem. 2. If the valves are heavily coated, the repair is a walnut-shell blast cleaning. The intake manifold comes off, crushed walnut shell is blasted into each port to scrub the carbon off the valves, and a shop vacuum pulls out the media and debris. The cylinder head stays on. One shop replaces the OEM intake manifold gaskets as part of the job. BMWBlog says the cleaning is usually recommended around 60,000 miles. FCP Euro gives roughly 30,000-50,000 miles and says tuned engines may need it sooner. Cleaning will not fix a bad injector, an ignition fault or a worn part, so it only helps if carbon was the cause. 3. Cost: one independent BMW shop (Speed Logic) lists walnut blasting for the N54/N55/N20 at $300, including new OEM intake manifold gaskets. FCP Euro says a dealer can charge over $700. Prices vary by shop, so compare quotes that cover the same work. 4. Prevention: an oil catch can reduces the oil vapor that reaches the intake. It slows new buildup but does not remove carbon that is already there.

What you need to diagnose it

The repair instructions explicitly call for reading stored codes. Use a scanner that can read the named code families before choosing a repair.The recommended scanner supports these code families; confirm your exact year, model and module coverage before buying.

  • ANCEL AD310 Classic OBD-II Scanner

    Read & clear engine (P) codes

    $20–$40View

As an Amazon Associate, we earn from qualifying purchases. Prices are approximate and may vary.

Reading and clearing the code is DIY work. Module replacement or reprogramming is not — most modules are VIN-programmed, so a new one does nothing until a shop codes it to your car. Check for an open recall or service bulletin before buying anything.

Typical repair cost:$500 - $900
Sources for this issue (4)

Research This Issue

Based on 950 owner reports

Community Reported
High Confidence950 owner reportsLast reported by owners Aug 2023Updated Nov 7, 2026

BMW bulletin SI B12 02 12 states that various drivability complaints and/or misfire faults on N54 and N54T engines (including E90/E92/E93 3 Series) may be attributed to intake valve and port carbon deposits. Rough idle or misfire codes alone do not establish the cause; the bulletin routes the car through a test plan first and does not set a compulsory cleaning interval.

Common Symptoms

  • Various drivability complaints (rough idle, hesitation, power loss)
  • Check engine light with misfire faults

How to Fix

Use the engine-specific BMW diagnostic test plan before authorizing intake-valve cleaning. If the results identify intake-port coking, follow the applicable professional cleaning procedure. Diagnose other indicated causes when the result is inconclusive. Do not use a catch can, fuel brand or high-RPM driving as a proven cure.

Sources for this issue (1)

Research This Issue

Community Reported
Medium ConfidenceReviewed Oct 27, 2026
Community reported
290 owners

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.

Typical repair cost:$400 - $800
Sources for this issue (1)

Research This Issue

Based on 290 owner reports

Community Reported
High Confidence290 owner reportsLast reported by owners Mar 2026Updated Oct 27, 2026
Community reported
234 owners

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).

Typical repair cost:$500 - $1,000
Sources for this issue (1)

Research This Issue

Based on 234 owner reports

Community Reported
High Confidence234 owner reportsLast reported by owners Feb 2024Updated Oct 27, 2026
Community reported
65 owners

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.

Common Symptoms

  • Progressive loss of power and throttle response
  • Increasingly rough idle over months of driving
  • Cold-start misfires that diminish once warmed up
  • Decreased fuel economy compared to when new
  • Slight hesitation during tip-in throttle at low RPM

How to Fix

Walnut blast the intake valves every 40,000-50,000 miles. Consider installing an oil catch can to reduce oil vapor ingestion. Maintain strict 5,000-7,000 mile oil change intervals with BMW LL-01 approved oil. Allow full engine warmup before spirited driving to ensure proper crankcase ventilation operation.

Typical repair cost:$500 - $900
Sources for this issue (2)

Research This Issue

Based on 65 owner reports

Community Reported
High Confidence65 owner reportsLast reported by owners Mar 2026Updated Oct 27, 2026

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 8 models: 3 Series, M340i, M3, M4 CS, 1 Series, M5, Z4, X6.

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 $180 to $12,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 →
🔧
A mechanic who knows YOUR exact car
Answers tuned to your year, make, model & trim — not generic advice. Save your garage so it always has the right context.
Get notified about P0171 fixes on BMW
We add new causes, fixes and affected BMW models for P0171 regularly — drop your email and we'll keep you posted. You can also diagnose your own car free.

Join 700+ subscribers following Au7o for vehicle insights and updates.

Content compiled with AI assistance using NHTSA complaints, TSBs, and owner reports. May contain errors. Always verify with your vehicle's service manual.

Explore free Hub demo