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

P0171 on 2017-2023 Subaru Impreza: System Too Lean Causes and Fixes

On a 2017-2023 Subaru Impreza, code P0171 is most often caused by a vacuum leak from a cracked intake hose, a dirty Mass Airflow (MAF) sensor, or a failing front Air-Fuel Ratio sensor. Start by inspecting the air intake boot for cracks and cleaning the MAF sensor before moving to more complex diagnostics. A smoke test is the most definitive way to find vacuum leaks.

25 minutes to read 2017-2023 Subaru Impreza
Most Likely Cause
Vacuum Leak (Cracked Intake Hose, Gaskets, PCV Hose)
Difficulty
2/5
Est. Time
1.5 hrs
DIY Doable?
✅ Yes
Shop Labor
$100 – $650
Parts Price
$10 – $400
⚠️ Drivable, but... — You can drive, but it's not recommended for long. A prolonged lean condition can increase engine temperatures, potentially leading to damage to the catalytic converter or internal engine components over time. You may also experience rough idle, hesitation, and reduced power, which could be a safety concern in traffic.
Key Takeaways
  • P0171 on your Impreza means the engine is running with too much air or too little fuel.
  • The most likely cause is unmetered air entering the engine from a cracked plastic or rubber intake hose. Inspect these parts carefully.
  • Before buying any parts, spend $10 on a can of MAF sensor cleaner and clean your MAF sensor. This is a cheap and easy step that often solves the problem.
  • If visual inspection and cleaning the MAF don't work, the next step should be a smoke test to definitively find any vacuum leaks.
  • If there are no vacuum leaks, the next most likely culprit is a failing front Air-Fuel Ratio (O2) sensor.
The code P0171 stands for 'System Too Lean (Bank 1)'. This means the engine's computer, or Powertrain Control Module (PCM), has detected too much air and not enough fuel in the air-fuel mixture. The PCM tries to compensate by injecting more fuel, which can be observed as high positive long-term fuel trim (LTFT) values on a scanner, but it has reached its maximum adjustment limit, triggering the check engine light. For the Impreza's four-cylinder boxer engine, 'Bank 1' refers to the entire engine as it only has one bank and one upstream A/F sensor.

What's Unique About the 2017-2023 Subaru Impreza

The FB20D engine in the fifth-generation Impreza is sensitive to unmetered air entering the system after the Mass Airflow (MAF) sensor. The plastic and rubber components of the intake system, particularly the main air intake hose, can become brittle and crack over time, leading to vacuum leaks that are a very common cause of P0171 on this platform. A mechanic in a YouTube video noted that the seam on the plastic intake hose is a poor design and that he has replaced three of them for the same P0171 issue. While many vehicles suffer from this code, Subarus seem particularly prone to cracked intake boots and failing front air-fuel ratio sensors, which can be contaminated by common oil leaks from the cam carriers.

Symptoms You May Notice

  • Check Engine Light is on
  • Rough or unstable idle.
  • Hesitation or stumbling during acceleration.
  • Reduced engine power.
  • Decreased fuel economy.
  • In some cases, other warning lights like traction control or cruise control may flash, as this is a common Subaru behavior when a check engine light is triggered.
  • A hissing sound from the engine bay indicating a vacuum leak.
  • Exhaust may smell rich or like gasoline because the ECU is dumping fuel to compensate for the perceived lean condition.
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the O2 sensor without first checking for vacuum leaks. Vacuum leaks are more common and cheaper to fix.
  • Replacing the MAF sensor without trying to clean it first.
  • Guessing and replacing parts without performing diagnostics like a smoke test or fuel pressure test. One YouTube video documented a car that had its crank and cam sensors replaced for a P0171 code before the actual issue (dirty injectors) was found.
  • 🎬 See this guide on diagnosing and fixing lean engine codes.
  • Assuming a clean-looking MAF sensor is good. Contamination is often invisible.

Most Likely Causes

  1. Vacuum Leak (Cracked Intake Hose, Gaskets, PCV Hose) 🔴 High Probability The plastic/rubber air intake hose between the air filter box and the throttle body is a known failure point. The seams can split or the material can crack from age and heat cycles, often on the underside making it hard to see. PCV hoses can also become brittle and crack. Additionally, NHTSA ODI #10865341 describes a case where a technician traced a P0171 fault to a vacuum leak around the brake booster check valve due to a cracked vacuum valve.
    How to confirm: Visually inspect the entire intake path for cracks, especially on the underside of ribbed sections. A common failure is a split along the seam of the main intake duct. The best method is to perform a smoke test, which will force smoke into the intake system and make any leaks obvious. You can also spray brake cleaner or a combustible fluid around suspected leak points with the engine running; a change in idle indicates a leak. 🎬 Watch: A quick trick to find vacuum leaks without tools.
    Typical fix: Replace the cracked hose or gasket. A smoke test is highly recommended to pinpoint the exact source of the leak.
    Est. part cost: $20-$150
  2. Dirty or Faulty Mass Airflow (MAF) Sensor 🟡 Medium Probability → Shop Fuel Injection Air Flow Meter The MAF sensor measures the air entering the engine. If it's dirty, it can under-report airflow, causing the computer to command too little fuel. This is a common issue across many modern vehicles, and the sensor's cleanliness often cannot be judged by eye. NHTSA ODI #11329091 notes a diagnostic instance where no leaks were found and the MAF sensor was cleaned to address the lean condition.
    How to confirm: Carefully remove the sensor and inspect the delicate wires. Even if it looks clean, it can be dirty enough to cause issues. Cleaning is a cheap first step. A diagnostic scanner can be used to monitor MAF readings; abnormal readings at idle or under load can indicate a problem. If the problem persists after cleaning and ruling out vacuum leaks, the sensor may be faulty.
    Typical fix: Clean the sensor using only dedicated MAF sensor cleaner spray. Do not touch the sensor wires or use other chemicals like carb cleaner. If cleaning doesn't work, replace the sensor with a quality part (Denso is the OEM supplier).
    Est. part cost: $10 (cleaner) - $200 (new sensor)
  3. Failing Front Oxygen (O2) / Air-Fuel (A/F) Sensor 🟡 Medium Probability The front O2 sensor (Subaru calls it an Air-Fuel Ratio sensor) is critical for fuel control. As it ages, it can become slow or biased, sending an incorrect lean signal to the ECU. NHTSA ODI #11486440 describes a P0171 diagnosis where an intermittent failure of the air-fuel sensor caused rich fuel compensation and affected mileage. Owners report issues with non-OEM sensors, so using a genuine or high-quality brand (like Denso) is recommended. These sensors are also susceptible to contamination from oil leaks, a known issue on FB engines.
    How to confirm: This is best diagnosed with a scan tool that can graph the sensor's voltage or lambda values. A healthy sensor will react quickly to changes in throttle. Visually inspect the sensor and its wiring for oil contamination, which is a strong indicator of a problem.
    Typical fix: Replace the front (upstream) Air-Fuel Ratio sensor.
    Est. part cost: $100-$250

Rare But Worth Checking

  • Low Fuel Pressure: Could be caused by a weak fuel pump, clogged fuel filter, or faulty fuel pressure regulator. Requires a fuel pressure test to confirm. The FB20D has both a low-pressure in-tank pump and a high-pressure mechanical pump; the latter is a known failure point for other codes like P0087 but is less common for P0171. NHTSA ODI #10496665 reports a case where a vehicle entered limp mode with a P0171 code and the diagnosis found an issue with the fuel line.
  • Clogged Fuel Injectors: → Shop Fuel Injector If one or more injectors are dirty and not delivering enough fuel, it can cause a lean condition. A diagnostic video showed a 2018 Impreza with P0171 being fixed by professionally cleaning the fuel injectors after other parts were incorrectly replaced. Using a quality fuel system cleaner like Redline SL-1 is a recommended first step.
  • Exhaust Leak (before O2 sensor): A crack in the exhaust manifold or a bad gasket can draw in fresh air, tricking the front O2 sensor into reading a false lean condition.
  • Oil Leak onto O2 Sensor: → Shop Oxygen Sensor A Reddit user noted a cam carrier oil leak dripped onto the O2 sensor, contaminating it and causing a false P0171 code. This is specific but worth checking if there are visible oil leaks in that area. Another user with a Crosstrek (same engine) confirmed this exact scenario fixed their P0171. Cam carrier leaks are a known issue on FB engines.
  • Stuck Open PCV Valve or Purge Solenoid: → Shop Vapor Canister A Positive Crankcase Ventilation (PCV) valve that is stuck open will create a vacuum leak. Similarly, a stuck-open canister purge solenoid can also cause a lean condition, sometimes intermittently after refueling.

Diagnosis Steps

  1. Read the code with an OBD-II scanner and check for any other pending or stored codes.
  2. Check the long-term fuel trim (LTFT) and short-term fuel trim (STFT) values. A combined value of +25% or higher at idle, which then decreases when RPMs are raised to ~2500, strongly suggests a vacuum leak.
  3. Perform a thorough visual inspection of the entire air intake system, from the airbox to the throttle body. Pay close attention to the flexible intake hose for any cracks or loose clamps, especially on the underside seam.
  4. If no obvious leaks are found, remove and clean the MAF sensor with dedicated MAF cleaner spray. Let it dry completely before reinstalling.
  5. Clear the codes and drive the vehicle to see if the code returns. If it does, proceed to the next step.
  6. The most effective way to find a hidden vacuum leak is with a smoke machine. Connect the machine to a vacuum port and fill the system with smoke to reveal the source of the leak(s).
  7. If no vacuum leaks are found, inspect the front O2/A-F sensor's operation using a scan tool. A lazy or non-responsive sensor is a likely culprit. Check for oil contamination on the sensor and its wiring harness from potential cam carrier leaks.
  8. If all else fails, consider fuel delivery. Use a quality fuel injector cleaner. If that doesn't help, perform a fuel pressure test to ensure the fuel pump and regulator are functioning correctly. Professional injector cleaning may be required.

Parts You'll Likely Need

  • Air Intake Hose / Duct (OEM #14460AA600 (Note: Verify with VIN, this is a common example but may vary)) — This is the most common failure point leading to a vacuum leak on this vehicle. The plastic seam is known to split.
    Trusted brands: Subaru (OEM)
    OEM price range: $50-$150
    Aftermarket price range: $30-$100

Related Codes That Often Appear With This One

  • P0172 — If the car has an intermittent fault or the computer overcorrects for a lean condition, you might occasionally see a P0172 (System Too Rich) code, though this is less common.
  • P0300-P0304 — A severe lean condition can cause misfires. You might see random misfire codes (P0300) or cylinder-specific codes (P0301, P0302, etc.).
  • P1163 — A diagnostic video on a 2018 Impreza showed a P1163 (Engine Stall Detected) code alongside the P0171, indicating the lean condition was severe enough to cause stalling.

Technical Service Bulletins (TSBs) & Recalls

  • Subaru TechTIPS Newsletter (Feb 2022) - References DTC P0171 diagnostics and points toward checking for vacuum leaks at the intake manifold as a common cause.
  • While not directly for P0171, TSB #09-123-24 addresses failures of the high-pressure fuel pump on the FB20D engine, which can cause fuel delivery issues and is relevant if fuel pressure is suspected.

Platform-Specific Known Issues

  • A user on r/subaruimpreza found their P0171 was caused by a simple loose clamp on the main intake hose that was not visually obvious until they physically checked it.
  • A user on r/Crosstrek with the same FB20D engine fixed their P0171 by discovering the passenger side valve cover gasket was leaking oil directly onto the upstream O2 sensor, saturating it and causing a false lean reading.
  • A YouTube video shows a mechanic demonstrating how the plastic seam on the intake duct splits open, calling it a 'very poor design' by Subaru and a common cause for P0171 he has seen multiple times.
  • A user on r/subaru fixed a high-mileage 2020 Impreza's P0171 by replacing a cracked PCV valve hose.

Mechanic-Grade Diagnostic Values

  • Long-Term (LTFT) and Short-Term (STFT) Fuel Trims — expected: Normal range is between -5% and +5%.. Failure: Consistently high positive values (e.g., LTFT at +25% or higher) indicate the ECU is adding significant fuel to compensate for a lean condition. A value of +35% was seen in one case with a PCV hose leak.
  • Mass Airflow (MAF) Sensor Reading at Idle — expected: Approximately 2.0-3.0 g/s for a 2.0L engine at normal hot idle. One user reported a reading of 2.91 g/s at idle which was considered normal.. Failure: A reading significantly lower than 2.0 g/s at idle suggests the sensor is dirty or failing, causing it to under-report airflow.
  • Injector Pulse Width at Idle — expected: Typically 2-3 milliseconds (ms) at hot idle.. Failure: A diagnostic video of a 2018 Impreza with P0171 showed the pulse width at a high 4.1 ms as the ECU tried to dump fuel to compensate for the lean condition.
  • Low-Side Fuel Pressure (In-tank pump) — expected: Approximately 41-46 psi.. Failure: Pressure significantly below 41 psi indicates a weak in-tank fuel pump or a clogged fuel filter, which can cause lean conditions under load.

Scan Tool Commands That Help

  • Subaru Select Monitor (SSM) or equivalent professional scanner: Fuel Trim Reset — After a repair (like fixing a vacuum leak or replacing a sensor), resetting the long-term fuel trim values forces the ECU to relearn from a baseline of zero instead of adapting down from a high learned value. This can confirm the fix more quickly.

Wiring & Ground Locations

  • Engine Block to Chassis Ground — A primary ground strap typically connects the engine block to the vehicle's chassis/frame rail.. A poor engine ground can cause noisy or incorrect readings from all engine sensors that use the block as a ground reference, including the A/F and MAF sensors. Ensuring this connection is clean and tight is a crucial, often overlooked, step.
  • Intake Manifold Ground — On many Subarus, a critical ground point for the ECU and sensor array is located on top of the intake manifold.. This is the main grounding point for the ECU's sensor network. Corrosion or looseness here can directly cause erratic sensor behavior, leading to false lean codes.
  • ECU Control System Ground — The ECU has multiple dedicated ground pins within its main connectors (e.g., on older models, plug B136 pin 1 and B134 pin 18). These are bundled into the main wiring harness and ground to the chassis.. A fault in the specific ground wire for the sensor control system within the harness can mimic a sensor failure, even if the main engine grounds are good. This is rare but requires a wiring diagram to diagnose.

Real Owner Repair Stories

  • Reddit user in r/subaru (2020 Impreza, 230,000 km) — P0171 code with short-term fuel trim at +35% at idle, but normal (0%) under load. Also noted that turning the A/C on would cause the fuel trims to return to normal at idle.
    ❌ Tried (didn't work) Initial diagnosis pointed to a general vacuum leak.
    ✅ What actually fixed it A crack in the PCV valve hose was found and repaired. The change in engine load from the A/C compressor was enough to alter the vacuum characteristics and mask the leak's effect on fuel trims.
  • YouTube channel 'The Disgruntled Mechanic' (2017 Chevrolet Trax 1.4L (demonstrates a universal P0171 diagnostic principle)) — P0171 code with high long-term fuel trims.
    ❌ Tried (didn't work) Visual inspection of hoses., Checking oil cap and dipstick for seal.
    ✅ What actually fixed it The final fix was replacing a faulty valve cover which had an integrated, failed PCV diaphragm, causing an unmetered air leak. The technician also demonstrated using a scan tool's 'Fuel Trim Reset' function after the repair.
  • YouTube channel 'Ivan's Workshop' (2018 Subaru Impreza) — P0171, P1163 (Stall Detected), rough idle, high fuel trims, and injector pulse width at 4.1ms.
    ❌ Tried (didn't work) The vehicle had previously had its crank sensor, cam sensors, and front A/F sensor replaced by other shops with no success.
    ✅ What actually fixed it The actual cause was severely clogged fuel injectors. After professional off-car cleaning and flow testing, the injector pulse width returned to normal, fuel trims corrected, and the P0171 code was resolved.
  • NHTSA ODI #11712991 — An owner reported that their engine stalled with a P0171 code present and several dash lights illuminated; since then, the vehicle will only crank but not start.

"I Checked Everything" — The Actual Cause

  • In one documented case on a 2014 Crosstrek (same FB20 engine), the owner had a P0171, replaced the MAF, and performed a smoke test which showed no leaks. The symptoms of hesitation and poor acceleration persisted. The issue pointed towards a fuel delivery problem, suggesting a weak fuel pump or clogged injectors as the next logical diagnostic step, even after a clean smoke test.
  • A severe fuel injector clog can cause a P0171 code that will not be found by a smoke test. A 2018 Impreza had multiple parts replaced before a shop diagnosed and fixed the issue by professionally cleaning the injectors.

When the Usual Fixes Don't Work

  • While vacuum leaks and dirty MAF sensors are the most common causes, master technicians and forum veterans emphasize not to overlook the fuel delivery side, even if a smoke test is clean. In a case involving a 2018 Impreza, the car had already been to multiple shops that focused on air-side issues (replacing the A/F sensor, etc.). The final, correct diagnosis was clogged fuel injectors, which required professional off-car cleaning to resolve. This highlights the importance of analyzing all live data, including injector pulse width, before committing to a repair.

OEM Part Supersession History

  • Unknown16625AA070 — This is the current part number for the high-pressure fuel pump used on the FB20D engine for the 2016-2020 model years.

Model Year Variations Within This Range

  • 2017+: The 2017 model year marked the introduction of the FB20D engine with direct injection, replacing the previous port-injected FB20B. This change introduced the high-pressure fuel system and increased the engine's susceptibility to carbon buildup on intake valves.
  • 2019: For the 2019 model year, there were very few mechanical changes to the engine. Revisions were minor and focused on features like making EyeSight available on more trims and a new short-throw shifter for the manual Sport trim. The core causes of P0171 remain the same as the 2017-2018 models.

Diagnostic Flowchart

Start by checking your live engine data with a scan tool, specifically the Long Term Fuel Trims (LTFT). This single value will immediately tell you whether to hunt for a vacuum leak or investigate a faulty sensor.
High fuel trims strongly suggest a vacuum leak. First, visually and physically inspect the large, ribbed plastic air intake hose between the air filter box and the engine. Is it cracked, split at the seam, or are the clamps loose?
→ This is the most common cause for P0171 on the FB20D engine. Replace the damaged hose or tighten the clamp. Clear codes and test drive before continuing.
The leak is likely smaller and harder to see, like a cracked PCV hose or intake gasket. How do you want to find it?
→ This is the most reliable method. Introduce smoke into the intake system and look for where it escapes. Check the PCV system and intake manifold gaskets, as noted in Subaru TechTIPS.
→ With the engine idling, carefully spray short bursts of a combustible fluid around vacuum lines and gasket mating surfaces. A sudden change in engine RPM indicates the leak's location. Use caution as this is flammable.
Normal trims suggest the issue may be a sensor misreading airflow or a fuel delivery problem. What is your first step?
→ Remove the MAF sensor and clean it ONLY with dedicated MAF sensor cleaner spray. Do not touch the wires. Let it dry completely, reinstall, clear codes, and test drive. This is a cheap and common fix.
Next, inspect the front Air-Fuel (A/F) sensor, located in the exhaust manifold. Is there engine oil on the sensor body or its wiring harness?
→ This is a classic sign of the common FB20D cam carrier leak contaminating the sensor. The A/F sensor must be replaced (use an OEM/Denso part) and the oil leak must be repaired to prevent a repeat failure.
The A/F sensor may have failed internally or there's a fuel delivery problem. How will you proceed?
→ Graph the front A/F sensor's live data. A healthy sensor responds almost instantly to throttle changes. A slow or 'lazy' sensor is faulty and needs replacement. Use a quality Denso or OEM part.
→ Start with a quality fuel injector cleaner in the gas tank. If that fails, perform a fuel pressure test. Note that TSB #09-123-24 exists for high-pressure fuel pump issues on the FB20D.

Other Known Issues on This Vehicle

Issues unrelated to this code that are worth knowing about as an owner of this generation:

  • Excessive Oil Consumption 🟠 Medium — More common on earlier FB engines, but still reported on the FB20D. Can start before 100,000 miles. Caused by low-tension piston rings designed for efficiency. (Ref: Subaru has acknowledged issues and faced class-action lawsuits for earlier FB engines.)
  • Intake Valve Carbon Buildup 🟠 Medium — A common drawback of all direct-injection engines. Typically requires cleaning (walnut blasting) between 60,000-100,000 miles to resolve power loss, hesitation, or rough idle.
  • Cam Carrier Oil Leak 🔴 High — A well-documented leak where the cam carrier sealant fails, causing oil to drip onto components below, including the exhaust and O2 sensors. Repair is very labor-intensive as it requires engine removal.
  • Failing High-Pressure Fuel Pump (HPFP) 🔴 High → Shop Fuel Pump — Common failure leading to code P0087, stalling, and no-start conditions. The original pump design was faulty. (Ref: TSB #09-123-24 (Announces a redesigned pump))
  • Faulty Thermo Control Valve (TCV) 🟠 Medium — The electronically controlled thermostat can fail, leading to overheating or improper engine temperatures. Some owners report this being replaced under warranty.

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: For a cracked air intake hose (part #14460AA600), a used part from a low-mileage donor vehicle is a perfectly acceptable and cost-effective repair. One technician in a video specifically sourced a used hose from a vehicle with only 1,000 miles. Other simple mechanical components like brackets or non-electronic engine covers are also ideal candidates for used parts.

Donor-vehicle mileage cap: roughly under 50000 miles for the part to have meaningful remaining life.

What to inspect on the donor part:

  • For a used intake hose, inspect it carefully off the car. Squeeze the ribbed sections and check the seams for any signs of splitting or brittleness.
  • Ensure all mounting tabs and connection points are intact.
  • Ask for the mileage of the donor vehicle; lower is always better for rubber and plastic components.

OEM-only on this vehicle (don't cheap out):

  • Front Air/Fuel Ratio Sensor: Many Subaru owners and technicians report that aftermarket A/F sensors can be problematic, either failing prematurely or providing inaccurate readings. Using a sensor from the Original Equipment Manufacturer (OEM), which is Denso, is strongly recommended.
  • Mass Airflow (MAF) Sensor: Similar to the A/F sensor, the MAF sensor is a precision instrument. While cleaning is the first step, if replacement is necessary, a genuine Subaru or OEM Denso part is the safest bet to avoid persistent issues.

Aftermarket brands forum-validated for this vehicle:

  • Denso: Denso is the Original Equipment supplier for many of Subaru's critical sensors, including the front Air/Fuel ratio sensor and MAF sensor. Buying a Denso-branded part is often identical to the genuine Subaru part but without the dealership markup.

Brands owners have reported issues with on this vehicle:

  • Unbranded or generic 'white-box' sensors from online marketplaces like eBay or Amazon should be avoided. There is a high risk of counterfeit or low-quality parts that will not perform to OEM specifications and may cause the code to return.

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

2018 Subaru Impreza FB20D

Symptoms: Check engine light and other warning lights ('and friends') appeared.

What fixed it: Replacing a cracked intake hose after cleaning the MAF and checking the O2 sensor did not resolve the issue.

Source hint: subaruimpreza.net thread titled 'p0171-check-engine-light-and-friends.95729/'

2017-2023 Subaru Impreza FB20D

Symptoms: P0171 code triggered by a leak that was not visually obvious.

What fixed it: Tightening a loose clamp on the main intake hose that was only discovered upon physical inspection.

Source hint: Reddit r/subaruimpreza user report

2018-2023 Subaru Crosstrek FB20D

Symptoms: P0171 lean code caused by sensor contamination.

What fixed it: Fixing a passenger side valve cover gasket leak that was dripping oil directly onto the upstream O2 sensor.

Source hint: Reddit r/Crosstrek user report

2020 Subaru Impreza FB20D — ~120000 miles

Symptoms: High-mileage vehicle triggered a P0171 code.

What fixed it: Replacing a cracked PCV valve hose.

Source hint: Reddit r/subaru user report

2018 Subaru Impreza FB20D

Symptoms: P0171 code persisted even after a previous shop replaced the cam and crank sensors without success.

What fixed it: Cleaning clogged fuel injectors.

Source hint: YouTube video 'detailed diagnostic video on a 2018 Impreza with P0171'

Frequently Asked Questions

Why are my traction control and cruise control lights flashing along with the Check Engine Light on my 2018 Impreza?
This is common Subaru behavior; when a check engine light is triggered for a code like P0171, the ECU often disables and flashes other warning lights like traction control or cruise control as a safety or notification measure.
Is there a TSB for fuel delivery issues on the FB20D engine that could cause a lean condition?
Yes, TSB #09-123-24 addresses failures of the high-pressure fuel pump on the FB20D engine, which can lead to fuel delivery issues relevant to a P0171 code.
Does Subaru have any technical guidance for P0171 diagnostics on the Impreza?
The Subaru TechTIPS Newsletter from February 2022 specifically references DTC P0171 diagnostics and suggests checking for vacuum leaks at the intake manifold as a common cause.
What brand of replacement MAF or O2 sensor should I use for my FB20D engine?
It is recommended to use genuine parts or high-quality OEM suppliers like Denso, as owners report issues with non-OEM sensors and Denso is the original equipment supplier.
Can an oil leak cause a P0171 lean code on my 2017-2023 Impreza?
Yes, oil leaks from the cam carrier or valve cover gaskets (common on FB engines) can drip onto the front Air-Fuel Ratio sensor, saturating the wiring and causing a false lean reading.
Is the intake hose a known failure point on this generation of Impreza?
Yes, the plastic/rubber air intake hose between the air filter box and throttle body is a known failure point where the seams can split or the material cracks due to heat cycles, often on the underside.
A secret mechanics don't want you to know! DTC P0171 Quick and easy way to find vacuum leaks!!
A secret mechanics don't want you to know! DTC P0171 Quick and easy way to find vacuum leaks!!
Subaru Air Fuel Sensor P0030 P0031 P0032
Subaru Air Fuel Sensor P0030 P0031 P0032
How to Fix P0171 Engine Code in 5 Minutes [7 DIY Methods]
How to Fix P0171 Engine Code in 5 Minutes [7 DIY Methods]
P0171 Code: System Too Lean (Bank 1) – How to Fix & Diagnosis
P0171 Code: System Too Lean (Bank 1) – How to Fix & Diagnosis
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 Jun 8, 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 (Deep Dive) for:
  • Subaru Impreza: 2017201820192020202120222023
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