P0171Sensors

P0171 Code: System Too Lean (Bank 1)

Last reviewed May 2026 · Reviewed by the Find This Code Editorial Team

Quick Answer

P0171 means the engine is running lean on Bank 1 — too much air or too little fuel in the mixture. The ECM detected this through oxygen sensor feedback and confirmed it by watching fuel trims climb to their limit. Common causes are vacuum leaks, a dirty MAF sensor, and fuel delivery issues. The cause depends heavily on where the lean condition occurs — at idle, at cruise, or under hard acceleration.

At a Glance

Severity
Moderate
Can I drive?
Caution
Time sensitivity
This week
Most common fix
Fix vacuum leak or clean/replace MAF sensor
Typical cost
MAF sensor cleaning: free (DIY spray)

What this code means

The engine needs a precise air-to-fuel ratio (roughly 14.7:1 by weight) for clean, efficient combustion. The ECM monitors this by reading the upstream oxygen sensors and adjusting fuel delivery in real time — these adjustments are called fuel trims. Short-term fuel trim (STFT) reflects moment-to-moment corrections; long-term fuel trim (LTFT) reflects the ECM's learned baseline adjustment over many drive cycles. P0171 sets when LTFT climbs above roughly +10–15%, meaning the ECM has been adding extra fuel consistently and has reached the edge of its compensation range. The code is a sign that something is causing a sustained lean condition — not a single missed injection. Reading the fuel trims and freeze frame data before touching anything will tell you whether the lean condition happens at idle (points to vacuum leak) or at load (points to fuel delivery).

Common causes

  • Vacuum leak — unmetered air entering after the MAF sensor (most common cause of lean-at-idle conditions)
  • Dirty or failing mass airflow (MAF) sensor — an under-reading sensor causes the ECM to inject less fuel than needed
  • Cracked or loose intake boot between air filter and throttle body — a large, often-overlooked vacuum leak source
  • Weak fuel pressure from a failing fuel pump or clogged fuel filter — more pronounced at highway speed and high load
  • Clogged or restricted fuel injectors — restricts fuel delivery particularly under high demand
  • Exhaust leak upstream of the oxygen sensor — outside air enters and makes the O2 sensor falsely report a lean mixture
  • Faulty upstream oxygen sensor — a sensor stuck reading lean causes the ECM to over-correct
  • Dirty or restricted throttle body — affects idle air calibration

Symptoms you might notice

  • Check engine light on
  • Rough or unstable idle — especially if a vacuum leak is causing unmetered air at low RPM
  • Hesitation or stumbling on acceleration
  • Slightly reduced fuel economy
  • Engine may feel sluggish at low speeds or struggle to hold a steady idle
  • In severe cases, pinging or knocking under load from a too-lean combustion event

Can you still drive?

Short trips are generally acceptable, but do not ignore this code. A sustained lean condition stresses pistons, valves, and the combustion chamber. Address it within a few days. If the lean condition is severe enough to cause hesitation, stalling, or pinging, treat it as more urgent.

How serious is this code?

Moderate to high. A lean condition stresses the engine and can cause long-term internal damage if left unresolved. If P0174 (Bank 2 lean) appears at the same time, a major vacuum leak or failing MAF sensor is very likely.

Before you replace parts

Parts replacement is often not the first step. Before buying anything, it's worth checking these basics:

  • Spray carburetor cleaner (engine running, away from heat and ignition sources) at vacuum hose joints, intake manifold gaskets, and the intake boot — any idle change or fuel trim shift pinpoints the vacuum leak location
  • Clean the MAF sensor with dedicated MAF cleaner spray and drive a full cycle before replacing it — a contaminated sensor is the cause in a large number of P0171 cases, and cleaning is free
  • Monitor LTFT at idle vs cruise: if LTFT is high at idle and drops at highway speed, it's almost certainly a vacuum leak, not a fuel delivery issue
  • Check fuel pressure before suspecting the pump — confirm with a gauge rather than guessing. Low pressure under load points to a pump or filter; low pressure at idle points to a pressure regulator

How to troubleshoot it

  1. Check live long-term fuel trim (LTFT) with a scan tool — values consistently above +10% confirm a real lean condition. If LTFT is near zero but STFT spikes, the issue may be intermittent
  2. Check where the lean condition occurs: if LTFT is high at idle but near normal at cruise, the cause is almost certainly a vacuum leak. If LTFT is high at highway load, fuel delivery is the more likely cause
  3. Inspect the intake boot between the air filter box and throttle body for cracks — squeeze and flex it while watching STFT. Any crack that opens under engine vacuum will spike fuel trims
  4. Spray carburetor cleaner in small bursts at vacuum hose joints and intake manifold gaskets with the engine idling — any RPM change or fuel trim shift identifies the leak location
  5. Clean the MAF sensor with dedicated MAF cleaner spray, drive a full cycle, and rescan. MAF cleaning resolves a large share of lean codes without any part replacement
  6. Check fuel pressure with a gauge and compare to your vehicle's specification — a weak pump will cause lean conditions that worsen at high load

Common mistakes to avoid

These are the most frequent diagnostic errors when dealing with P0171. Avoiding them can save time and money.

  • Cleaning the MAF sensor with brake cleaner or carburetor cleaner — always use dedicated MAF sensor cleaner spray to avoid damage
  • Assuming the fuel pump is failing without first testing fuel pressure — weak fuel pressure and vacuum leaks cause identical lean conditions
  • Replacing the MAF sensor before checking for vacuum leaks — vacuum leaks are more common and cost nothing to inspect first
  • Ignoring P0174 when it appears alongside P0171 — both banks lean simultaneously almost always points to a large vacuum leak or failing MAF

Tools that may help

These are the types of tools commonly used when diagnosing this code. Having the right tool can save time and help confirm a diagnosis before spending money on parts.

  • OBD-II scanner with live fuel trim data
  • MAF sensor cleaner spray
  • Carburetor cleaner (for vacuum leak testing)
  • Fuel pressure gauge
  • Smoke machine (for confirming vacuum leaks)

Estimated repair cost range

MAF sensor cleaning: free (DIY spray). MAF sensor replacement: $50–$250. Vacuum hose/boot repair: $20–$150. Fuel injector cleaning service: $150–$300. Fuel pump replacement: $300–$700.

Costs vary significantly by vehicle, location, and whether you use OEM or aftermarket parts. These are general ranges for reference only.

When to call a mechanic

If you've completed the basic troubleshooting steps and the code keeps returning, or if you don't have access to the proper diagnostic tools, it's worth consulting a professional. A qualified technician can perform a full diagnosis and confirm the root cause before any parts are purchased. When in doubt, get a professional opinion — it can save you from an expensive misdiagnosis.

Real-world note

P0171 and P0174 appearing together almost always indicate a vacuum leak or MAF sensor problem affecting both banks — a single injector or sensor failure would typically show up on only one bank. On many vehicles, the cracked intake boot or a split vacuum hose behind the engine is the culprit. Five minutes of visual inspection often finds it.

How we write these guides

Find This Code guides are written based on OBD-II specification documentation, established automotive diagnostic practices, and real-world patterns observed across vehicle makes and models. Content is reviewed for accuracy and plain-English clarity before publication. Pages are marked with a “Last reviewed” date and updated when diagnostic guidance or code interpretation changes. All content is educational — it is not a substitute for hands-on diagnosis by a qualified mechanic.

Last reviewed May 2026 · Find This Code Editorial Team · Editorial standards →

Sources & references

Our guides are written based on OBD-II specifications, automotive engineering principles, and established diagnostic best practices. Key reference sources include:

Informational purposes only. This guide is for educational reference and is not a substitute for diagnosis by a qualified technician. Repair costs, causes, and symptoms may vary by vehicle make, model, year, and condition. Always consult a licensed mechanic before performing major repairs.