Car Dies While Driving Then Restarts: Causes & What to Do
If your car suddenly shuts off while you're driving — the engine just quits, the steering goes heavy — and then starts right back up as if nothing happened, you're dealing with an intermittent loss of spark, fuel, or electrical power. The on-again, off-again pattern is actually a useful clue: it points to a short list of heat-sensitive or connection-related failures, most often a crankshaft position sensor, a fuel pump, or the ignition switch. Don't let the easy restart fool you into waiting — a stall at highway speed takes your power steering assist and most of your brake boost with it, so this is one of the few intermittent problems that needs immediate attention.
Trouble codes you may see
If you scan the car, these are the OBD-II codes most often behind this symptom:
Common causes
- 1
Crankshaft or camshaft position sensor failing when hot
These sensors tell the engine computer where the pistons and valves are; when one drops its signal, the computer instantly cuts spark and fuel, so the engine dies with no sputter or warning. Heat-soak failure is the classic pattern behind a car that dies after 20–30 minutes of driving and restarts fine after cooling for 10–20 minutes — and an intermittent sensor often sets no check-engine code at all. Replacement typically runs $150–$400; certain mid-2000s Nissans and older Jeep/Chrysler engines had especially well-documented crank sensor failures of this type.
- 2
Fuel pump cutting out intermittently
An electric fuel pump with worn brushes or a failing internal connection can stop spinning mid-drive, starving the engine of fuel, then work again after a short rest. Telltale signs are stalls on hot days or with a low tank (fuel in the tank helps cool the pump), a louder-than-normal whine from under the rear seat or trunk, and longer cranking before it restarts. An in-tank pump assembly usually costs $400–$1,000 installed.
- 3
Fuel pump relay or main relay with cracked solder joints
The relay is the small switch that sends power to the fuel pump, and heat can open up hairline cracks in its solder joints, killing fuel delivery until things cool down — 1980s–90s Hondas with the PGM-FI main relay are the textbook case. The quick check: after a stall, turn the key to ON and listen for the two-second fuel pump hum from the rear of the car; silence points here or to the pump itself. This is one of the cheapest fixes on this list at $20–$150.
- 4
Worn ignition switch
The electrical contacts inside the ignition switch wear out, and a bump in the road or the weight of a heavy keychain can momentarily break power to the ignition and fuel systems. The giveaway is that the whole dashboard dies along with the engine — gauges drop to zero, radio cuts out. GM recalled millions of vehicles in 2014 for exactly this failure; try removing everything but the key from your keyring as a test, and budget $100–$450 for replacement (more if your car needs anti-theft reprogramming).
- 5
Loose, corroded, or damaged ground connections and wiring
Your engine computer, ignition, and fuel system all depend on a few ground straps between the battery, body, and engine block; corrosion at those connections or a chafed wiring harness can break the circuit intermittently — often over bumps, in rain, or once the engine bay is hot. Watch for companion symptoms like flickering dash lights or electrical gremlins that come and go. The repair itself is cheap ($20–$50 to clean and tighten grounds yourself), but hunting an intermittent wiring fault can take a shop a few hours of diagnostic time, commonly $150–$400 total.
- 6
Failing ignition module or coil pack (heat-related, mostly older vehicles)
On engines built before the mid-2000s with a distributor or separate ignition control module, the module's internal electronics can break down when hot, cutting spark entirely until the unit cools. The pattern mimics a bad crank sensor — dies hot, restarts cold — and the part often tests fine on the counter tester because it only fails at temperature. Expect $150–$400 for diagnosis and replacement.
What to do
Start by logging the pattern, because it does half the diagnosis for you: how long you'd been driving, the outside temperature, fuel level, whether you hit a bump, and how long the car needed before it restarted. Note one detail above all — when the engine dies, does the dashboard die with it? A dark dash points to the ignition switch or a power/ground fault; a lit dash with a dead engine points to the crank sensor, fuel pump, or a relay. After a stall, turn the key to ON and listen for the two-second fuel pump hum, take heavy keychains off the key, and get the codes scanned as soon as possible after an episode (intermittent faults like P0335 or P0340 may not stay stored, and many heat-soak failures set no code at all — a shop may need to record live sensor data to catch it). Give the shop your written pattern; it can save hours of diagnostic labor. Treat this as urgent: an engine that quits at speed disables power steering assist and leaves only one or two boosted brake applications. Until it's fixed, stay off highways, and if it stalls in traffic, shift to neutral, coast to the shoulder, restart there — and have the car towed in if it cuts out more than once on the same trip.
Not sure it's your car?
Snap a photo or describe what you're seeing and let Au7o confirm the likely cause for your exact year, make, and model — free.
Diagnose my car free