P0171: System Too Lean, Bank 1

P0171 quick answer

P0171 means system too lean bank 1: the engine is getting more air than the fuel system can match, and fuel trim has hit its limit. The most common causes are a vacuum leak and a dirty mass airflow sensor, and they are also the cheapest to fix: a cracked vacuum or PCV hose is an inexpensive part, so most of a shop bill is finding the leak, usually with a smoke test, and a dirty MAF sensor can often be cleaned rather than replaced. If fuel delivery is short instead, typical US shop prices are $60 - $180 for a fuel filter (on cars where it is a separate part) and $100 - $300 for a fuel-system cleaning service for dirty injectors; a weak fuel pump is the expensive end. Clean the MAF and check for vacuum leaks before buying parts.

  • Severity: Moderate
  • Can I drive? Yes for a short trip, though it is worth fixing soon rather than ignoring.
  • Typical fix: $100 - $600

Also written as PO171 or P171.

Keep a record of this P0171 repair: add your car free, log the fix, and get an email before its next scheduled service

What P0171 means

P0171 means the engine is running lean on bank 1 - there is too much air relative to fuel, and the computer has run out of room to add fuel to compensate. It is most often caused by unmetered air sneaking into the engine (a vacuum leak) or by the mass airflow sensor under-reporting airflow. Left alone, a persistent lean condition can cause misfires and, over time, engine damage.

Symptoms of P0171

  • Check-engine light on
  • Rough or unstable idle
  • Hesitation or stumble under acceleration
  • Slightly reduced power
  • Possible mild pinging under load

Is it safe to drive with P0171?

Yes for a short trip, though it is worth fixing soon rather than ignoring. A lean condition mostly causes rough idle, hesitation, and mildly reduced power rather than a breakdown, so driving to a shop is normally fine. Left unaddressed for weeks or months, a lean mixture runs hotter than designed and can eventually cause misfires or engine wear, so get it diagnosed within a couple of weeks.

Common causes of P0171

  1. Vacuum or intake air leak (cracked hose, gasket, or PCV)
  2. Dirty or failing mass airflow (MAF) sensor
  3. Weak fuel pump or clogged fuel filter
  4. Dirty or clogged fuel injectors
  5. Exhaust leak ahead of the upstream oxygen sensor

Listed roughly most-likely first. Confirm with a scan tool and the freeze-frame data before replacing parts.

What the P0171 fix costs

FixDIY partsAt a shop
Find and seal a vacuum leak$10 - $50$100 - $300
Clean or replace the MAF sensor$10 - $150$50 - $250
Replace the PCV valve or hose$10 - $40$80 - $180
Replace a weak fuel pump$80 - $300$300 - $600

Ranges are rounded and for the US market only - actual price depends on region, shop labor rates, and the exact make and model.

What a new MAF sensor costs, if testing points to it

Parts for the most likely fix: Mass air flow (MAF) sensor cleaner, Vacuum hose kit, PCV valve. See all parts

Parts that commonly fix P0171

  • Mass air flow (MAF) sensor cleaner - The cheapest first try: a dirty MAF under-reads airflow, and cleaning fixes many lean codes for the price of a can
  • Vacuum hose kit - The most common lean cause: a cracked vacuum hose letting in unmetered air - cut to length for the hose that failed
  • PCV valve - A stuck PCV valve or split PCV hose is a classic hidden vacuum leak
  • Vacuum gauge - A low or unsteady idle vacuum reading confirms a leak before you start replacing hoses
  • Upstream oxygen / air-fuel sensor - Less common: a sensor reading falsely lean. Test it on live data before replacing
  • Fuel system cleaner - For partly clogged injectors - it will not fix a leak or a weak fuel pump
  • OBD-II scanner - Reads and clears codes, and shows live data so you fix the cause rather than the symptom

These open an Amazon search - add your year, make and model, because most of these parts are fitment-specific.

Affiliate Disclosure: ServiceSage Auto participates in the Amazon Services LLC Associates Program. We earn a small commission from qualifying purchases at no extra cost to you. This helps us keep our content free and up-to-date.

What P0171 actually means

P0171 means bank 1 is running lean - the PCM has been adding fuel to compensate and has hit the limit of what it is allowed to add. Crucially, this code is almost never a fuel problem. It is usually an air problem: the engine is getting more air than the sensors measured, so the fuel the PCM calculated is not enough. Unmetered air entering after the mass airflow sensor is the dominant cause, which is why the diagnosis is largely a hunt for vacuum leaks rather than anything to do with the fuel system.

How to diagnose P0171 step by step

  1. Step 1: Read short and long term fuel trims at idle and at cruise This single reading directs everything that follows. Large positive trims at idle that shrink at higher RPM mean a vacuum leak, because a fixed-size leak matters far less once airflow is high. Trims that stay high at all speeds point at fuel delivery or a MAF sensor under-reporting.
  2. Step 2: Inspect the intake tube between the MAF sensor and the throttle body A split in the accordion section, or a loose clamp, lets air bypass the sensor entirely. Flex the tube by hand with the engine running and listen for a change. This is the single most common P0171 cause on high-mileage vehicles and costs nothing to check.
  3. Step 3: Smoke test the intake for vacuum leaks Introduce smoke into the intake and watch for escapes at the manifold gasket, the PCV hoses, the brake booster line, and the throttle body gasket. Brittle plastic vacuum fittings are a known failure across many makes and crack invisibly.
  4. Step 4: Clean the mass airflow sensor A contaminated hot wire under-reports airflow, which produces exactly this code. Use MAF-specific cleaner only - brake cleaner and carb cleaner destroy the element. This is a five minute job that fixes a real share of these outright.
  5. Step 5: Check the PCV system A stuck-open PCV valve or a cracked breather hose is a large, calibrated vacuum leak by design. On several makes the PCV hose hardens and splits at the elbow, and it is a standard cause of a lean bank 1.
  6. Step 6: Verify fuel pressure and injector delivery last Only after air has been eliminated. A weak pump, restricted filter, or dirty injectors can lean out a bank, but they are far less common than an air leak and much more expensive to chase. Check pressure under load, not just at idle.

Reading P0171 fuel trims: the numbers that point at the cause

Fuel trim is the percentage the engine computer is adding to (positive) or taking away from (negative) its basic fuel calculation. Bank 1 short-term and long-term trims are Service 01 PIDs 06 and 07. P0171 sets when the computer has used up all the adding it is allowed - CARB's rule says a fault is due when "the adaptive feedback control has used up all of the adjustment allowed by the manufacturer."

  • What normal looks like: one technician reference puts typical values between minus 10 and plus 10 percent, and says long-term trims "around 20 to 25 percent will usually set a P0171 or P0174 lean code." The exact limit is each manufacturer's calibration, not a number in the regulation.
  • Idle versus 2,500 rpm: high positive trims at idle that fall toward normal at a steady 2,500 rpm point at a vacuum leak, because a fixed leak is a bigger share of the air at idle. Trims that stay high at both point at fuel delivery or a MAF sensor reading low.
  • Spray test with live data: watch short-term trim while you spray carb cleaner or an unlit propane stream around intake joints and hoses. A sudden drop in short-term trim is the engine burning the extra fuel - you have found the leak.
  • Freeze frame: the P0171 snapshot shows rpm, load, coolant temperature and both trims when it set. Set at warm idle points at a vacuum leak; set under heavy load points at fuel pressure or a clogged injector.
  • On a V6 or V8, read bank 2 (PIDs 08 and 09) too. Bank 2 also high without its own code yet means the cause is shared.

The full guide: Fuel trims and O2 sensor live data: what P0171, P0141 and P0420 look like on a scanner.

Sources: CCR title 13, section 1968.2 (CARB OBD II requirements), via Cornell LII; AA1Car, What Is Fuel Trim?; Wikipedia, OBD-II PIDs (Service 01 PID numbers)

P0171 with other codes: what the combination means

Find any code stored alongside P0171 below. A slash means any one of those codes.

  • P0171 + P0174: Both banks lean at once means the cause is shared by the whole engine: the MAF sensor, fuel pressure, or a leak on something both banks breathe through (PCV hose, brake booster line, the intake tube after the MAF). An injector or a one-side gasket cannot lean both banks.
  • P0171 + P0101: A MAF range or performance code with P0171 makes the airflow sensor the first suspect. Inspect the element, clean it with MAF cleaner only, and check the ducting between it and the throttle body for a tear.
  • P0171 + P0507: Idle speed higher than expected plus a lean code is a strong sign of a vacuum leak: the unmetered air both raises idle and leans the mixture. Smoke-test the intake.
  • P0171 + P0300 / P0301 / P0302 / P0303 / P0304: Lean enough to misfire. Fix the lean condition first; a random misfire usually goes with it. A single-cylinder misfire with P0171 points at that cylinder's injector or an intake leak at its runner.
  • P0171 + P0087: Low fuel rail pressure with a lean code means the engine is short of fuel, not over-supplied with air. Test fuel pressure before smoke-testing.

Manufacturer bulletins that name P0171

On these engines a factory bulletin names the cause of P0171 - a PCV tube, engine software or flex-fuel learning. Have a dealer check whether your VIN is covered.

  • Chevrolet and GMC Preliminary Information PIP5686 - 2019-2020 Silverado 1500 and Sierra 1500 with the 5.3L (L84): Rough idle, lean running and a whistle from the PCV system with P0171 and/or P0174, caused by the foul-air PCV tube installed wrong or damaged. Check the tube is seated (both ends latch with a click), smoke-test it, and replace it if it is cracked or its O-rings are damaged. Read the bulletin (NHTSA)
  • Nissan NTB19-030 - 2016-2018 Altima V6 (VQ35), Maxima, Murano and Pathfinder (2018 models built before set dates): For P0171, P0174, P2097 or P2099: diagnose per the service manual, then the dealer checks the engine computer part number against the bulletin's table and reprograms it if listed. Read the bulletin (NHTSA)
  • Ford Special Service Message 49050 - 2018-2020 F-150 5.0L flex fuel: P0171, P0172, P0174 and/or P0175 from incorrect flex-fuel learning - which Ford says is often caused by refueling habits, adding only small amounts of fuel - the truck mislearning the ethanol content, or a component fault. Read the bulletin (NHTSA)

The most common P0171 misdiagnosis

The name pushes people toward the fuel system, and replacing a fuel pump or injectors for P0171 is an expensive and usually wrong move. Lean almost always means extra unmetered air, not missing fuel. Eliminate every air path before spending anything on fuel components.

Tools you need for P0171

Parts you may need for P0171

Affiliate Disclosure: ServiceSage Auto participates in the Amazon Services LLC Associates Program. We earn a small commission from qualifying purchases at no extra cost to you. This helps us keep our content free and up-to-date.

P0171: DIY or pay a shop?

Difficulty: Easy to Moderate. Time: 0.5 - 3 hours. DIY parts: $15 - $250. Shop total: $120 - $600.

One of the better DIY codes, because the most likely causes are a cracked intake tube, a dirty MAF sensor, and a split PCV hose - all cheap, all reachable from the top of the engine, all fixable with hand tools. The only reason to involve a shop is if you need a smoke test to locate a leak you cannot find by hand.

After the P0171 repair: proving the fix

Long-term fuel trim is the scoreboard: it should walk back toward zero once the leak or supply problem is gone.

  1. Note the freeze-frame rpm, load and trims, then clear the code.
  2. Drive normally for a few days and re-read long-term trim at idle and at cruise. A repair that worked shows trims settling back toward the normal band; one that did not shows them climbing again.
  3. CARB applies the same similar-conditions rule to fuel system faults as to misfire: the light may go out after three drives in a row that reach engine speed within 375 rpm and load within 20 percent of the stored fault, at the same warm-up state, without the fault returning.
  4. If the code set at idle, prove the repair with idle time; if it set under load, with a loaded drive such as a highway on-ramp.

Sources: CCR title 13, section 1968.2 (CARB OBD II requirements), via Cornell LII

How to stop P0171 coming back

Replace intake hoses, PCV components, and the air filter on schedule. Every common cause of this code is a rubber or plastic part that hardens with heat and age. They fail on a predictable timeline, and replacing them proactively is far cheaper than the misfires and converter damage a long-running lean condition causes. Track the air filter and PCV service in ServiceSage and you replace the parts that cause this code before they crack, rather than after a warning light. Track this maintenance free.

P0171 FAQ

How much does it cost to fix P0171?

Typical US independent-shop repair cost for P0171 runs about $100 - $600, depending on the root cause. Common fixes: Find and seal a vacuum leak (about $100 - $300 at a shop); Clean or replace the MAF sensor (about $50 - $250 at a shop); Replace the PCV valve or hose (about $80 - $180 at a shop); Replace a weak fuel pump (about $300 - $600 at a shop).

Will P0171 clear itself?

No, not on its own. P0171 will keep coming back every time the relevant monitor re-runs until the underlying cause is actually repaired - clearing it with a scan tool without fixing what triggered it only delays the light coming back on.

What does system too lean bank 1 mean?

It is the full name of P0171. Lean means there is too much air for the amount of fuel. The computer constantly trims fuel up or down to hold the mixture correct; when it has added as much fuel as it is allowed to on bank 1 and the mixture is still lean, it sets P0171. Bank 1 is the side of the engine with cylinder 1 - on a four-cylinder engine, it is the whole engine.

Can a dirty air filter cause P0171?

Rarely on its own. A clogged filter reduces airflow, but the mass airflow sensor measures the air that actually gets through, so the mixture usually stays correct. What does cause lean codes is a dirty or oil-contaminated MAF sensor under-reporting airflow - over-oiled reusable filters are a known cause - or unmetered air entering after the sensor through a cracked intake boot or vacuum hose.

What is the difference between P0171 and P0174?

P0171 is lean on bank 1 and P0174 is lean on bank 2, which only exists on V6, V8 and other engines with two cylinder banks. When both set together, look for a cause shared by both banks - a dirty MAF sensor, low fuel pressure, or a large vacuum leak at the intake or PCV system. P0171 alone on a V engine points more toward a leak or injector on that one bank.

What fuel trim reading sets P0171?

There is no single number. California's OBD II rules say a fuel system fault is set when the computer's adaptive fuel correction has used up all the adjustment the manufacturer allows, so the limit is each maker's calibration. As a rule of thumb, one technician reference says long-term fuel trims around 20 to 25 percent will usually set P0171 or P0174, while normal trims stay within about 10 percent either way. Read bank 1 short- and long-term trims (PIDs 06 and 07) at idle and at 2,500 rpm to see where yours sits.

Related trouble codes: P0174 - System Too Lean, Bank 2, P0101 - Mass Air Flow (MAF) Sensor Circuit Range/Performance, P0172 - System Too Rich, Bank 1, P0300 - Random / Multiple Cylinder Misfire Detected, P0113 - Intake Air Temperature (IAT) Sensor 1 Circuit High

How P0171 shows up by make

Ford: On Ford V8 trucks and SUVs, cracked PCV and intake vacuum hoses and a contaminated MAF sensor are the documented first checks. When P0171 and P0174 set together, the cause is almost always shared between banks rather than a single injector.

Chevrolet and GMC: On GM V8s, intake manifold gasket leaks are a common source of unmetered air. A smoke test at the intake finds it without guesswork.

BMW: BMWs are known for lean codes from the crankcase ventilation valve and its hoses, which crack with heat. A failing crankcase vent often whistles at idle and makes the oil-filler cap hard to pull off with the engine running.

Makes where P0171 is common

This code can appear on any make - these are simply where it shows up most often.