O2 Sensor Signals Swapped Bank 1 Sensor 1/Bank 2 Sensor 1
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.
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.
Real-world scan data
Appears alongside · share of P0040 scans
Codes often seen with P0040. Of the 91 scans on our apps that reported P0040 in the past year, 19.8% also showed P0300 (Random/Multiple Cylinder Misfire Detected), 18.7% showed P0303 (Cylinder 3 Misfire Detected) and 17.6% showed P0302 (Cylinder 2 Misfire Detected). If your scan shows any of these too, read their pages as well, because one fault can trigger another.
Read & clear P0040 yourself
Scan your car, confirm the code, and clear it once it's fixed — with OBD DashX on your phone.
Need a scanner that reads ABS, airbag and more? GaragePro OBD scan tools ship worldwide. Claim deal →
Common symptoms
What you'll notice
- Check-engine light on
- Reduced fuel economy
- Rough running or hesitation as fuel trims fight each other
- Elevated emissions
Common causes
Most likely first
- Upstream oxygen sensor connectors swapped between bank 1 and bank 2 (often after recent service)Likely
- Wiring crossed or mis-routed between the two front sensorsCommon
- A failed upstream oxygen sensor giving readings that look swappedCommon
- Faulty engine control module (ECM), rarelyLess often
Repair
Likely repair
- Parts often involved: front oxygen sensor, wiring or connector
- Labor: 0.2–1 h
- Difficulty: Easy
- DIY: Possible
How to diagnose & fix
Work through it in order
- 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.
- Trace the wiring from each front sensor back to the ECM to confirm it isn't crossed.
- Compare live data from both upstream sensors to see which bank is actually responding.
- Correct the wiring or connector routing; replace a sensor only if it tests bad.
- Clear the code and verify both banks read correctly under load.
FAQ
Quick answers
Is it safe to drive with P0040?+
Can I just clear P0040?+
Related codes
About this page
Scan figures come only from diagnostic scans recorded through our own apps and tools. Cars are usually scanned because a symptom or warning light prompted it, so these figures describe our scan records, not how often a fault occurs in any make or model.
Notes about specific manufacturers summarise public records (NHTSA owner complaints, recalls and manufacturer service bulletins), cited under each note. They report what those records say, not our measurements, and they do not suggest that any manufacturer or vehicle is better or worse than another.
Repair time and cost estimates come from a public repair dataset and are typical ranges, not quotes.
OBD DashX is not affiliated with, sponsored by or endorsed by any vehicle manufacturer. Manufacturer and model names and trademarks belong to their owners and are used only to identify vehicles.
This page is general information, not professional advice. Have safety-critical faults (brakes, steering, airbags, high-voltage systems) checked by a qualified technician. To the extent the law allows, we accept no liability for repairs or decisions made from this page.
Businesses: this content is available through our API. For business →