P2138: accelerator pedal fault
Throttle/Pedal Position Sensor/Switch D/E Voltage Out of Range
Severity: medium
Updated: 4 Dec 2026 · Generic OBD-II code (SAE J2012 / ISO 15031-6). Written with AI and reviewed; translated automatically from the Spanish original.
What it means
P2138 is a generic OBD-II code indicating that the engine ECU has detected that the signals from the D and E accelerator pedal position sensors are not consistent with each other, that is, the relationship between them is not the expected one. Electronic pedals carry two sensors that measure the same thing with signals of opposite direction, so the ECU can compare them. When the difference falls outside the margin, the ECU considers the system unreliable, may limit power or idle speed, and lights the warning lamp. The cause may lie in the pedal, the wiring, the connectors or the ECU, and its exact location depends on the manufacturer.
Can I keep driving?
Yes, but have it checked soon.
The car can normally be driven, but the fault can get worse or damage other parts over time (the catalytic converter or the particulate filter, for example). Book a diagnosis in the next few days.
If in doubt, put safety first: a red or flashing warning light, smoke, a burning smell or any change in the brakes or steering are reasons to stop.
Got P2138? Ask about your car
Tell us your car and what you notice: we answer right here, no account needed.
DATAIAO’s answer
AIYou're talking to DATAIAO's AI, specialised in car mechanics. Check anything important before acting. What we keep
Save this answer and your car, and I’ll ask you tomorrow whether it’s fixed.
Free and no card needed: 10 questions a day, your Garage and MOT/inspection reminders.
Warning: hazardous work
Affects:
Disclaimer. This information is for guidance only, is generated by artificial intelligence and may contain errors or omissions. Working on these systems can cause serious injury or death, as well as damage to the vehicle or to third parties. If you decide to do it, you do so at your own risk: always follow the manufacturer's workshop manual and the applicable regulations, and go to a workshop if you do not have the right training and tools. To the extent permitted by law, DATAIAO is not liable for damage arising from carrying out this work.
How the ECU detects it
The ECU continuously compares the signals from pedal sensors D and E. The code usually appears when the relationship between both signals falls outside tolerance for a set period of time. It may be more frequent when moving the pedal with vibration, which points to an intermittent contact. The warning lamp lights once the fault is confirmed, and the ECU may store the code even if the symptom disappears.
Symptoms
- Warning lamp (MIL) lit on the instrument cluster.
- Loss of power or limited response when pressing the accelerator.
- Irregular or poorly responsive idle speed.
- Limp mode: the vehicle may limit speed or acceleration.
- Jerking or stumbling when accelerating suddenly.
- In some cases the traction or stability control warning light also comes on.
- It may appear intermittently, especially with vibration or when moving the pedal.
Common causes
- Pedal connector loose, corroded or affected by moisture.
- Wiring damaged, chafed, pinched or with a poor earth in the pedal sensor circuit.
- Accelerator pedal with internal wear or a faulty sensor.
- Insufficient or unstable reference voltage, from the ECU or a short circuit.
- Short to earth or to positive on a pedal signal wire.
- Engine ECU with an internal fault (less common cause).
- Pedal calibration or adaptation not carried out or incorrect after a replacement or an ECU reset, depending on the manufacturer.
What to check
- Visually inspect the pedal connector and nearby cables for corrosion, moisture, bent pins or stripped wires.
- Read the ECU codes with a scanner and check whether related codes from the same pedal group appear that point to the sensor or the supply.
- Check live data for both pedal sensor readings with the engine running, pressing the accelerator slowly: they should vary consistently and within the manufacturer's margins (consult the workshop manual for your engine).
- Measure the reference voltage and signals at the pedal connector with a multimeter according to the manufacturer's diagram.
- Check continuity and insulation of the wires to the ECU, ruling out shorts to earth or positive.
- Verify the earths of the ECU and the pedal.
- If all of the above is correct and the fault persists, replace the pedal and, if the manufacturer requires it, carry out the adaptation with the scanner.
- Consider the engine ECU only as a last resort, after ruling out the other causes.
Common diagnostic mistakes
- Replacing the pedal without first checking the connector and wiring, which are frequent causes.
- Ignoring the reference supply and earth, whose failure produces wrong readings from both sensors.
- Clearing the code without fixing the cause; it will come back.
- Confusing P2138 with throttle body codes, which have different causes.
- Relying on the code alone without reviewing live data from both sensors.
- Skipping the pedal adaptation or calibration when the manufacturer requires it.
Typical repairs
From the simplest and cheapest to the most expensive. Which one applies depends on the diagnosis.
- Clean and inspect the pedal connector, re-tightening the pins.
- Repair the damaged wiring or the joint in the pedal circuits.
- Correct the earth of the ECU or the pedal if it shows high resistance.
- Replace the accelerator pedal and, where applicable, carry out the adaptation with the scanner.
- Repair or replace the engine ECU only as a last resort, after ruling out the other causes.
Frequently asked questions
Can I keep driving with P2138 active?
It depends on the condition of the vehicle and the operating mode the ECU has activated. In limp mode power may be very limited and throttle response may be irregular, which is a risk when pulling out or overtaking. The prudent course is to take the car to a garage as soon as possible and avoid long journeys or motorway driving while the fault remains.
Can I just clear it? Clearing the code does not fix the fault: if the cause is still there, it comes back, and with the engine warning light on the car will fail its roadworthiness test (MOT in the UK).
General information about a generic code. The exact causes depend on the make and engine: confirm them with a diagnosis before replacing parts.
Related codes
- P2135 Refers to the correlation between pedal sensors A and B, that is, the difference in readings between both, not just the voltage of one of them.
- P2122 Indicates a low signal in the pedal sensor A circuit, whereas P2138 refers to the comparison of the two sensors or to circuit B.
- P2127 Signals a high signal in the sensor B circuit or a voltage difference between sensors out of range, depending on the manufacturer.
- P2120 Signals a general fault in the accelerator pedal position sensor circuit, without distinguishing between A and B.
- P2137 Refers to a low signal in circuit B of a throttle body position sensor, not the pedal, within the same code family.
More codes: fuel and air metering
- P0268 · turbo underboost
- P0270 · Cylinder 2 injector
- P0299 · Turbocharger/Supercharger Boost Pressure Low (Underboost), Circuit "A"
- P2100 · Throttle actuator (ETC)
- P2106 · tirones y poca potencia
- P2122 · Throttle/Pedal Position Sensor/Switch 'B' Circuit Low Input
- P2127 · accelerator pedal, low signal
- P2128 · accelerator pedal signal low