P0040
O2 Sensor Signals Swapped Bank 1 Sensor 1/Bank 2 Sensor 1.
- Generic
- Powertrain
- Generic code
- Medium severity
How this code is built
- P
- SystemPowertrain
- 0
- Defined bySAE, the same on every car
- 0
- AreaFuel and air metering, auxiliary emission controls
- 40
- FaultThe specific fault in that area
What it means
P0040 means the engine control unit has detected that the upstream oxygen sensor signals for Bank 1 Sensor 1 and Bank 2 Sensor 1 appear to be swapped. When fuel trim corrections or deliberate changes in fuelling on one bank show up on the sensor of the other bank, the control unit concludes the connections are crossed. It only applies to engines with two cylinder banks.
Symptoms
- Check engine light on
- Rough running or uneven idle
- Poor fuel economy
- Hesitation or reduced performance under load
- Fuel trim faults or other oxygen sensor codes stored alongside
Possible causes
- Sensor connectors or harness plugs fitted to the wrong banks after previous repair worklikely
- Wiring harness crossed, repaired incorrectly or spliced to the wrong sensorlikely
- Bank identification confusion, such as bank 1 assumed to be on the wrong side of the engine, leading to sensors being swappedpossible
- Damaged wiring or connector pins causing signals to be misread, for example chafing or corrosionpossible
- Exhaust leak or an uneven fuelling fault on one bank confusing the sensor responsepossible
- Fault in the engine control unit or outdated software calibrationrare
How to diagnose
- Read all stored codes and freeze frame data, and note any fuel trim, misfire or other oxygen sensor codes
- Confirm from the manufacturer data which side of the engine is bank 1 for this model, as this varies between engines
- Inspect the upstream sensor connectors and harness routing to check each plug goes to the correct bank and the sensor positions match
- Check wiring and connectors for chafing, heat damage, corrosion or signs of previous repair
- Look for exhaust leaks near the upstream sensors and for vacuum leaks or other faults that affect one bank
- Using live data, create a small, controlled change in fuelling on one bank (for example, by briefly disturbing a single bank's fuelling as the manufacturer procedure allows) and see which sensor responds
- Check wiring continuity and pin-out against the wiring diagram for the specific model
- Check for any applicable software updates for the control unit for this vehicle
How to fix
- Reconnect the sensor plugs to the correct banks and secure the harness
- Repair or replace the incorrectly wired or damaged section of harness and connectors
- Correct any mix-up in sensor positions after confirming bank numbering for the model
- Repair exhaust leaks or fuelling faults affecting one bank, then clear the code and retest
- Update the control unit software only if a known fault or outdated calibration is confirmed for the vehicle
Can I keep driving?
Medium severity
The car can usually be driven short distances, but wrong fuel corrections can cause poor running and higher fuel use and may stress the catalytic converters over time. Have it checked soon rather than leaving it.
Guide written by AI from the code's definition. Confirm with a diagnosis before replacing parts.
