★ Pillar Guide · Diagnostics

P0171 and P0174 Codes: Causes, Fixes, and Costs

By AutoCodeCalc Editorial October 17, 2026 9 min read

Quick Answer

The P0171 and P0174 OBD2 codes mean the engine computer is detecting a lean air-fuel mixture on Bank 1 and Bank 2, respectively. When both codes appear together, common suspects include vacuum leaks, unmetered air, a dirty or faulty mass airflow sensor, and fuel delivery problems, so diagnose the shared cause before replacing parts.

What These Codes Mean

The P0171 and P0174 OBD2 trouble codes mean System Too Lean, Bank 1 and System Too Lean, Bank 2, respectively. The engine control module (ECM) or powertrain control module (PCM) has determined that it must add more fuel than expected to maintain the target air-fuel mixture, or that its fuel-trim monitoring has detected a lean condition under specified operating conditions.

A gasoline engine needs the correct balance of air and fuel for efficient combustion. Oxygen sensors and other engine sensors help the computer adjust fuel delivery as conditions change. When excess air enters the engine, the airflow reading is inaccurate, or fuel delivery is insufficient, the engine may run lean. The computer can compensate by increasing fuel delivery, but when the correction reaches its calibrated limits, it may store a lean-system code.

P0171 identifies Bank 1, which contains cylinder 1. P0174 identifies Bank 2, the opposite cylinder bank on an engine with two banks. Many V6 and V8 engines have two banks, while a conventional inline engine generally has only one. Bank location varies by engine, so use vehicle-specific service information rather than assuming it corresponds to the driver's or passenger's side.

When P0171 and P0174 appear together, a shared problem is often a better starting point than assuming two unrelated failures occurred at the same time. Common possibilities include a vacuum leak, an intake duct leak after the mass airflow sensor, a contaminated MAF sensor, or inadequate fuel pressure. However, both codes do not prove that the cause is shared; separate bank-specific leaks or other faults are possible.

Common symptoms

  • Check engine light: The light may be the only noticeable symptom.
  • Rough idle: The engine may shake or run unevenly, especially when stopped.
  • Hesitation or weak acceleration: The engine may stumble when accelerating or climbing a hill.
  • Hard starting or stalling: Some vehicles may struggle to start or maintain idle.
  • Reduced fuel economy: Additional fuel-trim corrections and poor combustion can affect efficiency.
  • Misfires: A lean mixture may contribute to intermittent or persistent misfires.

Symptoms depend on how severe the condition is and whether the computer can compensate. Some vehicles store the codes while still feeling normal to the driver. A lack of noticeable symptoms does not establish that the engine is operating correctly.

What fuel trims tell you

Fuel trims are adjustments the engine computer makes to its base fueling calculation. Short-term fuel trim (STFT) reflects more immediate corrections, while long-term fuel trim (LTFT) reflects learned adjustments over time. Positive fuel trims generally mean the computer is adding fuel; negative trims mean it is removing fuel.

Consistently high positive trims can support a lean-condition diagnosis, but the readings must be interpreted in context. Values vary by vehicle, operating state, engine temperature, and control strategy. Compare trims at idle and at a raised engine speed when the manufacturer's diagnostic procedure allows. A leak that has a strong effect at idle may become less significant as airflow increases, while fuel delivery limitations may become more apparent under load.

Root Causes Ranked

The following ranking is a practical diagnostic starting point, not a universal statistical ranking. Vehicle design, engine age, mileage, maintenance history, and accompanying codes can change which cause is most likely.

1. Vacuum leaks and unmetered air

A vacuum leak allows air to enter the engine without being accounted for correctly by the engine management system. Common locations include cracked vacuum hoses, intake manifold gaskets, crankcase ventilation hoses, brake booster hoses, and other intake connections. A split intake duct downstream of the MAF sensor can produce a similar effect.

When both banks are affected, inspect components that serve the shared intake system first. A leak may be too small to hear and may only become apparent under certain temperature or operating conditions. A professional smoke test can often reveal leaks that are difficult to locate visually.

2. Dirty or inaccurate mass airflow sensor

The mass airflow (MAF) sensor measures the air entering the engine. If it underreports airflow, the computer may calculate an insufficient fuel quantity, causing positive fuel trims and lean codes. Contamination, damaged wiring, poor electrical connections, or an unsuitable replacement part can affect its readings.

Check the air filter housing, intake ducting, sensor connector, and live MAF data. Compare readings with the manufacturer's specifications and operating conditions. Do not replace the sensor solely because P0171 and P0174 are present. If cleaning is appropriate for the sensor type, use a product specifically designed for MAF sensors and follow the manufacturer's instructions; ordinary solvents can damage sensitive components.

3. Low fuel pressure or insufficient fuel delivery

A weak fuel pump, restricted fuel supply, faulty pressure regulator where fitted, clogged filter where serviceable, or electrical supply problem can prevent the engine from receiving enough fuel. Both banks may be affected because they draw fuel from the same delivery system.

Fuel delivery problems may become more noticeable under acceleration or high load, although symptoms vary. A technician can test fuel pressure and, where necessary, delivery volume under the conditions specified for the vehicle. Do not replace a fuel pump until testing supports that diagnosis.

4. Faulty crankcase ventilation or purge system

A damaged positive crankcase ventilation (PCV) hose, faulty PCV valve, or malfunctioning evaporative emissions purge valve can allow additional air to enter the intake. Depending on the system design, a purge valve stuck open may introduce air or fuel vapor at an unexpected time and affect fuel trims.

Inspect hoses and connections for cracks, loose fittings, and incorrect routing. Use appropriate tests to evaluate valve operation rather than blocking or disconnecting emissions components as a permanent repair.

5. Exhaust leaks or oxygen sensor issues

An exhaust leak near an upstream oxygen sensor can introduce outside air into the exhaust stream and influence the sensor's interpretation. A faulty oxygen sensor, damaged wiring, or a circuit problem can also provide inaccurate feedback to the engine computer.

However, a lean-system code does not automatically mean an oxygen sensor is defective. Compare sensor readings with other data, inspect wiring, and test for exhaust leaks before installing replacement sensors. Downstream oxygen sensors primarily support catalyst monitoring on many vehicles and are not automatically the cause of a lean fuel-trim condition.

6. Injector problems or bank-specific intake leaks

Restricted or malfunctioning fuel injectors can reduce fuel delivery to one or more cylinders. Intake manifold gasket leaks may also affect individual runners or one bank more strongly than the other. These faults are particularly relevant when fuel trims differ substantially between banks or additional cylinder-specific misfire codes are present.

Injector balance testing, cylinder contribution checks, and a careful intake inspection may help isolate the problem. Avoid assuming that both banks require injector replacement just because both codes are stored.

7. Wiring, electrical, or less common mechanical faults

Damaged grounds, corroded connectors, low system voltage, or wiring faults can affect sensor readings and fuel system operation. Less commonly, engine mechanical problems or valve timing issues may contribute to abnormal combustion and fuel-trim behavior.

Check for additional codes and follow the evidence. If basic intake and fuel checks do not identify the cause, more advanced electrical or mechanical testing may be necessary.

5-Step Diagnostic Sequence

A systematic diagnostic process helps prevent unnecessary sensor, fuel pump, and injector replacement. Follow vehicle-specific service information for test specifications and safety procedures.

Step 1: Scan all codes and preserve freeze-frame data

Use an OBD2 scanner to read stored, pending, and permanent codes. Record freeze-frame information, which may include engine speed, load, coolant temperature, fuel trims, and other conditions when the fault was detected. Check for accompanying misfire codes, airflow sensor faults, fuel pressure faults, and oxygen sensor circuit codes.

Do not clear codes before recording the information. Clearing them can erase useful diagnostic evidence and reset emissions readiness monitors. If P0171 and P0174 appeared shortly after maintenance, check whether an intake hose, airbox, sensor connector, or vacuum line was left loose.

Step 2: Compare fuel trims at idle and higher engine speed

With the engine operating under appropriate conditions, review STFT and LTFT for both banks when supported by the scan tool. Compare the readings at idle and at a raised engine speed according to a safe, vehicle-appropriate procedure. Strong positive trims at idle that improve as airflow increases may point toward a vacuum leak, while lean corrections that worsen under load may justify checking fuel delivery.

These patterns are clues, not definitive diagnoses. Some engines use different control strategies, and other faults can produce similar data. Avoid revving the engine in an unsafe location or performing load tests without suitable equipment.

Step 3: Inspect the intake system and test for leaks

With the engine off, inspect the intake duct between the air filter and throttle body, vacuum hoses, PCV plumbing, manifold connections, and accessible electrical connectors. Look for split rubber, loose clamps, disconnected hoses, and signs of previous repairs. Pay particular attention to components shared by both banks.

If no visible problem is found, a smoke test can help locate hidden intake leaks. Do not spray flammable chemicals around a running engine to search for vacuum leaks. Such methods create fire and injury risks and can produce unreliable results.

Step 4: Test airflow measurement, fuel delivery, and sensors

If the intake system is sealed, compare MAF readings with manufacturer specifications and inspect the sensor's power, ground, and signal circuits as appropriate. Test fuel pressure and delivery using the correct equipment and specified operating conditions. Evaluate purge valve operation, PCV function, and upstream oxygen sensor data when the evidence suggests those systems may be involved.

Safety warning: Fuel systems can remain pressurized, and gasoline vapors are highly flammable. Do not loosen fuel lines or open the fuel system without the correct depressurization procedure, protective equipment, and suitable workspace. If you lack the required tools or experience, have a qualified technician perform these tests.

Step 5: Repair the confirmed cause and verify the results

Repair the identified leak, wiring fault, sensor problem, or fuel delivery issue. Clear the codes only after preserving diagnostic information, then verify fuel trims and engine operation under the appropriate conditions. Confirm that the relevant monitors complete and that pending codes do not return.

If the codes return, reassess the original findings rather than replacing additional parts without evidence. A fault may be intermittent, may occur only under load, or may involve more than one problem.

Repair Cost Breakdown

Repair prices vary by vehicle, location, labor rate, parts quality, and diagnostic complexity. The following are broad US-market estimates in USD, not guaranteed quotes. Diagnostic fees may be separate or credited toward an approved repair.

  • Initial diagnostic testing: approximately $75–$200 for a scan and basic inspection.
  • Vacuum hose or intake duct repair: approximately $100–$300 for many straightforward repairs.
  • Intake manifold gasket replacement: approximately $250–$800 or more, depending on engine layout and access.
  • MAF sensor cleaning, when appropriate: approximately $50–$150 at a shop; DIY product costs are often lower.
  • MAF sensor replacement: approximately $150–$500 installed, depending on the vehicle and part.
  • PCV valve or hose repair: approximately $75–$300 for many common configurations, although difficult access can increase labor.
  • Oxygen sensor replacement: approximately $150–$400 per sensor installed on many vehicles.
  • Fuel pressure diagnosis or minor fuel system repair: approximately $100–$400, depending on testing and parts.
  • Fuel pump replacement: approximately $400–$1,200 or more, depending on vehicle design and access.
  • Injector cleaning or replacement: approximately $150–$600 for some repairs; multiple injectors or difficult labor can push the cost above $1,000.

These ranges are illustrative. Some vehicles require substantial intake disassembly, specialized parts, or additional diagnostic time. Ask for an itemized estimate that separates testing, parts, labor, and taxes. If a shop recommends replacing both oxygen sensors or a fuel pump, ask which measurements confirm that those components are faulty.

Because P0171 and P0174 often appear together, diagnosing the shared intake and fuel delivery systems first can help avoid unnecessary repairs. However, the cheapest potential cause should not automatically be assumed to be correct; repairs should follow the evidence.

When to DIY vs Shop

When DIY inspection may be reasonable

A capable DIY owner can begin by reading codes, reviewing maintenance history, inspecting intake hoses, checking airbox connections, and looking for disconnected vacuum lines. These checks may reveal an obvious problem without replacing expensive components. Always use vehicle-specific instructions and keep hands, clothing, and tools away from moving engine parts.

Cleaning a MAF sensor may be reasonable when the manufacturer permits it and the correct sensor-safe cleaner is used. Do not touch the sensing elements or use ordinary brake cleaner or carburetor cleaner. If the sensor is damaged or its readings remain incorrect, further testing may be necessary.

When to use a professional repair shop

  • The engine stalls repeatedly, runs very roughly, or loses substantial power.
  • The check engine light flashes or the engine develops severe misfires.
  • Fuel pressure, injector operation, or electrical circuits require specialized testing.
  • Intake leaks cannot be located with a visual inspection.
  • The codes return after a basic repair or occur alongside multiple additional codes.
  • You do not have the equipment or experience to work safely with pressurized fuel.

A qualified technician can combine fuel-trim analysis, smoke testing, airflow measurements, fuel pressure tests, and electrical diagnosis to identify the root cause. Ask for the test results supporting the recommendation instead of authorizing a series of parts replacements based only on the code descriptions.

Can P0171 and P0174 Damage the Engine?

A lean condition can cause poor drivability, hesitation, stalling, and misfires. Depending on severity and operating conditions, prolonged lean operation can contribute to excessive combustion temperatures and damage. Misfires may also send unburned fuel into the exhaust and overheat the catalytic converter.

If the check engine light flashes, the engine overheats, or the vehicle experiences severe power loss or repeated stalling, stop driving as soon as it is safe and arrange professional assistance. If the light is steady and the engine runs normally, limited driving to arrange diagnosis may be possible, but avoid heavy acceleration and towing until the issue is understood.

How to Prevent These Codes From Returning

Maintain the air intake system, replace filters according to the manufacturer's schedule, inspect deteriorated hoses, and address engine performance problems promptly. Use appropriate replacement parts and ensure intake ducts and electrical connectors are secured after maintenance. Avoid replacing sensors simply because they are easy to access; confirm the fault with testing.

Keep a record of diagnostic codes, fuel-trim readings, repairs, and maintenance dates. If both lean codes return, compare the new data with previous readings to determine whether the original fault remains or a different problem has developed.

Frequently Asked Questions

Do P0171 and P0174 mean the engine needs two oxygen sensors?

No. The codes identify lean conditions on two banks, not failed oxygen sensors. Check intake leaks, airflow measurement, fuel delivery, and sensor operation before deciding which components need replacement.

Can bad gas cause both codes?

Contaminated or unsuitable fuel can contribute to engine performance problems, but it is not the only or necessarily the most likely cause. If the codes appeared after refueling, mention the timing during diagnosis and investigate other causes as well.

Will clearing the codes fix the problem?

No. Clearing the codes only removes stored information and may reset readiness monitors. If the underlying lean condition remains, the computer will often detect it again when the relevant operating conditions occur.

Bottom Line

P0171 and P0174 indicate lean air-fuel conditions on Bank 1 and Bank 2. When both codes appear together, begin by investigating shared causes such as intake leaks, unmetered air, MAF sensor accuracy, and fuel delivery. Use fuel trims and targeted tests to confirm the fault, repair the underlying problem, and verify that the codes do not return.

Disclaimer: This article provides general automotive diagnostic information for educational purposes and is not a substitute for vehicle-specific service information or a qualified technician's inspection. Repair prices are estimates and vary by vehicle, location, parts availability, and labor rates.

Frequently Asked Questions

What do P0171 and P0174 mean together?

P0171 indicates a lean condition on Bank 1, and P0174 indicates a lean condition on Bank 2. When both appear together, a shared problem such as an intake vacuum leak, unmetered air, incorrect airflow measurement, or inadequate fuel delivery is often worth investigating first.

Can I drive with P0171 and P0174 codes?

Limited driving may be possible if the engine runs normally and the check engine light is steady, but arrange diagnosis promptly. Stop driving if the engine overheats, stalls repeatedly, loses substantial power, or the check engine light flashes.

What is the most common cause of P0171 and P0174?

Common causes include vacuum leaks, unmetered air entering after the mass airflow sensor, a contaminated or inaccurate MAF sensor, and fuel delivery problems. The actual cause depends on the vehicle and should be confirmed with diagnostic testing.

How much does it cost to fix P0171 and P0174?

Simple hose or intake leak repairs may cost approximately $100–$300, while MAF sensor, fuel pump, or more complex repairs can cost several hundred dollars or more. The total depends on the failed component, diagnostic time, vehicle design, and labor rates.

Can a vacuum leak cause both P0171 and P0174?

Yes, a vacuum leak or unmetered-air leak affecting the shared intake system can cause lean readings on both banks. Fuel-trim analysis and a smoke test can help identify the leak.

Can a dirty MAF sensor cause P0171 and P0174?

Yes, a contaminated or inaccurate mass airflow sensor may underreport incoming air, causing the engine computer to deliver insufficient fuel. Confirm the sensor reading and inspect the intake system before replacing it.

Can low fuel pressure trigger P0171 and P0174?

Yes, inadequate fuel pressure or delivery can leave both cylinder banks with a lean mixture. Fuel pressure and volume should be tested against the manufacturer's specifications before replacing the fuel pump.

Will replacing oxygen sensors fix P0171 and P0174?

Not necessarily. These codes describe a lean condition rather than proving an oxygen sensor has failed, so investigate air leaks, airflow measurement, fuel delivery, and sensor circuits before replacing oxygen sensors.

Can P0171 and P0174 damage my engine?

A persistent lean condition can cause poor performance and, under some operating conditions, excessive combustion temperatures or engine damage. Severe symptoms, overheating, or misfires require prompt attention.

How do I clear P0171 and P0174 permanently?

Repair the underlying cause, then clear the codes and verify the results after the required operating conditions. Simply erasing the codes will not correct the lean condition, and the warnings may return when the engine computer reruns its monitors.

Codes Covered in This Article

Click any code for full symptoms, causes, and repair costs.

Code Description Severity System
P0300 Random/Multiple Cylinder Misfire Detected High Ignition System
P0420 Catalyst System Efficiency Below Threshold (Bank 1) Med Emission Control

Recommended Tools

A good OBD2 scanner helps you read and clear codes yourself.

BlueDriver Bluetooth Pro OBDII Scan Tool

Professional Bluetooth scanner with live data, enhanced diagnostics (ABS/SRS) and repair reports. Works with iPhone & Android. No subscription fee.

$70 - $120
Check Price on Amazon →

ANCEL AD310 Classic Enhanced OBD2 Scanner

Best-selling handheld code reader. Read & clear engine codes, live data, freeze frame. No phone required. Highly rated for beginners.

$25 - $40
Check Price on Amazon →

As an Amazon Associate we earn from qualifying purchases.

Facing a Big Repair Bill?

If a major repair is coming up, estimate how it fits your monthly budget with our sister tool Car Finance Calculator.

Disclaimer: This article is for educational reference only. Actual repairs vary by make, model, year and condition — always confirm with a qualified technician.