Top Causes of the P0171 Code and P0174 Code
How I Diagnose the P0171 Code and P0174 Codes
Quick Summary
The P0171 and P0174 codes are some of the most misunderstood OBD-II trouble codes. Both codes indicate the engine is running too lean—either too much air or too little fuel. A P0171 indicates a lean condition on bank 1, while a P0174 indicates a lean condition on bank 2. Most of the time, these codes are caused by something simple like a vacuum leak, a dirty MAF sensor, or low fuel pressure. But I’ve also seen trickier issues, such as intake manifold leaks and incorrect temperature sensor readings. In this guide, I walk you through what these codes mean, how they affect your engine, and most importantly, how I diagnose and fix them right the first time.
Article
When I see a P0171 code (Bank 1 lean) and/or a P0174 code (Bank 2 lean), I start by looking for a vacuum or exhaust leak. Or, why isn’t the engine getting enough fuel? Because that’s what “lean” really means — the ideal 14.7:1 air-fuel ratio has shifted toward too much air or too little fuel. These two codes almost always show up together on V-6 and V-8 engines because each bank is independently monitored.
How the ECM Knows It’s Lean
The upstream oxygen sensors continuously monitor exhaust oxygen levels. When they report too much oxygen for too long, the ECM adds more fuel (positive fuel trim) to correct the air/fuel mixture. When the fuel trim reaches its limit (usually +25%), the ECM gives up and sets a P0171 or P0174 code.
Symptoms of a P0171 or P0174 code
• Check Engine Light
• Low engine power/slow acceleration
• Rough idle
• Stalling or surging
• Engine misfire
• Spark/Engine Knock
• Possible hard start or no start
Although some vehicles run surprisingly “okay,” while others misfire and buck like a bucking bronco.
What are the most common causes of a P0171 or P0174 code?
Too much air is getting into the engine
1) Vacuum Leak — The #1 Cause of P0171/P0174 codes — The most common cause of these codes is a vacuum leak — unmetered air sneaking into the engine after the MAF sensor. Since the ECM can’t see this extra air, it can’t compensate for it by adding more fuel. So it sets one or both of these lean codes.
To find the air leak, I always check:
• Air intake duct: The rubber intake boot between
the air filter box and throttle body is notorious for developing cracks, especially in the pleated flex area. Even a tiny split can pull in extra air at idle and set a P0171/P0174 code. Pro tip: Flex the boot while inspecting — cracks like to hide in the folds.
• Vacuum hoses and PCV plumbing:
Brittle plastic hoses are prone to cracking at elbows and connectors. PCV hoses are a top offender, especially on Ford, GM, and Hyundai/Kia engines. A loose or popped-off line is an instant lean condition.
• Intake manifold gasket leaks:
This is common on engines that use rubber O-ring gaskets. Some shrink when cold, so the P0171/P0174 code appears on a cold start and disappears at warm-up.
• Brake booster diaphragm leaks
Often overlooked — but a torn booster diaphragm acts like a massive vacuum leak.
How I confirm a vacuum leak
• Smoke machine (best method)
• Propane/carb spray test near suspect areas while watching fuel trims
• Scan tool idle vs. cruise fuel trim comparison
(Vacuum leak effects drop significantly under load)
• Exhaust leak— This is one of those causes that often slips past DIYers. If there’s an exhaust leak before the upstream oxygen sensor, fresh outside air is pulled into the exhaust, skewing the sensor’s reading toward a lean condition. The ECM then tries to correct the “lean” condition by adding fuel, which eventually forces a P0171 code or P0174 code.
To check for exhaust leaks look for:
✔ Rust cracks at the manifold or flange: Those tiny fissures expand when the manifold heats up, making the problem worse at higher load or RPM.
✔ Loose or missing manifold bolts: A surprisingly common failure point on many trucks and SUVs — especially V8s.
✔ Failing exhaust gaskets: Leaks at the manifold-to-head connection or the exhaust flanges can introduce enough oxygen to fool the sensor.
✔ Aftermarket exhaust installations
Poor welds or clamp connections often leak just enough to skew sensor data.
Refer to this article for tips on finding an exhaust leak
2) Mass Airflow (MAF) Sensor Problems — The ECM relies on data from the MAF to calculate the correct air-to-fuel ratio. If the MAF doesn’t accurately measure how much air enters the engine, the ECM
can’t command the right amount of fuel. That mismatch often results in a lean condition and triggers a P0171 or P0174 code.
• Contaminated MAF Sensor: Aftermarket oiled air filters are a frequent culprit. Over time, the oil-soaked cotton fibers break away from the filter and stick to the hot wire in the MAF sensor, where the fibers burn and form an insulating carbon film. Now insulated from the real incoming air temperature and airflow, the sensor begins to under-report airflow. In other words, the ECM thinks less air is entering, so it adds less fuel, and the mixture goes lean.
Too little fuel
Fuel injectors are precision components, and they only need to be slightly restricted to cause a P0171/P0174 code. I’ve seen injectors that are only 10–15% clogged trigger the ECM to max out positive fuel trims.
These are the injector issues I commonly diagnose:
1) Clogged Injector Nozzles (most common)— Short-trip driving or sitting unused for long periods can leave varnish deposits in the injector nozzles that reduce fuel flow. Instead of spraying a fine mist, they sputter out a weak stream, causing a lean condition.
2) Weak or Malfunctioning Injector Coils (Less common) — Internal electrical failures reduce injector opening strength or timing, resulting in poor delivery and cylinder-to-cylinder fuel imbalance.
3) Injector O-ring Vacuum Leaks (Least likely)— Sometimes the injector itself works fine, but a torn O-ring allows vacuum to pull in unmetered air right at the intake port. That can produce a localized lean condition that significantly affects fuel trims.
How I Diagnose Injector-Related Lean Codes
• Fuel injector balance test — ensures each injector draws similar pressure when fired
• Fuel trim monitoring by cylinder (if scan tool supports it)
• Spark plug inspection — a lean cylinder’s plug looks chalky white and overheated
• Listening with a stethoscope — a quiet injector isn’t opening consistently
When cleaning fails to restore proper performance, injector replacement is the fix.
4) Low fuel pressure caused by a weak fuel pump— If the fuel pump isn’t delivering enough fuel or fuel at the correct pressure, the air: fuel mixture will be too lean. Conduct a fuel pressure test to verify the pressure is within spec.
5) Clogged catalytic converter— A clogged converter or muffler prevents proper airflow into and out of the engine.
My Step-by-Step Diagnostic Routine For Diagnosing a P0171 or P0174 Code
1️⃣ Check live fuel trim data first: If both banks show high positive fuel trims, it points toward a significant vacuum leak or MAF issue.
2️⃣ Inspect the intake duct: Any crack after the MAF = unmetered air → guaranteed lean mix.
3️⃣ Smoke-test the intake (my favorite method): Finds intake leaks fast — especially on hidden hoses.
4️⃣ Check the PCV system: A collapsed PCV hose can make a P0171/P0174 code appear overnight.
5️⃣ Clean the MAF sensor: I use MAF-specific cleaner only — no brake cleaner!
(Oiled aftermarket air filters love to foul MAFs.) See this post for instructions on how to clean a MAF sensor.
6️⃣ Fuel pressure test: Low pressure or low volume? Check pump, filter, and regulator.
7️⃣ Check for exhaust leaks: A leak near the manifold tricks the oxygen sensor into thinking the engine is lean.
Pro Tip: Freeze Frame Data Tells a Story
If everything passes, check for carboned valves
GDI engine: carbon buildup on the backside of intake valves, causing them to leak and setting a P0171 or P0174 code.
To test the valves, use a manifold vacuum gauge.
©, 2018 Rick Muscoplat
Posted on by Rick Muscoplat


