P0171 System Too Lean (Bank 1): Causes and Checks
In this guide
- How the computer decides the engine is lean
- The fuel trim test that narrows it down
- Cause 1: Vacuum and intake leaks
- Cause 2: Dirty or failing MAF sensor
- Cause 3: Fuel delivery
- Cause 4: Exhaust leaks and sensor problems
- Cause 5: Everything else on the list
- Order of work, cheapest first
- After the repair
- Mistakes to avoid
- Verdict
P0171 means the engine computer is adding as much fuel as it is allowed to on bank 1 and the mixture is still lean. The decision you face is where the extra air is coming from or where the missing fuel went. The short answer: read the fuel trims at idle and at about 2,500 rpm before you buy anything. Trims that are high at idle and improve with rpm usually mean a vacuum leak; trims that stay high or climb with load point at airflow sensing or fuel delivery. This is an editorial, spec-based guide using factory service manuals, federal rules and product listings; no testing was done.
Disclosure: As an Amazon Associate I earn from qualifying purchases. Some brands featured below (ATDIAG, ThermoHalo) pay a bonus commission through Amazon Creator Connections. See /disclosure/.
How the computer decides the engine is lean
A warm engine runs in closed loop: the front oxygen sensor tells the computer whether the exhaust is lean or rich, and the computer adjusts injector pulse width to correct it. Those corrections are fuel trims, shown as a percentage. Positive means adding fuel, negative means removing it.
- Short-term fuel trim (STFT) moves constantly as the sensor switches.
- Long-term fuel trim (LTFT) learns the average correction and holds it, so short-term can stay near zero.
Mazda’s Mazda 6 workshop manual describes P0171 in exactly those terms: the computer watches short-term and long-term trims in closed loop and sets the code when they exceed its programmed limits. Suzuki’s Swift manual gives one concrete limit: total trim (short plus long) above 30 percent, confirmed over two drive cycles. Your vehicle’s threshold may differ.
The federal OBD rule, 40 CFR 86.1806-05, treats fuel-system faults like misfires: once the fault stops, the light may go out after three trips under similar conditions (engine speed within 375 rpm and load within 20 percent). So a lean code that comes and goes is common, and the trims tell you more than whether the light is on today.
The fuel trim test that narrows it down
You need a scanner that shows live data for STFT and LTFT, ideally both banks, plus engine speed and MAF airflow. With the engine fully warm:
- Read STFT and LTFT at idle for a minute. Add them together.
- Hold the engine at about 2,500 rpm in park or neutral and read them again.
- Note bank 1 vs bank 2 if your engine has two banks.
- If you can do it safely with a helper, watch the trims on a steady cruise and under light acceleration.
| What you see | What it often points to |
|---|---|
| High positive at idle, drops toward normal at 2,500 rpm | Vacuum leak: a fixed leak matters less as total airflow rises |
| High positive at all rpm, worse under load | Low fuel pressure or weak pump, clogged filter, restricted injectors |
| High positive at all rpm, both banks, MAF reads low for the rpm | Dirty or failing MAF sensor, or a leak in the intake boot after the MAF |
| P0171 only (bank 1), bank 2 normal | Something on bank 1 only: an intake gasket, injector or exhaust leak near bank 1’s front sensor |
| Both P0171 and P0174 | Something shared: MAF, fuel pressure, PCV, a large central vacuum leak |
These patterns are diagnostic shortcuts, not proof. Your service manual’s chart for the engine governs. Live data on an OBD2 scanner shows how to set up the readings and record them.
If you want the trims as a graph, the V321-style code reader with live data graphing, sold as a variation of the ThermoHalo listing, adds graphing and a battery tester per its listing, with the same engine-only scope. For logging a whole drive on your phone, the OBDLink MX+ works with third-party apps. Best OBD2 scanner compares the field.
Cause 1: Vacuum and intake leaks
Unmetered air enters after the MAF sensor measured it, so the computer injects fuel for less air than the engine is actually getting. Where to look:
- The intake boot between the MAF and throttle body, especially its folds and clamps
- PCV valve and hoses; a stuck-open PCV or cracked hose is common on older engines
- Brake booster hose and check valve
- Intake manifold gaskets and throttle body gasket
- Small vacuum lines to the EVAP purge valve and other actuators
Listen for hissing at idle. A smoke machine is the reliable way to find small leaks; many shops offer the test on its own. Spraying flammable cleaner around a hot engine to find leaks is risky, so do not do it near ignition sources.
Cause 2: Dirty or failing MAF sensor
A contaminated MAF hot wire or film reports less air than is flowing, so the engine runs lean everywhere, often worse at higher airflow. Compare the MAF reading with what the service manual expects at idle and 2,500 rpm.
Cleaning is cheap and worth trying first. CRC’s MAF sensor cleaner page recommends cleaning at every air filter change or at least once a year, lists the product as plastic safe and fast-evaporating, and says to use it in a ventilated area with glasses and gloves. Use only a cleaner labeled for MAF sensors, disconnect the sensor first, do not touch or wipe the element, and let it dry completely before reconnecting. A torn or badly fitted air filter that lets dirt past is a common reason the sensor got dirty in the first place.
Cause 3: Fuel delivery
If trims are high at all speeds and get worse under load, the engine may simply not be getting enough fuel: a weak pump, a clogged filter, a faulty regulator or restricted injectors. Checking fuel pressure needs a gauge and your engine’s specification, and the system stays pressurized after shutdown. Follow the service manual’s relief procedure or let a shop test it. Low fuel level on a car with a weak pump can make the problem appear only on hills or hard corners.
Cause 4: Exhaust leaks and sensor problems
An exhaust leak ahead of the front oxygen sensor can draw air in on each pulse, so the sensor reads lean when the engine is not, and the computer adds fuel that it did not need. A slow or contaminated front sensor can do the same. Check for leaks at the manifold and the front pipe, and look at how quickly the sensor switches in live data.
Cause 5: Everything else on the list
Suzuki’s manual also lists coolant temperature, intake air temperature, throttle position and MAP sensor performance, and EVAP and PCV faults. A coolant sensor stuck reading warm, for example, can make the computer under-fuel a cold engine. These are less common than leaks and MAF issues, but they are cheap to check in live data.
Order of work, cheapest first
| Step | Check | Tools |
|---|---|---|
| 1 | Save codes and freeze frame; read STFT and LTFT at idle and 2,500 rpm | Scanner with live data |
| 2 | Inspect intake boot, PCV and vacuum hoses; listen for hissing | Eyes, ears, flashlight |
| 3 | Clean the MAF sensor; check the air filter fits properly | MAF cleaner |
| 4 | Smoke test for leaks | Shop or smoke machine |
| 5 | Fuel pressure test to spec | Gauge, service manual |
| 6 | Exhaust leaks ahead of the front sensor; sensor response | Visual, live data |
After the repair
Clear the codes, then watch long-term fuel trim settle back toward small values over a few drives. On many cars the long-term value relearns gradually rather than instantly. Confirm the fuel-system monitor and others show complete before an emissions test; readiness monitors and smog checks covers what inspection stations accept. If the lean condition caused misfires, also read P0300 random misfire, and keep an eye out for a later P0420 catalyst code.
Mistakes to avoid
- Replacing the oxygen sensor first. The sensor is usually reporting a real lean condition, not causing it.
- Clearing the code and waiting. You lose the freeze frame and learn nothing.
- Touching the MAF element or using the wrong cleaner. Both can ruin the sensor.
- Ignoring the intake boot. A small split in a fold may only open when the engine rocks under load.
- Comparing your trims with another car’s. Use your engine’s specification and the before-and-after change.
Verdict
P0171 is a math problem: the computer is adding fuel for air it did not measure, or making up for fuel that did not arrive. Fuel trims at idle and 2,500 rpm tell you which. Check hoses and the intake boot, clean the MAF, smoke test, then test fuel pressure, in that order, and let the trims prove the fix.
Frequently asked questions
What does P0171 mean?
P0171 means the engine computer has had to add more fuel than its limit allows to keep bank 1 at the right air-fuel ratio. It measures this through fuel trims: short-term trim reacts second by second to the oxygen sensor, and long-term trim learns a correction over time. When the combined correction stays too far positive, the computer concludes there is too much air or too little fuel and sets the code. P0174 is the same fault on bank 2.
What is the most common cause of P0171?
Unmetered air, usually a vacuum leak after the mass airflow sensor, is the most common pattern: a cracked intake boot, PCV hose, brake booster hose or intake gasket. Other common causes are a dirty or failing mass airflow sensor, low fuel pressure, clogged injectors and an exhaust leak ahead of the front oxygen sensor. A Suzuki service manual lists all of these, plus PCV and EVAP faults, as possible causes.
Can I drive with P0171?
Usually for a short time if the light is steady and the engine runs normally, but do not ignore it. A lean mixture can cause misfires, hesitation and higher combustion temperatures, and a misfire can damage the catalytic converter. If the check engine light starts flashing, EPA's guidance is to minimize driving and get it fixed promptly.
What fuel trim numbers mean a lean problem?
Limits vary by maker. One example: Suzuki's service manual sets P0171 when total fuel trim, short-term plus long-term, exceeds 30 percent. Healthy engines usually run with small trims close to zero. What matters most for diagnosis is how the trims change between idle and about 2,500 rpm, and between bank 1 and bank 2.
Will cleaning the MAF sensor fix P0171?
Sometimes, if the sensor is contaminated and under-reporting airflow. Use a cleaner made for MAF sensors, spray it without touching the sensing element, let it dry fully and reinstall. CRC suggests cleaning at each air filter change or at least once a year. If trims do not improve afterward, the sensor may be failing, or the cause is elsewhere.
Keep planning
- P0300 Random Misfire: Causes and What to Check First
P0300 random misfire code explained: what the engine computer counts, the order to check plugs, coils, vacuum leaks and fuel, and when to stop driving.
Updated Oct 2026 - P0420 Code: Catalyst Efficiency Below Threshold, What to Check
P0420 code explained: what catalyst efficiency below threshold means, the checks to run before replacing the cat, and the converter rules that apply.
Updated Oct 2026 - Best OBD2 Scanner for DIY Owners: Picks by Need
The best OBD2 scanner for DIY owners, picked by need: basic code reader, Bluetooth app, ABS/SRS handheld or bidirectional tool, compared on published specs.
Updated Oct 2026