P0171 Code Causes and Fixes
P0171 means System Too Lean (Bank 1): the engine computer is adding as much fuel as it is allowed to, and the mixture on bank 1 still reads lean, with too much air or too little fuel. The most common causes are a vacuum or intake air leak, a dirty or faulty MAF sensor, and low fuel pressure from a weak pump, clogged filter or bad regulator. Read the codes with any OBD2 reader (many US parts stores read them free), then work through the checks below.
What does the P0171 code mean?
P0171 is set when bank 1 of the engine runs lean. A lean condition is caused by too much air or too little fuel in the air and fuel mixture, and it usually points to a vacuum leak or a weak fuel system. Bank 1 is the only bank on an inline engine, or the side with cylinder 1 on a V6 or V8; the matching code for bank 2 is P0174.
What is running lean?
Running lean is when the engine gets too much air or too little fuel. If there is too much air, the Engine Control Module (ECM) tries to compensate by injecting more fuel. When it cannot add enough, it sets P0171.
🔧 Find out what is actually wrong before you pay someone to guess
Dealer level diagnostics at home with the YOUCANIC UCAN-II Pro.
- ✔ Covers most makes and models, including many luxury brands. Send us your VIN and we will confirm your car before you order
- ✔ Reads every module, not just the engine, so you find the faults a basic reader says are not there
- ✔ Commands the car: test a fan or pump, bleed ABS, retract an electronic parking brake, register a battery
- ✔ No subscriptions. Free lifetime updates, so the price you pay is the whole price
- ✔ Backed by real mechanics in the USA you can email before and after you buy
Featured in The Wall Street Journal
Possible Causes
The most common problems that trigger the P0171 fault code are:
- Dirty or faulty MAF (mass airflow) sensor
- Clogged or faulty fuel injectors
- Faulty O2 sensors
- Vacuum or intake air leak, or an exhaust leak ahead of the upstream O2 sensor
- A faulty PCM (rare)
- Clogged fuel filter
- Weak fuel pump
- Bad fuel pressure regulator
Symptoms
Common symptoms with P0171 include:
- Stalling, especially at idle
- Reduced power
- Check engine light
- Hesitation when you accelerate
- Hard starting
- Possible catalytic converter damage if the lean mixture causes misfires. A flashing check engine light means a misfire, so ease off and stop safely.
Possible Repair
- Repair or replace leaking intake or vacuum hoses
- Replace faulty fuel system parts (filter, injectors, pump or pressure regulator)
- Replace leaking intake or exhaust gaskets
- Repair or replace O2 sensors
- Replace a dirty or damaged air filter
- Repair or replace the PCM (rare)
- Clean or replace the mass airflow sensor
Diagnosis

Disconnected or leaking vacuum or air hoses
- The intake tube from the airbox to the throttle body can come loose. Check all clamps and fasteners, and check the tube for cracks, punctures or looseness.
- Listen for whistling or rushing air sounds while the engine is running, keeping your hands, hair and loose clothing away from the fan and belts. Follow the noise and inspect for holes, dry rotted hoses, open ports or loose hoses.
Faulty, dirty or plugged mass airflow sensor or air filter
- Dirt or debris on the mass airflow sensor keeps it from sending the correct readings to the PCM. Clean it only with MAF sensor cleaner and never touch the sensing element.
- The air filter is probably one of the most overlooked parts. Check the filter for debris and damage. If it is damaged, check that no dirt got past it into the airbox snorkel and intake tube.
Damaged or disconnected engine intake components
- Check the intake plenum gasket for dry rot or other signs that it is not sealing.
To do this, you often have to remove the air filter box, intake tubes and engine cover. Let the engine cool first and disconnect the negative battery cable before you unplug sensors. Once the plenum is exposed, remove the bolts that hold it to the cylinder head, lift it off, cover the open intake ports so nothing falls in, and inspect the gasket for damage.
- While the plenum is off, inspect the cylinder head sealing surface for damage.
If there are no obvious signs of damage or possible leak points, reassemble everything and tighten all bolts and fasteners to the factory specifications.
- Once everything is back together, you can check for leaks with the engine running: spray short bursts of carburetor cleaner at a suspected leak. If the idle changes (smoother or rougher), you have found a leak. Carb cleaner is very flammable, so keep it away from the hot exhaust and ignition parts, and keep a fire extinguisher nearby. A smoke test is a safer way to find leaks.
- Recheck the area that gave the biggest response for the causes listed earlier. If you still cannot find the problem, a shop can graph live data such as fuel trims and MAF readings to find the system that is not performing correctly.
Fuel system checks
- If fuel pressure is too low, the engine cannot get enough fuel. Check the fuel filter, injectors and fuel pump for blockages or weak output.
- Borrow a fuel pressure gauge from your local auto parts store, test the fuel pressure, and compare the reading with the specification for your engine. The fuel system stays under pressure, so relieve the pressure first, wear eye protection, and keep sparks and flames away.
Exhaust system checks
- Check for leaking exhaust flex pipes and manifold gaskets ahead of the upstream O2 sensor, because outside air pulled in there makes the sensor read lean. Let the exhaust cool first.
- Check that the O2 sensors are working correctly, because a sensor sending a false lean signal to the PCM can set P0171.
Troubleshooting with YOUCANIC UCAN-II Pro
To find the cause faster, the YOUCANIC UCAN-II Pro shows live data such as short and long term fuel trims, MAF readings and O2 sensor readings on covered models, and reads and clears codes in the engine and other modules. Coverage varies by model and year, so email YOUCANIC support with your VIN before you buy. You do not need it if you only want to read and clear P0171; any OBD2 reader does that.

Check these troubleshooting and repair guides for more help on your vehicle.

