What does code P0171 mean on a BMW and is it safe to drive?
P0171: System Too Lean (Bank 1). Here's what it means on your BMW, what usually causes it, what repairs typically cost, and how safe it is to keep driving.
What this code means
The engine is getting too much air relative to fuel. The O2 sensor sees excess oxygen in the exhaust and the PCM is adding more fuel than normal to compensate.
Common causes for your BMW
- Dirty or faulty mass airflow (MAF) sensor
- Vacuum leaks (PCV hose, intake gasket, brake booster)
- Weak fuel pump or clogged fuel filter
- Leaking or stuck open fuel injectors (less common)
Symptoms
- Check Engine Light
- Rough idle, hesitation, lack of power
- Possible spark knock under load
- Poor fuel economy
Typical fixes
- Clean or replace MAF sensor
- Locate and seal vacuum leaks
- Replace fuel filter / test fuel pressure
- Smoke test intake system
Repair cost range
For a BMW, repairs for P0171 often fall between $50 and $500, depending on the cause and whether you use OEM or aftermarket parts. Labor rates vary by location.
Known issues on BMW
BMW P0171 on N52 2.5L/3.0L inline-six engines is most frequently caused by the crankcase vent system—the CCV (Crankcase Ventilation Valve) diaphragm in the valley cover cracks, introducing unmetered air into the intake. This is so common it's considered a routine maintenance item on N52 engines. The DISA valve (Differentiated Air Intake System) is also a common P0171 cause on N52—the plastic flap breaks and causes an intake manifold leak. On N54 twin-turbo, boost leaks from charge pipe couplers are the first thing to check.
Most commonly affected models