OBD-II Error Code P2040: Exhaust Gas Temp Sensor B2S2 Range – How to Fix It

Medium 1-2 hours Medium Severity Verified June 2026
Error Code
P2040
Brand
OBD-II Generic
Product Type
automotive
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
1-2 hours
Error code P2040 indicates that the exhaust gas temperature (EGT) sensor on Bank 2, Sensor 2 is reporting a signal that is out of the expected range. This sensor monitors exhaust temperature to protect the engine and aftertreatment systems. A faulty sensor or wiring issue can trigger this code, potentially affecting emissions and engine performance.
Ad

Tools You'll Need

How to Fix Error Code P2040

  1. Check for Other Codes and Verify Conditions

  2. Inspect EGT Sensor Wiring and Connector

    Ensure the engine is off and cool before handling exhaust components.
  3. Test EGT Sensor Resistance

  4. Check for Exhaust Leaks or Blockages

    Wear gloves as exhaust components may be sharp.
  5. Replace EGT Sensor if Faulty

    Use a socket wrench with a suitable deep socket. Do not overtighten.

Parts You May Need

Exhaust Gas Temperature (EGT) Sensor Bank 2 Sensor 2
Check Price on Amazon
Exhaust Gas Temperature (EGT) Sensor Bank 2 Sensor 2
Check Price on Amazon
Exhaust Gas Temperature (EGT) Sensor Bank 2 Sensor 2
Check Price on Amazon
Exhaust Gas Temperature (EGT) Sensor Bank 2 Sensor 2
Check Price on Amazon
Ad

When to Call a Professional

If you have replaced the sensor and the code returns, or if you suspect a problem with the engine control module (ECM) or wiring harness that requires advanced diagnostics, seek a professional mechanic.

Frequently Asked Questions

What does Bank 2 Sensor 2 mean?
Bank 2 refers to the side of the engine that does not contain cylinder #1 (usually the passenger side). Sensor 2 is a downstream sensor located after the catalytic converter or diesel particulate filter.
Can I drive with code P2040?
You may be able to drive, but it could affect emissions and fuel economy. In some vehicles, it may trigger a reduced power mode. It's best to diagnose and fix promptly.
How much does it cost to fix P2040?
DIY cost for a new EGT sensor is typically $50-$150. Professional repair including labor can range from $200-$400.
Will clearing the code fix P2040?
Clearing the code may temporarily turn off the check engine light, but the code will return if the underlying issue is not resolved.
What other symptoms might I notice?
You may notice decreased fuel economy, increased emissions, or the check engine light. In some cases, the vehicle may go into limp mode.