P0171: System Too Lean (Bank 1)
P0171 means the engine is running too lean on bank 1, which means there is too much air or not enough fuel in the air-fuel mixture. The most common fixes are repairing a vacuum leak or replacing a failing mass airflow sensor, with typical independent-shop costs of about $100 to $500.
- Severity
- Moderate
- Can I drive?
- Drive with caution
- DIY?
- Possible with some experience
- Repair cost range
- $100 – $900
Get the answer for your exact car
Add your car and a few details. DashClue asks up to 3 questions, then tells you the most likely cause and what it should cost.
FreeNo card neededAnswer in about 2 minutes
What does P0171 mean?
This code sets when the engine computer sees that bank 1 needs extra fuel to keep the air-fuel mixture where it should be. In plain terms, the engine is getting more air than expected, less fuel than expected, or both. Bank 1 is the side of the engine that contains cylinder 1. A lean condition can come from unmetered air entering the engine, low fuel delivery, or a sensor reading wrong. It often shows up at idle, during light acceleration, or after the engine has warmed up.
Common symptoms
- Check engine light on
- Rough idle
- Hesitation when accelerating
- Loss of power
- Bad gas mileage
- Engine may stall at stop
Causes, fixes and costs
P0171: System Too Lean (Bank 1)
General guide for most cars. Your car may differ.
A lean engine can misfire, stall, and in some cases overheat the engine or damage the catalytic converter if it is driven this way for too long. Stop driving if the check engine light starts flashing, the engine stalls often, or the car runs so poorly that it is hard to keep moving.
Most likely causes
- 1
Vacuum leakHigh
A vacuum leak is one of the most common causes when the idle is rough, the engine runs better at higher RPM, or fuel trims are high at idle. Cracked intake boots, hoses, or gaskets can let extra air in after the airflow sensor.
Quick check: Listen for hissing and inspect vacuum hoses, the intake tube, and brake booster hose for cracks or loose connections. A smoke test will usually find the leak quickly.
- 2
Dirty or failing mass airflow sensorHigh
If the code shows up with hesitation, poor throttle response, or lean fuel trims at idle and cruise, the MAF may be under-reporting airflow. This is common when the air filter is dirty, the intake is oily, or the sensor is contaminated.
Quick check: Inspect the air filter and intake tract first. If available, compare live MAF readings to known-good values or test with a scan tool after cleaning the sensor with proper MAF cleaner.
- 3
Low fuel pressure or weak fuel pumpMedium
A weak pump, clogged filter, or restricted fuel supply is more likely if the engine leans out under load, loses power on acceleration, or feels worse at highway speeds. The computer may not be able to add enough fuel when demand goes up.
Quick check: Have fuel pressure tested at the rail and compare it to factory spec. A drop in pressure during acceleration points to a fuel delivery problem.
- 4
Exhaust leak ahead of the oxygen sensorLow
A leak before the upstream O2 sensor can let fresh air in and trick the sensor into reading lean, especially if the code comes and goes or appears after a cold start. You may hear ticking near the exhaust manifold or see soot marks.
Quick check: Inspect the exhaust manifold, gaskets, and front pipes for soot, noise, or visible leaks, especially before the catalytic converter.
Can you fix it yourself?
Possible with some experience
Difficulty: Moderate. Basic checks like inspecting hoses, the intake tube, and the air filter are DIY-friendly, and cleaning a MAF sensor is possible with the right cleaner. Fuel pressure testing, smoke testing, and exhaust leak diagnosis usually need shop tools.
Show the stepsHide the steps
- Check for loose or cracked vacuum hoses and intake ducts
- Inspect the air filter and airbox for damage or poor sealing
- Clean the MAF sensor with MAF-safe cleaner only
- Clear the code and test drive to see if it returns
- If it returns, check fuel pressure and look for vacuum leaks with smoke testing
Estimated repair cost
$100 – $450
Vacuum leak repair: parts and labor for hoses, clamps, or small intake leaks
- Mass airflow sensor cleaning or replacement$100 – $400
- Fuel pump or fuel pressure problem repair$300 – $900
- Exhaust manifold or gasket leak repair$150 – $600
Prices vary by vehicle, engine layout, and rust level, and dealer pricing is often higher.
Frequently asked questions
Can I drive with P0171?
Usually yes for a short time, but drive gently and get it checked soon. If the engine stalls, runs very rough, or the check engine light flashes, stop driving.
What is the most common fix for P0171?
The most common fix is finding and repairing a vacuum leak or replacing a dirty or failing MAF sensor. On many cars, those are checked before replacing fuel parts.
Will P0171 clear itself?
Sometimes it may go away temporarily if the condition is intermittent, but the problem usually comes back. The code will stay or return until the cause is repaired.
Can a dirty air filter cause P0171?
A dirty filter can contribute, but it is not usually the only cause. A torn intake boot or airflow sensor issue is more likely.
Will P0171 fail an emissions test?
Yes, it often will if the check engine light is on or readiness monitors are not complete. Even if it passes tailpipe numbers, the stored code can fail inspection in many states.
Related codes
Related problems
This guide covers most cars and is general advice, not an inspection. Prices are typical US independent-shop ranges and vary by region, car and shop. If your brakes, steering or a warning light feel unsafe, stop driving and contact a mechanic.