P2138 Duramax Code: Meaning, Causes and Fixes
7 min read · by Nicole Bennett · Last updated: November 25, 2026
A P2138 Duramax code means two accelerator pedal position sensors, D and E, are reporting voltages that do not agree. The engine computer cannot confirm how far you are pressing the pedal, so it limits throttle response to protect the vehicle.
The pedal assembly, the wiring, the throttle body and the engine computer can all produce this mismatch. The diagnosis, not the code alone, decides which repair you need.
This guide gives general diagnostic information. Work on throttle and pedal parts with the ignition off, and follow the service information for your truck.
What P2138 Means on a Duramax
P2138 is the Throttle/Pedal Position Sensor/Switch D/E Voltage Correlation code, and it sets when the two pedal signals stop agreeing. The code is generic OBD-II, defined by SAE J2012, so GM’s exact setting conditions sit in its service information.
KBB says the engine control module sets the code when the voltages deviate for two or more seconds. Because the module cannot determine the actual accelerator position, it turns on the warning light and limits throttle response to less than half throttle. If you want to see how the same fault shows up on another make, read our guide to P2138 Dodge.
The two sensors work as a pair, so the module checks one against the other all the time. CarCodeFinder’s Duramax P2138 page describes the same mismatch and names sensors D and E as the pair to compare on a scan tool.

Symptoms You Will Notice
The check engine light comes on, and the engine often loses power or stops responding well to the pedal.
- Check engine light on
- Reduced power mode
- Poor or no response when you press the accelerator
- Sudden power loss at cruising speed, according to KBB
- A throttle that sticks at some RPMs and will not change position
The first three items appear in the CarCodeFinder Duramax listing. The sudden power loss and the sticking throttle come from KBB’s description of the code.
Because the module caps throttle response below half, a truck with this code can feel weak when you try to merge or pass. That limit is a protection setting, not a sign that the engine is failing on its own.
Common Causes of P2138
A failed accelerator pedal assembly and damaged wiring or a corroded connector at the pedal are the most likely causes. CarCodeFinder ranks both as high likelihood, so the pedal and its harness come first in the diagnosis.

A shared reference voltage or ground problem is a moderate-likelihood cause, because both pedal sensors depend on that supply. KBB also lists a faulty throttle position sensor, a damaged throttle body and a defective engine control module among the possible causes.
KBB adds that an engine control module software update may be needed. That update is a service-information step, so check for it before you replace a computer. Compare the causes listed here with P2138 Ford to rule out make-specific issues.
Is It Safe to Drive With a P2138 Code?
KBB says qualified technicians do not recommend driving with this code, while CarCodeFinder rates it yes with caution. Because the sources disagree, the safer reading is to stop driving the truck and get it checked.
The code can impair acceleration control, which creates a risk of accidents and vehicle damage. KBB advises taking the vehicle to a certified service center promptly rather than waiting for the light to go away.
If you have to move the truck, keep the trip short and avoid highway merges. This advice covers the D/E pedal sensor code only. Any other codes stored with it need their own diagnosis. For another common fault on this model, see P2128 Duramax Code.
How to Diagnose P2138 Step by Step
Start by comparing sensors D and E on a scan tool, then inspect the pedal wiring before you consider the computer or the throttle body. The order below follows the checks both sources describe.
- Watch sensors D and E together on a scan tool while you press the pedal slowly.
- Inspect the pedal connector and harness for corrosion, looseness or damage.
- Check the reference voltage and ground supplied to the pedal.
- Inspect the throttle position sensor and throttle body wiring for the same kinds of damage.
- Check the service information for an engine control module software update for your model year.
- If the pedal and wiring check out, test the sensors against the specifications in the service manual.
The code sets only after the two signals stay apart for about two seconds, according to KBB. A brief glitch during a test drive may not reproduce it, so note what the truck was doing when the light came on. If a second code shows up during the scan, P2149 Duramax Code could be the next stop.
What Repairs Usually Cost
Neither source publishes a repair price for P2138, so this guide does not give one. The bill depends on which part fails: the pedal assembly, the wiring, the throttle position sensor, the throttle body or the engine control module.
Ask for a written diagnosis that names the failed part before you approve any repair. A clear diagnosis keeps you from paying for a computer or a throttle body when the fault is a damaged connector.
Duramax Notes and Scope Limits
The two-second deviation and the half-throttle limit come from KBB’s general description of the code. The exact GM setting conditions for the D and E sensors are in GM service information, so check them for your model year.
Do not use a voltage number from a forum as a test value. Match any specification to your exact engine and model year, because the same code can point to different checks on different trucks. A basic code reader will show the code, but Best Automotive Diagnostic Scanners for Diesel Trucks covers tools that read live data too.
Frequently Asked Questions
Can I still drive with a P2138 code on my Duramax?
KBB says qualified technicians do not recommend it, because the code can impair acceleration control. CarCodeFinder says yes with caution. If you must move the truck, keep the trip short and have it checked promptly.
Is the engine control module usually the problem?
Not necessarily. KBB lists a defective engine control module among the possible causes, along with the pedal, wiring and throttle parts. Check the wiring, the connectors and the pedal before you replace a computer.
How long must the signals disagree before the code sets?
KBB says the code sets when the voltages deviate for two or more seconds. A short spike may not set it, which is why the conditions when the light came on matter. Freeze frame data helps capture them.
Does this code need a software update?
Sometimes. KBB notes that an engine control module software update may be needed. Look for a service bulletin for your model year and confirm it before you replace parts.
Why does the truck lose power at highway speed?
The module cannot trust the accelerator position, so it limits throttle response to less than half throttle. KBB lists sudden power loss at cruising speed as a symptom, so the effect can be most noticeable on the highway.
A P2138 Duramax code points to the pedal side first, but the sources disagree on how much driving is safe. Treat it as a fault to fix now, check the pedal and wiring before any part, and use the service information for your model year.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP2128 Duramax Code: Meaning, Causes and How to Fix It
LearnP2149 Duramax Code: Meaning, Causes and Fixes
LearnP2135 Duramax Code: Meaning, Causes and Fixes
LearnP2121 Duramax Code: Meaning, Causes, and What to Do Next
LearnP2199 Duramax Code: Meaning, Causes and Fixes
LearnP0128 Toyota 4Runner: Diagnose the Cause and Find the Fix