P0402 Mazda: Diagnose Excessive EGR Flow and Find the Right Repair
20 min read · by Nicole Bennett · Last updated: November 25, 2026
P0402 Mazda means the engine computer has detected excessive exhaust gas recirculation (EGR) flow compared with the amount expected under specific operating conditions. The problem can involve an EGR valve that does not close properly, an incorrectly installed or damaged gasket, a faulty position sensor, or inaccurate airflow and pressure readings. The exact cause depends on the Mazda’s model year and engine.
The check engine light may appear before noticeable driving problems develop. However, excessive exhaust entering the intake can cause rough idling, hesitation, reduced power, and occasional stalling. Mazda service documentation confirms that P0402 detection strategies differ between engine families. For example, an older FS engine diagnostic procedure checks EGR-related intake pressure changes and gasket installation, while newer SKYACTIV systems use electronic feedback and additional sensor information.
Before replacing an EGR valve or another expensive component, retrieve the stored codes, examine freeze-frame information, and compare commanded EGR operation with actual sensor readings. A systematic diagnosis helps distinguish a mechanical valve problem from an electrical or monitoring fault.
What P0402 Means on a Mazda
P0402 is the generic SAE definition for Exhaust Gas Recirculation Flow Excessive Detected. It indicates that the powertrain control module (PCM) has detected more exhaust gas recirculation than its calibration expects. Mazda uses different monitoring strategies across its engine families, so the code does not identify one failed component.

The EGR system sends a controlled amount of exhaust gas back into the intake under selected operating conditions. This lowers peak combustion temperatures and helps reduce nitrogen oxide emissions. The PCM regulates the amount of recirculated gas using the available valves, actuators, sensors, and engine operating information.
Understanding the P0402 code structure
The five-character diagnostic code identifies the affected system and the type of fault. Its structure helps explain why P0402 belongs to the powertrain and emissions category rather than identifying a specific replacement part.
| Character | Meaning | P0402 interpretation |
|---|---|---|
| P | Powertrain | Engine, transmission, or related emissions system |
| 0 | Generic SAE code | Uses a standardized diagnostic definition |
| 4 | Auxiliary emissions control system | Identifies the emissions-related code group |
| 02 | Specific fault identifier | Excessive EGR flow detected |
The second character is important. A 0 identifies a generic SAE code, while a 1 generally identifies a manufacturer-specific code. Therefore, the basic P0402 definition is shared across compatible vehicles, but the exact detection conditions and repair procedures are Mazda-specific.
How Mazda detects excessive EGR flow
The PCM does not simply measure exhaust gas volume with one universal sensor. It evaluates information such as intake airflow, manifold pressure, EGR valve position, and engine operating conditions. The specific inputs depend on the engine design.
For example, Mazda’s FS engine service documentation describes detecting an excessive difference in intake manifold pressure when the EGR system operates compared with when it is stopped. Its procedure also identifies an incorrectly installed or damaged EGR valve gasket as a possible cause.
A newer SKYACTIV-X diagnostic strategy uses electronic EGR valve position information. Mazda’s documentation identifies a valve opening angle at least 5% above its target for 3 seconds as one detection condition. This is a model-specific threshold, not a universal specification for every Mazda.
The important distinction is that P0402 describes a monitored result. It does not automatically mean the EGR valve itself has failed. Incorrect feedback, wiring problems, or another component affecting the airflow calculation can produce similar results. Owners of other makes can check the matching guide: P0402 Chrysler.
Common Causes of P0402 on Mazda Vehicles
The most useful starting point is the EGR valve and its feedback system. However, the gasket, electrical connections, airflow sensors, and other monitoring components also deserve attention. The correct diagnostic order depends on the engine and the other codes stored in the PCM.

1. EGR valve stuck open
An EGR valve that remains partially open can allow exhaust gas into the intake when the PCM expects the valve to close. Carbon deposits, mechanical wear, or a damaged internal mechanism can prevent the valve from returning to its intended position.
This is particularly important when the engine idles poorly. At idle, unwanted exhaust entering the intake can disturb normal combustion and make engine speed unstable. The vehicle may hesitate when accelerating from a stop or stall when approaching an intersection.
An electronically controlled valve may also have a faulty actuator or position sensor. The PCM could command a closed position while receiving feedback that suggests the valve remains open. Compare commanded and actual position before deciding whether the mechanical valve or its control circuit is responsible.
2. Missing or damaged EGR valve gasket
A gasket problem is an especially important diagnostic consideration on Mazda engines covered by the FS service procedure. Mazda specifically identifies a missing EGR valve gasket and a damaged gasket as possible P0402 causes.
A gasket may have been omitted during previous maintenance, installed incorrectly, or damaged during component removal. A sealing problem can affect the pressure relationship used by the PCM to evaluate EGR operation.
Do not assume every Mazda with P0402 has this problem. The FS documentation applies to the engine family covered by that manual. A different Mazda engine may use another monitoring strategy and require different checks.
3. EGR position sensor or electrical connection fault
Modern electronic EGR systems depend on accurate position feedback. A damaged sensor, loose connector, corroded terminal, or wiring problem can send incorrect information to the PCM.
Inspect the accessible connector and wiring for damaged insulation, corrosion, pulled-out terminals, or signs of previous repairs. A connector that appears secure may still have poor electrical contact internally.
Related codes such as P0403, P0404, P0405, or P0406 can help identify an electrical or position-feedback problem. Their exact descriptions should be confirmed against the vehicle’s service information. Multiple EGR-related codes should be diagnosed together rather than treating P0402 in isolation.
4. MAF or MAP sensor readings outside expected values
The mass airflow sensor measures incoming air, while the manifold absolute pressure sensor provides information about intake pressure. Depending on the Mazda engine, these measurements help the PCM determine whether actual EGR flow matches the requested amount.
A contaminated MAF sensor, inaccurate MAP reading, damaged wiring, or poor electrical connection can make the calculated airflow or pressure response incorrect. The EGR valve may be functioning properly even though the PCM detects an apparent flow discrepancy.
Look for companion codes such as P0100, P0101, P0102, P0103, P0106, P0107, or P0108. These codes can help direct attention toward the airflow and pressure monitoring circuits. Do not replace a sensor solely because it appears in a list of possible causes.
5. EGR control actuator, wiring, or related hardware
An EGR control actuator that does not respond correctly can leave the valve in an unintended position. Older systems may use vacuum-operated control components, while newer systems can use electrically driven valves and position feedback.
Vacuum hoses, where fitted, should be checked for incorrect routing, cracks, disconnections, and restrictions. Electrical systems require inspection of the power supply, ground, connector condition, and control wiring according to the correct Mazda diagram.
Diesel Mazda engines may use additional components in the EGR monitoring strategy. Mazda’s SKYACTIV-D 2.2 documentation identifies the EGR cooler bypass valve, intake shutter valve, MAF sensor, and multiple pressure and temperature inputs as monitored components. Causes vary by model year and engine, so a gasoline-engine diagnostic procedure should not be applied automatically to a diesel model.
Tip: Check for related codes before replacing the EGR valve. A Mazda with P0402 and a MAF, MAP, or EGR position sensor code may need electrical or sensor diagnosis first. Record the original freeze-frame information before clearing anything. Compare the causes listed here with P0402 Duramax Code to rule out make-specific issues.
Symptoms and Driving Risks
P0402 can appear with very few noticeable symptoms, particularly when excessive EGR flow occurs only under certain operating conditions. More significant mechanical problems can affect idle quality, acceleration, and the ability to keep the engine running.
The severity depends on how much unwanted exhaust enters the intake and whether another fault is present. A vehicle that runs normally with a steady check engine light is different from one that repeatedly stalls in traffic.
Common warning signs
- Check engine light illuminated: The PCM has detected an emissions or engine-management malfunction.
- Rough idle: Excessive exhaust entering the intake can disturb the normal air-fuel mixture and combustion process.
- Engine hesitation: The vehicle may respond slowly when the accelerator is pressed.
- Stalling: An engine with significant unwanted EGR flow may struggle to maintain idle speed.
- Reduced acceleration: Abnormal combustion and engine management can affect available power.
- Increased fuel consumption: Poor combustion and altered engine operation can reduce fuel efficiency.
- Intermittent symptoms: The fault may appear only when the PCM performs a particular EGR monitoring test.
Not every vehicle will show all these symptoms. A damaged gasket or an intermittent sensor problem may initially produce a warning light without an obvious change in engine behavior.
Is it safe to drive with P0402?
A short, cautious trip to a repair facility may be reasonable if the check engine light is steady, the engine runs smoothly, and there are no other warning signs. However, arrange diagnosis promptly rather than continuing normal driving indefinitely.
Do not continue driving if the engine repeatedly stalls, loses substantial power, shakes severely, or becomes difficult to control in traffic. Pull over somewhere safe and arrange professional assistance. A vehicle that cannot maintain a stable idle can create an immediate traffic hazard.
If the check engine light flashes, reduce engine load and stop driving as soon as it is safe to do so. A flashing light can indicate an active misfire that may damage the catalytic converter. The presence of P0402 does not rule out a separate misfire or another serious fault.
An unresolved emissions fault can also prevent the vehicle from passing an applicable OBD emissions inspection. Oregon DEQ explains that OBD identifies emissions-system malfunctions and alerts drivers when the computer detects a problem. Its guidance is available through the Oregon DEQ OBD information page.
How to Diagnose P0402 With an OBD2 Scanner
A useful diagnosis starts with the stored code and the conditions under which it appeared. An OBD2 scanner that displays freeze-frame information, live data, and manufacturer-specific parameters provides more useful information than a basic code reader.
The following process helps separate a mechanical EGR fault from a sensor or electrical problem. Use Mazda service specifications for the exact engine rather than treating generic scanner readings as universal pass-or-fail limits.
Step 1: Read all stored and pending codes
Connect the scanner to the 16-pin OBD-II diagnostic port, normally located beneath the dashboard on the driver side. Switch the ignition on as directed by the scanner and retrieve all available powertrain codes.
Record whether P0402 is pending, stored, or permanent. A pending code means the PCM detected a fault that has not yet met the confirmation requirements. A stored or confirmed code indicates that the fault met the conditions required to turn on the malfunction indicator light. A permanent code remains until the underlying problem is repaired and the required monitor passes.
Also record companion codes. P0401 indicates insufficient EGR flow, while P0403 and related codes can point toward electrical control or position-feedback problems. Other MAF and MAP codes may indicate an input problem affecting the EGR calculation.
Step 2: Save freeze-frame information
Freeze-frame data records engine operating conditions when the fault was detected. Mazda’s FS service procedure specifically instructs technicians to verify and record this information before proceeding with P0402 diagnosis.
Useful information includes engine RPM, vehicle speed, engine load, coolant temperature, intake manifold pressure, airflow readings, and available EGR parameters. These values help establish whether the fault appeared during idle, steady cruising, acceleration, or another operating condition.
Do not clear the codes before saving this information. Doing so can remove useful diagnostic evidence and make an intermittent problem harder to reproduce.
Step 3: Examine EGR live data
Open the scanner’s live-data menu and look for EGR command, actual EGR position, EGR feedback, and related airflow or pressure parameters. Not every Mazda exposes all these values through a generic scanner. Manufacturer-enhanced diagnostic equipment may be necessary.
Compare the requested valve position with the reported position under the operating conditions specified in Mazda’s service procedure. If the PCM requests a closed valve but the feedback indicates that it remains open, investigate the valve mechanism, actuator, position sensor, and wiring.
If the valve position appears correct but the PCM still calculates excessive flow, investigate the other inputs used by that engine’s monitoring strategy. An incorrect MAF or MAP signal can create a mismatch between expected and measured airflow.
Step 4: Check fuel trims and airflow information
Short-term fuel trim (STFT) and long-term fuel trim (LTFT) provide additional information about fuel correction. Combined fuel trims beyond roughly plus or minus 10% can indicate a mixture problem, although the interpretation depends on operating conditions and engine calibration.
Combined positive corrections approaching or exceeding 25% can contribute to lean-condition codes such as P0171 or P0174. Strong negative corrections can indicate a rich condition and may be associated with P0172 or P0175.
These readings do not directly prove that the EGR valve is faulty. They help identify whether the engine is experiencing a broader mixture or airflow problem that needs investigation alongside P0402.
Check MAF airflow and MAP readings against Mazda’s specifications for the engine and operating conditions. A sensor reading that changes erratically or does not respond as expected deserves further testing before any parts are replaced.
Step 5: Inspect the EGR valve and related connections
Once the scan results have narrowed the possibilities, inspect the accessible EGR components using the correct repair information. Look for damaged wiring, loose connectors, corrosion, and signs of previous incorrect installation.
If the Mazda uses a gasket arrangement covered by the FS diagnostic procedure, confirm that the gasket is present and undamaged. An improperly installed gasket should be corrected before considering PCM replacement.
A technician can use an appropriate bidirectional scanner to command the EGR valve through its operating range when the vehicle supports that test. Actual valve response should be compared with commanded movement and the manufacturer’s specified results.
Step 6: Use Mode $06 when supported
Mode $06 provides access to on-board diagnostic monitor test results. Depending on the Mazda and scanner, these results may help evaluate the EGR monitor and identify whether a monitored value is approaching or exceeding its calibrated limit.
The availability and presentation of EGR test information vary between model years and engine families. Some generic scanners display manufacturer-specific test identifiers without meaningful descriptions. Do not assume that a test ID from one Mazda engine applies to another.
Mazda’s FS documentation references diagnostic monitoring test results and identifies a specific test ID during its repair verification process. This is a good reason to use the correct factory documentation rather than interpreting every Mode $06 result using generic internet values.
Step 7: Confirm the diagnosis before replacing parts
After reviewing codes, freeze-frame data, live readings, and physical inspection results, identify the component that failed a specific test. If the evidence points toward an EGR valve that cannot close, test its mechanical operation and control circuit. If the feedback is inaccurate, investigate the sensor and wiring.
A PCM should be considered only after the related inputs, outputs, wiring, connectors, power supplies, and mechanical components have been checked according to Mazda’s diagnostic procedure. Replacing the computer without establishing that it is defective can lead to unnecessary expense.
Tip: Do not disconnect the battery or erase P0402 simply to turn off the warning light. Save all diagnostic information first. A permanent code will not disappear just because the scanner clears ordinary stored codes; the fault must be repaired and the appropriate monitor must pass. Before you clear the codes, check whether P0446 Mazda applies to your vehicle too.
Mazda P0402 Repair Options and Cost Factors
The correct repair depends on the failed component and the engine-specific diagnostic results. Some cases involve a straightforward gasket or connection problem, while others require EGR valve, sensor, or wiring repairs.
The following table connects common diagnostic findings with the repair direction. These are possible solutions, not a list of parts that should automatically be replaced whenever P0402 appears.
| Diagnostic finding | Possible repair | Important consideration |
|---|---|---|
| EGR valve does not close | Clean or replace the valve if appropriate | Confirm mechanical or actuator failure first |
| Missing or damaged gasket | Install the correct gasket | Verify correct installation and sealing |
| Faulty EGR position feedback | Repair wiring or replace the confirmed faulty sensor or valve assembly | Check reference voltage and signal circuits |
| Incorrect MAF or MAP readings | Repair the circuit or replace a confirmed faulty sensor | Compare live readings with factory specifications |
| Vacuum control fault, where fitted | Repair the hose, solenoid, or control connection | Verify correct routing and operation |
| Confirmed PCM malfunction | Repair or replace the PCM as specified | Complete circuit checks and required programming |
Can cleaning the EGR valve fix P0402?
Cleaning may correct P0402 if carbon deposits are preventing the valve from closing properly and the valve remains mechanically and electrically serviceable. It is not a guaranteed repair.
An internally damaged valve, failed position sensor, electrical fault, or defective actuator will not necessarily improve after cleaning. Some electronic EGR assemblies also require specific handling and installation procedures.
Use a cleaning method approved for the specific component. Avoid forcing an electronic valve mechanism or allowing cleaning chemicals to enter electrical parts. If removal requires access to hot exhaust components or specialized procedures, professional service is the safer choice.
What affects the repair cost?
Repair expenses depend on the vehicle, engine, component accessibility, and the time required to identify the fault. A simple gasket repair generally involves a different amount of work from diagnosing an intermittent electrical problem or replacing an integrated electronic EGR assembly.
- Parts: The required component may be a gasket, sensor, control solenoid, wiring repair, or complete EGR assembly.
- Labor hours: Difficult component access, corrosion, and additional disassembly can increase labor time.
- Diagnostic equipment: Manufacturer-specific scan tools and electrical testing may be necessary to identify an intermittent fault.
- Shop versus DIY: A professional shop includes diagnostic labor and repair verification. DIY work may reduce labor expenses but requires appropriate tools, technical information, and experience.
- Programming and calibration: Some electronic components require additional setup or relearning procedures after replacement.
- Related damage: A damaged connector, harness, or additional faulty sensor may require separate work.
Ask the repair facility to separate the initial diagnostic charge, replacement parts, labor, and any required programming. A useful estimate should identify the failed component and explain which test confirmed the diagnosis. If the light returns with a different code, P0457 Mazda is a good next read.
How to Verify the Repair and Prevent P0402 From Returning
A successful repair must restore normal EGR operation and allow the PCM to complete its monitoring procedure. Turning off the check engine light is not enough to prove that the underlying fault has been corrected.
Mazda’s FS diagnostic documentation specifically includes EGR monitor completion and after-repair verification. The correct process for a newer SKYACTIV gasoline or diesel engine may differ, so use the appropriate service information.
1. Check all repaired connections and components
Before starting the verification drive, confirm that the repaired component is installed correctly and all disconnected connectors have been reconnected. Check that the EGR valve gasket is correctly seated when the repair involved gasket removal.
Inspect the surrounding wiring and hoses for damage or incorrect routing. A loose connector or forgotten vacuum hose can cause another fault immediately after an otherwise successful repair.
2. Clear codes only after recording the original information
Once the repair is complete, clear ordinary stored codes using the appropriate scan-tool procedure if required. Keep a record of the original fault information for future reference.
Remember that clearing codes does not repair the problem. It also resets some emissions readiness monitors, which must complete their self-tests again. A permanent P0402 may remain visible until the PCM verifies that the malfunction has been corrected.
3. Complete the appropriate Mazda drive cycle
Follow the model-specific drive-cycle instructions when available. The PCM needs suitable operating conditions to evaluate EGR performance. These conditions can include engine temperature, engine speed, load, and vehicle speed.
Mazda’s FS service procedure specifically refers to OBD-II Drive Modes 1 and 2 and requires checking EGR monitor completion through the readiness test function. That procedure should not be assumed to apply unchanged to every Mazda engine.
Avoid trying to force the monitor to run through aggressive acceleration or unsafe road maneuvers. Use the manufacturer’s prescribed conditions or have a qualified technician complete the verification.
4. Recheck codes and live data
After the appropriate monitor has run, scan the PCM again. Check for returning confirmed codes, new pending codes, and permanent codes. Review available EGR live data to confirm that the valve responds correctly to PCM commands.
Also verify that the idle is stable and that the vehicle accelerates normally. If P0402 returns, compare the new freeze-frame information with the original record. Different operating conditions may point toward an intermittent electrical problem or a fault that was not addressed by the first repair.
5. Maintain the engine and emissions system
Regular maintenance helps keep the engine and emissions system operating as designed. Follow Mazda’s maintenance schedule for the correct engine oil, air filter, and other service items. Address unrelated engine warning lights promptly rather than allowing several faults to accumulate.
Avoid unapproved modifications that disable or alter the emissions system. Removing emissions equipment or changing factory control strategies can create additional faults and may violate applicable emissions requirements.
There is no universal cleaning interval that prevents P0402 on every Mazda. The appropriate maintenance depends on engine design, driving conditions, fuel quality, and manufacturer recommendations. Preventive cleaning should not replace proper diagnosis when a fault code appears. For the equipment used in these checks, see Best bidirectional scanners for japanese cars.
Frequently Asked Questions
1. Is P0402 the opposite of P0401 on a Mazda?
Yes. P0401 identifies insufficient EGR flow, while P0402 identifies excessive EGR flow. They describe opposite flow-monitoring results, but the underlying causes and diagnostic procedures are not necessarily mirror images of each other.
2. Does P0402 mean my Mazda has failed its emissions inspection?
An active emissions-related malfunction indicator light generally prevents a vehicle from passing an OBD-based emissions inspection in programs that require the light to be off. Exact inspection requirements vary by state, vehicle eligibility, and local program rules.
3. Can P0402 appear without a noticeable change in engine performance?
Yes. Mazda’s FS service documentation describes P0402 as an intermittent EGR monitor fault. A malfunction may be detected during specific operating conditions even when the driver does not notice rough idle, hesitation, or stalling.
4. Can a Mazda have P0402 and P0401 at the same time?
Yes. Different monitoring events or intermittent operating conditions can produce both codes in the same diagnostic history. Review their freeze-frame information and determine whether the vehicle has an inconsistent EGR response, an intermittent valve problem, or inaccurate monitoring inputs.
5. Will a permanent P0402 disappear immediately after replacing the EGR valve?
Not necessarily. A permanent diagnostic trouble code cannot be erased through an ordinary scanner clear command. The PCM must complete the relevant self-test and confirm that the original malfunction is no longer present before removing the permanent code.
P0402 on a Mazda indicates excessive EGR flow, but the failed component could be a valve, gasket, sensor, connector, or another part of the monitoring system. Save freeze-frame data, compare live readings, and follow the correct engine-specific diagnostic procedure before replacing parts. Confirm the repair by completing the required EGR monitor and checking that the fault does not return.
-
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
LearnP0463 Mazda: Diagnose Fuel Gauge Sensor Problems
LearnP0404 Mazda: Diagnose EGR Problems Safely
LearnP0400 Mazda: Diagnose EGR Flow Problems and Find the Right Repair
LearnP0443 Mazda: Diagnose and Fix the EVAP Purge Valve Circuit
LearnP0456 Mazda: Find the EVAP Leak and Fix Your Check Engine Light
LearnBest Diesel Additive for DPF: Choose the Right Cleaner for Soot Problems