P0171

System Too Lean (Bank 1)

MODERATE
SystemFuel / Air
Difficulty
Cost$20–$600
Read8 min
MR
ASE Master Technician (L1 Advanced Engine Performance) · 18 yrs
·
Technically reviewed by Sara Lopez
·
Last updated

// Mechanic's notes — from the bay

On 5.4L Tritons I see in the shop, the cracked PCV elbow is the single most common cause — probably 6 out of every 10 P0171 vehicles. A 5-minute, $12 part. On 3.5L EcoBoost trucks past 80k miles, lean codes are split between intake-manifold gaskets and carbon-fouled MAF sensors. Always smoke-test before you start throwing parts at it.

What Does P0171 Mean?

P0171 means the air/fuel mixture on bank 1 is too lean — there's more air entering the engine than the ECM expected for the amount of fuel it commanded. To compensate, the ECM is adding extra fuel (positive fuel trim). When the long-term fuel trim exceeds roughly +20% or +25%, P0171 sets.

On a Ford F-150 with the 5.4L Triton or 3.5L EcoBoost, this code is almost always one of three things: a vacuum leak, a contaminated MAF sensor, or a failing PCV system. The fix is usually under $100 if you catch it early.

Symptoms

Rough idle
Especially noticeable at cold start or in gear at a stop.
Hesitation under light acceleration
Stumble when you tip into the throttle from cruise.
Reduced fuel economy
Counterintuitive — the ECM is compensating with extra fuel.
Hard cold start
Engine cranks longer than usual on first start of the day.
Ad · 728x90

Common Causes

  1. 1.Vacuum leak (intake gasket, PCV hose)
    45%

    Cracked PCV hoses on 5.4L Tritons and split intake manifold gaskets on 3.5L EcoBoosts are textbook.

  2. 2.Dirty / failed MAF sensor
    25%

    MAF reads low airflow, so ECM commands too little fuel; trims correct, P0171 sets.

  3. 3.Weak fuel pump or clogged filter
    15%

    Fuel pressure drops under load; trims max out trying to compensate.

  4. 4.Leaking fuel injector (low flow)
    10%

    Less common but worth checking on engines over 150k miles.

  5. 5.Exhaust leak before O2 sensor
    5%

    Pulls outside air across the upstream O2 sensor, faking a lean reading.

Step-by-Step Diagnosis

1

Check fuel trims at idle and 2500 RPM

Bring engine to operating temp. At idle, note STFT and LTFT. Then hold 2500 RPM steady for 60 seconds and note trims again. The pattern tells you where the leak is.

IDLE:        STFT +12.5%   LTFT +18.7%
2500 RPM:    STFT  +3.1%   LTFT  +5.2%
  → Trims drop with RPM = vacuum leak (small leak gets diluted at higher airflow)
2

Smoke-test the intake

Disconnect the intake hose at the throttle body and seal it. Pump shop smoke into the intake at 1–2 psi. Watch for smoke seeping from gaskets, PCV hose, brake booster line, or injector seals.

Pro TipIf you don't have a smoke machine, propane enrichment works: with the engine running, slowly wave an unlit propane torch around suspect areas. If RPM rises when you pass over a spot, that's your leak.
3

Inspect and clean the MAF sensor

Remove the MAF (two screws, one connector). Spray with CRC MAF-specific cleaner only — never carb cleaner or brake clean, which leave residue and ruin the hot wire. Let dry 5 minutes, reinstall.

WarningDo not touch the MAF hot wire with anything. Even a paper towel will break it.
4

Test fuel pressure under load

Hook up a fuel pressure gauge. On the 5.4L Triton, key-on engine-off should read 55–65 psi. If pressure drops more than 10 psi under wide-open throttle, suspect the fuel pump or clogged filter.

5

Recheck trims after each fix

Don't replace everything at once. Fix the most likely cause, clear the code, drive 10–15 miles, and recheck trims. They should settle within ±5%.

How to Fix It

DifficultyTime 2–3 hrs

Parts needed:

Procedure:

  1. Disconnect negative battery terminal.
  2. Remove engine cover and air intake tube.
  3. Inspect all vacuum hoses for cracks, especially at right-angle bends.
  4. Replace PCV valve and hose if brittle.
  5. Clean MAF sensor with MAF-specific cleaner.
  6. Reinstall, reconnect battery, clear codes.
  7. Drive 15 miles mixed cycle and recheck fuel trims.

Will It Pass Emissions?

// DECISION TREE
STARTCheck engine light on?
YES →FAIL
NO →Readiness monitors set?
YES →PASS
NO →RETESTdrive 50–100 miles to set monitors

Repair Cost Breakdown

Part / RegionDIY CostShop LaborTotal Range
Diagnostic fee (most regions)$0$80–$150$80–$150
Vacuum leak repair$20$120$140–$220
MAF + clean$100$100$200–$280
Worst-case (fuel pump)$280$420$700–$950

Estimates based on aggregated independent shop quotes; dealer labor adds 30–50%. Excludes diagnostic fee ($80–$150).

Ad · 300x600

FAQs

For short trips, yes. But sustained lean operation increases combustion temperatures and can damage pistons, exhaust valves, and the catalytic converter. Fix within a few weeks.
Ad · 728x90

Sources & References

  • §Ford TSB 14-0194 5.4L Triton PCV system diagnostic for lean codes.
  • §SAE J2012 — Diagnostic Trouble Code Definitions Standardized OBD-II code definitions used by all manufacturers.
  • §EPA OBD Regulations (40 CFR §86.1806-05) Federal on-board diagnostic requirements for light-duty vehicles.

Cost figures are aggregated from real customer invoices at our shop plus quotes from RepairPal and Mitchell1 labor guides. Diagnostic procedures verified against factory service information (ALLDATA / Mitchell1).

// About the author

Mike ReevesIndependent shop owner in Phoenix, AZ. Specializes in driveability diagnostics on domestic and Asian gas engines. Writes our powertrain coverage. More about our team →

Related Codes