P0171 OBD2 Code Guide
P0171 is a fuel trim diagnostic trouble code. Use this hub to understand the plain meaning, the first checks to run, and which vehicle-specific guides may be more useful before replacing parts.
System Too Lean (Bank 1)
Code P0171 signifies that the Engine Control Module (ECM) has detected a condition where the air-fuel mixture in Bank 1 is excessively lean, meaning there's too much air or insufficient fuel. This occurs when the long-term fuel trim (LTFT) for Bank 1 reaches its maximum positive adjustment limit (typically +20% to +25%) in an attempt to compensate for the lean condition, yet the oxygen sensors still indicate a lean mixture. This can lead to reduced engine performance, misfires, increased exhaust emissions, and potential long-term engine damage due to excessive heat.
Code verification standard
P0171 is published with SAE J2012 / ISO 15031-6 code structure plus OBD2 P0171 diagnostic context.
First checks
- - Read all stored and pending codes before clearing anything.
- - Save freeze-frame data so you know speed, load and temperature when the code set.
- - Inspect wiring, connectors, fuses, hoses and obvious leaks tied to the named system.
- - Compare live data against realistic values before buying sensors or modules.
- - Clear the code only after repair and complete a drive cycle to confirm it does not return.
P0171 diagnostic path
- 1Inspect for Vacuum Leaks: Visually inspect all vacuum lines, intake manifold gaskets, PCV valve and hoses, and brake booster for cracks, disconnections, or signs of leaks. Use a smoke machine or an unlit propane torch/carb cleaner around suspected areas to detect changes in engine RPM, indicating a leak.
- 2Evaluate Mass Air Flow (MAF) Sensor: Check the MAF sensor for contamination or damage. Clean the MAF sensor element carefully with a specialized MAF sensor cleaner. Monitor MAF sensor readings using a scan tool at idle and various RPMs; compare to manufacturer specifications or known good values.
- 3Verify Fuel System Integrity: Check fuel pressure at the fuel rail using a fuel pressure gauge. Compare readings to manufacturer specifications. A low fuel pressure could indicate a failing fuel pump, clogged fuel filter, or a faulty fuel pressure regulator. Also, inspect fuel injectors for proper spray pattern and leakage.
- 4Analyze Oxygen Sensor Readings: Using a scan tool, monitor the upstream (pre-catalytic converter) oxygen sensor readings for Bank 1. A consistently low voltage (below 0.45V) or slow switching rate, even after the ECM has commanded maximum fuel enrichment, confirms a lean condition. Also, check for exhaust leaks before the upstream O2 sensor.
Verify before repair
- - Repair vacuum leaks (e.g., replace cracked vacuum hoses, intake manifold gaskets, PCV valve).
- - Clean or replace the Mass Air Flow (MAF) sensor.
- - Replace a clogged fuel filter or a faulty fuel pump/pressure regulator.
- - Replace faulty or clogged fuel injectors.
Vehicle-specific pages to check next
Searches this page covers
These queries are answered in this guide without creating thin duplicate pages.