P2138 Mazda: Causes, Symptoms, Diagnosis and Repair
20 min read · by Nicole Bennett · Last updated: November 25, 2026
P2138 Mazda indicates that the powertrain control module (PCM) has detected a voltage correlation problem between accelerator pedal position (APP) sensor No. 1 and APP sensor No. 2. These two signals help the computer determine how far the driver presses the accelerator pedal. When their readings disagree beyond the permitted range, the PCM can limit engine power or restrict electronic throttle operation.
Common causes include a faulty accelerator pedal position sensor, damaged wiring, loose electrical connectors, poor terminal contact, and, less commonly, a PCM problem. Depending on the Mazda model and engine, you may notice reduced acceleration, an illuminated check engine light, an unresponsive accelerator pedal, or limp mode.
Do not automatically replace the accelerator pedal assembly when this code appears. A proper diagnosis should include reading stored and pending codes, checking freeze-frame information, examining both APP signals with a capable OBD2 scanner, and inspecting the related electrical circuits. The exact specifications and repair procedure depend on the Mazda model year and engine.
What P2138 Means on a Mazda
P2138 is a generic SAE powertrain code describing throttle or accelerator pedal position sensor/switch D/E voltage correlation. On Mazda vehicles, manufacturer service information commonly identifies it as an APP sensor No. 1/No. 2 voltage correlation problem. The PCM detects that the two accelerator position signals do not maintain their expected relationship.
Modern Mazda vehicles use electronic throttle control rather than a conventional mechanical cable connecting the accelerator pedal directly to the throttle body. The driver’s pedal movement is converted into electrical signals. The PCM evaluates those signals before calculating the appropriate engine torque and throttle response.
Understanding the two APP signals
The accelerator pedal position sensor assembly contains two position-sensing circuits. They monitor pedal movement simultaneously, but their voltage outputs are not necessarily identical. Each circuit follows its own calibrated operating range and relationship to pedal travel.
For example, Mazda service information for a 2013 Mazda 3 with the SKYACTIV-G 2.0L engine provides approximately 0.75 volts for APP1 and 0.38 volts for APP2 when the accelerator pedal is released. With the pedal depressed, the reference values rise to approximately 4.1 volts for APP1 and 2.05 volts for APP2.
These values illustrate how two signals can increase together without producing the same voltage. They are reference examples for that particular application, not universal specifications for every Mazda.
| Diagnostic item | Example reading or meaning |
|---|---|
| P2138 | APP sensor voltage correlation problem |
| APP1, pedal released | Approximately 0.75 V |
| APP2, pedal released | Approximately 0.38 V |
| APP1, pedal depressed | Approximately 4.1 V |
| APP2, pedal depressed | Approximately 2.05 V |
| Monitoring method | Continuous PCM monitoring |
The important diagnostic detail is the relationship between the two signals, not whether they display identical numbers. The PCM expects both circuits to follow their calibrated patterns. A signal that suddenly drops, becomes erratic, or stops tracking the other can trigger P2138.
How Mazda’s fail-safe system responds
Mazda’s electronic throttle system can enter a protective operating strategy when it detects an APP correlation problem. Depending on the vehicle, the PCM may restrict engine speed, limit torque, or control the throttle valve at an angle intended to maintain minimum driveability.
This response helps prevent the engine from relying on an accelerator request that the computer cannot verify. It also explains why some Mazda owners experience a sudden reduction in acceleration even though the engine continues running. For the same trouble code on a different platform, read P2138 BMW.
Symptoms of P2138 on Mazda Vehicles
The symptoms depend on how frequently the sensor signals disagree and how the PCM responds. Some vehicles develop noticeable acceleration problems immediately, while others initially show only a warning light or intermittent hesitation.
Because the accelerator pedal is part of the electronic engine control system, even a relatively small electrical fault can affect normal driving. Pay attention to changes in throttle response, especially when accelerating from a stop or attempting to merge into traffic.

Common warning signs
- Check engine light: The malfunction indicator light may illuminate when the PCM confirms the APP signal correlation fault.
- Reduced engine power: The vehicle may accelerate slowly because the PCM limits available engine torque.
- Unresponsive accelerator pedal: Pressing the pedal may produce little or no increase in engine speed.
- Intermittent hesitation: The engine may hesitate when the driver gradually increases pedal pressure.
- Limp mode: The PCM may restrict engine operation to a limited performance range.
- Unexpected throttle response: Acceleration may become inconsistent if the electrical fault occurs intermittently.
- Limited engine speed: Some Mazda models may restrict the maximum available engine speed as part of their fail-safe strategy.
- Additional warning messages: Depending on the model, other engine or electronic throttle warnings may appear.
Symptoms that come and go
An intermittent P2138 problem deserves attention even if the Mazda temporarily returns to normal operation. A loose connector, damaged wire, or worn internal sensor track can produce inconsistent readings under certain conditions.
For example, a vehicle may accelerate normally after a cold start but hesitate later during a drive. Another vehicle may develop the warning after the accelerator pedal has been pressed repeatedly. These patterns can help identify an intermittent electrical fault.
Record when the symptoms occur. Note whether the engine is cold or warm, whether the vehicle is moving, and whether the warning appears after a particular pedal movement. This information can help a technician reproduce the problem.
Do not assume that the absence of noticeable symptoms means the vehicle is safe from further problems. The PCM may have detected a signal disagreement before the driver notices a significant change in performance.
Common Causes of Mazda P2138
P2138 usually involves the accelerator pedal position sensor circuits or their electrical connections. The sensor itself is a common suspect, but damaged wiring and connector problems can create the same voltage disagreement. Diagnosis should identify the actual fault before any parts are replaced.
1. Faulty accelerator pedal position sensor
The APP sensor is one of the first components to investigate. Its internal sensing elements can wear, develop electrical interruptions, or produce unstable output signals.
If APP1 responds correctly but APP2 produces an irregular reading, the PCM may determine that the two circuits no longer correlate. The opposite situation is also possible.
Some Mazda applications incorporate the sensing components into the accelerator pedal assembly. In those cases, the specified repair may involve replacing the complete assembly rather than servicing an individual sensor element.
2. Damaged wiring or an intermittent open circuit
The APP sensor depends on electrical connections between the sensor and PCM. A broken conductor, damaged insulation, short circuit, or poor ground can interrupt one signal while leaving the other apparently normal.
Look for signs of previous electrical repairs, harness damage, pinching, corrosion, or contact with sharp edges. A wiring problem may be difficult to identify visually, so electrical testing may be necessary.
3. Loose or corroded electrical connectors
A connector that is not fully seated can cause an intermittent voltage problem. Corrosion, moisture, damaged locking tabs, and terminals with poor contact tension can also interrupt the sensor signals.
Inspect the accelerator pedal sensor connector and relevant PCM connections according to the vehicle’s service procedure. Do not assume that a connector looks good simply because its exterior housing is intact.
4. Power supply or ground problems
The accelerator pedal position circuits depend on stable electrical supply and sensor ground connections. Problems involving the reference voltage, ground circuit, or shared electrical connections can affect signal accuracy.
If other sensor-related trouble codes appear alongside P2138, investigate the shared electrical supply and ground circuits before condemning the pedal assembly. Codes involving APP circuit low or high voltage can provide additional clues.
5. PCM malfunction
A defective PCM is possible but should be considered only after the sensor, connectors, wiring, power supply, and grounds have been checked. Control module problems are less common than straightforward sensor or circuit faults.
A technician should verify the relevant input signals at the PCM and follow Mazda’s diagnostic procedure before recommending module replacement. Programming or configuration requirements may also apply if a replacement PCM is necessary. Compare the causes listed here with P2138 Hyundai to rule out make-specific issues.
| Possible cause | Typical diagnostic clue | Recommended check |
|---|---|---|
| Faulty APP sensor | One signal becomes erratic | Compare APP1 and APP2 live data |
| Damaged wiring | Intermittent or missing signal | Inspect and test the harness |
| Connector problem | Unstable electrical contact | Inspect terminals and connector locks |
| Power or ground fault | Abnormal supply or ground readings | Perform circuit voltage tests |
| PCM malfunction | Incorrect processing despite verified inputs | Follow manufacturer PCM diagnostics |
How to Diagnose P2138 with an OBD2 Scanner
A capable OBD2 scanner can help determine whether P2138 comes from the accelerator pedal sensor or another electrical problem. The most useful information includes stored trouble codes, freeze-frame data, and live APP1 and APP2 readings. A basic code reader may identify the fault but may not provide enough information for a complete diagnosis.
Follow a systematic process rather than clearing the code immediately. Preserving the original diagnostic information can make intermittent problems easier to identify.

Step 1: Read all stored and pending codes
Connect the scanner to the Mazda’s 16-pin OBD2 diagnostic connector, usually located beneath the dashboard near the steering column. Turn the ignition on according to the scanner’s instructions and establish communication with the PCM.
Read all available powertrain codes, not just P2138. Related codes can identify a more specific circuit problem.
Pay particular attention to:
- P2122 and P2123, which concern APP sensor No. 1 circuit low and high input.
- P2127 and P2128, which concern APP sensor No. 2 circuit low and high input.
- Other voltage reference, ground, or electronic throttle control codes.
- Communication codes that could indicate a broader electrical problem.
A pending code indicates that the PCM has detected a fault but has not yet confirmed it under the required monitoring conditions. A stored or confirmed code provides stronger evidence that the malfunction has met the confirmation criteria.
Step 2: Record freeze-frame information
Freeze-frame data captures operating conditions associated with a diagnostic event. It can help establish whether the problem occurred during acceleration, at idle, or under another operating condition.
Depending on the vehicle and scanner, useful information may include:
- Engine speed in RPM.
- Vehicle speed.
- Calculated engine load.
- Engine coolant temperature.
- Throttle position.
- APP sensor readings, if supported.
- System voltage.
For example, a fault recorded while the vehicle was moving and the accelerator was partially depressed may suggest a problem that occurs during pedal movement. A fault recorded at idle may point toward an electrical interruption that does not require substantial pedal travel.
Step 3: Monitor APP1 and APP2 live data
This is one of the most important diagnostic checks. Select the accelerator pedal position parameters in the scanner’s live-data menu. Depending on the Mazda and scan tool, the readings may appear as APP1, APP2, accelerator pedal position sensor No. 1, or accelerator pedal position sensor No. 2.
With the vehicle safely stationary, observe both readings as the accelerator pedal moves gradually from its released position toward its depressed position. Follow the manufacturer’s test conditions and keep the engine off when the applicable procedure calls for an ignition-on, engine-off test.
Both signals should change smoothly according to their specified operating patterns. Watch for sudden drops, frozen readings, interruptions, or changes that do not follow the expected relationship.
If one signal becomes unstable while the other remains consistent, investigate the affected circuit. If both readings behave abnormally, check the common power supply, ground, and relevant wiring before deciding that the pedal assembly has failed.
Step 4: Inspect the accelerator pedal connector
With the ignition switched off and the manufacturer’s electrical safety procedure followed, inspect the accelerator pedal sensor connector and visible wiring. Look for moisture, corrosion, damaged insulation, loose terminals, and broken locking tabs.
A connector can appear normal externally while having poor terminal contact internally. A qualified technician can use the correct electrical test equipment and service information to verify circuit integrity.
Step 5: Test the sensor circuits
If live data indicates an abnormal signal, the next step is to test the relevant electrical circuits. Use the wiring diagram and terminal specifications for the exact Mazda model and engine.
A technician may check reference voltage, sensor ground, signal continuity, and unwanted shorts. Voltage measurements should be compared with the manufacturer’s specifications under the specified test conditions.
Never assume that a particular connector pin arrangement or voltage specification applies to every Mazda. Different engines and model years can use different circuit configurations.
Step 6: Review advanced diagnostic information
A professional scanner may provide manufacturer-specific diagnostic parameters, monitoring results, and additional PCM information. These features can help narrow down an intermittent electrical fault.
Mode $06 is primarily used to review onboard monitor test results. It may offer useful supporting information when the vehicle exposes relevant test results, but it is not a substitute for directly comparing APP1 and APP2 live data.
Fuel trims are also not the primary diagnostic measurement for P2138. Unlike lean or rich mixture codes, this fault concerns accelerator pedal signal correlation. Abnormal fuel trims may indicate another problem, but they do not establish that the APP sensor is defective.
Step 7: Confirm the repair
After the identified fault has been repaired, clear the codes using the appropriate scanner procedure. Perform any required Mazda accelerator pedal or throttle position learning procedures specified for the vehicle.
Recheck APP1 and APP2 live data and verify that both signals follow their expected patterns. Complete the applicable self-test or road-test procedure under safe conditions and confirm that P2138 does not return.
Remember that permanent diagnostic trouble codes do not necessarily disappear when a scanner clears ordinary stored codes. A permanent code normally clears after the fault has been corrected and the vehicle’s required monitor passes automatically.
Tip: Save the original codes and freeze-frame data before clearing anything. Do not replace the accelerator pedal simply because P2138 is present. Confirm that the sensor signals are incorrect and that the power, ground, connector, and wiring circuits are functioning properly. Electronic throttle testing should follow Mazda’s model-specific service procedure. P2196 Mazda covers another issue owners of this vehicle run into.
How to Fix P2138 on a Mazda
The correct repair depends on which part of the APP signal circuit has failed. A sensor replacement will not solve a damaged harness, and replacing the PCM without verifying its inputs can lead to unnecessary expense. Match the repair to the confirmed diagnostic finding.
Replace the accelerator pedal position sensor assembly
If testing confirms that the APP sensor itself produces an incorrect or unstable signal, replacement may be necessary. On Mazda applications where the sensor is integrated into the pedal assembly, the complete accelerator pedal assembly may be the specified service part.
The replacement must be correct for the vehicle’s model year, engine, and electronic throttle configuration. After installation, follow any required initialization or learning procedures in the service information.
Repair damaged wiring
If testing identifies an open circuit, short circuit, or damaged conductor, repair the affected wiring using an approved automotive repair method. The repair should restore proper insulation, electrical continuity, and mechanical protection.
Avoid twisting wires together and covering them with ordinary household tape. Incorrect repairs can create additional resistance, intermittent contact, or future corrosion.
Repair or replace defective connectors
Damaged terminals may require replacement using the correct connector repair components. Corroded or loose terminals should not be ignored because a poor connection can cause the same type of signal disagreement as a defective sensor.
The repair should also confirm that the connector locks securely and that the wiring is properly supported. Recheck both APP signals after the repair.
Correct power supply or ground problems
If the sensor circuits do not receive the specified electrical supply or have an unstable ground, repair the affected circuit before replacing the sensor. Check shared reference-voltage circuits and related connections when other sensor codes are present.
A general battery or charging-system problem should also be considered if several unrelated electrical faults appear together. A healthy battery typically measures about 12.6 volts at rest, while a conventional charging system commonly operates around 13.5 to 14.7 volts with the engine running. These general values do not replace Mazda’s specific electrical test requirements.
Repair or replace the PCM only when confirmed
If the sensor, wiring, connectors, power supply, and ground all pass their tests, further PCM diagnosis may be necessary. A control module fault should be confirmed using the correct Mazda diagnostic procedure.
PCM replacement may involve programming, configuration, or vehicle-specific setup. It is generally not an appropriate first repair for P2138.
Perform required relearning and verification
Some Mazda applications require accelerator pedal released-position learning or throttle-related initialization after certain repairs. The exact requirements vary by vehicle and repair procedure.
Once the work is complete, verify normal pedal response, confirm that the warning light remains off during the applicable test, and check that the PCM does not store P2138 again. Owners of this model also ask about P2195 Mazda.
Is P2138 Serious, and Can You Drive a Mazda with It?
P2138 should be treated as a potentially serious drivability problem because it affects the electronic accelerator pedal signal. Even if the engine still runs, the PCM may not be able to interpret the driver’s acceleration request reliably. Driving safety depends on whether normal throttle response remains available.
A Mazda with a check engine light and no noticeable performance changes may still be capable of limited operation. However, a vehicle that hesitates, loses power, or enters limp mode should not be treated as suitable for ordinary driving.
When driving may be possible
If the warning light is steady and the accelerator responds normally, the vehicle may be capable of reaching a nearby repair facility. Keep the trip short, avoid heavy traffic where possible, and do not rely on the vehicle for highway merging or demanding acceleration.
Even in this situation, arrange diagnosis promptly. An intermittent APP signal problem can become more severe without warning.
When to stop driving
- The accelerator pedal does not produce a predictable response.
- The engine suddenly loses substantial power.
- The vehicle cannot maintain a safe speed in traffic.
- The engine repeatedly enters limp mode.
- Acceleration becomes inconsistent or difficult to control.
- The vehicle stalls or develops additional serious warning symptoms.
If any of these conditions occur, move to a safe location and arrange professional assistance or towing. Do not attempt to overcome reduced power by pressing the accelerator harder.
A flashing check engine light is a separate warning condition that requires additional attention. It commonly indicates an active engine misfire that can damage the catalytic converter. Reduce engine load and seek service promptly.
For general OBD warning-light guidance, the EPA explanation of onboard diagnostic warning lights discusses why a check engine light should be investigated rather than ignored.
P2138 Mazda Repair Costs and Prevention
The cost of repairing P2138 depends on the actual failure, the vehicle’s design, and the amount of diagnostic work required. A simple connector repair is different from replacing an integrated accelerator pedal assembly or diagnosing a difficult intermittent wiring fault.
It is better to pay for accurate diagnosis than to replace several components based on the code description alone. The total repair expense should account for the fault location, required parts, labor time, and any necessary programming or relearning.
Factors that affect repair expense
- Diagnostic labor: A straightforward sensor fault may take less time to identify than an intermittent wiring or connector problem.
- Replacement parts: The cost depends on whether the vehicle requires an individual service component or a complete accelerator pedal assembly.
- Wiring repairs: Harness damage can require additional inspection, electrical testing, and repair labor.
- Shop labor rates: Independent repair facilities and Mazda dealerships may have different labor rates and diagnostic procedures.
- Programming and relearning: Certain repairs may require manufacturer-specific equipment or additional setup procedures.
- Vehicle configuration: Model year, engine, and electronic throttle design affect parts selection and labor requirements.
DIY repair versus professional diagnosis
An experienced DIY owner may be able to read codes, save freeze-frame data, inspect accessible wiring, and review scanner readings. These checks can provide useful information before deciding whether professional service is necessary.
However, testing electronic throttle circuits requires the correct wiring information and electrical equipment. Incorrect probing or accidental short circuits can damage sensitive control electronics. Owners without appropriate electrical diagnostic experience should leave circuit testing and PCM-related work to a qualified technician.
A repair shop may also have access to Mazda-specific diagnostic information that is not available through a basic generic scanner. This can be particularly useful when the problem occurs intermittently or when the vehicle stores additional manufacturer-specific codes.
Ways to reduce the chance of recurring problems
The accelerator pedal position sensor is an electronic component, so routine maintenance cannot guarantee that it will never fail. However, protecting its electrical connections and addressing warning signs early can help prevent avoidable problems.
- Keep electrical connectors protected from moisture and contamination.
- Avoid pulling or stretching the wiring harness during interior repairs.
- Repair damaged wiring with appropriate automotive materials.
- Investigate intermittent accelerator response instead of waiting for a complete failure.
- Address related sensor and electrical trouble codes promptly.
- Use the correct Mazda service specifications after replacing electronic throttle components.
If P2138 returns shortly after a repair, do not assume that the replacement part is defective. Recheck the connector, wiring, electrical supply, and repair quality. An unresolved circuit problem can cause the same diagnostic code to return even after a new accelerator pedal assembly has been installed. Choosing the right equipment matters here, so take a look at Best Professional Scan Tools for Suvs.
Frequently Asked Questions
1. Does P2138 mean the throttle body is bad on a Mazda?
No. P2138 primarily concerns the correlation between accelerator pedal position signals. A throttle body problem may produce other diagnostic codes, but the presence of P2138 alone does not prove that the throttle body needs replacement. Diagnose the APP circuits first.
2. Can a weak car battery cause P2138?
Low system voltage can contribute to electronic control problems, particularly when multiple electrical faults appear together. However, a weak battery is not automatically the cause. Check battery condition, charging voltage, relevant power supplies, and grounds before replacing the accelerator pedal sensor.
3. Can P2138 appear without a noticeable acceleration problem?
Yes. The PCM can detect an electrical signal disagreement before the driver notices a significant performance change. An intermittent fault may also disappear temporarily while the diagnostic code remains stored in memory.
4. Will disconnecting the Mazda battery permanently clear P2138?
No. Disconnecting the battery does not repair the underlying fault. It may erase some stored diagnostic information and reset readiness monitors, but the PCM can detect the same problem again. Permanent trouble codes also require the applicable onboard monitor to pass before they disappear.
5. Does every Mazda use the same P2138 voltage limits?
No. The expected APP1 and APP2 readings and the correlation thresholds depend on the vehicle’s electronic throttle system, engine, and PCM calibration. Always use the correct model-specific Mazda service information instead of applying another vehicle’s measurements.
P2138 on a Mazda indicates that the PCM cannot verify the expected relationship between the two accelerator pedal position sensor signals. The most effective repair starts with checking APP1 and APP2 live data, inspecting the electrical connections, and testing the related circuits before replacing components. Address the fault promptly, especially if acceleration becomes unpredictable or the vehicle enters limp mode.
-
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 Mazda: Find the Throttle Sensor Fault and Restore Engine Response
LearnP2195 Mazda: Find the Lean Sensor Fault and Fix It
LearnP2196 Mazda: Causes, Symptoms, Diagnosis, And Fixes
LearnP2188 Mazda: Find the Cause of a Rich Idle and Avoid Unneeded Repairs
LearnBlack Smoke From Exhaust: What It Means and What to Check