P0171: System Too Lean (Bank 1)
Quick Answer
Safe to drive (short-term)
P0171 means the air-fuel mixture on Bank 1 (the cylinder bank with cylinder 1) is too lean: too much air or too little fuel. The ECU keeps adding fuel to hit the 14.7:1 target ratio, but it has run out of room to compensate, so long-term fuel trim climbs past about +15% and the light comes on. The single most common cause is unmetered air entering after the airflow sensor, usually a vacuum or intake leak. Most fixes land between 100 and 350 EUR.
- Severity
- Moderate · Fuel System
- Estimated repair cost
- From €30 to €700+, varies by vehicle
€30 or €700, depending on your car.
- Clean or replace MAF sensor€30–€260
- Replace fuel pump€200–€700
A scan shows whether P0171 is really stored on your car, which codes sit next to it and how urgent each one is.
A scan needs a Bluetooth OBD2 adapter (Bluetooth LE on iPhone), about €25-60; the built-in demo runs without one. See which adapter to buy
What does P0171 mean?
P0171 is a fuel system-related diagnostic trouble code classified as moderate severity.
Where it is on the car
- Air filter box
- Mass airflow sensor (MAF)
- Throttle body and throttle position sensor
- Intake manifold and MAP sensor
- Engine (cylinder head)
A lean code usually means extra air is getting in after the MAF sensor, for example through a leaking intake hose, a cracked vacuum line or a worn manifold gasket. The intake manifold side is the first place to look. A dirty MAF sensor that reads too little air is the other common cause.
What are the symptoms of P0171?
- Check engine light illuminated (often steady, flashing only if a lean misfire develops)
- Rough, high, or surging idle
- Hesitation or stumble during acceleration
- Reduced fuel economy, because the ECU dumps in extra fuel to chase the correct ratio
- Engine may stall at idle or feel like it almost stalls when stopping
- Hissing or whistling sound from a vacuum leak under the hood
- Occasional lean misfire, which can set P0300 or a cylinder-specific misfire code
What causes P0171?
Vacuum or intake air leak (cracked intake hose, failed intake manifold gasket, loose PCV hose, leaking brake booster line), letting unmetered air in that the ECU never accounted for
: high
Dirty or failing Mass Air Flow (MAF) sensor that underreports incoming air, so the ECU injects too little fuel for the air actually entering
: high
Leaking or stuck-open PCV valve or oil separator diaphragm, which acts as a large uncontrolled vacuum leak when it splits
: medium
Low fuel pressure from a weak fuel pump or clogged fuel filter, starving the injectors so the mixture runs lean under demand
: medium
Clogged or partially blocked fuel injectors that cannot flow their rated fuel volume, leaning out the affected bank
: medium
Exhaust leak just upstream of the front O2 sensor, pulling in outside air that makes the sensor read lean even when the mixture is correct
: low
Is it safe to drive with P0171?
Generally yes, for short-term driving. Short-term driving is generally safe, but a lean condition can cause engine overheating and damage if left unaddressed. Avoid heavy acceleration and fix within a week.
How do you diagnose P0171?
- Read short-term and long-term fuel trims with a scan tool. Long-term fuel trim above roughly +15% at idle confirms the lean condition, and if it improves at higher RPM the leak is unmetered air at idle
- Smoke-test the intake, or spray brake cleaner or carb cleaner around the intake manifold gasket, vacuum hoses, and PCV connections. A momentary RPM change pinpoints the leak
- Inspect and clean the MAF sensor with dedicated MAF cleaner, never touching the sensor element, then recheck fuel trims
- Check fuel pressure at the rail with a gauge and compare to the manufacturer specification, watching for pressure drop under load that points to a weak pump or clogged filter
- Inspect the PCV valve, oil separator, and their hoses for cracks, splits, or disconnection
- Check for an exhaust leak just before the upstream O2 sensor, which can fool the sensor into a false lean reading
- Compare Bank 1 and Bank 2 trims on V engines. If both banks read lean, suspect a shared cause such as the MAF, fuel supply, or a leak before the throttle body
How much does P0171 cost to fix?
| Repair | Parts Cost | Labor Cost | Total Estimate | DIY Difficulty |
|---|---|---|---|---|
| Fix vacuum leak (replace hose or gasket) | €5–€60 | €60–€200 | €65–€260 | Moderate |
| Clean or replace MAF sensor | €10–€200 | €20–€60 | €30–€260 | Easy |
| Replace PCV valve or oil separator | €15–€150 | €40–€180 | €55–€330 | Moderate |
| Replace fuel pump | €100–€400 | €100–€300 | €200–€700 | Professional |
| Clean fuel injectors | €15–€50 | €50–€150 | €65–€200 | Moderate |
Prices estimated as of October 2026. Costs vary by region, vehicle, and shop.
Full repair guides
Engines known for this code
P0171 in the Skanyx app: what real cars show
Counts from fault-code scans in the Skanyx app in the 12 months to October 2026: 32 of the 806 cars that stored at least one code had P0171 stored.
- P0304 was stored on the same car in 7 of them
- P0302 was stored on the same car in 6 of them
- P0174 was stored on the same car in 5 of them
- P0300 was stored on the same car in 5 of them
- P0441 was stored on the same car in 4 of them
- 15 of the 15 cars with a known fuel type run on petrol
- Median model year 2005 (15 cars with a known year)
One car counts once, however often it was scanned. Figures below 15 cars are not shown. This is the fleet of one app's users, mostly in Europe, not a survey of the whole market.
P0171 on specific vehicles
P0171 on Mazda
Mazda CX-5
P0171 on Hyundai
Hyundai i30
P0171 on Kia
Kia Ceed
P0171 on Citroen
Citroen C3
P0171 on Opel
Opel Astra
Nissan
Nissan Altima
2002-2024
On the Altima, start with the mass air flow (MAF) sensor and the intake hose, then check the intake manifold gasket and vacuum hoses for a leak. If no air leak turns up, check fuel pressure.
Source: samarins.com
P0171 on Toyota
Toyota Camry
P0171 on Honda
Honda Civic
Volkswagen
Volkswagen Golf
2008-2013
On the Golf Mk6 2.0 TSI (EA888), look for air leaking in after the MAF sensor: the charge pipe and its connections, the intake hoses and the crankcase ventilation (PCV) system. If no leak turns up, check fuel pressure.
Source: en.wikipedia.org, samarins.com
P0171 on BMW
BMW 3 Series
P0171 on Ford
Ford Focus
Audi
Audi A4
2008-2015
On the 2.0 TFSI A4 (B8, 2008-2015), look for air leaking in after the MAF sensor: the crankcase ventilation (PCV) system, the intake manifold gasket and the charge pipe. If no leak turns up, check fuel pressure.
Source: en.wikipedia.org, samarins.com
Related diagnostic codes
Common questions about P0171
- What does P0171 mean?
- P0171 means System Too Lean on Bank 1: the air-fuel mixture has too much air or too little fuel. The ideal ratio is 14.7 parts air to 1 part fuel. The ECU keeps adding fuel to correct it, and when long-term fuel trim runs past about +15% without fixing the imbalance, it sets the code. Bank 1 is the side of the engine containing cylinder number 1.
- What are the symptoms of P0171?
- Common symptoms are a check engine light, rough or surging idle, hesitation on acceleration, worse fuel economy, occasional stalling at idle, and sometimes a hissing vacuum leak under the hood. In bad cases a lean misfire can develop and trigger a P0300 misfire code alongside P0171.
- What causes a P0171 code?
- The most common cause is unmetered air entering after the airflow sensor, usually a vacuum or intake leak or a failed PCV valve. Other frequent causes are a dirty MAF sensor that underreports airflow, low fuel pressure from a weak pump or clogged filter, clogged injectors, and an exhaust leak near the upstream O2 sensor that creates a false lean reading.
- Is it safe to drive with P0171?
- For short distances, generally yes, but it is not a code to ignore. A lean mixture raises combustion temperatures and can damage valves, pistons, and the catalytic converter over time, and a lean misfire can leave you stranded. Avoid hard acceleration and aim to diagnose and fix it within about a week.
- How do you fix and clear P0171?
- Fix the root cause first, then clear the code. Start with the cheap, high-odds items: clean or replace the MAF sensor, then smoke-test for vacuum and intake leaks and replace any cracked hoses, gaskets, or a failed PCV valve. If those are clean, check fuel pressure and injector flow. After the repair, clear the code with a scan tool or let the ECU relearn fuel trims over a few drive cycles and confirm it does not return.
- How much does it cost to fix P0171, and why does it often appear with P0174?
- Most P0171 repairs cost between 100 and 350 EUR. A MAF clean can be nearly free, a MAF clean or replacement at a workshop runs roughly 30 to 260 EUR, a vacuum hose or gasket 65 to 260 EUR, a PCV valve or oil separator about 55 to 330 EUR, and a fuel pump can reach 700 EUR with labor. On V engines P0171 (Bank 1) and P0174 (Bank 2) often appear together, which points to a shared cause affecting both banks such as a dirty MAF, low fuel pressure, or a large leak before the throttle body, rather than one isolated cylinder bank.
Read our detailed guides
- Next stepHow to Find Out What Is Wrong With Your Car for 15 Euros
- How to Fix P0171 (System Too Lean): Causes and Repair Cost
- PCV Valve Symptoms: Whistle, Oil Loss, Lean Codes and Cost
- How to Fix P0174 (Too Lean, Bank 2): Causes and Repair Cost
- What is OBD2? Complete Beginner's Guide to Car Diagnostics
- Check Engine Light Flashing? Stop Driving and Read This First
- Car Dashboard Symbols and Meanings: Warning Lights Explained
Sources
- en.wikipedia.org en.wikipedia.org/wiki/Mazda_CX-5
- en.wikipedia.org en.wikipedia.org/wiki/Gasoline_direct_injection
- samarins.com samarins.com/diagnose/p0171.html
- en.wikipedia.org en.wikipedia.org/wiki/Hyundai_Gamma_engine
- en.wikipedia.org en.wikipedia.org/wiki/Toyota_Camry_(XV50)
- en.wikipedia.org en.wikipedia.org/wiki/Honda_Civic_(eighth_generation)
- en.wikipedia.org en.wikipedia.org/wiki/Honda_Civic_(tenth_generation)
- en.wikipedia.org en.wikipedia.org/wiki/Volkswagen_Golf_Mk6
- ge39.com ge39.com/files/m54x5.pdf
- bimmerworld.com bimmerworld.com/Exhaust/O2-Sensors/BMW-Engine-Oxygen-Sensor-O2-11787545074.html
- bimmerworld.com bimmerworld.com/Exhaust/O2-Sensors/BMW-Engine-Oxygen-Sensor-O2-11787545075.html
- en.wikipedia.org en.wikipedia.org/wiki/BMW_3_Series_(E90)
- en.wikipedia.org en.wikipedia.org/wiki/Ford_Focus_(third_generation)
- en.wikipedia.org en.wikipedia.org/wiki/Audi_A4
