HomeFault codes › P0040 to P0041

P0040–P0041 O2 Sensor Signals Swapped Bank 1 Sensor 1/Bank 2 Sensor 1

Investigate soon

The ECU has logged a fault on P0040. The definition below is the exact wording the standard uses for this code.

Can you drive it? The engine light will stay on and the car may run in a reduced-power mode. Read the freeze-frame data to see the conditions the fault was logged under.

Which code is which

Same fault, different cylinder or bank — diagnosed the same way. Several set together usually means one shared cause.

CodeDefinitionSeverity
P0040O2 Sensor Signals Swapped Bank 1 Sensor 1/Bank 2 Sensor 1Investigate soon
P0041O2 Sensor Signals Swapped Bank 1 Sensor 2/Bank 2 Sensor 2Investigate soon

The definition

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

P0040 is a powertrain code (the engine or gearbox), defined by the SAE standard - it means the same thing on any make of car, and any generic OBD-II reader will decode it.

What to check first

Cheapest and fastest checks first:

  1. Read the freeze-frame data stored with the fault - engine speed, load and temperature at the moment it logged tell you whether this happens cold, hot or under load.
  2. Check the connector at the part for corrosion, and that it is fully seated.
  3. Clear the code and see whether it returns, and under what conditions.

What actually causes this on a VAG

This code only appears on engines with two cylinder banks and a front lambda sensor on each - the V6, V8, V10, W12 and 24-valve VR6 engines. The ECU tested the banks by briefly altering the fuelling on one side and watching which front lambda sensor reacted, and the wrong sensor responded. In other words the two banks' front sensor signals have been crossed over. This is essentially never a spontaneous failure: it appears after somebody has worked on the exhaust, the sensors, the loom or the engine, and something has gone back on the wrong side.

Most likely causes, in order

  1. Front lambda connectors swapped between the banks. By far the most likely cause, and it happens easily because both sensors look identical once they are out. They are not interchangeable - each bank's sensor has its own lead length and part number - so the giveaway is a lead that had to be stretched or looped awkwardly to reach its plug. Trace each sensor physically from where it screws into the exhaust to the connector it ends at, rather than trusting how the loom looks lying in the bay. Do not use connector colour to decide which bank a sensor belongs to: where VAG uses colour, it generally separates the pre-catalyst sensors from the post-catalyst ones.
  2. Incorrect or universal sensors fitted. A sensor built for the other bank has the wrong lead length and forces the loom to be routed across to the wrong plug, and a universal type spliced in can be joined into the wrong circuit altogether. If someone recently changed the sensors on a budget, that is where to look first.
  3. A loom repair or extension wired across. Previous accident repair, a rodent-damage repair, or extension leads added to reach an aftermarket exhaust can cross the two banks' signal wires inside the loom. Look for tape, heatshrink or crimp joints anywhere along the two sensor circuits.

Worth knowing: Confirm which bank is which before touching anything. Bank 1 is the side containing cylinder number one, and on VAG V-engines - especially transversely mounted ones - that is often not the side people assume. Fixing the "wrong" side is the classic expensive mistake with this code. Whatever you do, do not replace the sensors: this is a fitment and wiring fault, and two new sensors plugged in the same way round will store it again.

Reading the code is the easy part

A code names the circuit that complained. What tells you why is watching the sensor behind it while the engine runs — and that is where a code reader stops and a diagnostic tool starts.

VAGPULSE reads every module in a VW, Audi, Skoda or SEAT — not just the engine — shows the live measuring blocks behind this fault, gives you the freeze-frame conditions it was logged under, and clears it once you have fixed it. It also does what a generic OBD reader cannot on a VAG: service resets, coding, adaptations, and Stage 1–3 flashing with your original file saved first.

$249 once. No subscription, unlimited cars. Windows 10/11.

See VAGPULSE — $249 Look up another code

Software downloads instantly · cable ships September 30 · cable guarantee — refund if it won't connect

Prefer to work on your phone? The VAGPULSE Android app is a free download and its demo mode runs against a sample car with no hardware at all, so you can see exactly what it reads before spending anything. Reading your car with it needs the VAGPULSE cable, which comes with the licence.

Common questions

What does P0040 mean?

P0040 means O2 Sensor Signals Swapped Bank 1 Sensor 1/Bank 2 Sensor 1. It is logged when the ECU sees this circuit outside its expected operating window.

Can I drive with P0040?

The engine light will stay on and the car may run in a reduced-power mode. Read the freeze-frame data to see the conditions the fault was logged under.

Related reading

← All VAG fault codes · Guides · VAGPULSE