P0171 Toyota Corolla: What the Code Means and How to Check It
8 min read · by Nicole Bennett · Last updated: November 11, 2026
P0171 Toyota Corolla codes mean the engine computer sees bank 1 running lean. Lean means the engine gets more air than fuel. As of 2026-11-12, P0171 is a general OBD-II code, and the checks below apply to any Corolla that sets it.
For a p0171 toyota corolla, the most common cause is a vacuum or intake leak, so check hoses and the PCV valve before buying parts. The safety section explains when to stop driving and get the car checked.
This guide is general information, not a repair manual. Have a qualified technician confirm the cause before you replace any part.
P0171 Toyota Corolla: What the Code Means
The powertrain control module sets P0171 when bank 1 runs lean, meaning the mixture has too much air and too little fuel. The module responds by adding fuel, which shows up as a positive fuel trim. Kelley Blue Book’s P0171 code page describes this behavior and notes that the code usually comes with a check engine light.
Bank 1 is the side of the engine that contains cylinder #1. Bank 2 has its own pair of codes, P0174 for lean and P0175 for rich, so a bank number tells you which side of the engine the fuel mixture problem sits on. So a P0171 Toyota Corolla code always points to the bank 1 side, even when the cause is elsewhere.
The code itself is generic, as the general P0171 code guide explains. A p0171 toyota corolla fault is not limited to that model, and the sources reviewed do not give a separate Corolla procedure. The same lean code on a truck is covered in the P0171 Ford F150 guide. That is why the causes and checks below are written for any Corolla, and the last section explains what remains unconfirmed.

Common Causes of P0171 on a Corolla
Unmetered air is the common thread behind many P0171 Toyota Corolla codes. MechanicBase calls vacuum, boost and intake pipe leaks the most common cause, and it lists these possibilities.
- Vacuum, boost or intake pipe leaks, including cracked hoses and loose intake connections
- A faulty PCV valve or a leak in its hose, which lets unmetered air into the intake
- A dirty or faulty mass airflow (MAF) or manifold absolute pressure (MAP) sensor
- Low fuel pressure from a weak pump, a clogged filter or a failing pressure regulator
- An EVAP purge valve or EGR valve stuck open
- A faulty oxygen sensor, or an exhaust leak ahead of the front O2 sensor
- A faulty coolant temperature sensor or damaged sensor wiring. ECM failure is listed as rare.
Kelley Blue Book also names clogged fuel injectors as a fuel-side cause. Checking the cheaper possibilities first, such as a leaking hose or a dirty sensor, keeps the repair bill down.
How to Check P0171 Toyota Corolla Step by Step
Start with a scan for other codes on your p0171 toyota corolla, then move to cheap leak checks. Replacing sensors first costs more and often misses the real cause. MechanicBase’s P0171 guide lists the order below, which puts the oxygen sensor last.
- Scan for other codes and follow their diagnosis procedures first.
- Check live data from the MAF and coolant temperature sensors for values that do not make sense, and see the P0101 MAF range code if the MAF reading is off.
- Smoke-test the intake for leaks, and inspect the PCV valve and the EVAP purge valve.
- Check fuel pressure at the fuel rail. If it is low, check the filter, pump and regulator.
- Check whether the EGR valve is stuck open.
- Clean the MAF sensor with MAF-specific cleaner, clear the code and see if it returns.
- Look for exhaust leaks ahead of the front O2 sensor and repair any you find.
- Replace the O2 sensor only if the code persists after the steps above.
One Corolla guide site says that fuel trims worse at idle point to a leak, while trims worse under load point to fuel delivery. That site is not a primary source, so treat the rule as a starting point and confirm it with live data from your own car.

| Likely area | What to check | Typical fix |
|---|---|---|
| Vacuum or intake leak | Smoke test, hoses, PCV valve | Hose or PCV valve replacement |
| Dirty MAF sensor | Live MAF readings, cleaning | Cleaning first, sensor if readings stay wrong |
| Fuel delivery | Fuel rail pressure, filter, pump, regulator | Filter, pump or regulator |
| Oxygen sensor | Exhaust leaks checked first, then sensor data | Sensor replacement, last step |
Symptoms and Whether It Is Safe to Drive
A slightly lean P0171 Toyota Corolla may show only the check engine light, while a very lean engine can run rough or stall. MechanicBase lists the signs of a very lean mixture as follows.
- Check engine light on with no other change in how the car drives
- Rough idle, hesitation or unsteady acceleration
- Loss of power and engine misfires
- Hard starting or an idle that jumps up and down
- The engine dying while you drive
Kelley Blue Book also reports hissing from the engine bay, which can point to a vacuum leak on a p0171 toyota corolla, along with stalling at stoplights and knock or pinging under load. Any of these signs means the mixture is off enough to affect how the engine runs.
Stop driving and arrange a tow or a shop visit if the engine stalls, misfires badly or the check engine light flashes. A steady light with a mild symptom still needs a prompt diagnosis. This advice covers the lean code only, not other codes that appear with a p0171 toyota corolla fault.
What Repairs Typically Cost
For a p0171 toyota corolla, MechanicBase lists a vacuum hose at $10 to $50, a PCV valve at $20 to $60 and an O2 sensor at $200 to $300, but the page was last updated on March 17, 2023. These ranges cover parts and labor and do not include diagnosis.
| Repair | Listed range (USD) | Source note |
|---|---|---|
| Vacuum hose replacement | $10 to $50 | Page dated March 17, 2023 |
| PCV valve replacement | $20 to $60 | Page dated March 17, 2023 |
| O2 sensor replacement | $200 to $300 | Page dated March 17, 2023 |
| Diagnosis | Not included | Ask the shop for its diagnostic fee |
Prices vary by region, parts grade and shop rates. The sources reviewed do not give a 2026 figure, so ask for a written estimate before you approve any work on a P0171 Toyota Corolla repair.
What Is Not Confirmed for Corolla
The sources reviewed do not confirm a Corolla-specific P0171 procedure, so the causes above apply to a p0171 toyota corolla until your service information says otherwise. One Toyota technical service bulletin cited on MechanicBase covers the Tundra and Sequoia, not the Corolla.
Another guide site names 2009 to 2019 Corolla models as the most affected, but it gives no primary source. This guide does not rely on its probability figures, and it does not claim that any model year has a known P0171 defect.
To confirm the scope for a p0171 toyota corolla, check the owner’s manual, ask a Toyota dealer for the service information for your VIN, or use a shop that can read live data for your model year.
Frequently Asked Questions
Is P0171 the same as P0174?
No. P0171 means bank 1 runs lean, while P0174 means bank 2 runs lean. Kelley Blue Book’s code page lists both. Bank 1 is the side of the engine that contains cylinder #1, so the bank number tells you where to look first.
Should I replace the O2 sensor first?
No. MechanicBase advises checking vacuum and intake leaks, the PCV valve, fuel pressure and MAF readings before the oxygen sensor. The O2 sensor comes last, after the other causes are ruled out, because it is often not the root cause.
Can a dirty MAF sensor cause P0171?
It can, on a p0171 toyota corolla or any other car. Both sources list a faulty or dirty mass airflow sensor as a cause. Cleaning it with MAF-specific cleaner is a low-cost test, and the sensor should be replaced only if its readings stay out of range after cleaning.
Do I need a professional scan tool to check P0171?
A basic OBD-II reader shows the code. Live MAF and fuel trim values need a scanner that displays live data. A shop can also smoke-test the intake for leaks, which most home setups cannot do.
Will the P0171 code clear on its own?
The sources reviewed do not say that it will. Clearing the code without a repair only hides the symptom, and the code can return. Fix the cause first, then clear the code and confirm the light stays off after a drive.
If the check engine light flashes or the engine misfires, stop driving and have the car checked promptly. For a steady light with no symptoms on a p0171 toyota corolla, use the steps above to narrow the cause, then bring the results to your shop so the repair is confirmed before parts are bought.
-
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 4Runner: Find the Cause of a Lean Engine
LearnP0171 Toyota Tacoma Code: Causes, Checks and Fixes
LearnP0455 Toyota Corolla: Find the EVAP Leak Before Replacing Parts
LearnP0741 Toyota Corolla: What the Code Means and How to Fix It
LearnP0715 Toyota Corolla: Diagnose Transmission Sensor Problems
LearnP0133 Lexus: Diagnose Slow Oxygen Sensor Response and Avoid Unnecessary Repairs