P2138 Code: What It Means and How to Fix It
8 min read · by Nicole Bennett · Last updated: November 7, 2026
A P2138 code means the engine computer has found that two throttle or pedal position sensors no longer agree. The p2138 code sets when those signals stay apart for two seconds or more, and the engine then limits how much power it will deliver.
The fault can sit in the accelerator pedal, the throttle body, the wiring or the engine computer itself. A careful check of connectors and sensor voltages should come before any part is replaced.
This guide does not replace a diagnosis by a qualified technician. If the car will not accelerate normally, do not drive it in traffic.
What the P2138 Code Means
P2138 is the Throttle/Pedal Position Sensor/Switch “D”/”E” Voltage Correlation code, set when two redundant position signals disagree for two seconds or more. KBB’s P2138 code page describes the mismatch in these terms.
The engine control module (ECM) reads two position signals that should move together. Depending on the design, those signals come from the two throttle position sensors or from the two accelerator pedal position sensors. The matching throttle-side code is P2135.
When the voltages deviate, the ECM cannot tell the actual accelerator position. It then limits throttle response to under half throttle, which is the limp mode most drivers feel on the road. The code is a mismatch between a pair, so the check must test both channels, not just one sensor.
Common Symptoms of P2138
Drivers usually notice a sudden power loss at cruising speed, poor acceleration or a throttle that does not respond to the pedal. The list below shows the p2138 code symptoms reported by the sources read for this guide.
- Sudden power loss at cruising speed
- Poor acceleration and general loss of power
- An unresponsive engine
- A check engine light that comes on
- A throttle that sticks at any RPM
- A high, fluctuating or stuck idle, often near 1,500 rpm
Intermittent symptoms that come and go often point to wiring or a loose connector. Motorcodex and Kfz-Dietrich both describe this pattern, so note when the symptom appears before you start testing. Motorcodex also advises noting whether the symptom is constant or tied to vibration or temperature.
What Causes the P2138 Code
The most common causes are corroded or damaged wiring, a defective pedal or throttle position sensor, a damaged throttle body and a defective engine computer. A fault on a single sensor circuit sets codes such as P0122 or P0123 instead. Each one leaves a different trail, so the first check for a p2138 code should match the likely cause.
| Cause | What it points to | First check |
|---|---|---|
| Corroded or loose connector | Intermittent faults and high contact resistance | Inspect pins for corrosion and measure contact resistance |
| Damaged wiring or harness | Open circuits or shorts | Check continuity and shorts along the harness |
| Accelerator pedal sensor pair | Channels D and E diverge as the pedal moves | Compare live voltages across the full pedal travel |
| Throttle position sensor | One throttle channel disagrees with the other | Test with the manufacturer’s procedure |
| Damaged throttle body | Visible damage to the body or its motor | Visual inspection of the throttle body and motor |
| Defective engine computer | Only after the wiring and sensors pass | Test the ECM last, or update its software |
Motorcodex notes that a failed pedal sensor pair is usually replaced as one unit. It also lists connector problems such as corrosion, spread pins or moisture, especially after footwell spills or engine washes.
Where the Two Sensors Are Located
The two redundant sensors sit either in the accelerator pedal assembly or on the throttle body. The sources read for this guide do not agree on which one, so the fault behind a p2138 code can be in either place.
KBB describes the pair as either the two throttle position sensors or the two accelerator pedal position sensors. Motorcodex describes a pedal with two sensors that are cross-checked against the throttle. Both descriptions rest on the same logic: the engine computer compares two readings and sets P2138 when they diverge.
| Sensor pair | Where it sits | Usual repair, per the sources |
|---|---|---|
| Accelerator pedal position sensors | In the pedal assembly | Pedal assembly, usually replaced as one unit |
| Throttle position sensors | On the throttle body | Sensor replacement, or the throttle body assembly |
| Engine control module | Compares both pairs | Software update first, replacement only if defective |
Because the layout varies, check which pair your scanner reports for your vehicle before buying a part. The service information for your VIN gives the exact layout for your model.
How to Diagnose the P2138 Code
Start by reading the freeze-frame data, then compare the live voltages of channels D and E across the full pedal travel before replacing any part. Test in the order below so that a cheap check for the p2138 code does not get skipped.

Diagnosis order
Work from the cheapest and most common causes to the most expensive ones.
- Read the code and its freeze-frame data with a scanner that shows both sensor channels.
- Sweep the pedal slowly and watch channels D and E for dropouts or divergence.
- Inspect the pedal and throttle connectors for corrosion, spread pins or moisture, and measure contact resistance.
- Check the harness for continuity and shorts, and confirm the reference voltage and ground.
- Inspect the throttle body, its motor and the throttle position sensor, then test them with the manufacturer’s procedure.
- Test the engine computer last, after the wiring and sensors pass.
Kfz-Dietrich states that its workshop does not replace a part on suspicion. Replacing a component that tests good does not clear the fault, so the measurements decide the repair. If the signals diverge across the pedal travel, Motorcodex advises replacing the pedal assembly and performing any required pedal relearn.
Is It Safe to Keep Driving With P2138?
KBB calls P2138 severe and advises against driving with it, because the code directly affects your ability to control acceleration. Treat a p2138 code as a stop-and-check signal, not a minor fault.
When the code sets, the engine computer limits throttle response to under half throttle. That limit matters when you merge, pass or climb a hill, so the car may not respond when you need it most.

- Do not drive in traffic after a sudden loss of power.
- Pull over safely if the throttle sticks or stops responding.
- Have the car towed if it will not accelerate normally.
Repair Options and Costs
Repairs range from cleaning a connector to replacing a pedal or throttle body, and this research found no verified dollar figure for any P2138 repair. The repair for a p2138 code depends on what the diagnosis finds.
KBB lists these options: replace the throttle body or its motor if defective, repair or replace the wiring, replace the throttle position sensor, or replace the ECM if it is defective. KBB also notes that a defective ECM may need only a software update before any replacement.
Costs vary with the vehicle, the part and the labor rate, so ask for a written estimate after the diagnosis. The throttle position sensor replacement cost guide explains what drives the price of that part. Kfz-Dietrich, a German workshop, quotes a fixed price only after the findings and credits its diagnosis fee against a later repair. That is one shop’s policy, not a general rule.
What Is Not Verified and How to Check It
The exact D and E channel layout for each make and the current repair prices were not confirmed. Check both before you buy parts.
- Channel layout: read the live data labels on your scanner and the service information for your VIN.
- Repair prices: ask a shop for a written estimate after the diagnosis.
- Model bulletins: search the manufacturer’s service information for your VIN.
- Owner’s manual: confirms the warning light and the recommended action for your model.
Frequently Asked Questions
Can a loose connector cause a P2138 code?
Yes. Kfz-Dietrich links intermittent P2138 faults to a loose connector or harness, and KBB lists corroded wiring and connections as a cause. Check the connector pins first, because that check is quick and cheap.
Does clearing the p2138 code fix the problem?
No. Clearing the code does not repair the fault. Without finding the cause, the same mismatch can set the code again, so the diagnosis steps above still apply.
Does a p2138 code always mean the pedal is bad?
No. KBB lists the engine computer, the throttle body, the wiring and the throttle position sensor as possible causes too. Only the live voltage test shows which channel has drifted.
Should I fix the p2138 code myself?
KBB recommends a qualified technician rather than a do-it-yourself repair. A basic scan and a visual check of the connectors are reasonable first steps, but the sensor voltage test and any pedal or throttle work belong with a technician.
How long must the signals disagree before the code sets?
According to KBB, the code sets when the voltages deviate for two or more seconds. A brief glitch that clears within that window does not by itself set P2138, so note whether the fault persists.
If the p2138 code returns after a connector check, or the car holds under half throttle, book a technician who can read the live sensor data for your vehicle. Ask for the voltages on both channels and a written estimate before any part is replaced.
-
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
LearnP2138 Lexus: Diagnose Accelerator Pedal Sensor Problems
LearnP2138 BMW: Diagnose Accelerator Pedal Sensor Faults and Reduced Power
LearnP2138 Acura: Diagnose Accelerator Pedal Sensor Problems
LearnP2138 Duramax Code: Meaning, Causes and Fixes
LearnP2138 Honda Code: Meaning, Causes and Safe Driving
LearnP0046 Code: Causes, Boost Checks and Fix Steps