LEMON Manuals: Even more car manuals for everyone: 1960-2025
Home >> Toyota >> 2012 >> Avalon Base >> Repair and Diagnosis >> Engine Performance >> System >> Engine Control System (Diagnostic Codes (P0010-P0346)) >> SFI System >> DTC P0171: System Too Lean (Bank 1); DTC P0172: System Too Rich (Bank 1); DTC P0174: System Too Lean (Bank 2); DTC P0175: System Too Rich (Bank 2) >> Procedure
April 5, 2026: LEMON Manuals is launched! Read the announcement.

DTC P0171: System Too Lean (Bank 1); DTC P0172: System Too Rich (Bank 1); DTC P0174: System Too Lean (Bank 2); DTC P0175: System Too Rich (Bank 2): Procedure

  1. CHECK ANY OTHER DTCS OUTPUT (IN ADDITION TO DTC P0171, P0172, P0174 OR P0175) 
    1. Connect the Techstream to the DLC3.
    2. Turn the ignition switch to ON.
    3. Turn the Techstream on.
    4. Select the following menu items: Powertrain / Engine / Trouble Codes.
    5. Read the DTCs.

      Result

      Result Proceed to
      DTC P0171, P0172, P0174 or P0175 are output A
      DTC P0171, P0172, P0174 or P0175 and other DTCs are output B

      HINT: 

      If any DTCs other than P0171, P0172, P0174 or P0175 are output, troubleshoot those DTCs first.

    B → See step   23 

    A: Go to next step 

  2. CHECK PCV HOSE CONNECTIONS 
    1. Check the PCV hose connections. Refer to ON-VEHICLE INSPECTION - Step 5 .

      OK

      PCV valve and hose are connected correctly and are not damaged.

    NG → REPAIR OR REPLACE PCV HOSE 

    OK: Go to next step 

  3. CHECK AIR INDUCTION SYSTEM 
    1. Check the air induction system for vacuum leaks.

      OK

      No leaks in air induction system.

    NG → REPAIR OR REPLACE AIR INDUCTION SYSTEM 

    OK: Go to next step 

  4. PERFORM ACTIVE TEST USING TECHSTREAM (CONTROL THE INJECTION VOLUME FOR A/F SENSOR) 
    1. Connect the Techstream to the DLC3.
    2. Start the engine.
    3. Turn the Techstream on.
    4. Warm up the engine and run the engine at an engine speed of 2500 rpm for approximately 90 seconds.
    5. Enter the following menus: Powertrain / Engine / Active Test / Control the Injection Volume / AFS Voltage B1S1 and O2S B1S2 or AFS Voltage B2S1 and O2S B2S2.
    6. Perform the Control the Injection Volume operation with the engine idling (press the RIGHT or LEFT button to change the fuel injection volume).
    7. Monitor the voltage outputs of the air fuel ratio sensor and the heated oxygen sensor (AFS Voltage B1S1 and O2S B1S2 or AFS Voltage B2S1 and O2S B2S2) displayed on the Techstream.

      HINT: 

      • Change the fuel injection volume within the range of -12% to +12%. The injection volume can be changed in fine gradations.
      • The air fuel ratio sensor has an output delay of a few seconds and the heated oxygen sensor has a maximum output delay of approximately 20 seconds.
      • If the sensor output voltage does not change (almost no reaction) while performing the Active Test, the sensor may be malfunctioning.

      Standard

      Techstream Display
      (Sensor)
      Injection Volume Status Voltage
      AFS Voltage B1S1
      AFS Voltage B2S1
      (Air fuel ratio)
      +12% Rich Below 3.1 V
      -12% Lean Higher than 3.4 V
      O2S B1S2
      O2S B2S2
      (Heated oxygen)
      +12% Rich Higher than 0.55 V
      -12% Lean Below 0.4 V
      RESULT

      Status
      AFS Voltage B1S1 or AFS Voltage B2S1
      Status
      O2S B1S2 or O2S B2S2
      Air Fuel Ratio Condition and
      Air Fuel Ratio Sensor Condition
      Suspected Trouble Area Proceed to
      Lean/Rich Lean/Rich Normal - A
      Lean Lean Actual air fuel ratio lean
      • PCV valve and hose
      • PCV hose connections
      • Fuel injector assembly blockage
      • Gas leak from exhaust system
      • Intake system
      • Fuel pressure
      • Mass air flow meter sub-assembly
      • Engine coolant temperature sensor
      A
      Rich Rich Actual air fuel ratio rich
      • Fuel injector assembly leak or blockage
      • Gas leak from exhaust system
      • Ignition system
      • Fuel pressure
      • Mass air flow meter sub-assembly
      • Engine coolant temperature sensor
      A
      Lean Lean/Rich Air fuel ratio sensor malfunction
      • Air fuel ratio sensor
      B
      Rich Lean/Rich Air fuel ratio sensor malfunction
      • Air fuel ratio sensor
      B
      • Lean: During Control the Injection Volume, the air fuel ratio sensor output voltage (AFS Voltage B1S1 or AFS Voltage B2S1) is consistently higher than 3.4 V, and the heated oxygen sensor output voltage (O2S B1S2 or O2S B2S2) is consistently below 0.4 V.
      • Rich: During Control the Injection Volume, the AFS Voltage B1S1 or AFS Voltage B2S1 is consistently below 3.1 V, and the O2S B1S2 or O2S B2S2 is consistently higher than 0.55 V.
      • Lean/Rich: During Control the Injection Volume of the Active Test, the output voltage of the heated oxygen sensor alternates correctly.

      HINT: 

      Refer to "Data List / Active Test" [AFS Voltage B1S1, AFS Voltage B2S1, O2S B1S2 and O2S B2S2]. Refer to DATA LIST / ACTIVE TEST .

    B → See step   11 

    A: Go to next step 

  5. READ VALUE USING TECHSTREAM (COOLANT TEMP) 
    1. Connect Techstream to the DLC3.
    2. Turn the ignition switch to ON and turn the Techstream on.
    3. Select the following menu items: Powertrain / Engine / Data List / All Data / Coolant Temp.
    4. Read the Coolant Temp twice, when the engine is both cold and warmed up.

      Standard

      With cold engine 

      Same as ambient air temperature.

      With warm engine 

      Between 75°C and 100°C (167°F and 212°F)

    NG → REPLACE ENGINE COOLANT TEMPERATURE SENSOR 

    OK: Go to next step 

  6. READ VALUE USING TECHSTREAM (MAF) 
    1. Connect the Techstream to the DLC3.
    2. Start the engine.
    3. Turn the Techstream on.
    4. Enter the following menus: Powertrain / Engine / Data List / All Data / MAF, Coolant Temp and Engine Speed.
    5. Allow the engine to idle until Coolant Temp reaches 75°C (167°F) or higher.
    6. Read MAF with the engine speed at 3000 rpm.

      Standard

      Between 12 g/sec. and 17 g/sec. (shift lever: N; A/C: Off).

    NG → See step   16 

    OK: Go to next step 

  7. CHECK FUEL PRESSURE 
    1. Check the fuel pressure. Refer to ON-VEHICLE INSPECTION - Step 2 .

    NG → REPAIR OR REPLACE FUEL SYSTEM 

    OK: Go to next step 

  8. INSPECT FOR EXHAUST GAS LEAK 
    1. Check for exhaust gas leaks.

      OK

      No gas leaks.

    NG → REPAIR OR REPLACE EXHAUST SYSTEM 

    OK: Go to next step 

  9. CHECK FOR SPARK (SPARK TEST) 
    1. Perform a spark test. Refer to ON-VEHICLE INSPECTION - Step 1 .

      HINT: 

      • If the result of the spark test is normal, proceed to the next step.
      • If the spark plugs or ignition system malfunction, engine misfire may occur. The misfire count can be read using Techstream. Select the following menu items: Powertrain / Engine / Data List / All Data / Cylinder #1 Misfire Count (to Cylinder #6 Misfire Count).

    NEXT: Go to next step 

  10. INSPECT FUEL INJECTOR ASSEMBLY (INJECTION AND VOLUME) 
    1. Inspect the fuel injector assembly. Refer to INSPECTION .

      HINT: 

      If the injectors malfunction, engine misfire may occur. The misfire count can be read using Techstream. Select the following menu items: Powertrain / Engine / Data List / All Data / Cylinder #1 Misfire Count (to Cylinder #6 Misfire Count).

    OK → See step   15 

    NG → See step   24 

  11. INSPECT AIR FUEL RATIO SENSOR (HEATER RESISTANCE). See step   1  .

    NG → See step   25 

    OK: Go to next step 

  12. CHECK TERMINAL VOLTAGE (+B OF A/F SENSOR). See step   2  .

    NG → See step   21 

    OK: Go to next step 

  13. CHECK HARNESS AND CONNECTOR (A/F SENSOR - ECM) 
    1. Disconnect the A/F sensor connector.
    2. Disconnect the ECM connector.
    3. Measure the resistance according to the value(s) in the table below.

      Standard Resistance (Check for Open)

      Tester Connection Condition Specified Condition
      B32-1 (HA1A) - B50-86 (HA1A) Always Below 1 Ω
      B32-3 (A1A+) - B50-93 (A1A+) Always Below 1 Ω
      B32-4 (A1A-) - B50-116 (A1A-) Always Below 1 Ω
      B26-1 (HA2A) - B50-109 (HA2A) Always Below 1 Ω
      B26-3 (A2A+) - B50-120 (A2A+) Always Below 1 Ω
      B26-4 (A2A-) - B50-119 (A2A-) Always Below 1 Ω

      Standard Resistance (Check for Short)

      Tester Connection Condition Specified Condition
      B32-1 (HA1A) or B50-86 (HA1A) - Body ground Always 10 kΩ or higher
      B32-3 (A1A+) or B50-93 (A1A+) - Body ground Always 10 kΩ or higher
      B32-4 (A1A-) or B50-116 (A1A-) - Body ground Always 10 kΩ or higher
      B26-1 (HA2A) or B50-109 (HA2A) - Body ground Always 10 kΩ or higher
      B26-3 (A2A+) or B50-120 (A2A+) - Body ground Always 10 kΩ or higher
      B26-4 (A2A-) or B50-119 (A2A-) - Body ground Always 10 kΩ or higher
    4. Reconnect the ECM connector.
    5. Reconnect the A/F sensor connector.

    NG → REPAIR OR REPLACE HARNESS OR CONNECTOR 

    OK: Go to next step 

  14. REPLACE AIR FUEL RATIO SENSOR 
    1. Replace the air fuel ratio sensor. Refer to REMOVAL .

    NEXT: Go to next step 

  15. CHECK WHETHER DTC OUTPUT RECURS (DTC P0171, P0172, P0174 OR P0175) 
    1. Connect Techstream to the DLC3.
    2. Turn the ignition switch to ON and turn the Techstream on.
    3. Clear the DTCs. Refer to DTC CHECK / CLEAR .
    4. Turn the ignition switch off and wait for at least 30 seconds.
    5. Turn the ignition switch to ON and turn the Techstream on.
    6. Start the engine and warm it up.
    7. Drive the vehicle in accordance with the driving pattern described in the Confirmation Driving Pattern.
    8. Select the following menu items: Powertrain / Engine / Trouble Codes / Pending.
    9. Read the pending DTCs.

      Result

      Result Proceed to
      DTC P0171, P0172, P0174 or P0175 is output A
      DTC is not output B

    B → END 

    A: Go to next step 

  16. CHECK HARNESS AND CONNECTOR (MASS AIR FLOW METER SUB-ASSEMBLY CONNECTOR CONNECTION) 
    1. Check the connection and terminal contact pressure of connectors and wire harnesses between the mass air flow meter and ECM. Refer to ELECTRONIC CIRCUIT INSPECTION PROCEDURE .

      HINT: 

      Repair any problems.

    NEXT: Go to next step 

  17. CHECK WHETHER DTC OUTPUT RECURS (DTC P0171, P0172, P0174 OR P0175) 
    1. Connect the Techstream to the DLC3.
    2. Turn the ignition switch to ON.
    3. Turn the Techstream on.
    4. Clear the DTCs. Refer to DTC CHECK / CLEAR .
    5. Turn the ignition switch off and wait for at least 30 seconds.
    6. Turn the ignition switch to ON and turn the Techstream on.
    7. Start the engine and warm it up.
    8. Drive the vehicle in accordance with the driving pattern described in Confirmation Driving Pattern.
    9. Enter the following menus: Powertrain / Engine / Trouble Codes / Pending.
    10. Read the pending DTCs.
      RESULT

      Result Proceed to
      DTC P0171, P0172, P0174 or P0175 is output A
      DTC is not output B

    B → END 

    A: Go to next step 

  18. CHECK HARNESS AND CONNECTOR (MASS AIR FLOW METER - ECM) 
    1. Disconnect the mass air flow meter connector.
    2. Disconnect the ECM connector.
    3. Measure the resistance according to the value(s) in the table below.

      Standard Resistance

      Tester Connection Condition Specified Condition
      B50-72 (VG) - B10-5 (VG) Always Below 1 Ω
      B50-73 (E2G) - B10-4 (E2G) Always Below 1 Ω
      B50-72 (VG) or B10-5 (VG) - Body ground Always 10 kΩ or higher

    NG → REPAIR OR REPLACE HARNESS OR CONNECTOR (MASS AIR FLOW METER - ECM) 

    OK: Go to next step 

  19. REPLACE MASS AIR FLOW METER 
    1. Replace the mass air flow meter.

      HINT: 

      If the result of the inspection performed in step 6 indicated no problem, proceed to the next step without replacing the mass air flow meter.

    NEXT: Go to next step 

  20. CONFIRM WHETHER MALFUNCTION HAS BEEN SUCCESSFULLY REPAIRED 
    1. Connect the Techstream to the DLC3.
    2. Turn the ignition switch to ON.
    3. Turn the Techstream on.
    4. Clear the DTCs. Refer to DTC CHECK / CLEAR .
    5. Turn the ignition switch off and wait for at least 30 seconds.
    6. Turn the ignition switch to ON and turn the Techstream on.
    7. Start the engine and warm it up.
    8. Drive the vehicle in accordance with the driving pattern described in Confirmation Driving Pattern.
    9. Enter the following menus: Powertrain / Engine / Trouble Codes / Pending.
    10. Read the pending DTCs.
      RESULT

      Result Proceed to
      DTC is not output A
      DTC P0171, P0172, P0174 or P0175 is output B

    B → See step   26 

    A → END 

  21. CHECK HARNESS AND CONNECTOR (AIR FUEL RATIO SENSOR - ENGINE ROOM JUNCTION BLOCK) 
    1. Disconnect the air fuel ratio sensor connector.
    2. Remove the engine room junction block from the engine room R/B.
    3. Measure the resistance according to the value(s) in the table below.

      Standard Resistance (Check for Open)

      Tester Connection Condition Specified Condition
      B32-2 (+B) - 1C-6 Always Below 1 Ω
      B26-2 (+B) - 1C-6 Always Below 1 Ω

      Standard Resistance (Check for Short)

      Tester Connection Condition Specified Condition
      B32-2 (+B) or 1C-6 - Body ground Always 10 kΩ or higher
      B26-2 (+B) or 1C-6 - Body ground Always 10 kΩ or higher
    4. Reinstall the engine room junction block.
    5. Reconnect the air fuel ratio sensor connector.

    NG → REPAIR OR REPLACE HARNESS OR CONNECTOR (AIR FUEL RATIO SENSOR - ENGINE ROOM JUNCTION BLOCK) 

    OK: Go to next step 

  22. INSPECT ENGINE ROOM JUNCTION BLOCK (A/F RELAY). See step   4  .

    NG → REPLACE ENGINE ROOM JUNCTION BLOCK 

    OK → See step   27 

  23. GO TO DTC CHART. Refer to  DIAGNOSTIC TROUBLE CODE CHART  .
  24. REPLACE FUEL INJECTOR ASSEMBLY. Refer to  REMOVAL  .
  25. REPLACE AIR FUEL RATIO SENSOR. Refer to  REMOVAL  .
  26. REPLACE ECM. Refer to  REMOVAL  .
  27. CHECK ECM POWER SOURCE CIRCUIT. Refer to  ECM Power Source Circuit  .