P0171

P0171: System Too Lean (Bank 1)

Your engine is getting more air than fuel. Seven times out of ten, the fix is a $4 vacuum hose or a $10 can of MAF cleaner. Here is how to find the real problem before a shop sells you a fuel pump.

Quick Facts
Typical fix cost
$10–600huge range, keep reading
Time to diagnose
45 minmaybe less
Can you drive?
Yesfix within weeks
DIY difficulty
Easyfor vacuum leak
§ 01 · The Basics

What P0171 actually means.

P0171 stands for "System Too Lean, Bank 1." In plain English: your engine computer has been adding more fuel than normal to keep the air-fuel ratio correct, and it has reached its limit. Either there is too much air getting in somewhere, or not enough fuel coming out of the injectors.

The key word is system. P0171 is not about a specific part. It is the computer reporting that despite its best efforts to compensate, something is making the engine run lean. Your job is to figure out what that something is. The good news: 70% of the time, it's cheap and easy to find.

i
Bank 1 vs Bank 2. Bank 1 is the side of the engine containing cylinder #1. On 4-cylinder inline engines, there is only Bank 1. On V6 and V8 engines, P0174 is the same code on the other bank. If you see both P0171 and P0174 together, that points to a common cause affecting both banks (MAF sensor, fuel pressure, big vacuum leak).
§ 02 · The Science

Understanding fuel trim in 2 minutes.

Your engine's computer constantly adjusts fuel delivery to maintain the ideal 14.7:1 air-to-fuel ratio. It does this through fuel trim, measured as a percentage.

  • Short-Term Fuel Trim (STFT): Quick adjustments the computer is making right now, based on O2 sensor readings. Normal range: -10% to +10%.
  • Long-Term Fuel Trim (LTFT): The average correction the computer has learned over time. Normal range: -7% to +7%.

Positive fuel trim means the computer is adding fuel (because it thinks the engine is running lean). Negative means it is removing fuel (running rich).

The magic number for P0171. When LTFT reaches roughly +25%, the computer has maxed out its ability to compensate. That's when it sets P0171. Reading fuel trim with a scan tool gives you a direct window into the problem.

On most scan tools you will see these values at idle and at 2500 RPM. The difference between them is diagnostic gold. For example, if LTFT is +20% at idle but drops to +3% at 2500 RPM, you almost certainly have a vacuum leak. Why? Because at higher RPM the engine moves enough air to make a small vacuum leak insignificant.

§ 03 · Why It Happens

Common causes, ranked by probability.

Based on roughly 400 P0171 cases I have worked on, here's the breakdown. Note how unbalanced this list is — vacuum-related issues dominate.

Vacuum leak (hose, gasket, PCV) ~45%

The #1 cause by a wide margin. Cracked rubber vacuum lines, failed PCV valves, leaking intake manifold gaskets, or a bad brake booster diaphragm. Most common on engines past 80,000 miles.

Dirty or failing MAF sensor ~25%

Mass Airflow sensors get coated with oil residue from the air filter. Dirty MAF reads less air than is actually entering, so the computer adds less fuel, causing a lean condition. A $10 can of CRC MAF Cleaner often fixes this.

Exhaust leak before the O2 sensor ~10%

A crack or hole in the exhaust manifold or downpipe, before the upstream O2, lets outside air in. The O2 sensor reads extra oxygen and tells the computer the engine is lean. Often audible as a tick that gets louder with RPM.

Weak fuel pump or clogged filter ~8%

Actual fuel delivery problem. Low fuel pressure means the injectors can't spray enough fuel. Confirm with a fuel pressure gauge before replacing anything — should be 40-60 psi on most vehicles.

Dirty or leaking fuel injectors ~7%

Clogged injectors spray less fuel; leaking injectors dump it in the wrong place. Less common than people think. A good Techron or BG 44K treatment handles the mild cases.

Failing O2 sensor (false reading) ~3%

A lazy upstream O2 can report lean when the engine is actually fine. Rare as a primary cause, but possible. Check O2 voltage swings — should oscillate 0.1V to 0.9V rapidly.

Other (EVAP, EGR, wiring) ~2%

Stuck-open EGR valve, leaking EVAP purge solenoid, or bad sensor wiring. Rare, but worth checking once you've eliminated the common stuff.

!
Shops love to quote fuel pumps for P0171. A fuel pump replacement is $400-800 in labor alone. If a shop quotes you a fuel pump for P0171 without first showing you a fuel pressure test and ruling out vacuum leaks, walk out. Actual pump failure is under 10% of cases.
§ 04 · Diagnosis

Diagnose it yourself in 45 minutes.

You need a scan tool that reads live fuel trim data. The BlueDriver (~$120) and Autel MS309 (~$30) both work. For the vacuum test you need nothing but your ears.

Read fuel trims at idle and 2500 RPM

Warm engine, connect scan tool, note STFT and LTFT values at idle. Then hold the engine at 2500 RPM steady for 30 seconds and read them again. Write down all four numbers.

Interpret the pattern

Here's what the numbers tell you:

  • High at idle, normal at 2500: Vacuum leak. The leak's effect shrinks as RPM increases.
  • High at both idle and 2500: MAF sensor, fuel delivery, or exhaust leak. Leak wouldn't behave this uniformly.
  • High only at 2500: Fuel delivery problem. Demand exceeds what the pump can supply under load.

Inspect vacuum hoses with the engine running

At idle, listen for a hiss. Wiggle each rubber hose — any hiss that starts, stops, or changes when you wiggle a hose means a crack. Check the PCV hose, brake booster hose, and any small lines around the intake manifold.

The propane or carb cleaner test

With the engine idling, spray a short burst of carb cleaner or use a propane torch (unlit, just the gas) around suspected leak areas. If the idle speed changes or the engine stumbles, you found the leak. Common spots: intake manifold gasket, throttle body gasket, PCV valve, vacuum hose ends.

Check and clean the MAF sensor

The MAF sensor is in the intake tube between the air filter and throttle body. Unplug it, unscrew the housing, spray CRC MAF Sensor Cleaner (not carb cleaner) on the two wires inside. Let dry 5 minutes, reinstall. Clear the code and drive. If LTFT drops significantly, you're done.

Fuel pressure test (if needed)

If you've ruled out vacuum leaks and MAF issues, rent a fuel pressure gauge (AutoZone lends them free). Connect to the fuel rail test port. Key on, engine off: should hit spec (usually 40-60 psi). Engine running: should hold that pressure. Drops mean weak pump, clogged filter, or bad regulator.

§ 05 · What You Feel

What P0171 feels like.

SymptomHow common
Check engine light onAlways
Rough idleCommon with vacuum leaks
Hesitation on accelerationSometimes
Slight misfire / shakingIn severe cases
Poor fuel economyOften 5-15% drop
Engine stalls at idleBig vacuum leaks only
Sputtering at WOTFuel delivery problems
§ 06 · Pricing

Real cost breakdown.

FixDIYShop
MAF cleaning (with CRC cleaner)$10$50–100
Vacuum hose replacement$5–30$80–200
PCV valve replacement$10–25$60–150
Intake manifold gasket$30–80$250–600
New MAF sensor (if cleaning fails)$80–300$200–500
Fuel filter replacement$20–60$120–250
Fuel pump replacement$150–400$600–1,200
Fuel injector cleaning (shop)N/A$100–200
Full injector replacement$100–300$400–900
Statistical reality. If you fix P0171 in the right order (vacuum first, MAF second, fuel system last), about 80% of cases are resolved for under $50 total. The $900 fuel pump fix is real, but it is rare — make sure you've ruled out everything else first.
§ 07 · The Fix

The right order to actually fix it.

This order is calibrated to cost. Start cheap, move expensive only if cheap fails.

Inspect and replace cracked vacuum hoses

Any rubber line with a visible crack, split, or mushy spot gets replaced. Generic vacuum hose by the foot is under $5 at any parts store. Don't forget the brake booster hose — it's a common weak point.

Replace the PCV valve

Cheap preventive maintenance. PCV valves are $8-25 and typically take 2 minutes. Pull the old one, shake it — a good one rattles freely. Stuck or clogged ones cause lean codes.

Clean the MAF sensor

Use CRC MAF Sensor Cleaner specifically — other cleaners can damage the delicate wires. Spray generously on the wires, let dry completely. This fixes about 20% of P0171 cases on its own.

Clear code and drive 50-100 miles

If LTFT has normalized (under +10%), you're done. If it's still high, move to the next step.

Test fuel pressure

Before spending big on a fuel pump, confirm the symptom with an actual pressure reading. Low pressure means pump or filter. Normal pressure means the lean condition is coming from somewhere else.

Last resort: smoke test

If you can't find the leak, a shop smoke test ($40-80) fills the intake with non-toxic smoke to reveal hidden leaks. This is how we find the weird stuff — cracked intake plastics, leaking throttle body gaskets, failed brake booster diaphragms.

§ 08 · Driving

Can you keep driving?

✓ Short-term OK

Mild P0171, no misfires

Drive normally, schedule the fix within 2-3 weeks. Gas mileage will be mildly worse. Not an emergency.

✗ Fix soon

P0171 + misfire codes

A lean mixture that causes misfires will destroy the catalytic converter. Don't postpone this. See our P0300 misfire guide if you have both codes.

Long-term lean conditions also wear out the upstream O2 sensor and can lead to P0420 catalytic converter codes. Fix it in weeks, not months.

§ 09 · By Make

P0171 patterns by brand.

Make / EngineMost common cause
Ford 5.4L (F-150, Expedition)Intake manifold gasket — known failure point
BMW N54/N55 turbo enginesCharge pipe cracks, PCV diaphragm
VW/Audi 2.0T (TSI)PCV diaphragm failure is notorious
Toyota 2.4L/2.5LDirty MAF sensor, cracked intake boot
Honda K-series (Civic/CR-V)Intake manifold gasket, PCV valve
GM 3.6L V6Intake manifold gasket at 100k+ miles
Subaru EJ25 (Forester/Outback)Cracked intake Y-pipe, loose intake bolts
§ 10 · FAQ

Questions people always ask.

Only if the cause is dirty injectors or moderate carbon buildup, which is under 10% of cases. Techron or BG 44K is worth a try at $10-15, but don't expect it to fix a vacuum leak or MAF problem.

Usually not. Bad gas caps trigger EVAP codes (P0440, P0442, P0455), not lean codes. They're unrelated systems. A shop telling you "it's your gas cap" when the code is P0171 is guessing or stalling.

Because the underlying cause is still there. Clearing the code just resets the computer's record — it doesn't fix anything. The light returns once the drive cycle detects the lean condition again, usually within 50-200 miles.

Cold weather can unmask existing problems. Rubber vacuum hoses contract and crack more in cold. MAF sensors read slightly differently at low intake temps. If your P0171 appears every winter and disappears in summer, you have a marginal leak that opens up in the cold.

Same code, different engine banks. P0171 is Bank 1, P0174 is Bank 2. Only V6/V8 engines have both banks. If you see both, look for something that affects the whole engine: MAF sensor, fuel pressure, large vacuum leak, failed intake gasket spanning both sides.

Briefly. A nearly empty tank can momentarily cause a lean condition, but the light clears once you refuel and drive a normal cycle. Persistent P0171 means something mechanical is wrong, not just low fuel.

MR
Written by
Marcus Reid
ASE Master Technician, L1 Advanced. 22 years of shop experience. Full bio →