DOBD DashX ☰ Browse all codes
P0040

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

Fuel & air metering (O2 sensor) Generic OBD-II Medium

What it means

P0040 means the ECM believes the two upstream (front) oxygen sensors have their signals swapped between bank 1 and bank 2 β€” the readings don't match the bank the ECM expects. It most often follows a repair where the front sensor connectors or wiring were reversed. The engine runs, but each bank's fuel trim is corrected off the wrong sensor, hurting economy and emissions.

Medium

Can I keep driving? Drivable, but not ideal β€” fuel trims for both banks are being corrected off the wrong sensor, so economy and emissions suffer; fix it before long trips.

Common symptoms

What you'll notice

Common causes

Most likely first

  1. Upstream oxygen sensor connectors swapped between bank 1 and bank 2 (often after recent service)
  2. Wiring crossed or mis-routed between the two front sensors
  3. A failed upstream oxygen sensor giving readings that look swapped
  4. Faulty engine control module (ECM), rarely

How to diagnose & fix

Work through it in order

  1. If the sensors were recently replaced, check first that the bank 1 and bank 2 upstream connectors aren't reversed β€” this is the most common cause.
  2. Trace the wiring from each front sensor back to the ECM to confirm it isn't crossed.
  3. Compare live data from both upstream sensors to see which bank is actually responding.
  4. Correct the wiring or connector routing; replace a sensor only if it tests bad.
  5. Clear the code and verify both banks read correctly under load.

FAQ

Quick answers

Is it safe to drive with P0040?+
Short trips are fine, but the ECM is trimming fuel using the wrong bank's sensor, which hurts economy and emissions. Correct it soon.
Can I just clear P0040?+
It will return, because the ECM keeps comparing the two front sensors and still sees the signals swapped until the wiring is fixed.

Related codes

Often seen with P0040

Read & clear P0040 yourself

Scan your car, confirm the code, and clear it once it's fixed β€” with OBD DashX on your phone.

β–Ά Get it on Google Play
βœ“ Verified name β€” SAE J2012 / ISO 15031-6Guidance reviewed by OBD DashX