P0402 Duramax Code: EGR Flow Excessive, Causes and Checks
6 min read · by Nicole Bennett · Last updated: November 14, 2026
A P0402 Duramax code means the engine computer sees more exhaust gas recirculation flow than it commanded, so the EGR valve is letting too much gas back into the intake. The check engine light is the usual sign.
The most common cause is an EGR valve stuck open. Test the valve before you blame the sensor that reports its position.
What the P0402 Duramax Code Means
A P0402 Duramax code means the engine computer has measured more EGR flow than the amount it commanded. The opposite fault, too little EGR flow, is P0401, so the two codes point in opposite directions.
The code does not name the failed part, and the P0402 code overview makes the same point. It only says the computer’s flow estimate and the commanded flow do not agree, and the next step is to find out which side is wrong.
The code is rated moderate in one Duramax code guide, which describes it as a generic OBD-II definition under SAE J2012. The conditions GM uses on its diesels are in GM service information, and the guide tells you to check them before any repair.

Symptoms of a P0402 Code on a Duramax
The symptoms of excess EGR flow often show up at idle and at steady cruise, because that is when the valve is most likely to pass too much gas. Many trucks show only the warning light, but a stuck valve can also affect how the engine runs.
- Check engine light on
- Rough idle or stalling
- Black smoke from the exhaust
- Loss of power under load
A rough idle with black smoke is the combination that should move this code to the top of your list. Stalling at low speed is a reason to stop driving the truck until the valve has been checked.
Rough idle, stalling and black smoke together point to too much exhaust gas at idle, which matches the guide’s note that the code often shows at idle and steady cruise. A P0402 Duramax truck with those signs deserves a prompt stop, not a slow drive home.
What Causes a P0402 Code
The Duramax guide ranks a valve stuck open as the most likely cause. The two sensor faults come next, and both can make the computer read the flow wrong even when the valve is fine.
- EGR valve stuck open, rated a high likelihood
- An EGR valve position sensor that reads incorrectly, rated moderate
- An airflow sensor that reads incorrectly, rated moderate
A Mack Trucks service bulletin for DTC P0402, published on the NHTSA site, lists a wider set of causes for the same generic code. It names the connector, the wiring harness, the EGR valve, charge air system leakage and the EGR differential pressure sensor. That list is for a different engine, so use it as a checklist rather than a Duramax procedure.
Check the intake for soot when the valve is stuck, since the valve and the intake share the same gas path. A dirty intake and a stuck valve can show the same rough idle, so look at both before you decide.
How to Check the EGR Valve
Test the valve’s movement on a P0402 Duramax before you replace any sensor. The steps below follow the order the Duramax guide uses, and each one separates a valve fault from a sensor fault.
Note the commanded and actual positions at idle before you start the test drive, so you can compare the two readings at the same point. Readings at different engine speeds do not show the same thing.

- Command the EGR valve with a scan tool, and compare the commanded position with the actual position.
- Inspect the valve and its passages for soot buildup, which can keep a valve from closing fully.
- Check the airflow reading during a test drive, because the computer uses it to judge EGR flow.
- Check the connector and harness at the valve for heat damage, corrosion and loose pins.
If the valve stays open when the scan tool commands it closed, the valve is the fault. If the valve moves correctly but the reported position is wrong, suspect the position sensor or its wiring, covered in EGR sensor A circuit fault.
Read every stored code before ordering parts, since codes like EGR control circuit low can point to the same circuit. A P0402 Duramax diagnosis with a second code in the same system is easier to settle when you see both at once.
When to Clean, Replace or Get Help
Clean the valve on a P0402 Duramax when soot keeps it from closing but it still moves under command. Replace the valve when it stays open after cleaning. A position sensor that reads wrong with a valve that moves correctly is a sensor job, not a valve job.
The trade-off is cost against certainty. Replacing the valve first is faster but may not fix a wiring or airflow fault, while testing first takes longer and needs a scan tool that can command the valve.
Stop driving a P0402 Duramax if it stalls or runs very rough, since the guide advises against that. A valve stuck open can also add soot to the intake over time, so do not leave a stuck valve unchecked for long.
After any cleaning or replacement, road test the truck and watch the commanded and actual EGR positions again. A P0402 Duramax fix is confirmed only when the two positions match at idle and at steady cruise.
Frequently Asked Questions
Is a P0402 Duramax code safe to drive with?
The Duramax guide rates it as okay to drive with caution. Keep trips short, and stop driving if the engine stalls or runs very rough.
What is the difference between P0401 and P0402?
P0401 means too little EGR flow, and P0402 means too much. The two codes point to different faults, so read the flow data before you choose a part.
Can a bad sensor set P0402 when the valve is fine?
Yes. A position sensor or an airflow sensor that reads incorrectly can set the code while the valve works. Testing the valve’s movement first separates the two faults.
Will clearing P0402 fix the truck?
No. Clearing the code only resets the light. If the valve is stuck or a sensor is faulty, the code comes back once the engine runs long enough to test it again.
-
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
LearnP0472 Duramax Code: Exhaust Pressure Sensor Low, Causes and Fixes
LearnP0471 Duramax Code: Exhaust Pressure Sensor Range, Causes and Fixes
LearnP0420 Duramax Code: Catalyst Efficiency Bank 1, Causes and Fixes
LearnP0475 Duramax Code: Exhaust Pressure Control Valve Explained
LearnP0404 Duramax Code: EGR Control Circuit Fault Explained
LearnP0777 Duramax Code: Solenoid B Stuck On Causes and Checks