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.
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).
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.
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.
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.
Bench-test specs for the diagnostic-curious.
If you want to verify MAF readings, fuel pressure, or fuel trim numbers like a dealer technician, this section gives you the actual specs to hit. P0171 is fundamentally a math problem: too much air, too little fuel, the engine compensates by adding fuel until it can't compensate anymore. These numbers tell you which side of the equation is broken.
Required tools: a digital multimeter (~$20), a fuel pressure gauge (rent free from AutoZone), a scan tool with live data (your $30 Bluetooth dongle works), and a propane bottle with a hose nozzle for the unconventional vacuum-leak test below. Optional: an oscilloscope for MAF frequency analysis.
MAF sensor wiring pinout
Modern MAF sensors are 5-wire hot-wire designs: power (12V), ground, sensor signal (frequency or analog voltage), reference voltage (5V), and an integrated intake air temperature (IAT) sensor signal. Wire colors vary by manufacturer, but the function of each pin is universal across Bosch, Hitachi, and Denso units.
MAF sensor output specifications
At idle, a healthy MAF on a typical 4-cylinder engine reads about 0.5–0.8 g/s (grams per second of air mass). On a V6, expect 0.8–1.2 g/s. The signal can be analog voltage (0.5V at idle, climbing to 4.5V at wide-open throttle) or frequency-based (Bosch-style: 1–2 kHz at idle, 8–10 kHz at WOT). What you read depends on your scan tool and the manufacturer's protocol.
| Engine Condition | Healthy MAF Reading | Lean Code Indicator | Verdict |
|---|---|---|---|
| Key on, engine off | 0.0 g/s | >0.1 g/s | Sensor stuck or wiring shorted |
| Idle, warm engine (4-cyl) | 0.5–0.8 g/s | <0.4 g/s with P0171 | Underreporting → causes lean condition |
| Idle, warm engine (V6) | 0.8–1.2 g/s | <0.7 g/s with P0171 | Same fix — clean or replace MAF |
| 2500 RPM, no load | 3.5–6.0 g/s | <3.0 g/s | Likely contaminated hot-wire element |
| Wide-open throttle (WOT) | 25+ g/s (4cyl) / 100+ (V8) | <15 g/s on small engines | MAF capping out — replace |
| 5V reference voltage | 4.95–5.05V steady | <4.5V or unstable | PCM reference fault, not MAF itself |
Fuel pressure specifications by injection type
Fuel pressure varies dramatically by engine design. Returnless port-injection (most cars 2000–2010) runs 40–65 psi. Direct-injection systems have a low-side (40–60 psi) and a high-side (500–3000+ psi) — and you cannot test the high-side with a normal gauge. For P0171 diagnosis, the low-side reading is what matters.
| System Type | Spec at Key-On | Spec at Idle | Drop Test (5 min) |
|---|---|---|---|
| Returnless port injection (most modern) | 55–65 psi | 55–65 psi steady | <5 psi drop |
| Return-style with regulator | 40–55 psi | 35–50 psi (vacuum-modulated) | <5 psi drop |
| GDI low-pressure side | 50–72 psi | 50–72 psi steady | <3 psi drop |
| Pressure during snap WOT | N/A | Hold within 3 psi of static | Drops >5 psi = weak pump |
Fuel trim diagnosis matrix
This is the single most useful table in P0171 diagnosis. Read your Long-Term Fuel Trim (LTFT) and Short-Term Fuel Trim (STFT) at idle and at 2500 RPM separately. The pattern tells you exactly where the leak is.
| Idle LTFT | 2500 RPM LTFT | Diagnosis | Fix First |
|---|---|---|---|
| +0% to +10% | +0% to +10% | Healthy | No issue |
| +15% or more | +5% or less | Vacuum leak (idle-only lean) | Smoke test or propane test intake |
| +10% | +15% or more | Underreporting MAF | Clean MAF with electronics cleaner |
| +15% | +15% or more | Fuel delivery weak | Pressure test the fuel pump |
| +25% or pegged | +25% or pegged | Major fuel starvation | Pump failure imminent — do not drive |
The propane test (best vacuum-leak finder)
Most shops use smoke machines, which work but cost $400+. The cheap-and-effective method uses a small propane torch (no flame). Connect a 6-foot rubber hose to the torch nozzle. Open the propane valve slightly (just enough to hear a hiss). With the engine idling and a scan tool watching STFT, slowly wave the open hose around suspected leak points: vacuum lines, throttle body gaskets, intake manifold seams, brake booster hose, PCV grommets.
When the propane crosses a vacuum leak, the engine sucks it in. STFT immediately drops 5–15% (the engine just "found" extra fuel via the propane, so it stops compensating). That sudden drop pinpoints the leak within seconds. Block the leak with your finger to confirm — STFT should normalize.
| Test Location | Healthy STFT Response | Leak Indicator |
|---|---|---|
| Around throttle body gasket | No change (±2%) | Drops 5–15% suddenly |
| Vacuum hoses (one at a time) | No change | Engine surges or STFT drops |
| Brake booster hose / valve | No change | Major STFT drop = booster diaphragm |
| Intake manifold gasket seams | No change | Localized drop = gasket failure |
| PCV valve / grommet | No change | Drop = cracked grommet (very common) |
Torque specifications
Over-tightening intake bolts strips aluminum threads. Under-tightening causes the very vacuum leaks you're trying to fix. Use a torque wrench. Always.
| Component | Torque (lb-ft) | Torque (Nm) | Notes |
|---|---|---|---|
| MAF sensor mounting screws | 15–22 in-lbs | 1.7–2.5 Nm | Torx T20/T25 — do not overtighten plastic housing |
| Intake manifold bolts (aluminum) | 7–9 lb-ft | 10–12 Nm | Star pattern, 2–3 passes. Always replace gasket. |
| Throttle body bolts | 7–9 lb-ft | 10–12 Nm | New gasket every removal |
| Fuel rail bolts | 7–10 lb-ft | 10–14 Nm | Use new injector O-rings on reassembly |
| PCV valve (threaded) | 5–7 lb-ft | 7–10 Nm | Many are push-in only — no torque spec |
| Vacuum hose clamps | 8–10 in-lbs | 0.9–1.1 Nm | Hand-tight plus quarter turn — don't crush the hose |
Diagnostic procedure summary
Before throwing parts at a P0171 code, run through this in order. Total time: 30 minutes.
- Read fuel trim at idle and 2500 RPM — Use the matrix above to narrow the cause to vacuum, MAF, or fuel.
- If matrix points to vacuum — Run the propane test on the intake. Confirmed leaks get fixed before anything else.
- If matrix points to MAF — Read g/s at idle. If reading is below spec, clean with MAF-specific cleaner. Retest. Replace if no improvement.
- If matrix points to fuel — Hook up pressure gauge. Verify static spec, watch for drop under load, check for retention after key-off.
- Verify 5V reference — On the MAF connector. If it's not 4.95–5.05V, the issue is upstream of the sensor (PCM or harness, not the MAF itself).
- Clear codes after each repair and drive 2–3 ignition cycles before retesting trim values. Trims learn slowly.
If steps 1–6 all check out and the trim is still pegged lean, you may have a secondary issue: failing oxygen sensor giving the PCM bad feedback, leaking fuel injector, or intake carbon buildup on direct-injection engines. These are rarer but real.
What P0171 feels like.
| Symptom | How common |
|---|---|
| Check engine light on | Always |
| Rough idle | Common with vacuum leaks |
| Hesitation on acceleration | Sometimes |
| Slight misfire / shaking | In severe cases |
| Poor fuel economy | Often 5-15% drop |
| Engine stalls at idle | Big vacuum leaks only |
| Sputtering at WOT | Fuel delivery problems |
Real cost breakdown.
| Fix | DIY | Shop |
|---|---|---|
| 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 |
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.
Can you keep driving?
Mild P0171, no misfires
Drive normally, schedule the fix within 2-3 weeks. Gas mileage will be mildly worse. Not an emergency.
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.
P0171 patterns by brand.
| Make / Engine | Most common cause |
|---|---|
| Ford 5.4L (F-150, Expedition) | Intake manifold gasket — known failure point |
| BMW N54/N55 turbo engines | Charge pipe cracks, PCV diaphragm |
| VW/Audi 2.0T (TSI) | PCV diaphragm failure is notorious |
| Toyota 2.4L/2.5L | Dirty MAF sensor, cracked intake boot |
| Honda K-series (Civic/CR-V) | Intake manifold gasket, PCV valve |
| GM 3.6L V6 | Intake manifold gasket at 100k+ miles |
| Subaru EJ25 (Forester/Outback) | Cracked intake Y-pipe, loose intake bolts |
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.