P0171 Toyota Prius: Diagnose the Lean Code and Avoid Guesswork
12 min read · by Nicole Bennett · Last updated: November 25, 2026
The p0171 toyota prius code means the engine computer is correcting for a lean air-fuel mixture on Bank 1, not that one specific part has failed. The engine may be receiving too much unmetered air, too little fuel, or an inaccurate signal from an air-measurement or air-fuel-ratio component. A scan tool can narrow the cause, but the code alone cannot identify the repair.
Prius diagnosis needs one extra consideration: the gasoline engine may start and stop automatically while the hybrid system is operating. A fault can be intermittent, and some checks require the engine to stay running under controlled conditions. Record the code and freeze-frame data before clearing anything or replacing parts.
The steps below explain what P0171 means, which Prius-specific issues deserve attention, how to use an OBD2 scanner, and when driving should stop. Causes and test specifications vary by model year and engine, so use the service information for the exact Prius before making a repair.
What P0171 Means on a Toyota Prius
P0171 is the generic SAE code for “System Too Lean (Bank 1).” The powertrain control module has detected that fuel correction is too far toward adding fuel to keep the measured air-fuel mixture near its target. On a Prius, the engine computer compares air-fuel-ratio feedback with its fuel corrections after the engine reaches the conditions needed for the monitor to run.

The first character, P, marks a powertrain fault; 0 identifies a generic code. “Bank 1” is the side containing cylinder 1. It does not identify a failed sensor or other specific part.
Toyota repair information describes P0171 as a condition in which fuel trim remains considerably lean after the engine warms and air-fuel feedback becomes stable. The computer uses short-term fuel trim (STFT) to make immediate corrections and long-term fuel trim (LTFT) to retain corrections that persist over time. If the combined correction becomes excessive, the system can store P0171 and turn on the check-engine light.
How fuel trim points to the problem
Positive trim means the computer is adding fuel; negative trim means it is removing fuel. Combined STFT and LTFT above about +10 percent deserve investigation. Near or above +25 percent is a strong warning, although exact thresholds vary by Prius generation.
A lean reading can also result from a MAF sensor that under-reports airflow, low fuel pressure, or an exhaust leak ahead of the upstream sensor. Diagnose the cause rather than replacing the reporting sensor automatically. Owners of other makes can check the matching guide: P0171 Toyota 4Runner.
Prius-Specific Causes and Model-Year Differences
The likely causes overlap across Prius generations, but the plumbing, engine controls, and repair procedures do not. Start with common air leaks and sensor data, then check for technical bulletins that match the vehicle’s model year, engine, and symptoms.

Toyota’s Prius diagnostic list includes the air-intake system, a restricted fuel injector, the mass airflow meter, engine coolant temperature sensor, fuel pressure, exhaust leakage, the Bank 1 Sensor 1 air-fuel-ratio sensor and its circuit or heater, the PCV valve, and PCV hose connections. That list is a diagnostic path, not a ranking. A split hose or loose connection can create the same code as a much more expensive component fault.
Intake and PCV leaks
Unmetered air entering after the MAF sensor is a leading cause to rule out. Inspect the air duct between the air cleaner and throttle body for cracks, loose clamps, damaged seals, or a poor fit. Check the PCV hose, PCV valve connections, and any vacuum lines disturbed during recent service. A small split can open more at idle, so the engine may show stronger positive fuel trim at idle than at a raised engine speed.
A smoke test can reveal cracks hidden under hoses or at connections. Do not use flammable sprays around a running engine.
The Toyota bulletin for 2010–2013 Prius models
Toyota issued a bulletin for certain 2010–2013 Prius and 2012–2013 Prius v vehicles with a malfunction indicator lamp and codes that can include P0171, P0A0F, P3190, or P3191. The documented condition involves separation of the purge vacuum switching valve (VSV) line from the throttle-body housing. The other codes can point to poor engine power or an engine that fails to start.
For the exact vehicles covered by that bulletin, Toyota’s repair direction includes replacing the purge VSV assembly and updating the engine control module calibration. This is not a universal fix for every Prius with P0171. Confirm model-year applicability, production details, related codes, and the actual hose condition before authorizing the repair. Read the Toyota bulletin hosted by NHTSA for its specific coverage and conditions.
MAF, fuel delivery, and exhaust faults
A dirty MAF may under-report airflow. Inspect its connector, wiring, air filter, and duct before replacement. Use MAF-specific cleaner only when permitted; never touch the sensing element.
If no intake leak is found, test fuel pressure and injector condition. Also check for an exhaust leak ahead of the upstream sensor and verify its wiring, heater power, and grounds before replacement.
Symptoms and Driving Severity
A Prius may store P0171 before the driver notices a change. Symptoms depend on mixture severity, engine load, and how the hybrid system is using the gasoline engine.
Possible signs include rough idle, hesitation as the gasoline engine starts, reduced acceleration, surging, hard starting, or lower fuel economy. Some drivers notice only a steady light. P0171 with P0A0F, P3190, or P3191 on a covered 2010–2013 model calls for prompt diagnosis.
With a steady light, normal temperature, and normal power, a short, gentle trip to a shop is usually reasonable. Avoid hard acceleration and long trips. A severe lean condition can contribute to misfire or engine damage.
A flashing check-engine light is different. It indicates an active misfire that can overheat and damage the catalytic converter. Reduce load, pull over when it is safe, and arrange service rather than continuing to drive. Stop sooner if the Prius stalls, loses substantial power, runs very roughly, overheats, or displays a hybrid-system warning that affects safe operation.
Tip: A steady light does not mean the fault can be ignored, and a flashing light should not be treated as a routine emissions issue. Do not work near orange high-voltage cables or hybrid components. Keep hands, clothing, and tools clear of electric fans and moving engine parts; the Prius engine can start automatically when the vehicle is in READY mode. For the same trouble code on a different platform, read P0171 Kia.
The U.S. Environmental Protection Agency advises prompt service for a steady malfunction light and warns that a flashing light signals a severe misfire that can damage emission-control parts. Its OBD guidance for drivers is general; follow the Prius owner’s manual for vehicle-specific warnings.
Diagnose P0171 with an OBD2 Scanner
A basic OBD2 scanner reads P0171, pending codes, and freeze-frame data. Live-data support helps compare fuel trim at idle and raised engine speed. Toyota-enhanced equipment may be needed for factory data lists and active tests.
- Read all stored, pending, and permanent codes before clearing anything. P0171 beside P0A0F, P3190, or P3191 changes the diagnostic direction on some 2010–2013 Prius models.
- Save freeze-frame data, including coolant temperature, engine speed, load, vehicle speed, MAF, STFT, and LTFT. It shows whether the fault appeared at idle, acceleration, or cruise.
- Warm the engine and confirm closed-loop operation before comparing trims. The hybrid system may stop the engine at idle; use the correct service procedure when a stable running condition is required.
- Compare STFT and LTFT at idle and at a steady raised engine speed, such as about 2,500 rpm when the service procedure permits. A large positive correction at idle that falls as engine speed rises can suggest an intake or PCV leak. Positive correction that stays high across both conditions can point toward MAF under-reporting or a fuel-delivery problem. These are clues, not pass/fail rules.
- Review MAF airflow, intake-air temperature, coolant temperature, and upstream and downstream sensor data. Implausible coolant readings or a sensor that fails a commanded response test require further circuit checks.
- Inspect intake ducting, clamps, PCV and purge hoses, connectors, and exhaust joints ahead of the upstream sensor. Use a smoke test or model-specific fuel-pressure and injector tests when needed.
- Use Mode 06 only as supporting information if the scanner exposes relevant monitor results and explains their limits. Test IDs and scaling can vary by vehicle. Do not treat an unexplained Mode 06 number as a diagnosis or a universal Toyota threshold.
Toyota’s older Prius active test changes commanded injection by +25 percent or −12.5 percent and checks upstream and downstream sensor responses. These are model-specific test conditions, not universal readings for every Prius or scanner.
| Scanner finding | What it may suggest | Next check |
|---|---|---|
| STFT +15%, LTFT +12%, combined +27% | Large positive fuel correction; mixture or measurement problem | Check intake leaks, MAF data, fuel pressure |
| Combined trim high at idle, lower near 2,500 rpm | Possible vacuum or PCV leak | Inspect intake duct, PCV hose, and vacuum connections |
| Combined trim high at idle and raised speed | Possible MAF under-reporting or low fuel delivery | Verify MAF signal, fuel pressure, and injector condition |
| Lean reading with exhaust leak before B1S1 | Outside oxygen may affect upstream sensor feedback | Repair leak, then recheck sensor data and trims |
| P0171 with P0A0F, P3190, or P3191 on covered 2010–2013 models | Possible purge VSV vacuum-line separation addressed by Toyota bulletin | Confirm bulletin applicability and inspect purge plumbing |
The trim figures are examples, not Toyota specifications: +15 percent STFT plus +12 percent LTFT equals +27 percent combined. Compare values using the same scan-tool method. For another common fault on this model, see P0016 Toyota Prius.
Repair Options and Cost Factors
The repair depends on the failed system. A loose intake clamp, cracked PCV hose, contaminated MAF sensor, restricted injector, weak fuel supply, exhaust leak, or failed air-fuel-ratio sensor can all produce P0171.
Correct a loose duct, damaged hose, failed PCV part, or exhaust leak when testing confirms it. Clean a MAF sensor only if its design permits. If the upstream sensor fails, verify its signal, heater circuit, power, ground, and wiring before replacement.
Check fuel pressure against the specification for the exact Prius engine, and use injector flow or balance testing when needed. Replacing a pump, injectors, or sensor without test results can leave the original leak or wiring fault unresolved.
Cost depends on parts, diagnostic time, access, and whether the fault is a hose or a fuel-system or sensor problem. Labor rises if the shop must reproduce an intermittent fault, smoke-test the intake, trace wiring, or use enhanced scan functions. DIY may suit a confirmed clamp or hose, but hybrid diagnosis and fuel-pressure testing require proper training and tools.
Ask for the codes, freeze-frame data, fuel trims, and failed test result before approving work. Check for bulletins matching the VIN and model year. After repair, confirm that trims improve and the monitor completes without P0171 returning; clearing the code is not proof of a fix.
Preventing a Repeat Lean Code
Prevent P0171 by keeping the intake sealed and addressing MAF, fuel, or exhaust faults promptly. Check duct connections after air-filter service.
Make sure the air-filter housing closes evenly and that every intake clamp is secure after filter replacement. Avoid forcing plastic ductwork into place, and do not leave a hose or electrical connector partly engaged. If the PCV hose or purge plumbing is moved during other repairs, confirm that the connector is fully seated and that the hose is not pinched, stretched, or routed against a hot or moving component.
Use the specified air filter and correct MAF cleaning method. Record codes and recent repairs. After intake, throttle-body, PCV, or purge-system work, recheck every disturbed connection.
Do not disconnect the 12-volt battery or erase codes before diagnosis; that can remove freeze-frame clues and reset readiness monitors. After repair, complete the required drive pattern. A permanent code remains until the monitor confirms the fault is fixed.
If P0171 returns after a hose repair, check for a second leak, loose connector, or another fault. Compare new fuel trims with the original readings and continue testing rather than replacing parts at random. A second fault on the same model is covered in P0446 Toyota Prius.
Frequently Asked Questions
These answers cover code-setting behavior, emissions testing, scan-tool access, and warranty questions that can come up after the initial diagnosis.
Can running very low on fuel trigger P0171?
Yes. Toyota’s Prius diagnostic information notes that running out of fuel can create a lean air-fuel condition and may set P0171. Refuel before further testing, then check whether the code returns under normal operating conditions.
What does Toyota mean by two-trip detection?
Toyota repair information for certain Prius applications identifies P0171 as a two-trip detection fault. The monitor must detect the qualifying condition on separate trips before it confirms the fault and commands the malfunction light; a pending code may appear first.
Does a stored P0171 automatically fail an emissions inspection?
Inspection rules depend on the state program, but an illuminated malfunction light or an emissions-related fault can cause an OBD inspection failure. Do not clear the code just before testing; the vehicle may show incomplete readiness monitors and still fail or be rejected.
Could an emissions warranty cover the repair?
Possibly. EPA guidance describes federal coverage of 2 years or 24,000 miles for many emissions repairs and 8 years or 80,000 miles for specified major components, including the catalytic converter and onboard emissions diagnostic computer. Coverage depends on the failed part, vehicle eligibility, and warranty terms, so check the Prius warranty booklet and ask a Toyota dealer to verify the VIN.
Can a generic OBD2 reader run Toyota’s active A/F control test?
Not usually. A basic reader can retrieve standardized emissions codes and some live data, but Toyota’s commanded injection-volume test requires enhanced active-test support. Confirm that the scan tool supports Toyota-specific functions before relying on it for this procedure.
P0171 on a Toyota Prius means the engine computer sees a lean condition, but the root cause may be an intake or PCV leak, MAF error, low fuel delivery, exhaust leak, or air-fuel-ratio sensor problem. Save the freeze frame, compare fuel trims, inspect the intake and purge plumbing, and confirm the failed component before replacing parts. A model-year-specific Toyota bulletin can matter, especially when P0171 appears with engine-start or power codes.
-
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
LearnP0401 Toyota Prius: Find EGR Flow Problems and Fix Rough Running
LearnP0128 Toyota Prius: Diagnose Coolant Temperature Problems
LearnP0300 Toyota Prius: Diagnose Misfires Before They Damage Your Catalytic Converter
Scanners by VehicleToyota Prius TPMS Reset: Steps, Warning Light Meaning, and When to Call a Dealer
Scanners by VehicleToyota Prius Check Engine Light: What It Means and What to Do
LearnU0418 Code: Diagnose Brake System Communication Problems