Fuel delivery
P0171: Causes, Diagnostic Tests and Repair Options
Published:
Edited and fact-checked by: Jacob Bowen
General information; vehicle-specific diagnosis requires an inspection. How we prepare our guides · This page reserves space for ads. Advertising policy · Privacy choices
The quick answer
P0171 means the engine's fuel-control system detected a lean condition on bank 1. It does not prove that an oxygen sensor is bad. Diagnosis should establish whether unmetered air, inadequate fuel delivery or another measurement problem explains the result, then verify the repair under the conditions that triggered the code.
What does system too lean on bank 1 mean?
Lean describes too much air relative to fuel for the relevant operating condition. Bank 1 identifies the affected engine bank in the diagnostic information. Use the vehicle's engine layout to locate it rather than assuming it is always the driver's side.
P0174 is the corresponding bank 2 lean code. Save the full scan report, including other faults and any suffix, before repairs. A shared code definition does not make every Toyota, Ford or Chevrolet test procedure identical.

How can testing distinguish an air leak from other causes?
Compare fuel-trim behavior at idle and under load to direct the next test. A vacuum leak can have its strongest effect at idle. Inspect accessible intake hoses and connections for splits or disconnection; a suitable smoke test can help locate leaks that are not obvious.
That pattern guides testing rather than replacing the test. If the evidence does not support a leak, the technician should investigate the relevant fuel-delivery or measurement branch using the engine's procedure, not replace intake parts because leaks are common.
What did a documented Toyota Camry case find?
In an Underhood Service case published in February 2026, Andrew Markel traced P0171 on a 2014 Camry to splits in the intake pipe between the airflow sensor and throttle body. After replacement, he used the vehicle's service information and fuel-trim data to verify the result.
That is the source author's case, not a diagnosis for your Camry. Its useful lesson is to locate the fault and check the result using the correct monitor conditions.
Should you replace the oxygen sensor or clean the airflow sensor?
Only when testing supports that repair. A sensor reporting a lean condition may be responding to a real air leak or fueling problem. Ask what finding shows that the sensor is inaccurate before paying for replacement or cleaning.
For a confirmed leak, use the correct hose, duct or sealing repair. Tape over a split may help demonstrate a leak during diagnosis, but it is not a durable replacement for a damaged intake component.

How do you know the lean condition is fixed?
Have the technician repeat the failed checks and assess fuel control under the relevant conditions. Follow the manufacturer's monitor and verification instructions. Clearing the warning without checking the cause can make an incomplete repair look finished.
If the engine shakes, stalls or loses power, seek prompt assistance rather than assuming a lean code is harmless. There is no single P0171 repair price because the code can lead to different repairs.
Sources & further reading
- HELLA — OBD-II powertrain DTC definitions (English)
- MOTOR — Fuel Trim Data: A Powerful Diagnostic Tool
- AA1Car / Larry Carley — Engine Vacuum Leaks
- Underhood Service — P0171: Clearing the Code Using an Overlooked Resource
Vehicle designs and maintenance requirements vary. Consult the owner’s manual for your exact vehicle and seek a qualified inspection for a specific fault.
