OBD Codes List logoOBD Codes List

Diagnostic reference · P0040

P0040

O2 Sensor Signals Swapped Bank 1 Sensor 1/Bank 2 Sensor 1

System
Fuel and air metering (P code)
Lamp
Check Engine Light
Category
Powertrain - Fuel/Air Metering

What it means

P0040 means O2 Sensor Signals Swapped Bank 1 Sensor 1/Bank 2 Sensor 1.

Where it lives

For P0040, the part to look at first is the sensor named here. The description of P0040 puts it on bank 1.

Check these first

  • Bank 1 sensor 1 and bank 2 sensor 1 connectors swapped
  • An upstream oxygen sensor installed in the wrong bank
  • A harness repair with the bank 1 and bank 2 leads crossed
  • A short between the two upstream oxygen sensor signal wires
  • A failed ECM signal input pairing

What to do next

  1. Confirm each upstream sensor connector matches its bank
  2. Watch both upstream signals on a scan tool and compare
  3. Check for a harness repair that crossed the bank leads
  4. Verify the sensor part numbers on each bank
  5. Swap or re-pin the sensors if the signals follow the wrong bank
  6. Clear the code and retest

Look up another code

Enter a full code or a symptom. Press / to search. How to read a code

Type a code above, or start from a symptom or a common code.

Source

Qualified source review

Sources and review

Review: qualified. Read the source limits below.

Last updated 2026-10-10.

Report a correction for P0040. Include your vehicle, the issue and a source if you have one.