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.
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.