AutoLogicTools

OBD-II trouble code

P0171: System Too Lean (Bank 1)

Application matters: Bank 1 is the cylinder/exhaust group containing cylinder 1. Identify the group and its sensors from the engine diagram. Some inline engines have more than one monitored exhaust group; fuel-trim thresholds, fuel type and test conditions are calibration-specific.

The controller has detected excessive correction for a lean indication on bank 1. Diagnose air leaks, fuel delivery and the accuracy of mixture feedback before replacing an oxygen or airflow sensor.

Medium severityPowertrainFuel and Air MeteringAssess symptoms before driving

Quick facts

System
Powertrain
Category
Fuel and Air Metering
Severity
Medium severity
Driving guidance
Depends on symptoms and vehicle guidance
Repair cost range
Get a vehicle-specific estimate after diagnosis.
DIY difficulty
Intermediate DIY

A code alone cannot establish whether driving is safe. Stop safely for a red brake or oil-pressure warning, overheating, severe misfire, stalling, or impaired braking or steering, and follow the owner's manual. Restraints faults can reduce crash protection even when the vehicle runs normally.

Browse every code in P0100–P0199, or start from the full code library.

What does P0171 mean?

P0171 means the bank 1 fuel-control monitor has detected a lean condition. In percentage fuel-trim data, positive correction generally means the controller is adding fuel. The fault can result from excess unmetered air, insufficient fuel delivery or inaccurate feedback that makes the controller believe the mixture is lean. It does not establish that every cylinder is lean at every moment.

The monitor is more specific than a universal long-term-trim percentage. The cited Ford summary evaluates long-term correction together with short-term correction under defined conditions. Mitsubishi’s cited P0171 procedure likewise treats excessive mixture compensation as a system fault and considers air leaks, exhaust leaks, fuel pressure, injection, airflow measurement and the A/F sensor.

Save the freeze frame and learned values before resetting anything. A leak can appear only at a particular temperature or load. On the older Ford vehicles listed in TSB 04-17-4, comparing corrections at the captured temperature and a specified higher RPM helps identify a vacuum-leak pattern. Use that bulletin’s complete conditions only on its covered vehicles. Cleaning a MAF or replacing an oxygen sensor will not repair an air leak.

Possible causes

  • Unmetered intake air from a damaged duct, PCV connection, hose or manifold seal
  • Insufficient fuel delivery, restricted injection or incorrect fuel pressure
  • Airflow or other engine-input measurement error
  • Exhaust leakage ahead of the mixture-feedback sensor
  • A/F or oxygen-sensor circuit or sensing error
  • EVAP purge flow that does not match the commanded operating condition

Symptoms

  • Check-engine light with P0171
  • Possible rough idle, hesitation or reduced power
  • Misfire or stalling if the underlying fault is severe
  • Changed fuel economy
  • Sometimes no obvious symptom beyond the warning light

Diagnostic steps

Save the full scan report, code status, and available freeze-frame data before clearing anything. Confirm the reporting module, any failure-type suffix, and the procedure for the exact vehicle. The steps below are an overview; use manufacturer specifications and safety procedures for testing.

  1. 1.Save current, pending and permanent codes, freeze frame and learned fuel data before any reset. Follow the manufacturer’s priority for related misfire, airflow, pressure or sensor faults.
  2. 2.Identify bank 1 and the engine’s feedback-sensor type. Confirm the scan tool’s trim units, sign convention and control mode before interpreting its numbers.
  3. 3.Compare correction at the captured temperature, idle and the manufacturer’s specified operating points. Record or log any road test; the driver must not watch the screen.
  4. 4.Inspect intake ducting downstream of the airflow meter, PCV connections and relevant hoses/seals. Use approved low-pressure smoke testing with the correct isolation and pressure limits to locate a suspected leak.
  5. 5.Check fuel pressure/delivery and injector operation with the prescribed tests. Direct-injection and common-rail work requires suitable equipment and the factory pressure-release procedure; do not crack a high-pressure fitting or improvise a gauge connection.
  6. 6.Evaluate airflow readings and mixture-sensor response against the actual sensor design. A slow or lean-looking trace alone does not prove wear, and fuel trim derived from that same sensor is not independent confirmation. Clean a metering sensor only when the manufacturer permits it and the diagnosis supports it.
  7. 7.Check for exhaust leaks, incorrect purge flow and other inputs identified by the diagnostic. Compare a second bank if fitted, while allowing for shared faults that can affect the banks differently.
  8. 8.Repair the demonstrated cause, perform only the specified reset/relearn and repeat the confirmation conditions. Verify correction and monitor results instead of judging success only by a cleared light.

Repair cost

Get a vehicle-specific estimate after diagnosis.

A trouble code alone does not price the repair. Ask the shop to identify the confirmed fault and itemize diagnosis, parts, labor, programming or calibration, and taxes.

Estimate your repair

Run the numbers for your vehicle

Open the Repair Cost Estimator with vacuum leak repair preselected. Adjust labor rate and vehicle category to fit your situation.

Related repairs

These links are planning examples; the code does not confirm that any listed part has failed.

DIY vs shop

Diagnosis or repair may suit an experienced DIY owner with the correct service information and tools. Check access, lifting requirements, electrical precautions, and any setup procedure before starting. A code alone cannot establish the repair time or difficulty.

Related codes

Frequently asked questions

Can I drive with P0171?

If it runs normally, arrange prompt diagnosis and avoid heavy loads. Stop safely for a flashing check-engine light, severe misfire, stalling, overheating, fuel leakage or major power loss. The code alone cannot establish a safe driving period.

Does P0171 mean the oxygen sensor is bad?

No. The sensor may be reporting a real air or fuel problem, or its signal may be inaccurate. Test the intake, fuel delivery and feedback system before replacing parts.

Will a gas cap fix P0171?

A loose cap usually belongs to an EVAP-leak diagnosis. An incorrectly flowing purge system can affect the mixture, but tightening the cap is not a general repair for P0171.

What if P0174 is stored too?

Check shared intake, airflow, purge and fuel-delivery components, then verify each bank’s data. Two codes do not prove one shared fault, and a single-bank code does not exclude a shared cause.

How much does P0171 cost to repair?

Ask for diagnosis first and an itemized quote for the demonstrated fault. A hose, circuit repair, injector and fuel-delivery repair are different jobs; the code does not select one price or part.

Editorial context

About This Diagnostic Information

These guides provide general diagnostic context. A trouble code records a condition detected by a control module. It does not automatically identify a failed part, and the right diagnostic procedure can vary by vehicle.

References for this guide

  • Ford 2024–2025 gasoline OBD operation summary, July 16, 2024 V2

    Pages 22–24 cover fuel-system monitoring and rear-sensor fuel correction. Monitor thresholds and prerequisites apply only to the covered Ford strategies.

  • Mitsubishi 2022 service information: P0171-00

    Explains excessive mixture compensation and lists intake/exhaust leakage, A/F sensor, injection, fuel pressure, MAF and PCV possibilities for the cited application. Its fail-safe and confirmation procedure are application-specific.

  • Ford TSB 04-17-4: system-lean diagnostic service tips

    August 13, 2004 bulletin for its listed 2000–2004 Ford, Lincoln and Mercury vehicles. Compares corrections under matching freeze-frame conditions; its percentages, RPM and reset sequence are not universal specifications.

  • BMW 2007 NG6 engine training: N54 exhaust sensing groups

    BMW-authored training dated September 2006, archived by a third party. Printed introduction page 8 identifies the N54 as an inline six; engine-management page 11 shows separate bank 1/bank 2 oxygen-sensor groups. An architecture example, not a current repair procedure.

Manufacturer service information, technical service bulletins, wiring diagrams, and vehicle-specific procedures should take precedence when available.

AutoLogicTools was founded by Vincent Fisk, an automotive locksmith and shop owner in San Diego with hands-on experience in vehicle keys, immobilizer systems, electrical issues, modules, programming, and diagnostics.