Skip to content
Guides

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

P0171 means the engine computer is adding fuel to correct a lean mixture on Bank 1. Vacuum leaks and a dirty MAF sensor cause most cases.

Updated November 19, 2026
Check engine light on a car dashboard with a fuel injector icon

P0171 means the engine computer sees a lean mixture on Bank 1: too much air or too little fuel reaches the cylinders, and it cannot add enough fuel to correct it. The usual causes are a vacuum leak or a dirty MAF sensor. It is not an emergency, but fix it soon.

P0171 at a glance
Code P0171
Meaning System Too Lean (Bank 1)
Severity Fix promptly
Can I keep driving? Short trips are usually fine, but fix it soon. A lean engine can run hot, misfire and damage the catalytic converter.
Most common cause Vacuum leak (cracked hose, intake gasket or PCV hose)
Difficulty Moderate DIY

What does P0171 mean?

The computer reads the front oxygen sensor on Bank 1 to see whether the exhaust holds too much oxygen, which means too little fuel for the air. It answers with fuel trim: short term trim reacts within seconds, and long term trim is the correction it learns and keeps. When the combined correction reaches the maker’s limit and the mixture is still lean, it sets P0171. The limit is often around +25 percent, but it varies by make and engine.

Bank 1 is the side of the engine that holds cylinder 1. On a four-cylinder engine there is only one bank, so P0171 covers the whole engine. On a V6 or V8, the matching code for the other side is P0174.

P0171 symptoms

  • Rough idle, sometimes with a surge or a stall at a stop
  • Hesitation or stumbling when you accelerate
  • Worse fuel economy
  • A hissing or sucking sound from the engine bay
  • A solid check engine light, sometimes with a misfire code such as P0300

What causes P0171?

  1. Vacuum leak: a cracked hose, a split intake boot, a leaking intake gasket or a bad PCV hose lets unmeasured air into the engine. This is the most common cause I saw.
  2. Dirty or failing MAF sensor: a contaminated sensor under-reads airflow, so the computer delivers too little fuel. See P0101 for the sensor itself.
  3. Weak fuel pump or clogged fuel filter: fuel pressure drops when the engine asks for more fuel.
  4. Dirty or leaking injectors: a clogged injector delivers less fuel than commanded.
  5. Exhaust leak ahead of the oxygen sensor: outside air gets pulled into the exhaust and the sensor reports lean when the engine is not.
  6. Faulty oxygen sensor: rare. Rule out the other causes first.

How to fix P0171

  1. Read the fuel trims: a scanner with live data shows both trims. Follow the steps in how to use an OBD2 scanner. Compare idle with 2,500 rpm.
  2. Read the pattern: trims that are high at idle and fall toward normal at 2,500 rpm point to a vacuum leak, because the leak matters less as airflow rises. Trims that stay high or get worse under load point to fuel delivery or the MAF sensor.
  3. Look and listen for leaks: check the intake boot, vacuum hoses, PCV hose and brake booster hose. A shop smoke test finds the leaks you cannot see.
  4. Clean the MAF sensor: use spray made for MAF sensors and nothing else. Brake cleaner and carburetor cleaner damage the sensing element. Do not touch the element, and let it dry fully before you reinstall it.
  5. Check fuel pressure and the fuel filter: on cars with a serviceable filter, replace it if it is due. Pressure that sags under load means a weak pump.
  6. Check for exhaust leaks: listen for ticking near the manifold and look for soot around the joints ahead of the front oxygen sensor.
  7. Clear the code and retest: drive normally and check that the trims have returned to near zero.

Can you drive with a P0171 code?

Yes for short trips, but fix it within a few weeks. A lean engine runs hotter and can misfire, and the misfires can damage the catalytic converter, which is the costly part. Stop driving if the check engine light flashes, if the engine hesitates badly under load or if you hear loud popping from the intake.

  • P0174: System Too Lean (Bank 2)
  • P0172: System Too Rich (Bank 1)
  • P0101: Mass or Volume Air Flow Sensor A Circuit Range/Performance
  • P0300: Random/Multiple Cylinder Misfire Detected
  • P2187: System Too Lean at Idle (Bank 1)

FAQ

Can a loose gas cap cause P0171?

Not directly. A loose cap sets EVAP codes such as P0455, not a lean code. A stuck-open purge valve can add fuel vapor and push the mixture rich instead, so a cap is not the first place to look for a lean engine.

What is the difference between P0171 and P0174?

P0171 is the lean code for Bank 1 and P0174 is the lean code for Bank 2. Both mean the same thing on different sides of a V engine. If they appear together, the cause is usually shared, such as a vacuum leak or the MAF sensor.

Will P0171 clear itself?

The light can go out after several clean drive cycles if the cause was temporary, such as a loose hose that you fixed. If the leak or dirty sensor is still there, the code returns within days. Clearing the code without a repair only hides it.

Is P0171 expensive to fix?

Often not. A cracked hose or a MAF cleaning costs very little. An intake manifold gasket, a fuel pump or a set of injectors costs far more, so rule out the cheap causes first.

Got more than one code? Enter them all in the OBD2 code lookup to see each meaning, severity and first check side by side. If you still need a reader, start with the best OBD2 scanners for beginners, then follow how to use an OBD2 scanner to pull freeze frame data before you clear anything.

Sources & References

  1. SAE J2012, diagnostic trouble code definitions: https://www.sae.org/standards/content/j2012_201612/
  2. California Air Resources Board, on-board diagnostics: https://ww2.arb.ca.gov/our-work/programs/obd-board-diagnostic-program
  3. EPA, vehicle emissions inspection and maintenance: https://www.epa.gov/state-and-local-transportation/vehicle-emissions-inspection-and-maintenance-im
Avatar photo
About the Author

James Kowalski

Automotive Writer

James Kowalski is a former ASE-certified mechanic turned automotive writer. With 10 years of hands-on experience in repair shops and dealerships, James specializes in practical topics like tires, brakes, performance upgrades, and truck accessories. He believes in empowering readers with the knowledge to make informed decisions about their vehicles, whether they're weekend warriors or daily commuters.

More from James Kowalski

How we reviewed this article

This article was researched against manufacturer records and editorially reviewed before publishing. We accept no payment for coverage. Some guides contain affiliate links; see our affiliate disclosure.