P0402 Toyota Code: Meaning, Causes and Fixes
6 min read · by Nicole Bennett · Last updated: November 25, 2026
A p0402 toyota code means the engine computer sees more exhaust gas recirculation (EGR) flow than it commanded. The most common cause is a valve stuck open with carbon, so that is usually the first thing to check.
Rough idle and stalling at stops are the symptoms drivers report most. Treat them as a reason to book a diagnosis within days, not weeks.
What the P0402 Code Means
P0402 is a generic OBD-II code for excessive EGR flow. The standard title is “Exhaust Gas Recirculation Flow Excessive Detected.” Carwhere’s P0402 reference rates it moderate and advises a diagnosis within days.
A code identifies a failed check, not always the failed part. The computer has seen flow it did not command, but that can come from the valve, its control solenoid, a position sensor or the hoses, so the test results decide which one to replace.
Freeze frame data is the quickest clue. It records engine speed, load and coolant temperature when the code set. A code that sets at idle points toward the valve or its control, while a code that sets under load points more toward a sensor or a leak. For a comparison on a different vehicle, see P0402 Subaru.
How EGR Works and Why Extra Flow Matters
EGR sends part of the exhaust back into the cylinders to lower peak combustion temperature, which cuts the nitrogen oxide (NOx) that forms at high heat. In a typical spark-ignited engine, 5% to 15% of the exhaust is routed back, according to Wikipedia’s article on exhaust gas recirculation.
The engine normally keeps EGR closed at idle, because recirculated exhaust would make combustion unstable. A valve that opens at idle when it should be closed is the reason extra flow shows up as a rough or unsteady idle.

The control side matters as much as the valve. A vacuum-operated valve gets its signal from a solenoid, and a solenoid that stays energized keeps the valve open even when the computer wants it closed.
P0402 Toyota Causes to Check First
Carwhere lists the causes below in order, with the most likely first. Carbon holding the valve open is the most common, and the other items are checked when the valve is clean and closes fully. The wiring and part locations differ by make, as P0402 Duramax Code shows for the same code.
- The EGR valve stuck open, usually from carbon on the seat.
- A faulty EGR vacuum solenoid that supplies constant vacuum.
- A position or differential pressure sensor that reads high.
- Misrouted vacuum hoses.
- A wiring short that holds the valve open.
Hoses are the easiest part to check and the easiest to overlook. A cracked, disconnected or misrouted vacuum line can send the wrong signal to the valve, so compare the routing with the underhood emissions label before testing anything expensive. The vacuum solenoid is a useful check on Toyotas. Samarins’ EGR glossary notes that in older Toyotas a failed solenoid can set P0401 instead, and that replacing the solenoid is a much cheaper repair than replacing the valve.
Symptoms and Whether P0402 Is Safe to Drive
A valve stuck open is the usual reason a P0402 car idles badly. Short trips are usually possible, but the idle problem gets worse with time, so the car should not sit in a state where it stalls in traffic.
- Check engine light on.
- Rough or unstable idle.
- Stalling when you stop, often after leaving a highway.
- Hesitation or stumbling on acceleration.
- Hard starting in some cases.
Stalling at a stop is a safety issue, since the engine can cut out in traffic or at an intersection. If the car stalls, avoid driving in heavy traffic until the valve and its control are checked. If the light returns with a different code, P0403 Toyota is a good next read.
How to Check a P0402 Code Step by Step
Test the valve and its control before you buy parts. The steps below follow the diagnostic order in the Carwhere and Samarins references, and the exact test values come from the Toyota repair manual for your model and year.

- Review the freeze frame data and check for other EGR or sensor codes.
- Compare the vacuum hose routing against the underhood emissions label.
- At idle, check whether the valve is open when it should be closed. If the idle improves when vacuum is disconnected, the fault is on the control side.
- Watch the EGR position or feedback values in live data while the valve is commanded closed.
- Remove the valve and inspect the pintle and seat for carbon.
- Test the control solenoid and its wiring for a short to ground or constant activation.
With a hand vacuum pump, a healthy valve opens and holds vacuum for more than a minute, then closes fully when the vacuum is released. A valve that fails this test, or that sticks, should be replaced along with its gasket.
Repair Options for P0402
Cleaning is the first repair when carbon is the cause, and a faulty valve or solenoid is replaced. Wikipedia notes that a clogged valve can sometimes be cleaned, but a faulty valve must be replaced.
Cleaning costs less, but it does not fix a valve with an electrical fault or a solenoid that stays energized. A new valve costs more, so confirm the cause with the tests above before buying one. Check the EGR passages whenever the valve is removed, because carbon in the passages can cause the same code again. While you are working on this vehicle, P0404 Toyota covers a related problem worth checking.
Frequently Asked Questions
Is P0402 safe to drive on a Toyota?
Short trips are usually possible, and Carwhere rates the code moderate. However, excessive EGR can cause rough idle and stalling at stops, so avoid heavy traffic until the valve is checked. Get the diagnosis within days rather than letting the stalling continue.
Why does a P0402 code cause stalling at stops?
A valve stuck open lets exhaust into the intake when the engine is idling, and that makes the idle unstable. Samarins describes stalling often after leaving a highway, when the car slows and the idle is most sensitive to the extra flow.
Is replacing the EGR vacuum solenoid cheaper than replacing the valve?
Samarins calls replacing the solenoid “a lot cheaper repair” than replacing the valve, but its note refers to older Toyotas where a failed solenoid sets P0401. Test the solenoid first, since a constant-vacuum fault is listed as a P0402 cause by Carwhere.
Can cleaning carbon from the EGR valve fix P0402?
It can, when carbon holds the valve open. Wikipedia notes that a clogged valve can sometimes be cleaned, but a faulty valve must be replaced. Test the valve with a vacuum pump after cleaning, and replace it if it still sticks or fails to close.
-
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
LearnP0421 Toyota: Diagnose Warm-Up Catalyst Efficiency Problems
LearnP0430 Toyota Camry: Diagnose Bank 2 Catalyst Problems
LearnP0401 Toyota Tacoma: Diagnose EGR Problems and Find the Right Fix
LearnP0403 Toyota: Diagnose the EGR Circuit and Find the Fault
LearnP0446 Toyota Tacoma: Diagnose the EVAP Vent Control Problem
LearnP0022 VW: Diagnose Camshaft Timing Problems and Avoid Unnecessary Repairs