P0040

Powertrain

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

The ECU thinks the front oxygen sensors from each cylinder bank have ended up reading the wrong way round, as if someone crossed the connectors. The module expects Bank 1 Sensor 1 to respond when it adds fuel to bank 1, but the response it sees lines up with bank 2 instead. For the owner, this almost always traces back to recent work where two sensors got plugged into each other's loom, and the fix is usually putting them back where they belong rather than buying parts.

Professional mechanic in workshop

Information only. This page provides general educational information about fault code P0040. We do not assess the urgency or safety implications of any specific fault. That requires in-person diagnosis by a qualified mechanic. Full terms.

Recommended next steps

Whether a fault is urgent, drivable, or routine depends entirely on the cause on a specific vehicle, and that can only be determined by a qualified mechanic with diagnostic equipment. If a warning light is illuminated, the most reliable next step is professional diagnosis.

Commonly associated cause
Front sensor connectors physically swapped between Bank 1 Sensor 1 and Bank 2 Sensor 1. This is far and away the usual story, and it nearly always shows up straight after a sensor change, an exhaust job, or work near the manifold
Where investigation typically starts
Pull the codes and look at the freeze frame, then think about what was done to the car recently. If anything was unplugged near the exhaust manifolds, you've probably found it before you've even lifted the bonnet
Code system
Powertrain
Electrical & Sensors

What does P0040 mean?

P0040 is a Powertrain (engine, transmission, fuel system) fault code. It indicates: O2 Sensor Signals Swapped Bank 1 Sensor 1 / Bank 2 Sensor 1.

This is a standardised OBD-II code. The technical definition is the same regardless of the make or model of vehicle, although specific causes and symptoms can vary between vehicles.

Symptoms commonly associated with this code

Symptoms that drivers often report alongside this code. Not all may apply to every case:

  • Engine warning light on, often the first and only thing you notice
  • Rough or lumpy idle that won't quite settle
  • Fuel economy drops off, the engine fuelling one bank too rich and the other too lean
  • Hesitation or a flat spot when you put your foot down
  • Fuel trims on a scan tool swinging in opposite directions on the two banks
  • On some cars it'll drop into limp mode if the fuelling gets bad enough

Possible causes

Causes commonly associated with P0040, listed in approximate order of typical investigation. The actual cause on a specific vehicle can only be confirmed by professional diagnosis.

  1. 1. Front sensor connectors physically swapped between Bank 1 Sensor 1 and Bank 2 Sensor 1. This is far and away the usual story, and it nearly always shows up straight after a sensor change, an exhaust job, or work near the manifold
  2. 2. Damaged or corroded wiring in the upstream sensor harness, so the signals end up confused at the ECU
  3. 3. Poor pin contact at a connector from moisture, road salt, or vibration loosening the terminals
  4. 4. Wiring repaired or extended at some point and joined back to the wrong wire, common after a botched bodge
  5. 5. Faulty or mismatched aftermarket sensor that doesn't behave like the original, less common but it happens with cheap universal sensors
  6. 6. Corrupted or mismatched ECU software, rare but seen after a flash or module swap
  7. 7. Internal ECU fault muddling the two signal inputs, the least likely cause by a long way

How mechanics typically diagnose

A typical diagnostic sequence used by mechanics, provided here for educational reference only. Diagnostic work should be performed by a qualified mechanic with the appropriate tools and training.

  1. 1. Pull the codes and look at the freeze frame, then think about what was done to the car recently. If anything was unplugged near the exhaust manifolds, you've probably found it before you've even lifted the bonnet
  2. 2. Trace both upstream sensor connectors by hand and check which physically goes to which bank. On a V6 or V8 the two plugs often look identical and sit close together, which is exactly how they get crossed
  3. 3. Check the loom for chafing, corrosion, and dodgy repairs from each sensor back towards the ECU, paying attention to anywhere the wiring runs near a hot pipe
  4. 4. Watch both front sensor signals live on a scanner while you force a fuelling change. A correctly wired sensor responds to its own bank, and if the responses are crossed the wiring or plugs are the fault
  5. 5. If the wiring is sorted and the code stays, check for an ECU software update or a recent flash that went wrong before you ever consider the module itself

Common questions about P0040

Will my car fail its MOT with a P0040 stored? +

The code on its own isn't a fail, but the warning light is. If the MIL is glowing when the tester plugs in or eyeballs the dash, that's a fail on the spot. There's also a fair chance the emissions test goes against you, because one bank running rich while the other runs lean upsets the readings the sniffer measures. Sort the wiring, clear the light, drive a few cycles so it stays off, then book the test.

What's this likely to cost to put right? +

If it's just swapped connectors, an independent garage might charge under £60 for the diagnosis and the two-minute fix. Tracing and repairing a damaged harness is more like £100 to £250 at an independent depending on how buried the wiring is. A main dealer will charge their hourly rate for the same diagnostic time, so reckon on £120 to £400. Module reprogramming, if it ever comes to that, adds a few hundred, and actually replacing an ECU runs into four figures, but that's almost never where this code ends up.

How do I tell whether it's crossed plugs or a wiring fault on my car? +

Start with what happened before the light came on. If it appeared right after a sensor or exhaust job, check the connectors first because they've been swapped. If the car hasn't been touched and the code just turned up on its own, that points at the harness instead, so look for chafed wires, green corrosion in a connector, or salt damage around the sensor plugs. The clincher is watching both front sensors live on a scanner. Plugs respond to the wrong bank means crossed wiring somewhere, while correct response with the code still set points back towards software or the module.

Can I just swap the plugs back myself? +

If the connectors are crossed and you can reach them, yes, this is one of the simpler fixes out there. Unplug both front sensors, work out which one belongs to which bank from a wiring diagram for your car, and plug them back correctly. Clear the code and take it for a drive to confirm it stays gone. Where it gets harder is a genuine wiring fault inside the loom, which means a multimeter, a diagram, and a steady hand, so that's worth handing to a garage if you're not confident chasing wires.

Information only, not professional advice

The information on this page is provided for general guidance and educational purposes only. It is not a substitute for diagnosis or repair advice from a qualified mechanic. Always verify any fault before paying for repairs. carfaultcodes.co.uk accepts no liability for decisions made based on this information. Full terms →

Help us improve the P0040 page
Spotted an error, missing detail, or have first-hand experience to add? Tell us, we review every submission.
+
Reporting on: P0040

Mechanic submissions are prioritised for review.

We read everything but can't always reply. By submitting you agree to our privacy policy.