Home/Subaru/P0171

What does code P0171 mean on a Subaru and is it safe to drive?

P0171: System Too Lean (Bank 1). Here's what it means on your Subaru, what usually causes it, what repairs typically cost, and how safe it is to keep driving.

PowertrainMedium urgency

What this code means

The engine is getting too much air relative to fuel. The O2 sensor sees excess oxygen in the exhaust and the PCM is adding more fuel than normal to compensate.

Common causes for your Subaru

  • Dirty or faulty mass airflow (MAF) sensor
  • Vacuum leaks (PCV hose, intake gasket, brake booster)
  • Weak fuel pump or clogged fuel filter
  • Leaking or stuck open fuel injectors (less common)

Symptoms

  • Check Engine Light
  • Rough idle, hesitation, lack of power
  • Possible spark knock under load
  • Poor fuel economy

Typical fixes

  • Clean or replace MAF sensor
  • Locate and seal vacuum leaks
  • Replace fuel filter / test fuel pressure
  • Smoke test intake system

Repair cost range

For a Subaru, repairs for P0171 often fall between $50 and $500, depending on the cause and whether you use OEM or aftermarket parts. Labor rates vary by location.

Known issues on Subaru

Subaru P0171 on naturally-aspirated EJ25 2.5L engines often traces to a failing MAF sensor—the Subaru MAF degrades gradually and the car can run for years with a slightly degraded reading. Clean the MAF first, then compare short-term and long-term fuel trims. On turbocharged Forester XT and WRX (EJ255/EJ257), a cracked turbo inlet hose between the MAF and turbo compressor inlet is the most common cause—the rubber boot cracks at the clamped ends. On EZ36 3.6L, the MAF housing itself can develop hairline cracks.

Most commonly affected models

Legacy 2.5L EJ253 2005–2012Forester 2.5L EJ25 2008–2013Outback 3.6L EZ36 2008–2019

Is it safe to keep driving your Subaru with this code?

For driving-safety guidance—how far you can go, when to tow, and what's urgent—see these checklists:

Browse P0171 on your Subaru by model year

Year-specific guides include Subaru-tailored causes and repair costs.

More codes for Subaru

View all OBD2 code guides for Subaru