P0171 — System Too Lean (Bank 1)
P0171 means bank 1 long-term and short-term fuel trims have gone positive beyond the ECM's limit. The ECM is adding the maximum fuel it is allowed to and still sees a lean mixture at the oxygen or air-fuel sensor. This is mainly a gasoline-engine code on medium-duty gas trucks. Diesels run lean by design and normally do not set it.
What this means for truckers
P0171 (System Too Lean, Bank 1) on a commercial gas truck or medium-duty gas chassis means the ECM is adding fuel beyond its normal trim limits but can't reach stoichiometric. Three common causes: (1) Vacuum leak — most common, $50-400 to find and fix. Smoke-test the intake. (2) Dirty MAF sensor — clean with MAF cleaner ($8). (3) Bad fuel pressure or weak injectors. On diesel trucks this code is rare; if it appears, focus on air leaks first. Long-term running lean burns valves and pistons. Fix promptly.
Before you replace parts — try this first
P0171 on the Fuel system is most often vacuum or intake leak after the mass airflow sensor, such as a cracked pcv hose, intake gasket or brake booster hose — not a dead part. On commercial diesels especially, work these in order before spending money on parts:
- Confirm the symptoms. Match what your truck is doing to the Symptoms section below. If the code is set but the symptoms are not there, clear the code and re-test after a drive cycle — it may not return.
- Clean and dry the sensor connector. Water, road salt, or oil seeping into a connector is the #1 fake sensor failure. Disconnect, look for green corrosion or moisture, spray with electrical contact cleaner, dry, reseat. Many faults clear here for $0.
- Inspect the wiring harness. Trace the wire from the sensor toward the ECM — look for chafing against the engine block, melted insulation near the turbo or exhaust, or pinch points where a clamp has rubbed through.
- Test the sensor before swapping it. Most Common Causes (below) list the expected voltage or resistance range — a $20 multimeter saves a $300 sensor swap that does not fix the problem.
- Only then, replace the part. Use the OEM or a tier-1 aftermarket. Cheap sensors throw the same code in two weeks.
Symptoms
Check-engine light is on. You may also notice hesitation on acceleration, rough or hunting idle, lean misfires, especially cold or at idle, and reduced power under load. If the lean condition is caused by a weak fuel supply, it often gets worse uphill or when the truck is loaded.
Common causes
- CommonVacuum or intake leak after the mass airflow sensor, such as a cracked PCV hose, intake gasket or brake booster hose ($50–$500)
- CommonDirty or skewed mass airflow sensor that under-reports airflow ($20–$350)
- CommonLow fuel pressure or volume from a weak pump, clogged filter or bad regulator ($100–$1000)
- OccasionalExhaust leak ahead of the upstream oxygen sensor, which skews the reading lean ($150–$600)
- OccasionalRestricted or clogged injectors on bank 1 ($150–$900)
How to fix
Affects most
- Ford F-3501 complaint mention this code
Related
- → Browse all DTC trouble codes
- → Decode a VIN to check codes for your truck
- → Owner-operator maintenance guides
- → P0100 — Mass or Volume Air Flow Circuit
- → P0101 — Mass or Volume Air Flow Circuit Range/Performance
- → P0102 — Mass or Volume Air Flow Circuit Low Input
- → P0103 — Mass or Volume Air Flow Circuit High Input
- → P0104 — Mass or Volume Air Flow Circuit Intermittent
- → Complaints on Ford F-350