OBD-II Generic Error Code P2138: How to Fix It

Medium 1-3 hours Medium Severity Verified June 2026
Error Code
P2138
Brand
OBD-II Generic
Product Type
automotive
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
1-3 hours
OBD-II code P2138 indicates that the voltage signals from two of the throttle position or accelerator pedal position sensors (sensors D and E) are not correlating as expected by the engine control module (ECM). This mismatch prevents the ECM from accurately reading how far you are pressing the accelerator, which can trigger reduced engine power mode, hesitation, or stalling. The fault is most commonly caused by a failing throttle body, a damaged accelerator pedal position (APP) sensor, or wiring issues between those components and the ECM.
Ad

Tools You'll Need

How to Fix Error Code P2138

  1. Scan and Record All Active Codes

    Do not clear codes without first recording them. Freeze frame data is critical for accurate diagnosis and will be lost after clearing.
  2. Inspect the Accelerator Pedal Position (APP) Sensor Wiring

    Always turn the ignition fully OFF before unplugging any sensor connectors to avoid sending voltage spikes to the ECM.
  3. Test APP Sensor Voltages with a Multimeter

    Use the backprobe method carefully to avoid spreading connector terminals. Do NOT short any pins to ground during testing.
  4. Inspect the Throttle Body and Its Wiring

    Never spray throttle body cleaner into a running engine. On drive-by-wire systems, do NOT manually force the throttle plate open — do so only gently by hand with ignition OFF to avoid damaging the motor.
  5. Check for Power and Ground at Both Sensors

  6. Replace the Accelerator Pedal Position Sensor if Faulty

    Use only a quality replacement part that is compatible with your specific vehicle's year, make, and model. An incorrect sensor can create new faults.
  7. Replace the Throttle Body if Sensor Tests Point to It

    On some vehicles, installing a new throttle body without performing the relearn procedure will result in rough idle, stalling, or additional fault codes.
  8. Inspect and Repair Wiring Harness if All Components Test Good

    Never use standard electrical tape for automotive wiring repairs in engine bays. Use heat-shrink solder connectors or OEM-style repairs to ensure long-term durability.

Parts You May Need

Accelerator Pedal Position Sensor Assembly
Check Price on Amazon
Electronic Throttle Body Assembly
Check Price on Amazon
Wiring Harness Repair Kit (solder-and-seal connectors, automotive wire)
Check Price on Amazon
Throttle Body Cleaner Spray
Check Price on Amazon
Accelerator Pedal Position Sensor Assembly
Check Price on Amazon
Electronic Throttle Body Assembly
Check Price on Amazon
Wiring Harness Repair Kit (solder-and-seal connectors, automotive wire)
Check Price on Amazon
Throttle Body Cleaner Spray
Check Price on Amazon
Accelerator Pedal Position Sensor Assembly
Check Price on Amazon
Electronic Throttle Body Assembly
Check Price on Amazon
Wiring Harness Repair Kit (solder-and-seal connectors, automotive wire)
Check Price on Amazon
Throttle Body Cleaner Spray
Check Price on Amazon
Accelerator Pedal Position Sensor Assembly
Check Price on Amazon
Electronic Throttle Body Assembly
Check Price on Amazon
Wiring Harness Repair Kit (solder-and-seal connectors, automotive wire)
Check Price on Amazon
Throttle Body Cleaner Spray
Check Price on Amazon
Ad

When to Call a Professional

You should seek a professional mechanic or automotive technician if: the vehicle is stuck in reduced power/limp mode and unsafe to drive to a shop (arrange a tow); you do not have access to a multimeter or OBD2 scanner with live data; all sensor and wiring tests pass but the code keeps returning (possible ECM issue requiring dealer-level diagnostics); or if your vehicle requires a dealer-specific throttle relearn procedure that cannot be performed with a standard aftermarket scanner. ECM replacement or reprogramming should always be handled by a professional.

Frequently Asked Questions

Can I drive my car with a P2138 code?
Driving with P2138 is not recommended for extended periods. The code often triggers reduced engine power mode, which limits throttle response and can make the vehicle feel sluggish or unresponsive — particularly dangerous in situations requiring quick acceleration such as merging onto a highway. For short, low-speed trips to a repair shop it may be possible, but you should address this fault as soon as possible.
What is the most common cause of code P2138?
The most common cause of P2138 is a failing accelerator pedal position (APP) sensor assembly. Over time the dual internal sensors within the assembly can wear and produce signals that no longer match the expected correlation. Corroded or damaged wiring connectors at the APP sensor are a close second cause and should always be inspected first since they are a free fix.
How much does it cost to fix a P2138 code?
If the fix is a simple connector cleaning or minor wiring repair, cost can be minimal — just your time. Replacing an accelerator pedal position sensor assembly typically costs between $50 and $200 for the part, plus $75 to $150 in labor if done at a shop. Replacing an electronic throttle body is more expensive, generally $150 to $400 for the part plus $100 to $200 in labor. ECM replacement, if ever needed, can exceed $500 to $1,500 depending on the vehicle.
Will P2138 clear itself after the problem is fixed?
Once the underlying fault is repaired, the code will typically clear itself after a set number of successful drive cycles — usually 3 to 5 cycles without the fault reoccurring. However, it is best practice to manually clear the code with an OBD2 scanner after the repair so you can immediately confirm whether the fix was successful on your next test drive rather than waiting for the self-clear.
Is P2138 the same as P0120 or other throttle codes?
Not exactly. P0120 relates to a general throttle/pedal position sensor circuit malfunction for sensor A, while P2138 specifically flags a voltage correlation failure between sensors D and E — meaning the two sensors are not tracking together as expected. Both codes involve the throttle or pedal position sensing system, but P2138 is specifically a rationality or correlation fault rather than a simple out-of-range voltage fault. It is common for multiple throttle-related codes to appear together, so always address all stored codes.