P0171 (Toyota Camry): System Too Lean — Causes & Fix
On a Toyota Camry, P0171 means the engine computer has found the Bank 1 air-fuel mixture running too lean — more air than the fuel system can compensate for — after fuel trims maxed out trying to correct it.
- Applies to
- Toyota Camry (P0171 is a generic OBD-II code)
- Est. repair cost
- $20 – $500
- Time to fix
- 1–3 hours
What it means
P0171 is a generic OBD-II powertrain code defined in the SAE J2012 standard, so its core meaning is identical across every make; the likely causes below are specific to the Toyota Camry. The code sets when the long-term fuel trim on Bank 1 climbs past roughly +20–25% for a sustained period — the ECM is adding all the fuel it can and the mixture is still lean. On the Camry it most often traces back to unmetered air entering after the mass-airflow (MAF) sensor, a dirty MAF, or an aging upstream air/fuel-ratio sensor.
Symptoms
- Rough or lumpy idle that may occasionally stall
- Hesitation or a brief stumble when accelerating
- Steady check-engine light
- Occasional misfire and a slight drop in fuel economy
- Harder starting when the engine is cold
How to fix it
- 1
Read fuel trims and freeze-frame data
20 minutes1. Connect an OBD-II scanner and note the freeze-frame conditions stored with the code. 2. Compare short- and long-term fuel trims at idle and at ~2,000 rpm. 3. Trims that are high at idle but improve at higher rpm point to a vacuum leak; trims high across the board point to the MAF or fuel delivery.
- 2
Smoke-test for vacuum and intake leaks
45 minutes1. With the engine off, introduce smoke into the intake tract. 2. Inspect the intake gaskets, PCV hose, and brake-booster line for escaping smoke. 3. Replace any cracked hoses or leaking gaskets — this is the most common and cheapest fix.
- 3
Clean and inspect the MAF sensor
30 minutes1. Remove the mass-airflow sensor from the intake. 2. Clean the element with dedicated MAF cleaner — never wipe or touch it. 3. Reinstall, clear the code, and recheck fuel trims.
- 4
Test the upstream air/fuel-ratio sensor
1 hour1. Watch the Bank 1, Sensor 1 data while blipping the throttle. 2. A slow or flat response indicates a worn sensor. 3. On 2007–2008 Camry models with the 2GR-FE V6, check the applicable Toyota Technical Service Bulletin before replacing, as updated sensors were specified.
- 5
Verify fuel delivery
45 minutes1. Check fuel pressure against the Camry's specification. 2. Inspect the fuel filter and listen for a healthy pump. 3. Correct any low pressure before condemning sensors.
Frequently asked questions
Is it safe to drive a Camry with a P0171 code?
For short trips, usually — but a persistently lean mixture raises combustion temperatures and can trigger misfires over time, so it is best to diagnose it soon rather than ignore it.
Will P0171 cause my Camry to fail an emissions test?
Yes. Any active check-engine light is an automatic failure at inspection, regardless of how the car actually drives.
How much does it cost to fix P0171 on a Camry?
Often very little if the cause is a vacuum hose or a dirty MAF that just needs cleaning. Replacing an air/fuel-ratio sensor costs more once parts and labor are included.
Sources
- SAE J2012 — Diagnostic Trouble Code Definitions (the standard that defines OBD-II code P0171)
Last updated July 14, 2026
Guidance only — always consult a qualified professional or the official service manual before carrying out repairs.