P2138 Subaru: Diagnose Accelerator Sensor Problems and Restore Throttle Response
16 min read · by Nicole Bennett · Last updated: November 25, 2026
The p2138 subaru trouble code means the engine computer has detected an electrical disagreement between two accelerator pedal position sensor signals. This fault affects the electronic throttle control system, which uses accelerator pedal information to determine how much engine power the driver requests. A Subaru with this code may experience poor acceleration, an inconsistent idle, reduced engine power, or a fail-safe operating mode.
P2138 does not automatically mean the accelerator pedal assembly has failed. A damaged wire, loose connector, poor electrical ground, unstable reference voltage, or defective sensor can produce similar results. The correct repair depends on testing both sensor signals and their electrical circuits rather than replacing parts based on the code alone.
This guide explains the generic SAE definition, Subaru-specific diagnostic information, common symptoms, possible causes, scanner tests, repair considerations, and driving risks. It also explains how to distinguish a defective accelerator pedal sensor from a wiring or ECM problem.
What P2138 Means on a Subaru
P2138 is a powertrain diagnostic trouble code for Throttle/Pedal Position Sensor/Switch D/E Voltage Correlation. On Subaru vehicles, the engine control module (ECM) monitors two accelerator pedal position signals and checks whether their electrical behavior agrees with the expected relationship. When the signals do not match the programmed criteria, the ECM can store P2138 and limit electronic throttle operation.
Modern Subaru vehicles use electronic throttle control rather than relying on a traditional mechanical cable between the accelerator pedal and throttle body. Pressing the pedal changes the output of its position sensors. The ECM interprets those signals and controls the electronic throttle actuator accordingly. Two separate signal channels provide a way to detect electrical inconsistencies and help prevent unintended throttle operation.
Understanding the two sensor signals
The accelerator pedal position sensor assembly contains separate sensing circuits commonly described as the main and sub signals. Both respond to pedal movement, but their electrical outputs follow different programmed relationships. The ECM continuously compares their readings rather than assuming that both channels must display identical voltages.
For example, one channel might increase over a particular voltage range while the second follows a different proportional range. The ECM expects the two signals to remain within an acceptable relationship. A sudden interruption, electrical spike, short circuit, or inconsistent reading can cause the correlation test to fail.
Subaru service information for the 2009 Impreza identifies the two accelerator pedal position sensor signals as separate ECM inputs. Its diagnostic criteria describe a disagreement between the monitored sensor signals as the basis for detecting P2138. This is important because the code identifies a correlation problem, not necessarily a failed pedal assembly.
| Code element | Meaning |
|---|---|
| P | Powertrain system fault |
| 2 | Generic SAE powertrain code range |
| 1 | Throttle or pedal position sensor/switch designation |
| 3 | Position sensor or switch designation |
| 8 | Voltage correlation fault designation |
Does the definition change between Subaru models?
The generic P2138 definition remains the same, but the exact diagnostic conditions, connector terminals, wiring arrangements, and repair procedures can differ. A 2004 Legacy, 2009 Impreza, WRX, Forester, Outback, Crosstrek, and newer Ascent should not automatically be diagnosed using the same electrical specifications.
For example, Subaru’s 2008 WRX STI service information describes the main and sub accelerator pedal position signals and provides model-specific diagnostic procedures. Its instructions also emphasize using the appropriate wiring diagrams and scan equipment. Always identify the vehicle’s model year, engine, and transmission before applying connector pinouts or voltage specifications. The wiring and part locations differ by make, as P2138 Kia shows for the same code.
Common Symptoms of Subaru P2138
A Subaru with P2138 may exhibit anything from an illuminated check engine light to a noticeable loss of acceleration. The severity depends on how frequently the sensor signals disagree and how the ECM responds. Some vehicles may operate almost normally, while others enter a reduced-power strategy.

Subaru service documentation identifies improper idling and poor driving performance among the possible symptoms associated with this fault. Drivers may also notice changes in throttle response, hesitation, or reduced engine output. These symptoms can become more noticeable when accelerating from a stop or attempting to maintain speed.
Reduced engine power and limp mode
One of the more concerning symptoms is reduced engine power. The ECM may restrict throttle operation when it cannot confidently interpret accelerator pedal information. This protective response helps reduce the risk associated with unreliable electronic throttle inputs.
A driver may press the accelerator and notice that the engine responds slowly or produces much less power than expected. In some situations, engine speed may remain limited even when the pedal is pressed farther. The vehicle may struggle to merge, climb a hill, or accelerate with normal traffic.
Rough idle and inconsistent throttle response
An unstable accelerator pedal signal can also affect idle and throttle control. Possible symptoms include rough idling, hesitation, inconsistent acceleration, or an engine that does not respond smoothly to small pedal movements. A vehicle may also stall in certain circumstances, particularly if another electrical or engine management fault is present.
Not every Subaru will display all these symptoms. Some vehicles may store P2138 intermittently without an obvious change in engine performance. Others may illuminate the check engine light and display an electronic throttle warning or reduced-power message, depending on the model and equipment.
| Observed symptom | Possible explanation | Diagnostic priority |
|---|---|---|
| Reduced engine power | ECM electronic throttle fail-safe operation | High |
| Poor acceleration | Unreliable pedal position information | High |
| Rough or improper idle | Inconsistent electronic throttle input | Medium to high |
| Intermittent warning light | Intermittent wiring, connector, or sensor fault | High |
| Hesitation during acceleration | Unstable or conflicting sensor readings | High |
If the check engine light flashes, treat the situation differently. A flashing light indicates an active misfire that can damage the catalytic converter. Reduce engine load and arrange prompt inspection rather than continuing normal driving.
Most Common Causes of P2138
P2138 can result from a problem inside the accelerator pedal position sensor or anywhere along the electrical circuits connecting it to the ECM. The most effective diagnostic approach is to check the entire signal path before deciding which component needs replacement.
1. Defective accelerator pedal position sensor
The accelerator pedal position sensor is a primary suspect because it generates the two signals monitored by the ECM. Internal wear, electronic failure, contamination, or an intermittent sensing element can cause one signal to become inconsistent with the other.
A sensor may work correctly at one pedal position but produce an unstable output when the driver presses the accelerator farther. This explains why certain vehicles experience intermittent hesitation instead of a permanent loss of throttle response. A live-data recording can help identify the problem because both sensor channels should follow their expected relationship throughout pedal movement.
2. Damaged wiring or electrical connections
An open circuit, short circuit, damaged insulation, or loose terminal can interrupt one of the accelerator pedal sensor signals. Wiring problems may occur near connectors, harness bends, mounting points, or areas exposed to moisture and vibration.
A connection that works intermittently can produce P2138 even when the accelerator pedal assembly itself is healthy. Look for signs of previous electrical repairs, stretched wires, damaged insulation, or connectors that have not been fully secured. The correct inspection locations depend on the specific Subaru wiring diagram.
3. Corrosion or moisture inside connectors
Moisture can cause corrosion, increased electrical resistance, or intermittent contact at an electrical connector. Affected terminals may produce unstable voltage readings that cause the ECM to detect a disagreement between the two sensor channels.
Pay particular attention to evidence of water entry following windshield repairs, interior leaks, flooding, or previous electrical work. Subaru service information warns technicians to prevent water from entering electrical connectors during servicing and washing. Do not assume that a connector is healthy simply because its outer housing looks clean.
4. Poor electrical grounds or reference voltage problems
The accelerator pedal sensor depends on stable electrical supplies and proper ground connections. A poor ground, damaged reference circuit, or shared electrical fault can affect the signal readings and create an apparent correlation problem.
Other trouble codes can help identify this possibility. For example, additional 5-volt reference or sensor circuit codes suggest that the issue may involve a shared electrical supply rather than the pedal assembly alone. Check the battery, charging system, relevant fuses, grounds, and related sensor codes before replacing components.
5. ECM or electronic control problems
An ECM problem is possible but should be considered only after the pedal sensor and its circuits have been tested. Connector terminal damage, poor ECM connections, internal module faults, or incorrect previous repairs may affect signal interpretation.
Replacing an ECM without confirming its power, grounds, input signals, and wiring integrity can lead to unnecessary expense. Module replacement may also require programming, configuration, or vehicle-specific procedures. Follow the correct Subaru service information before reaching this diagnosis.
Tip: Do not replace the accelerator pedal assembly immediately after finding P2138. First record both pedal position signals, inspect their connectors, check related voltage reference codes, and verify electrical grounds. A wiring problem can produce the same correlation fault as a defective sensor. Compare the causes listed here with P2138 Acura to rule out make-specific issues.

How to Diagnose P2138 With an OBD2 Scanner
A proper diagnosis starts by recording the fault information and checking how the two accelerator pedal sensor signals behave. A basic code reader can identify P2138, but a more capable scanner with manufacturer-specific live data provides much better information for diagnosing the underlying problem.
Step 1: Retrieve stored and pending trouble codes
Connect an OBD2 scanner to the 16-pin diagnostic connector, generally located beneath the driver’s dashboard near the steering column. Turn the ignition ON and retrieve stored, pending, and permanent diagnostic codes. Record all available codes before clearing anything.
Do not concentrate exclusively on P2138. Additional codes involving 5-volt reference circuits, sensor grounds, electronic throttle control, or other powertrain inputs may reveal a shared electrical problem. The order in which codes appeared can also help establish which fault occurred first.
A pending code means the computer has detected a fault that has not yet met all confirmation conditions. A stored or confirmed code indicates that the diagnostic criteria have been satisfied. A permanent code may remain after repairs until the relevant onboard monitor successfully completes its checks.
Step 2: Examine freeze-frame information
Freeze-frame data records operating conditions associated with a detected fault. Depending on the Subaru model and available scanner information, useful parameters can include engine speed, vehicle speed, engine load, coolant temperature, and fuel trim.
Check whether P2138 occurred during idle, acceleration, cruising, or another operating condition. An intermittent fault that appears during acceleration may point toward a signal problem that occurs only when the pedal moves through a particular range. A fault that appears after rain or vehicle washing may justify closer inspection for moisture-related electrical problems.
Record the available information before clearing codes or disconnecting electrical components. This information can disappear after certain diagnostic operations and may be useful when the problem cannot be reproduced immediately.
Step 3: Monitor both accelerator pedal position signals
Select the accelerator pedal position sensor parameters in the scanner’s live-data menu. Depending on the Subaru and scanner, these may appear under names such as APP Sensor 1, APP Sensor 2, Accelerator Pedal Position Main, or Accelerator Pedal Position Sub.
With the vehicle stationary and the ignition in the appropriate operating mode, observe both readings while the accelerator pedal moves gradually through its range. The values should change smoothly and maintain the relationship specified by Subaru for that vehicle.
Look for sudden drops, jumps, flat spots, or readings that briefly stop responding. If one channel becomes erratic while the other remains consistent, the affected signal circuit deserves closer investigation. However, a live-data difference alone does not prove that the pedal sensor is defective. Wiring, reference voltage, and grounding must also be considered.
Step 4: Check electrical circuits and connectors
Use the correct wiring diagram to identify the accelerator pedal sensor connector, ECM connections, signal circuits, reference supply, and ground circuits. Inspect accessible connectors for loose locking tabs, corrosion, moisture, damaged terminals, or signs of previous repairs.
If electrical measurements are necessary, follow the model-specific Subaru procedure for terminal identification and measurement conditions. Never assume that a connector pinout from an older Impreza applies to a newer Forester or Outback. Incorrect probing can spread connector terminals or damage sensitive electronic circuits.
A qualified technician can use a suitable digital multimeter and approved breakout equipment to evaluate signal voltage, circuit continuity, shorts, and ground integrity. Subaru service documentation also emphasizes using appropriate test equipment and avoiding damage to electrical terminals.
Step 5: Evaluate battery voltage and related electrical faults
A healthy battery typically measures approximately 12.6 volts when fully charged and resting. With the engine running, a conventional charging system generally operates around 13.5 to 14.7 volts. These are general reference values, not substitutes for Subaru’s vehicle-specific charging specifications.
Check whether other electrical problems are present, including weak battery performance, unstable charging voltage, poor engine grounds, or multiple sensor reference codes. These conditions can complicate electronic throttle diagnosis. Fuel trim and Mode $06 information may be useful for investigating separate engine or emissions faults, but neither replaces direct testing of the two accelerator pedal signals.
Step 6: Verify the repair
After identifying and correcting the actual fault, follow the Subaru service procedure for clearing diagnostic memory and performing the required inspection or verification mode. Recheck the stored and pending codes and confirm that both accelerator pedal signals respond correctly.
A successful repair should restore normal throttle response and prevent P2138 from returning under the conditions that originally triggered it. Some permanent diagnostic codes may remain temporarily until the appropriate monitor completes successfully. Their presence immediately after clearing other codes does not automatically mean the repair has failed.
For additional procedural context, the Subaru WRX STI engine diagnostic service information explains scan-tool code retrieval, freeze-frame information, electrical inspection precautions, and post-repair diagnostic procedures.
Repair Options, Costs, and Driving Safety
The correct repair for P2138 depends on which part of the accelerator pedal sensor circuit has failed. A loose connector may require a relatively limited repair, while a damaged harness, defective pedal assembly, or ECM problem may require substantially more labor and parts. The diagnostic findings should determine the repair rather than the code description alone.
Common repair options
- Accelerator pedal position sensor replacement: Appropriate when testing confirms that the sensor assembly produces an incorrect or unstable output.
- Connector repair: Necessary when loose terminals, corrosion, moisture, or poor electrical contact are responsible for signal interruptions.
- Wiring harness repair: Required when a signal, reference, or ground circuit has an open connection, short circuit, or damaged conductor.
- Ground or power supply repair: Appropriate when electrical measurements identify an unstable supply or poor ground connection affecting the sensor circuit.
- ECM diagnosis or replacement: Considered only after the sensor, wiring, power supply, connectors, and grounds have been verified.
What affects repair costs?
Repair costs vary according to the Subaru model, engine configuration, accessibility, replacement parts, and diagnostic time. A simple connector repair may involve less labor than tracing an intermittent wiring fault through multiple harness connections. An accelerator pedal assembly replacement may also require additional verification procedures.
Several factors influence the final repair estimate:
- Parts: The cost depends on whether the repair requires a connector, wiring section, accelerator pedal assembly, or electronic control module.
- Labor hours: Intermittent electrical problems can take longer to locate than a clearly defective sensor.
- Diagnostic equipment: Manufacturer-capable scan tools and approved electrical test equipment may be necessary.
- Shop versus DIY: Professional labor increases the invoice but may reduce the risk of incorrect electrical testing and unnecessary parts replacement.
- Programming and verification: Certain electronic module repairs may require additional configuration or manufacturer-specific procedures.
Ask the repair facility to explain which measurements failed and why the recommended component needs replacement. A reliable estimate should distinguish diagnostic labor from repair labor and identify whether the proposed work includes final code verification.
Is it safe to drive with P2138?
Driving with P2138 is not recommended if the vehicle has reduced power, unpredictable throttle response, hesitation, or stalling. An accelerator pedal signal fault can affect the driver’s ability to control acceleration, making normal traffic situations more dangerous.
If the Subaru enters reduced-power mode, struggles to accelerate, or responds inconsistently to pedal movement, stop somewhere safe and arrange professional inspection or towing. Do not attempt highway driving, overtaking, or steep uphill travel with unreliable throttle response.
If the warning light is on but the vehicle appears to operate normally, the fault still requires prompt diagnosis. An intermittent sensor problem can become more severe without warning. Normal performance at one moment does not prove that the electronic throttle system is reliable.
Tip: Treat unexpected throttle behavior as a safety concern. Do not repeatedly press the accelerator to test a vehicle that is entering reduced-power mode. Avoid driving if acceleration becomes unpredictable, and use professional recovery when necessary. Never bypass the electronic throttle safety system or attempt to defeat its fail-safe controls. If you work on more than one brand, keep P2138 Honda Code handy as well.
Frequently Asked Questions
Can a Subaru store P2138 without illuminating the check engine light?
Yes. A scanner may identify a pending P2138 before the fault meets the conditions required to illuminate the malfunction indicator light. Check pending and stored codes rather than relying only on the dashboard warning.
Does disconnecting the battery permanently remove P2138?
No. Disconnecting the battery does not repair the underlying electrical problem. Depending on the vehicle, it may erase certain learned information or diagnostic records, while permanent codes require the relevant monitor to confirm successful operation before clearing.
Can an ordinary OBD2 scanner diagnose every Subaru P2138 fault?
No. A basic scanner can retrieve the generic code, but some Subaru-specific sensor parameters, enhanced diagnostic information, and manufacturer procedures require a more capable diagnostic tool.
Does replacing the accelerator pedal require an idle relearn on every Subaru?
Not necessarily. Required initialization and learning procedures depend on the model and repair. Follow the applicable Subaru service instructions rather than assuming that every vehicle uses the same relearn procedure.
Can aftermarket electrical accessories contribute to P2138?
Yes, electrical modifications can interfere with sensor reference or signal circuits if they are incorrectly connected. Inspect recently installed remote starters, alarms, audio equipment, and other electrical accessories when the fault first appears after an installation.
P2138 on a Subaru indicates that the ECM has detected an electrical disagreement between accelerator pedal position sensor signals. A defective pedal sensor is one possible cause, but damaged wiring, poor connections, moisture, and unstable electrical supplies can produce the same fault. Record the codes, compare both live sensor signals, and verify the wiring before replacing parts. If throttle response is reduced or unpredictable, avoid driving until the problem has been diagnosed and repaired.
-
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 Code: What It Means and How to Fix It
LearnP2135 Subaru Forester: Diagnose Throttle Sensor Problems
LearnP2196 Subaru: Diagnose the Rich Sensor Signal and Avoid Unneeded Repairs
LearnP2135 Subaru: Diagnose Throttle Sensor Problems and Restore Performance
LearnP2101 Subaru: Diagnose Throttle Actuator Problems and Restore Engine Performance
LearnNissan CVT Transmission Failure Symptoms and What They Mean