P0171 Toyota Camry: What the Code Means and How to Check It
6 min read · by Nicole Bennett · Last updated: November 14, 2026
A P0171 Toyota Camry code means the engine computer sees bank 1 running lean, with more air than fuel. The code is generic, so its causes apply across models, but the checks depend on your model year.
Most cases start with unmetered air, such as a vacuum leak or a dirty airflow sensor. Check the cheap items first, and do not ignore the light.
This guide is general information, not a repair manual. Confirm the cause with your Camry’s service information or a qualified technician before you buy parts.
What P0171 Means on a Toyota Camry
P0171 is set when the powertrain control module finds bank 1 too lean to correct, so it adds fuel to compensate. That added fuel shows up as a positive fuel trim.
Bank 1 is the side of the engine that contains cylinder 1. Kelley Blue Book’s P0171 page says the code usually comes with a check engine light, and that P0170, the general fuel trim code, almost always appears alongside it.
P0172 is the opposite condition, a mixture that runs too rich. If your scan shows P0172 instead, the diagnosis direction changes, so confirm the code before you follow the steps below.
Common Causes of P0171 on a Toyota Camry
Unmetered air is the most common driver of P0171, and a vacuum or intake leak is the cause the sources list first. A leak lets air bypass the airflow sensor, so the computer adds fuel for air it never measured.

- Vacuum, boost, or intake leak, which is listed as the most common cause
- Faulty or dirty mass airflow sensor that reads less air than is entering
- Weak fuel pump, or low fuel pressure from a clogged filter or regulator
- Clogged fuel injectors
- Stuck or failing PCV valve or EVAP purge valve
- Stuck open EGR valve, or a defective oxygen sensor
- Exhaust leak ahead of the front oxygen sensor
The Camry shares its generic code definition with many other vehicles. A Toyota Corolla P0171 guide shows the same code on a related Toyota model. The list above is a starting point, not a verified list of Camry failures, so compare it with your model year’s service information.
One useful clue is when the code sets. One reference site says fuel trims that look worse at idle point toward a leak, while trims that look worse under load point toward fuel delivery. That is a single site’s claim, so treat it as a clue for the scan, not a verdict on the part.
How to Check the Code in the Right Order
Start with the scan data and a leak check, and leave the oxygen sensor for last. MechanicBase’s P0171 guide lists the oxygen sensor last in its diagnosis order.
- Scan for related codes, including P0170 and any other fuel or misfire codes.
- Watch live mass airflow and coolant temperature data while the engine idles.
- Smoke-test the intake to find vacuum leaks, and check the PCV and EVAP purge valves.
- Measure fuel pressure at the rail to rule out a weak pump or clogged filter.
- Check the EGR valve, then clean and test the mass airflow sensor.
- Look for exhaust leaks ahead of the front oxygen sensor, and test the oxygen sensor last.
A smoke test is useful because it shows leaks that are hard to find by sight, such as a cracked hose behind the intake. For other warning lights on this car, the Camry check engine light guide covers the causes and next steps. Save the freeze-frame data before you clear anything, since it records the conditions when the code set.
Is It Safe to Drive With P0171?
A slightly lean engine may show only the check engine light, but a very lean engine can stall, misfire, or lose power. The severity depends on how far the mixture is off, and a scan with live data shows that.

Kelley Blue Book lists stalling at stoplights and engine knock under load as symptoms. A hissing sound from the engine bay can point to a vacuum leak.
Keep the scanner connected while you test, so you can watch whether the fuel trim values move after each repair. A repair that does not change the numbers usually means the first guess was wrong, and the next step is the leak check or the fuel pressure test. A Ford F150 P0171 guide shows the same lean code on a truck.
If the engine idles roughly, stalls, or loses power, stop driving and have the vehicle inspected. Short trips with only a light on are a judgment call, so ask a technician before you rely on that.
What Repairs Typically Cost
The most common P0171 repairs range from about $10 to $300 in parts and labor, according to a MechanicBase page last updated March 17, 2023. Treat these as dated figures and get a current quote before you approve work.
| Cause | Typical repair | Cost range |
|---|---|---|
| Vacuum hose | Replace the cracked hose | $10 to $50 |
| PCV valve | Replace the valve | $20 to $60 |
| Oxygen sensor | Replace the sensor | $200 to $300 |
These ranges exclude diagnosis and may not match what a dealer or independent shop charges today. Costs also vary by Camry model year and by region.
Frequently Asked Questions
Can P0171 clear on its own?
Sometimes. An intermittent leak can clear for a while, but the computer stores the code again when the lean condition returns. Clearing the code without a repair usually brings it back.
Is P0171 the same as P0170?
No, but they are related. P0170 is the general fuel trim code without a bank reference, and Kelley Blue Book says it almost always appears with P0171.
Does P0171 mean my Camry needs a new engine?
No. The code points to the balance of air and fuel, and a cracked hose, a dirty airflow sensor, or weak fuel pressure are common causes. Engine damage is not the first assumption.
Is it safe to keep driving with P0171?
A mild lean condition may allow short trips, but stop driving if the engine stalls, idles roughly, or loses power. Have the cause checked before any long trip.
If the light stays on after the cheap checks, a shop with live fuel trim data can narrow the cause faster. Keep your scan notes, because they show what the computer saw when the code set.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0171 Toyota RAV4: Lean Mixture Causes and Scan Checks
LearnP0171 Toyota Prius: Diagnose the Lean Code and Avoid Guesswork
LearnP0171 Toyota Tacoma Code: Causes, Checks and Fixes
LearnP0128 Toyota Camry Code: Thermostat Checks and Causes
LearnP0305 Toyota Camry: Find the Cylinder 5 Misfire and Fix It
LearnU0212 Code: Diagnose Steering Column Communication Problems