OBD-II Generic Error Code P2240: How to Fix It
Medium 1-3 hours Medium Severity
Verified June 2026
- Error Code
- P2240
- Brand
- OBD-II Generic
- Product Type
- automotive
- Severity
- Medium
- DIY Difficulty
- Medium
- Estimated Fix Time
- 1-3 hours
Ad
Tools You'll Need
- OBD2 diagnostic scanner
- Digital multimeter
- Oxygen sensor socket (with wire slot)
- Breaker bar or ratchet
- Torque wrench
- Penetrating oil (e.g., PB Blaster)
- Safety gloves and eye protection
- Vehicle service manual or wiring diagram
How to Fix Error Code P2240
-
Read and Record the Fault Code
Do not clear codes before documenting them. Clearing codes erases freeze frame data that is valuable for diagnosis. -
Inspect the Oxygen Sensor Wiring and Connector
Allow the engine and exhaust to cool completely before touching any components near the exhaust manifold. Exhaust surfaces can exceed 900°F and cause severe burns. -
Check for Exhaust Leaks Near the Sensor
Keep hands and clothing away from moving engine parts (belts, fans) during this inspection. Never reach near a hot exhaust manifold. -
Test the Oxygen Sensor Reference Voltage and Ground
Never probe a live circuit without a proper multimeter. Incorrect probing can damage the ECM. -
Test the Oxygen Sensor Heater Resistance
-
Replace the Bank 2 Sensor 1 Oxygen Sensor (If Faulty)
Never use an open-end wrench on an oxygen sensor — it will damage the sensor body. Use only an oxygen sensor socket. Ensure the exhaust is cold before starting removal. -
Clear Codes and Perform a Drive Cycle
Parts You May Need
Upstream oxygen sensor (Bank 2, Sensor 1)
Check Price on Amazon
Oxygen sensor wiring harness pigtail repair connector
Check Price on Amazon
Exhaust manifold gasket
Check Price on Amazon
Penetrating oil (thread loosener)
Check Price on Amazon
Upstream oxygen sensor (Bank 2, Sensor 1)
Check Price on Amazon
Oxygen sensor wiring harness pigtail repair connector
Check Price on Amazon
Exhaust manifold gasket
Check Price on Amazon
Penetrating oil (thread loosener)
Check Price on Amazon
Upstream oxygen sensor (Bank 2, Sensor 1)
Check Price on Amazon
Oxygen sensor wiring harness pigtail repair connector
Check Price on Amazon
Exhaust manifold gasket
Check Price on Amazon
Penetrating oil (thread loosener)
Check Price on Amazon
Upstream oxygen sensor (Bank 2, Sensor 1)
Check Price on Amazon
Oxygen sensor wiring harness pigtail repair connector
Check Price on Amazon
Exhaust manifold gasket
Check Price on Amazon
Penetrating oil (thread loosener)
Check Price on Amazon
Ad
When to Call a Professional
Call a professional mechanic if: (1) the wiring harness shows extensive damage and requires professional repair or splicing, (2) you replaced the sensor and the code returns immediately, suggesting an ECM fault or internal wiring short, (3) you find a cracked exhaust manifold that requires welding or replacement, (4) you are uncomfortable working near hot exhaust components, or (5) your scan tool shows live data that is inconsistent with any expected values, pointing to a possible ECM or CAN bus communication fault. Oxygen sensor issues related to ECM driver circuits almost always require a dealer-level diagnostic scan tool and professional repair.Frequently Asked Questions
What does P2240 mean on my car?
P2240 means the engine control module (ECM) has detected a fault in the pumping current circuit of the heated oxygen sensor (HO2S) on Bank 2, Sensor 1 — the upstream oxygen sensor on the engine bank that does not contain cylinder number 1. This circuit controls the small electrical current used to measure oxygen concentration in the exhaust stream.
Can I drive with a P2240 code?
You can drive short distances, but it is not recommended for extended periods. The faulty oxygen sensor causes the ECM to run on default fuel maps, which can lead to rich or lean running conditions, reduced fuel economy, potential catalytic converter damage over time, and a failed emissions test. Fix the issue as soon as possible.
How much does it cost to fix a P2240 code?
If the repair is just a replacement oxygen sensor, expect to pay $50–$150 for a quality aftermarket sensor or $100–$300 for an OEM sensor, plus $75–$150 in labor at a shop. If the problem is a wiring harness repair, costs may be $100–$400 depending on the extent of damage. ECM replacement or reprogramming is significantly more expensive, ranging from $500 to $1,500 or more.
Which oxygen sensor is Bank 2 Sensor 1?
Bank 2 is the side of the engine that does NOT contain cylinder number 1. Sensor 1 means it is the upstream (pre-catalytic converter) sensor — the one closest to the engine, typically threaded directly into the exhaust manifold or the front section of the exhaust pipe. Consult your vehicle's service manual to confirm which bank is which, as it varies by engine configuration.
Will a bad oxygen sensor cause a failed emissions test?
Yes. A faulty oxygen sensor almost always causes your vehicle's OBD2 readiness monitors to show as 'Not Ready' or 'Incomplete,' which results in an automatic emissions test failure in most states, regardless of actual tailpipe emissions. You must repair the fault and complete a full drive cycle to set the monitors before testing.