Diagnostics

P0171 Code: System Too Lean (Bank 1) — The Complete Diagnostic Guide

Anthony CalhounASE Master Tech14 min read
P0171 — Fuel Trim System Too Lean (Bank 1): The PCM has detected a lean air-fuel mixture on Bank 1 and set this code when long-term fuel trim (LTFT) correction exceeded approximately +25% — meaning the PCM has maxed out its ability to add fuel and still cannot reach the stoichiometric target of 14.7:1 air-fuel ratio. There is too much air getting in, not enough fuel being delivered, or a sensor is giving the PCM bad information.

P0171 is one of the most pulled codes in any shop, and one of the most misdiagnosed. I have watched techs throw O2 sensors, MAF sensors, and fuel pumps at this code in sequence without ever reading a fuel trim. Every one of those parts changers was guessing. The scan tool was sitting right there the whole time, ready to tell them exactly what was going on — they just did not know how to read it.

This guide is going to teach you how to read fuel trims the way a master tech reads them, how to use that data to point at the correct cause before you pull out the smoke machine or the pressure gauge, and how to close the job the right way. We will also cover the pattern failures that come up over and over on specific platforms, so you are not starting from scratch on every car.

What P0171 Actually Means (and How the PCM Sets It)

The PCM monitors the air-fuel ratio through the upstream oxygen sensor (or air-fuel ratio sensor on modern vehicles). When the exhaust reads lean — too much oxygen — the PCM responds by adding fuel. It does this through two trim values: short-term fuel trim (STFT), which reacts in real time, and long-term fuel trim (LTFT), which learns and stores the correction over time.

Think of it this way. STFT is the PCM's immediate reaction. LTFT is the PCM saying, "I keep having to make this same correction every time the engine runs — I am going to bake that correction into my base calculation." When LTFT climbs above roughly +20% to +25% and the PCM still cannot get the mixture to 14.7:1, it sets P0171 and turns on the check engine light.

That threshold matters. If your LTFT is sitting at +22% and climbing, you do not have a bad O2 sensor — you have a lean condition the PCM cannot correct on its own. Something is pushing more air in than the MAF is measuring, or fuel delivery is falling short of what the injectors need to deliver.

On a 4-cylinder or inline engine there is only one bank, so P0171 by itself tells you the whole engine is running lean. On a V6 or V8, Bank 1 is the side of the engine that contains cylinder number 1. The other bank is Bank 2. If only Bank 1 is lean, the cause is specific to that side.

Understanding Fuel Trims — The Key to Diagnosing P0171

Before you do anything else on a P0171, pull up live data on your scan tool and look at STFT B1, LTFT B1, and — if it is a V-engine — STFT B2 and LTFT B2. Let the engine warm up fully to closed-loop operation. Then record the trim values at idle. Then rev it to 2,500 RPM and hold it there for thirty seconds and record those numbers. That comparison is your diagnosis.

Here is the interpretation table every tech should have memorized:

STFT at IdleLTFT at IdleAt 2,500 RPM CruiseWhat It Means
High positive (+10 to +25%)High positive (+15 to +25%)Drops to near zero (0 to +5%)Vacuum leak. The leak is significant at idle vacuum but becomes irrelevant when throttle opens and total airflow increases.
High positiveHigh positiveStays high positive across all RPMMAF sensor underreporting or systemic fuel delivery issue. The PCM is consistently under-fueling across the entire RPM range.
Near zero or slightly positiveNear zero to low positiveClimbs positive under loadWeak fuel pump or clogged filter. The system keeps up at idle but cannot deliver adequate volume under demand.
High positive (Bank 1 only, B2 normal)High positive (Bank 1 only)Bank 1 still elevated, B2 normalBank 1-specific issue. Clogged injector on Bank 1, intake gasket on Bank 1 side, or exhaust leak before Bank 1 O2 sensor.
Erratic, swings wildly positiveHigh positive and still climbingStabilizes somewhat but stays elevatedActive vacuum leak. STFT swings chasing the unmetered air. LTFT soaks in the correction over time. Classic vacuum leak signature.

The single most valuable number comparison on a P0171 is LTFT at idle versus LTFT at cruise. If the number drops significantly when you open the throttle, you have a vacuum leak. Go straight to the smoke machine. If the number stays high across the board, you are chasing a MAF sensor or fuel delivery problem and the smoke machine is not your first move.

Pro Tip: Always add STFT and LTFT together for total fuel correction. If LTFT is +18% and STFT is +8%, total correction is +26%. The PCM has used up its entire fuel trim authority and is still leaning out. That is not a situation where you clean the MAF and send it home — that is a significant problem that needs to be found and fixed before you clear the code.

P0171 Alone vs. P0171 + P0174

This is one of the first questions you ask when you pull codes: is it P0171 alone, or is P0174 (Bank 2 lean) also present?

P0171 alone means only Bank 1 is lean. On a V-engine, Bank 2 is running fine. The cause is specific to Bank 1: a vacuum or intake air leak on that side of the engine, a clogged or weak injector on Bank 1, an exhaust leak before the Bank 1 upstream O2 sensor, or a lazy Bank 1 upstream O2 sensor giving the PCM false lean data.

P0171 + P0174 together means both banks are lean simultaneously. Two banks cannot independently develop the same problem at the same time. The cause is system-wide and affects components that both banks share. Your short list: dirty or failing MAF sensor, a large intake air leak on a common source (the intake boot before the manifold splits, the brake booster hose, the PCV system), weak fuel pump, or clogged fuel filter. Start with the MAF g/s reading and the intake boot before you go anywhere else.

Getting this distinction right at the beginning cuts your diagnostic time in half. A tech who sees both codes and immediately starts poking around one intake runner gasket is going to waste an hour. A tech who sees both codes and goes straight to the MAF sensor and the intake boot is going to have the answer in ten minutes.

Causes Ranked by Frequency

These are the causes in the order you should be thinking about them, based on actual shop frequency — not what a forum says:

  1. Vacuum and intake air leaks (roughly 80% of cases). This includes cracked or collapsed intake boots between the MAF sensor and throttle body, disconnected or cracked vacuum hoses, torn PCV hoses, leaking intake manifold gaskets, brake booster diaphragm or hose failure, throttle body gasket leaks, and dipstick tube O-ring failures. Any air that enters the intake system after the MAF sensor is unmetered — the PCM does not know it is there and does not add fuel for it.
  2. Dirty or failing MAF sensor. The hot-wire element inside the MAF gets contaminated with oil vapor from the PCV system, airborne debris, or the coating from oiled aftermarket air filters. A contaminated element underreports airflow. The PCM calculates less fuel than the engine needs and the mixture goes lean. Especially common on vehicles running K&N or similar oiled filters without regular MAF cleaning.
  3. Clogged or weak fuel injectors. A restricted injector on Bank 1 cannot deliver its full fuel charge. The cylinder runs lean, the upstream O2 picks it up, and LTFT climbs on that bank. This typically shows up as P0171 alone on a V-engine, often paired with a misfire code on the affected cylinder. Injector issues are less common than vacuum leaks but get missed when techs go straight to smoke testing without thinking about whether the code is bank-specific.
  4. Weak fuel pump. A pump that is marginal will hold adequate pressure at idle but drop under demand. The mistake is checking fuel pressure at idle only — it looks fine — and moving on. Test fuel pressure under load. Snap the throttle and watch the gauge. Do a road load test. A pump that drops more than 5-10 psi from spec under snap throttle is not doing its job, even if it looks fine at idle.
  5. Faulty upstream O2 sensor (Bank 1). A lazy sensor with a slow response time, or one biased lean, will drive LTFT positive and can set P0171 even if the actual mixture is normal. This is a real cause but nowhere near as common as the internet implies. Before condemning an O2 sensor on a P0171, verify all other causes are absent. A lazy O2 sensor will show on a waveform test — slow to respond to throttle snap, lower-than-normal switching frequency at steady cruise.
  6. Exhaust leak before the upstream O2 sensor. A crack in the exhaust manifold or a leaking manifold gasket creates a pulsing low-pressure zone in the exhaust stream. During the exhaust pulse, ambient air gets drawn past the O2 sensor. The sensor reads that oxygen and reports lean to the PCM. The actual mixture may be perfectly fine. This one is tricky because the engine runs well and the smoke test is clean. Listen for exhaust ticking on cold start and look for soot staining at manifold gasket surfaces.

Step-by-Step Diagnostic Procedure

  1. Pull and record all codes, including history codes and freeze frame data. Note whether P0174 is also present. Look at the freeze frame fuel trim values — they show what the trims looked like when the code set, which is useful on intermittent problems.
  2. Connect your scan tool and pull up live data: STFT B1, LTFT B1, STFT B2 (if V-engine), LTFT B2 (if V-engine), MAF g/s, engine RPM, and ECT. Let the engine fully warm up to closed-loop operation before reading anything.
  3. Compare fuel trims at idle versus 2,500 RPM cruise. Follow the interpretation table above. This single comparison tells you whether you are chasing a vacuum leak, a MAF problem, or a fuel delivery problem.
  4. If the data points to a vacuum leak: Do a visual inspection first. Look at every rubber hose and connection in the intake system. Flex the intake boot. Look for oil residue at gasket surfaces. Then perform the smoke test (see the section below). Before that — do the thirty-second brake booster test: pinch the booster hose at idle and watch STFT. If trims drop immediately, you found it.
  5. If the data points to a MAF problem: Check MAF g/s at idle and compare to a known-good specification for that engine. Inspect the MAF wiring and connector. Clean the MAF with MAF-specific cleaner and recheck trims after a full drive cycle. If cleaning does not resolve it, verify with a known-good MAF before condemning — a poor connector or wiring fault can cause identical symptoms.
  6. If the data points to a fuel delivery problem: Test fuel pressure at idle and under load. If pressure is adequate, move to injector balance testing. A cylinder contribution test via misfire counters on the scan tool can reveal a cylinder contributing significantly less power — pointing to a clogged injector on that cylinder.
  7. Check the Bank 1 upstream O2 sensor operation. Snap the throttle and watch the O2 response on live data. A healthy narrowband O2 should switch from lean to rich rapidly after a throttle snap. A sensor that is slow to respond or does not show the expected rich spike has a response problem. On wideband A/F sensors, verify the signal range and compare to commanded lambda.
  8. After repair, clear the codes and run a complete drive cycle. Monitor fuel trims to confirm they have returned to within +/- 5% at idle and cruise. LTFT takes a few key cycles to re-adapt after clearing, so expect it to start near zero and gradually stabilize. Watch for it to hold in the normal range before calling the job done.

How to Smoke Test for Vacuum Leaks

The smoke test is the definitive way to find vacuum leaks, but it has to be done correctly or you will miss them and waste time. Here is the procedure:

  1. Engine off. Do not smoke test with the engine running — intake vacuum will pull smoke through so fast you cannot see where it is coming from.
  2. Cap the intake after the MAF sensor. You want to pressurize the intake manifold and everything downstream of the MAF. Cap the air inlet at the throttle body side, or disconnect the intake boot from the throttle body and cap that opening. Leave the MAF end accessible — that is where you introduce smoke.
  3. Connect the smoke machine to the intake. Set the pressure to no more than 1-2 psi — enough to pressurize the system but not so much that it forces smoke through gasket surfaces that seal under normal operating conditions.
  4. Introduce smoke and watch. Give it 30 seconds to pressurize, then look carefully at every potential leak point: intake boot accordion folds, all vacuum hose connections and tee fittings, PCV hose connections and the PCV valve grommet, intake manifold gasket surfaces, throttle body gasket, brake booster hose connection, EVAP purge hose connections, and the EGR system if equipped.
  5. Use a flashlight and inspect from multiple angles. Smoke under good lighting at the right angle is obvious. In shadow it is invisible. Have a second tech look from different positions if needed.
Pro Tip: If smoke testing finds no leaks but trims are still high at idle and drop at cruise, do not give up on a vacuum leak. Some leaks only open under heat — thermal expansion cracks a gasket surface or intake boot that looks fine cold. Road test to full operating temperature, pull back into the bay immediately, and run the smoke test while everything is still hot. You may find the leak that was invisible during the cold test.

Testing the MAF Sensor

MAF diagnosis comes down to one question: is the sensor accurately reporting the airflow that is actually moving through the intake? Here is how to answer it.

Check MAF g/s at idle versus cruise. On a naturally aspirated 4-cylinder engine at warm idle, expect roughly 2 to 5 g/s. On a V6 at idle, expect 4 to 8 g/s. These numbers vary by displacement — the key is whether the reading makes sense for the engine size and whether fuel trims are elevated when that reading is present.

Here is the critical test: if fuel trims are high at idle but normalize at 2,500 RPM, the MAF is probably fine — the problem is a vacuum leak. If fuel trims are elevated at idle and at 2,500 RPM and above, the MAF is underreporting across the entire airflow range. A dirty MAF underreports more at higher airflow, which means a contaminated element should produce lean trims that hold or worsen at higher RPM, not get better. A lean condition that is worse at higher RPM than at idle — with no vacuum leak found — is a strong indicator of MAF contamination or failure.

MAF cleaning procedure: With the engine off, remove the MAF sensor. Use MAF-specific electrical contact cleaner only. Do not use carb cleaner, brake cleaner, or throttle body cleaner — they will damage the sensing element. Hold the can 6 inches away and spray in short bursts. Do not touch the wire element with anything. Let it dry completely before reinstalling. Clear codes and run a full drive cycle before evaluating trims again.

When to replace rather than clean: If cleaning does not bring trims into the normal range after a full drive cycle and the smoke test is clean, verify with a known-good MAF from another identical vehicle or a new OEM unit before condemning. Always prefer OEM — aftermarket MAF sensors are notorious for inaccurate calibration that clears a code temporarily but never fully corrects the trim. Check the connector for corrosion, bent pins, and a secure lock before ordering the sensor.

Repair Cost Breakdown

P0171 repair cost varies enormously depending on the root cause. This is exactly why the diagnostic process matters — the right $15 hose or a MAF cleaning fixes the same code that could send someone toward an unnecessary fuel pump replacement:

  • Vacuum hose or PCV hose replacement: $15 to $120 in parts. Labor minimal at 0.5 to 1 hour. Total: $50 to $200.
  • Intake boot replacement: $40 to $200 in parts depending on make and model. Labor under 1 hour typically. Total: $100 to $350.
  • MAF sensor cleaning: $5 to $15 for MAF-specific cleaner. DIY or 0.3 hours shop time. Total: $20 to $75.
  • MAF sensor replacement: $80 to $300 in parts (OEM preferred — aftermarket MAF sensors frequently cause trims that never fully normalize). Labor 0.5 to 1 hour. Total: $150 to $450.
  • Intake manifold gaskets: $50 to $250 in parts. Labor ranges from 2 hours on simple 4-cylinder engines to 6+ hours on V-engines with complex upper intake systems. Total: $250 to $900.
  • Fuel injector cleaning (professional ultrasonic service): $15 to $30 per injector at a rebuilder plus time to remove and reinstall the rail. Total: $100 to $300 depending on cylinder count.
  • Fuel injector replacement: $40 to $200 per injector for OEM or quality aftermarket. Labor depends on accessibility. Total: $150 to $500 per injector.
  • Fuel pump replacement: $150 to $500 for the pump assembly. Labor for an in-tank pump is 2 to 4 hours. Total: $400 to $950. High-labor applications can exceed $1,200.
  • Upstream O2 sensor (Bank 1): $60 to $200 for the sensor. Labor typically 0.5 to 1 hour if accessible. Total: $130 to $380.

Pattern Failures by Make and Model

Pattern failures are the shortcuts that come from seeing the same problem on the same vehicle dozens of times. These are not guaranteed diagnoses — always verify with fuel trim data — but they tell you where to look first and what to check before anything else:

  • Ford 4.6L and 5.4L V8 (F-150, Mustang, Expedition, Lincoln Navigator): The PCV hose running from the valve cover to the intake manifold hardens and cracks with age. On the 5.4L 3-valve specifically, a cracked PCV hose creates a large unmetered air leak that sets P0171 and P0174 together. Check both PCV hoses first, every time, before going anywhere else. Also verify the intake manifold runner control (IMRC) actuator seals on the 4.6L 3-valve — they deteriorate and create intake vacuum leaks that are easy to miss without a smoke test.
  • GM 3.8L V6 Series II and III (Buick LeSabre, Park Avenue, Pontiac Bonneville, Chevy Impala): Lower intake manifold gasket failure is a well-documented pattern. The plastic lower intake manifold and its gaskets develop leaks at high mileage, causing both coolant intrusion and vacuum leak conditions. P0171 and P0174 together on a 3.8L with over 100,000 miles — pull the upper plenum and check the lower manifold gaskets. Aftermarket gasket kits with a steel carrier are a better long-term fix than the OEM design.
  • Mazda and Ford Duratec 2.0L, 2.3L, and 2.5L (Fusion, Focus, Mazda3, Mazda6): The rubber intake boot between the airbox and throttle body cracks at the accordion folds. The cracks are often hairline and invisible with the boot in place. Remove the boot and flex it aggressively — if cracks open up, replace the boot. A $30 to $60 part. This is the first check on these engines, every time.
  • Toyota 5VZ-FE 3.4L V6 (Tacoma, 4Runner, T100): The EGR system and PCV connections on this engine are common leak sources at high mileage. The PCV hose routing on the 5VZ-FE is known to crack at the valve cover fitting. Also check the rear intake manifold gasket surfaces — difficult to access and often develop leaks that are hard to see even with a smoke machine without good positioning.
  • Any vehicle with an oiled aftermarket air filter (K&N, aFe, similar): The filter oil migrates to the MAF sensor hot wire element over time. This is one of the most common causes of MAF-related P0171 in the shop. The fix is MAF cleaning. The preventive is making sure the customer is not over-oiling the filter during maintenance — which is extremely common.
  • Honda and Acura K-series and J-series engines: The EVAP purge valve solenoid on many Honda applications can stick partially open and create a lean condition that mimics a vacuum leak on fuel trim analysis. The purge valve is located in the engine bay near the intake manifold. Disconnect the vacuum hose to the purge valve at the intake and cap it — if fuel trims normalize, the purge valve is stuck open or the EVAP system is saturating. Do not overlook this one on high-mileage Honda platforms before going to smoke testing.

Frequently Asked Questions

What is the most common cause of a P0171 code?

A vacuum or intake air leak is the number one cause, accounting for roughly 80% of P0171 cases. This includes cracked intake boots, torn PCV hoses, leaking intake manifold gaskets, brake booster hose failures, and deteriorated vacuum hose connections. A dirty or failing MAF sensor is the second most common cause. Use fuel trim analysis at idle versus cruise to determine which one you are dealing with before reaching for the smoke machine.

How do I use fuel trims to diagnose P0171?

Add STFT and LTFT together for total fuel correction. Compare those numbers at idle versus 2,500 RPM. If trims are high at idle and drop toward zero at cruise, you have a vacuum leak. If trims are high at both idle and cruise, chase the MAF sensor or fuel delivery. Trims that are normal at idle but climb under load point to a weak fuel pump or clogged filter. That comparison tells you more about the cause in one minute than any visual inspection will in ten.

What does P0171 and P0174 together mean?

Both banks lean simultaneously means the cause is system-wide. Two banks cannot independently develop the same problem at the same time. Focus on shared components: MAF sensor, fuel pump, fuel filter, or a large intake leak on a common source before the manifold splits — the intake boot, brake booster hose, or PCV system.

Can a bad O2 sensor cause P0171?

Yes, but it is not the likely cause. A lazy upstream O2 sensor can drive LTFT positive and set P0171. But before replacing the sensor, verify with fuel trim analysis and a smoke test. If STFT is responding normally to throttle changes and LTFT is elevated, the sensor is reporting a real lean condition correctly — you have something else to find.

How much does it cost to fix a P0171 code?

Repair cost ranges from $50 for a cracked vacuum hose up to $950 or more for a fuel pump replacement. The diagnostic process — fuel trim analysis and a smoke test — is what keeps you from spending money on the wrong repair. A $15 can of MAF cleaner fixes the same code that could send someone toward a fuel pump replacement if the diagnosis is skipped.

Will P0171 cause my car to fail emissions?

Yes. P0171 sets a non-ready status in the emissions monitors, causing an automatic fail on any OBD-II emissions test. A lean condition also stresses the catalytic converter over time. Left unrepaired long enough, you may end up with both the original P0171 repair and a converter replacement.

Can I drive with a P0171 code?

Short distances are generally okay. Long term, no. A lean condition raises combustion temperatures and can damage pistons, valves, and the catalytic converter over extended operation. If LTFT is at +20% or higher, the PCM has used up most of its correction authority — any additional lean event can push past stoichiometry and cause detonation or a misfire.

Dealing with this on a vehicle right now?

Drop the year, make, model and symptoms into our free AI diagnostic tool — get a real diagnostic plan in seconds.

Try Free

Go Deeper

Diagnostic Mastery

This topic is covered in the Diagnostic Mastery course — full modules, real-world examples, and ASE-level detail.

View Course

Related Articles

Test Your Knowledge

Free ASE Practice Test

10 real exam-format questions — Standard, Technician A/B, and EXCEPT formats. Master tech explanations for every answer.

Take the Test

Disclaimer: This article is for educational and informational purposes only. Technical specifications, diagnostic procedures, and repair strategies vary by manufacturer, model year, and application — always verify against OEM service information before performing repairs. Financial, health, and career information is general guidance and not a substitute for professional advice from a licensed financial advisor, medical professional, or attorney. APEX Tech Nation and A.W.C. Consulting LLC are not liable for errors or for any outcomes resulting from the use of this content.