P0171 on Mazda
System Too Lean (Bank 1)
P0171 on Mazda vehicles indicates system too lean (bank 1). Au7o has documented this code across 3 Mazda models — most commonly on 626, CX-5, RX-8. 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 Mazda range from $120 to $5,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 Mazda by Model
Mazda 626(1 issue)
- Rough idle / stalling from idle air control valve and intake manifold gasket1993-1999
A very common driveability complaint on the 626 is an unstable idle that surges, dips, or stalls at stops, most often caused by a sticking or dirty idle air control (IAC) valve and, on higher-mileage cars, leaking intake manifold gaskets that create unmetered vacuum leaks (the gasket often leaks on the underside where it is not visible from above). The problem is worsened by carbon buildup in the throttle body. It affects both the FS I4 and KL V6, and because these are age/mileage-driven wear items rather than a single defect, it shows up across the whole 1990s run.
Mazda CX-5(2 issues)
- Carbon Buildup on Intake Valves (Skyactiv)2013-2023
Direct-injection Skyactiv engines accumulate carbon deposits on intake valves due to oil vapors from the PCV system. Without port injection to clean valves, carbon can fuse to valve surfaces over time, typically appearing around 65,000+ miles.
- Excessive Engine Oil Consumption2013-2022
Defective valve stem seals allow oil to leak into combustion chambers, causing excessive oil consumption and potential catastrophic engine failure if oil levels drop critically low. Issue primarily affects 2013-2014 models with resurgence in 2021-2022.
Mazda RX-8(1 issue)
- Apex Seal Failure / Compression Loss2004-2012
The Renesis rotary engine in the RX-8 is infamous for apex seal wear and failure, leading to catastrophic compression loss. Apex seals maintain the combustion chamber seal between the rotor and housing. Heat, carbon deposits, and inadequate lubrication cause seals to wear, chip, or break. Compression testing below 6.5 kg/cm2 indicates rebuild is needed. This is the single most common and feared RX-8 issue.
Looking for P0171 on a different make?
View P0171 across all makes →Frequently Asked Questions
What does P0171 mean on Mazda?▼
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 Mazda specifically, this code is documented across 3 models.
What causes P0171 on Mazda vehicles?▼
Common causes on Mazda: 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 Mazda?▼
Repair costs on Mazda range from $120 to $5,000, depending on the specific model and root cause.
Which Mazda models have P0171 documented?▼
Au7o has documented P0171 on 3 Mazda models: 626, CX-5, RX-8.