P0171 Code: System Too Lean (Bank 1) Causes and Fixes

We may earn a commission when you buy through links on this site, at no extra cost to you. As an Amazon Associate I earn from qualifying purchases. Read our affiliate disclosure.

Short answer

If you want to read the code yourself, our pick is the BlueDriver OBD2 Scanner. See the BlueDriver OBD2 Scanner at Amazon.

A P0171 code means your engine’s bank 1 is running lean: there’s too much air for the amount of fuel. The engine computer has been adding fuel to make up for it, and it has hit its limit.

The short answer: the most common causes of a P0171 code are a vacuum leak, a dirty or faulty mass airflow (MAF) sensor, and low fuel pressure. Start with the free and easy checks: look over the intake duct and hoses, listen for a hiss, and read your fuel trims with a scanner. Leave smoke tests and fuel-pressure tests to a shop. And because several automakers have bulletins for P0171, check your VIN before you buy parts.

Jump to: What it means · Is it safe to drive? · Causes · How to fix it · A scanner · FAQ

What does the P0171 code mean?

P0171: System Too Lean (Bank 1). Hyundai’s service bulletin uses “P0171 – System too Lean – Bank 1,” and you’ll also see “Fuel Trim System Too Lean (Bank 1).” (The original SAE J2012 text is paywalled.)

RepairPal says it means the computer “can no longer automatically adjust the mixture.” In other words, it has added as much fuel as it’s allowed to, and the mixture still reads lean. Identifix says to confirm whether the engine “is actually lean or the control system only appears lean,” for example because of a skewed sensor reading.

  • Bank 1 is the side of the engine with cylinder 1. P0174 is the same code for bank 2.
  • Both together usually point to something both banks share, like the MAF sensor, fuel pressure or a large vacuum leak. One bank alone points toward a leak or sensor on that side. That’s general diagnostic logic, not a rule from a single source.

Is it safe to drive with a P0171 code?

For a short time, usually, but don’t ignore it. RepairPal rates P0171 “Urgent.” Identifix says, “The vehicle may continue to run, but a real lean condition can progress to hesitation, stalling, misfire, or catalyst stress. If the MIL flashes, the engine runs poorly, or power drops, stop driving when safe and arrange service.”

A steady light means “seek attention soon,” per the EPA. A flashing light means a severe engine problem, such as a misfire that can damage the catalytic converter, according to the EPA. See our P0300 misfire guide and check engine light on? what it means and what to do. Your car will also fail an OBD emissions inspection while the light is on.

Symptoms

  • A check engine light
  • Lack of power, hesitation or surging, misfires, a rough idle or stalling (RepairPal)

What causes a P0171 code?

  1. Vacuum leaks: intake gaskets, vacuum and PCV hoses, or a cracked intake duct after the MAF sensor (RepairPal, Identifix).
  2. A dirty or faulty MAF sensor.
  3. Low fuel pressure, from a clogged filter or weak pump (RepairPal).
  4. Plugged or dirty fuel injectors (RepairPal).
  5. An exhaust leak before the upstream oxygen sensor (Identifix).
  6. Software or known faults. See the bulletins below.

RepairPal’s common misdiagnosis for P0171: “Oxygen sensors.” A lean code usually isn’t a bad oxygen sensor.

Known factory fixes for P0171

Check your VIN first. A service bulletin or warranty extension applies only to the vehicles it lists, often only certain model years, engines or build dates. It doesn’t mean every car of that model has the problem, or that yours does. Ask a dealer to run your VIN for open bulletins, recalls and warranty extensions before you buy parts.

  • Ford TSB 25-2342: “Illuminated MIL With DTC P0171 Stored In The PCM,” certain 2021–2023 F-150 3.3L. The fix is a computer reprogram. Read it on NHTSA.
  • Toyota T-SB-0009-23 (February 9, 2023): “Fuel Pump (Loss of Fuel Pressure),” listing certain 2014–2020 models, including the 4Runner, Camry and Corolla. Per Identifix, it applies only when fuel pressure is confirmed out of spec. Read it on NHTSA.
  • GM Special Coverage 16139: GM’s coverage (10 years/120,000 miles from the in-service date, now expired for nearly all cars) identified a cracked air-cleaner outlet duct on certain 2012–2014 Chevrolet Sonic 1.8L with P0171 or P0101. Read it on NHTSA.
  • Honda 22-002: a fuel-injector warranty extension on certain 2015–2016 Fit, with P0171 among the listed codes, for “10 years from the original date of purchase or 150,000 miles, whichever comes first.” Many 2015–2016 Fits are now past the 10-year term; check your VIN. Read it on NHTSA.
  • Nissan NTB19-022: “P0171 and P0174 service information” for certain 2017–2018 Altima, 2017–2019 Sentra, Versa Note, Rogue and other models. Read it on NHTSA.
  • Hyundai TSB 16-FL-005: an engine computer update for certain 2011–2014 Sonata 2.4L GDI. Per Identifix, don’t replace the catalytic converter for P0171 alone. Read it on NHTSA.
  • Kia TSB ENG160 Rev 1: “ECU upgrade – MIL on with DTC(s) P0420/P0171” for certain 2011–2016 Optima, Sorento and Sportage. Read it on NHTSA.

How to diagnose P0171: DIY vs. shop

What you can do yourself

  1. Record the codes, freeze frame and fuel trims before you clear anything (Identifix).
  2. Run the fuel-trim test. This comes from a Ford service tech tip, as reproduced by UnderhoodService. Thresholds vary by make, so treat it as a guide:
    • At a warm idle, add bank 1’s long-term and short-term fuel trims. Around +20% or more suggests a lean condition typical of a vacuum leak.
    • Hold 2,500 rpm (no longer than 20 seconds at a time). If the total correction drops by more than 15%, a vacuum leak is likely. If it stays about the same, look at the MAF sensor or fuel delivery.
  3. With the engine off, inspect the intake duct and boot after the MAF sensor, plus the PCV and vacuum hoses (Identifix). Flexing an accordion-style boot can reveal hidden cracks.
  4. Listen for a hiss with the engine running.
  5. Clean the MAF sensor, but only with MAF-specific cleaner and only where the manufacturer allows it. Don’t touch the sensing element.
  6. If P0128 (thermostat) is also stored, diagnose it separately.

A safety note: you’ll see advice online to spray carb cleaner near hoses to find a leak. Near hot engine parts, that’s a fire risk. Get a shop smoke test instead.

What a shop does

A shop can run a smoke test, measure fuel pressure and volume with a gauge (Toyota’s bulletin requires a manual gauge reading), test injector flow, check for exhaust leaks and oxygen-sensor response, and check your VIN for bulletins and software updates.

How to fix a P0171 code

The fix depends on the cause: a cracked hose, duct or PCV part; an intake gasket; cleaning or replacing the MAF sensor; a fuel filter or pump; injectors; an exhaust-leak repair; or a software update under a bulletin. Afterward, clear the code with a scanner and confirm your fuel trims return near zero. The cost depends entirely on the cause.

A scanner to read your fuel trims

Any OBD2 scanner reads the code. For P0171, you’ll also want live fuel-trim data for the test above. These are the three picks from our best Bluetooth OBD2 scanner guide:

We may earn a commission when you buy through links on this site, at no extra cost to you. As an Amazon Associate I earn from qualifying purchases. Read our affiliate disclosure.

  • Best overall: BlueDriver OBD2 Scanner (Bluetooth). Car and Driver’s Best Bluetooth Scanner in its 2026 test. Its listed features include live data, freeze frame, smog readiness and Mode 6, with no subscription.

    Where to buy: Check price at Amazon · Check price at Walmart · Check price at BlueDriver

  • For enthusiasts: OBDLink MX+. Works with iOS, Android and Windows, adds MS-CAN and SW-CAN for Ford and GM, and pairs with apps like FORScan. Check the current price at Amazon.
  • Budget: Veepeak OBDCheck BLE. A small ELM327 adapter that works with third-party apps. Check the current price at Amazon.

We’ve confirmed live data on the BlueDriver. With the OBDLink and Veepeak, live fuel trims depend on the app you use.

How we built this guide

We did not diagnose any cars for this guide. Mike re-read every source on November 17, 2026: RepairPal, Identifix’s P0171 guide (updated October 21, 2026), UnderhoodService’s Ford tech tip, the EPA’s OBD brochure, and the manufacturer bulletins on NHTSA linked above.

More in this topic: Car tech start-here guide.

For our full process, see how we choose the gear we recommend.

FAQ

What’s the most common cause of P0171?

Vacuum leaks top most lists, followed by a dirty or faulty MAF sensor and low fuel pressure. The fuel-trim test above helps you tell a vacuum leak from a MAF or fuel problem.

I cleaned the MAF sensor and P0171 came back. Now what?

Look for a vacuum leak, especially a cracked intake boot or PCV hose, and consider a shop smoke test. In one r/MechanicAdvice thread (an unconfirmed owner account), a 2007 STI owner cleaned the MAF and fixed a leak found by a smoke test, and the code still returned, so there can be more than one cause.

Should I replace the MAF sensor?

Clean it first, where your manufacturer allows it, and check the hoses and PCV. In one r/accord thread (an unconfirmed owner account), a 2012 Accord with fuel trims above +20% seemed fixed by a new MAF sensor, but the owner later wrote that the problem came back and blamed bad gas.

What does it mean if I have P0171 and P0174 together?

Both banks are lean, which usually points to a shared cause like the MAF sensor, fuel pressure or a large vacuum leak.

Can P0171 damage my engine?

Identifix says a real lean condition can progress to hesitation, stalling, misfire or catalyst stress. Fix it before you chase a P0420 catalyst code.

Related codes

A purge valve stuck open can also set P0171, per Identifix. See P0455 (large EVAP leak) and P0442 (small EVAP leak).

Leave a Comment