Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All Articles →
🧭 Diagnostic Flowchart 🎬 Helpful Videos 🛍️ Shop This Part

P0171 on 2017-2020 Toyota Sienna: Lean Code Causes and Fixes

On a 2017-2020 Toyota Sienna, code P0171 is most often caused by a dirty Mass Airflow (MAF) sensor or a vacuum leak. Cleaning the MAF sensor with a dedicated cleaner is a common first step and may resolve the issue for under $15. However, this specific model is also subject to a major fuel pump recall and a TSB for low fuel pressure, which must be investigated.

18 minutes to read 2017-2020 Toyota SIENNA
Most Likely Cause
Dirty or Faulty Mass Airflow (MAF) Sensor
Difficulty
2/5
Est. Time
1.5 hrs
DIY Doable?
✅ Yes
Shop Labor
$100 – $750
Parts Price
$15 – $400
⚠️ Drivable, but... — You can drive, but it's not recommended for extended periods. A persistent lean condition can cause poor fuel economy, hesitation, rough idling, and may eventually lead to expensive damage to the catalytic converter.
Key Takeaways
  • Code P0171 means Bank 1 (rear, by firewall) is running lean (too much air, not enough fuel).
  • The most likely and easiest first step is to clean the Mass Airflow (MAF) sensor located on the engine air intake.
  • Check if your Sienna is part of the fuel pump recall, as a faulty pump is a known cause for this code on these model years.
  • If cleaning the MAF doesn't work, the next step is to check for vacuum leaks using a smoke machine or by carefully spraying starter fluid around intake gaskets and hoses.
  • Avoid immediately replacing the Air/Fuel (O2) sensor, as it is often just correctly reporting a problem elsewhere.
The trouble code P0171 stands for "System Too Lean (Bank 1)". This means the engine's computer (ECM) has detected an imbalance in the air-fuel mixture, specifically too much oxygen and not enough fuel. Bank 1 on the Sienna's transverse 3.5L V6 engine is the cylinder bank located closer to the firewall. The computer tries to compensate by adding more fuel, a process measured by fuel trims. When long-term fuel trim (LTFT) exceeds its limit (typically around +25% to +35%), it triggers the Check Engine Light.

What's Unique About the 2017-2020 Toyota SIENNA

The 2017-2020 Sienna uses the 2GR-FKS V6 engine, which features a D-4S dual-injection system (both port and direct injection). While this code has common causes like MAF sensor issues and vacuum leaks, this specific engine generation was included in a massive fuel pump safety recall (NHTSA campaigns 20V-012, 20V-682). A failing pump causes low fuel pressure, directly leading to lean conditions. Furthermore, Toyota issued TSB T-SB-0009-23, which explicitly links lean codes P0171/P0174 with hard starting and the low fuel pressure code P0087, pointing to the fuel pump as a primary suspect. Therefore, diagnosing a P0171 on this Sienna requires ruling out these known platform-specific fuel delivery issues in addition to universal causes.

Diagnostic Flowchart

Tap your situation to follow the diagnostic path that matches what you're seeing on this vehicle.

How do the long-term fuel trims behave when you raise RPM to 2500?
Is your Sienna experiencing hard starting or stalling, especially after refueling?
→ Clean the MAF sensor with a $10-$20 dedicated cleaner. If the code returns, replace the PCV valve (12204-31120) for $10-$20.
→ Check your VIN for fuel pump recall 20TA02 on the NHTSA website. If covered, a Toyota dealer will replace the pump assembly for $0.
Does the MAF sensor read around 4 g/s at idle and rise smoothly?
→ Clean the MAF sensor with a $10-$20 cleaner. If it still under-reports, replace it with an OEM Denso sensor (22204-75040) for $150-$220.
→ Check your VIN for fuel pump recall 20TA02. If clear, perform a fuel pressure test to diagnose a failing low-pressure fuel pump ($200-$400 aftermarket).
Have you visually inspected the intake air boot and PCV hoses for cracks?
→ Inspect the intake air boot and consider replacing the PCV valve (OEM part 12204-31120, $10-$20) as a highly effective, cheap diagnostic step.
→ Perform a smoke test to locate hidden vacuum leaks, paying close attention to the intake manifold gaskets. Replacement hoses or gaskets cost $20-$100.

Symptoms You May Notice

  • Check Engine Light is on
  • Rough or unstable idle
  • Hesitation or lack of power during acceleration
  • Reduced fuel economy
  • Engine stalling in some cases
  • Hard starting, especially after refueling
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the Air/Fuel Ratio (O2) sensor immediately. The sensor is often just doing its job by reporting the lean condition. The actual cause is usually an air leak or a fuel delivery issue.

Most Likely Causes

  1. Dirty or Faulty Mass Airflow (MAF) Sensor 🔴 High Probability → Shop Fuel Injection Air Flow Meter The MAF sensor measures all air entering the engine. If it's dirty, it under-reports the amount of air, causing the computer to inject too little fuel, leading to a lean condition. This is a very common first diagnostic step for P0171 across many Toyota models.
    How to confirm: Inspect the sensor for dirt. A simple first step is to clean it with a dedicated MAF sensor cleaner. 🎬 Watch: How to clean a Toyota mass air flow sensor. If cleaning doesn't work, monitor MAF readings with a scan tool; typical values are around 4 g/s at idle, rising smoothly with engine RPM to ~13 g/s at 2500 RPM.
    Typical fix: Clean the sensor with MAF sensor cleaner. If the problem persists, replace the sensor. It's highly recommended to use an OEM Denso sensor.
    Est. part cost: $10-$20 for cleaner, $150-$220 for a new Denso sensor.
  2. Vacuum Leak 🟡 Medium Probability Cracked hoses or leaking intake manifold gaskets allow unmetered air to enter the engine after the MAF sensor, throwing off the air-fuel ratio. Common leak points include the PCV hose, intake air boot, and intake manifold gaskets.
    How to confirm: Perform a visual inspection of all vacuum and intake hoses. A smoke test is the most effective way to pinpoint the location of a leak. Alternatively, you can carefully spray brake cleaner or starting fluid around suspected areas while the engine is idling; a change in idle RPM indicates a leak.
    Typical fix: Replace the cracked hose or leaking gasket.
    Est. part cost: $20-$100 for hoses or gaskets.
  3. Failing Low-Pressure Fuel Pump 🟡 Medium Probability → Shop Fuel Pump Many 2017-2020 Siennas were part of a major fuel pump recall (Toyota recall 20TA02, NHTSA 20V-012/20V-682). 🎬 See the news report on the Toyota fuel pump recall. A weak pump fails to provide adequate fuel pressure, directly causing a lean condition. The official TSB T-SB-0009-23 also links P0171 with low fuel pressure.
    How to confirm: Check if your vehicle's VIN is included in the fuel pump recall on the NHTSA website. A mechanic can perform a fuel pressure test to confirm low pressure. Symptoms can include hard starting or stalling.
    Typical fix: If covered by the recall, a Toyota dealer will replace the fuel pump assembly for free. Otherwise, the fuel pump needs to be replaced.
    Est. part cost: $0 if under recall, $200-$400 for an aftermarket pump assembly otherwise.
  4. Faulty Air/Fuel Ratio Sensor (Upstream O2 Sensor) ⚪ Low Probability → Shop Oxygen Sensor The A/F sensor is what detects the lean condition. While it can fail, it's more often correctly reporting a problem caused by something else. It's often replaced unnecessarily when the root cause is a vacuum leak or MAF issue.
    How to confirm: Use a scan tool to monitor the sensor's voltage readings. A healthy sensor will fluctuate rapidly. A lazy or biased sensor may need replacement. Bank 1 Sensor 1 is on the rear bank, against the firewall, and is difficult to access.
    Typical fix: Replace the Bank 1 Air/Fuel Ratio sensor. Use an OEM brand like Denso or NTK for best results.
    Est. part cost: $180-$250 for a Denso sensor.

Rare But Worth Checking

  • Stuck Open PCV Valve: → Shop PCV Valve A PCV valve that is stuck open can create a significant vacuum leak. Shaking the valve to hear a rattle is not a definitive test; it can still leak even if it rattles. Because the PCV hose often feeds into the intake runners for one bank more directly, it can sometimes cause a lean code on only Bank 1 (P0171) instead of both banks.
  • Faulty EVAP Purge Solenoid/Valve: → Shop Vapor Canister A purge valve stuck in the open position can create a vacuum leak by allowing unmetered fuel vapor from the charcoal canister into the intake manifold at the wrong time. A 2020 Sienna owner reported fixing P0171/P0174 codes by replacing a defective purge valve.
  • 🎬 Watch: Diagnosing a defective purge valve on a 2020 Sienna.
  • Clogged Fuel Injectors: → Shop Fuel Injector If one or more injectors on Bank 1 are clogged, they won't deliver enough fuel, leading to a lean condition on that bank. This can sometimes occur with P0171 without an accompanying P0174.
  • Leaking Intake Manifold Gasket: → Shop Engine Intake Manifold While a form of vacuum leak, a leaking intake manifold gasket specifically on the Bank 1 side can cause a P0171 code without a P0174. This is a more involved repair.

Diagnosis Steps

  1. Read the trouble codes with an OBD-II scanner and check the freeze frame data to see the engine conditions when the code was set. Note the Long-Term Fuel Trim (LTFT) values.
  2. Check your vehicle's VIN for the fuel pump recall (Toyota recall 20TA02) on the NHTSA website or by calling a Toyota dealer.
  3. Inspect the air intake system thoroughly for any cracks or loose connections in the ducting between the air filter box and the throttle body.
  4. Remove and clean the Mass Airflow (MAF) sensor using a dedicated MAF sensor cleaner. Allow it to dry completely before reinstalling.
  5. Using a scan tool, monitor short-term (STFT) and long-term (LTFT) fuel trims at idle and at 2500 RPM. High positive numbers (e.g., LTFT > +20%) confirm the computer is adding fuel to correct a lean condition. If trims are high at idle but improve at 2500 RPM, suspect a vacuum leak. If trims are high at all RPMs, suspect a MAF or fuel delivery issue.
  6. Perform a smoke test to check for vacuum leaks. Pay close attention to the intake manifold gaskets, PCV valve and hose, and the EVAP purge valve and hoses.
  7. If no vacuum leaks are found and the vehicle is part of the recall, have the fuel pump replaced. If not, test the fuel pressure to rule out a weak fuel pump or clogged filter.
  8. As a final step, test the response of the Bank 1 Air/Fuel Ratio sensor. If it appears slow or biased, it may be faulty.

Parts You'll Likely Need

  • Mass Airflow (MAF) Sensor (OEM #22204-75040) — This is the most common cause. It gets dirty and misreads airflow, leading to a lean mixture. Cleaning often works, but replacement is sometimes necessary.
    Trusted brands: Denso
    OEM price range: $215-$250
    Aftermarket price range: $120-$180
  • Air/Fuel Ratio Sensor (Bank 1, Sensor 1) (OEM #89467-08020) — This sensor detects the lean condition. While less common to be the root cause, it can fail and send incorrect lean signals. Bank 1 is the rear bank against the firewall.
    Trusted brands: Denso, NTK
    OEM price range: $200-$250
    Aftermarket price range: $180-$220
  • PCV Valve (OEM #12204-31120) — A stuck-open PCV valve is a common cause of a vacuum leak that can trigger a P0171, sometimes without a P0174. It is an inexpensive and easy part to replace as a diagnostic step.
    Trusted brands: Toyota OEM
    OEM price range: $10-$20
    Aftermarket price range: $5-$15
  • Intake Manifold Gasket Set — A leak in the intake manifold gasket is a common source of unmetered air that causes lean codes.

Related Codes That Often Appear With This One

  • P0174 — This is the 'System Too Lean' code for Bank 2. When P0171 and P0174 appear together, it strongly suggests a problem affecting the entire engine, such as a faulty MAF sensor, a major vacuum leak before the intake splits (like a purge valve), or low fuel pressure from the recalled pump.
  • P0087 — This code means 'Fuel Rail / System Pressure – Too Low'. The official Toyota TSB T-SB-0009-23 explicitly lists this code alongside P0171, pointing towards a failing fuel pump or clogged filter as a primary cause on this vehicle.

Technical Service Bulletins (TSBs) & Recalls

  • T-SB-0009-23: Links hard start, MIL ON with codes P0171, P0174, and P0087, pointing to low fuel pressure as the cause.

Platform-Specific Known Issues

  • NHTSA TSB #TSB000923: Some vehicles may exhibit a hard start and/or MIL ON with DTCs P0171 (System Too Lean Bank 1), P0174 (System Too Lean Bank 2), and/or P0087 (Fuel Rail / System Pressure – Too Low), pointing to a potential fuel delivery issue. [⭐]
  • Fuel Pump Recall: → Shop Fuel Pump A significant number of 2017-2020 Siennas are affected by a recall for a faulty low-pressure fuel pump that can cause stalling and lean conditions. It is critical to check if your vehicle is part of this recall.

Mechanic-Grade Diagnostic Values

  • Long-Term and Short-Term Fuel Trims (LTFT/STFT) — expected: Close to 0%, typically within +/- 5% at idle and 2500 RPM.. Failure: A P0171 code is typically set when the combined fuel trim value exceeds +25% to +33%. If trims are high at idle but normalize at higher RPM, a vacuum leak is likely. If trims are high at all RPMs, a MAF or fuel delivery issue is more probable.
  • Low-Pressure Fuel System — expected: 196 to 833 kPa (28 to 121 psi).. Failure: Pressure below the specified range indicates a failing low-pressure fuel pump (in-tank) or a clogged filter, consistent with TSB T-SB-0009-23.
  • High-Pressure Fuel System — expected: 2400 to 19500 kPa (348 to 2828 psi) when holding engine at 3000 RPM.. Failure: Pressure below this range can indicate a problem with the high-pressure mechanical fuel pump.
  • Upstream Air/Fuel Ratio Sensor Voltage — expected: On a generic O2 sensor, voltage fluctuates rapidly between 0.1 and 0.9 volts. Toyota A/F sensors operate differently but should show rapid activity on a scan tool.. Failure: A lazy or non-responsive sensor that is stuck on a low voltage reading may be faulty, though it is more likely correctly reporting a lean condition.
  • MAF Sensor Air Temperature (THA) Resistance — expected: ~2.21kΩ to 2.69kΩ at 20°C (68°F) between the THA and ground pins.. Failure: An out-of-spec resistance indicates a faulty thermistor within the MAF sensor assembly. This test helps verify sensor integrity before replacement.

Hidden / Shadow Codes Worth Checking

  • Mode $06 Data: Mode $06 is not a 'code' but a diagnostic mode that provides access to the results of non-continuous self-tests run by the ECU. It can show if a component, like an A/F sensor or catalyst, is performing close to its failure threshold, even before a DTC like P0171 is triggered. Data is presented with a Monitor ID (MID) and Component ID (CID). (see via Requires an advanced OBD-II scan tool that supports Mode $06 data display, such as Toyota's Techstream software.)

Scan Tool Commands That Help

  • Toyota Techstream: Active Test: Control the Fuel Pump / Speed — This allows a technician to manually activate the in-tank fuel pump with the engine off to verify its operation and check for correct fuel pressure, helping to isolate a fuel delivery problem.
  • Toyota Techstream: Active Test: EVAP System Check (Control the Purge VSV) — This bidirectional command allows the technician to manually open and close the EVAP purge solenoid to check for proper operation and see if it affects fuel trims, which helps diagnose a stuck-open valve causing a vacuum leak.
  • Toyota Techstream: Utility: Reset Memory — After a repair is completed (e.g., replacing a MAF sensor or fixing a vacuum leak), this function should be used to clear the learned fuel trim values from the ECU. This forces the computer to relearn the fuel strategy immediately with the new/repaired parts, rather than slowly adapting from the old, incorrect values.

Wiring & Ground Locations

  • Engine Harness Grounds — On the 2GR-FE/FKS engine, key harness grounds are typically located on the side of the cylinder heads. One is often found under the throttle body, and another on the front head.. A poor ground connection for the engine harness can cause erratic sensor readings from the MAF and A/F sensors, leading to incorrect data being sent to the ECU and potentially triggering false lean codes. A voltage drop test on ground circuits should read less than 0.1 volts.
  • Valve Cover Grounds — There are typically ground straps connecting the valve covers to the vehicle's chassis/frame on both sides of the engine.. These ensure the engine block itself is properly grounded to the rest of the vehicle, which is critical for all engine electronics, including the ignition and fuel systems.
  • MAF Sensor Connector — The 5-pin connector on the Mass Airflow sensor, located on the air intake tube after the air filter box.. The pins for the MAF signal (VG), sensor ground (E2G), and power (+B) are critical. Corrosion or loose pins in this connector can cause the MAF to under-report airflow, directly causing a P0171 code.

Real Owner Repair Stories

  • YouTube user 'ALL VEHICLE OWNERS' (2020 Toyota Sienna) — Check Engine Light with codes P0171, P0174, P0505, P1170, P117B.
    ❌ Tried (didn't work) Initial research pointed to a bad PCV valve or EVAP purge solenoid.
    ✅ What actually fixed it Found a vacuum hose completely disconnected from the port on the air intake tube, right behind the throttle body. The hose had likely been knocked off during a recent battery replacement. Reconnecting the hose resolved all codes for $0.
  • YouTube user 'Scotty Wrenches' (2008 Toyota Sienna (2GR-FE engine, similar PCV system)) — P0171 (Bank 1 Lean) only, no P0174.
    ❌ Tried (didn't work) Considering MAF sensor, fuel delivery, or A/F sensor, but noted these should affect both banks.
    ✅ What actually fixed it The PCV valve was stuck slightly open, creating a vacuum leak that primarily affected the rear cylinder bank (Bank 1). The valve still rattled when shaken, which is not a definitive test. Replacing the inexpensive PCV valve solved the single-bank lean code.
  • YouTube user 'Irfan Chaudhry' (2020 Toyota Sienna, 42,000 miles) — Hard start/no-start after refueling. Check Engine Light with P0171, P0174, and other EVAP codes.
    ❌ Tried (didn't work) Initial diagnosis was confusing due to multiple codes.
    ✅ What actually fixed it Replaced the EVAP Canister Purge Solenoid Valve. After replacement, the hard-start-after-refueling issue was gone and the check engine codes did not return.

"I Checked Everything" — The Actual Cause

  • A cracked exhaust manifold before the upstream A/F sensor can cause a P0171. This will not be found with a standard intake smoke test, as the leak is on the exhaust side. The A/F sensor detects the extra oxygen drawn into the exhaust stream and makes the ECU think the engine is running lean.
  • A faulty PCV valve that is internally leaking but appears sealed from the outside may not show up on a smoke test. The leak path is through the valve's mechanism itself, which can cause a lean condition (often on a single bank) but is best diagnosed by testing the valve's function or by substitution.

When the Usual Fixes Don't Work

  • While Pass 2 correctly identifies common causes affecting both banks (like the MAF sensor or fuel pump), a real-world repair story demonstrates that if ONLY P0171 is present, the cause is more likely isolated to Bank 1. In that case, a faulty PCV valve created a vacuum leak that was routed more directly to the intake runners for Bank 1 (the rear bank), solving the code without replacing the A/F sensor or MAF. This highlights the importance of not 'shooting the messenger' (the A/F sensor) and considering how vacuum leaks can be bank-specific.

Model Year Variations Within This Range

  • 2017-2020: No significant variations affecting the diagnosis of P0171 have been identified within this specific model year range. The primary change was the introduction of the 2GR-FKS engine in 2017. The fuel pump recall (20TA02) is a major issue that spans most of this period.
Toyota Sienna Check Engine P0174, P0171, P117B,  P1170, P0505 no cost fix
Toyota Sienna Check Engine P0174, P0171, P117B, P1170, P0505 no cost fix
2020 Toyota Sienna P0171, P0174, P0505, P1170 = Defective Purge Valve
2020 Toyota Sienna P0171, P0174, P0505, P1170 = Defective Purge Valve
Toyota Sienna check engine codes P0174, P0171, P117B,  P1170 ... resolved, $55 dollar DIY fix
Toyota Sienna check engine codes P0174, P0171, P117B, P1170 ... resolved, $55 dollar DIY fix
P0171 Mass Air Flow Sensor Cleaning
P0171 Mass Air Flow Sensor Cleaning
How To Clean A Toyota Mass Air Flow Sensor/ Hot Wire MAF
How To Clean A Toyota Mass Air Flow Sensor/ Hot Wire MAF
Toyota Sienna Check Engine P0171- SOLVED
Toyota Sienna Check Engine P0171- SOLVED
⫷ Toyota / Lexus 3.5l 2GR-FE, PCV Valve Replace with torque and Tips! ⫸
⫷ Toyota / Lexus 3.5l 2GR-FE, PCV Valve Replace with torque and Tips! ⫸
Toyota recalls nearly 700K vehicles to fix faulty fuel pumps
Toyota recalls nearly 700K vehicles to fix faulty fuel pumps
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated Apr 30, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the OBD-II Code P0171 for:
  • Toyota SIENNA: 2017201820192020
In this article
🧭 Diagnostic Flowchart
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part