P0040

P0040: O2 sensor signals swapped, bank 1 sensor 1 / bank 2 sensor 1

DIY difficulty 1/5

Print shop one-pager Take this page to the shop — causes, fair prices, and sharp questions on one sheet.

Your front O2 sensor connectors are plugged in swapped - bank 1 and bank 2 are crossed. This usually happens after exhaust work.

Key facts

Symptoms

Likely causes

Too many suspects? Answer 4–6 quick questions and this page's published cause list re-orders itself for your situation — plus the cheapest test to run next. Start the elimination wizard →

Before you buy the part — 4 checks

Work these checks before spending money — each one rules a cause in or out, cheapest first.

  1. Confirm this code appeared after exhaust or sensor work
  2. Trace the bank 1 sensor 1 wire to its connector and bank 2 sensor 1 to its connector Tests: Bank 1 and bank 2 upstream O2 sensor connectors swapped (most common)
  3. Unplug and reconnect them to the correct banks
  4. Clear the code and verify each bank's sensor responds on its own bank Tests: Bank 1 and bank 2 upstream O2 sensor connectors swapped (most common)

No scan tool yet? The Veepeak OBDCheck (~$32) reads and clears codes from your phone in about two minutes.

Typical price range

Parts$0 – $0
Labor$50 – $100

Reconnecting swapped O2 sensor connectors. National-average estimate for the most common repair for this code. Actual quotes vary by vehicle, region, and shop - get a local written estimate.

Dealer vs independent shop: these ranges reflect typical independent-shop prices. A dealer will usually quote higher — higher labor rates plus OEM-only parts — so a dealer quote at the top of (or a bit above) this range isn't automatically a rip-off. For a big dealer number, get a second quote from an independent shop before authorizing the work.

Got a shop quote? Grade it →

What will this cost to fix? A code doesn’t name the repair — run the code-first estimator to see the most likely fixes for P0040 ranked, each with a price range.
They handed you a printout at the parts store? Decode it before you buy.

DIY difficulty

1 of 5 — Trace each upstream sensor's wire to its connector and swap them back.

Watch this repair on YouTube

Parts & tools

Sensor replacement toolkit — what the job actually takes

Torque specs: O2 sensors: typically 35–50 Nm (26–37 lb-ft) — verify spec. A dab of nickel anti-seize on the threads; keep it off the sensor tip.

Pro tip: Route the new sensor’s harness exactly like the old one — melted wires on the exhaust are the number-one comeback.

As an Amazon Associate, WrenchFair earns from qualifying purchases.

Related codes

Check another code
Got a quote?Grade it →Shop one-pagerPrint it →Another code?Look it up →
Who's behind this guide? WrenchFair is built by a fellow DIYer, not a repair shop. Code meanings follow the SAE J2012 standard; cause rankings come from real-world repair evidence (service bulletins, owner reports, NHTSA records); prices are typical US ranges, not quotes. Read the full methodology →