Code & Cost

Why does my car stall while driving?

An engine that suddenly dies while driving is dangerous: you can lose power steering and brake assist. Find the cause before relying on the car.

How urgent
Fix now
Safe to drive?
No. Stalling in traffic is a safety risk.

Most common causes

Most likely first. Typical US shop prices shown where available.

  1. Failing crankshaft position sensor$230–$335

    Often cuts out when the engine gets hot, then restarts after cooling.

  2. Weak fuel pump$1,344–$1,513

    Fuel pressure drops under load and the engine starves.

  3. Dirty throttle body or idle control problem$623–$766

    Usually stalls when you come to a stop.

  4. Failing alternator$809–$1,088

    The car runs on battery alone until the voltage is too low.

  5. Faulty mass air flow sensor$262–$406

    Wrong airflow readings make the mixture too rich or lean to keep running.

Codes to check

If your check engine light is on, read the codes. These are the ones most often linked to this problem:

Repair costs

RepairTypical costSource
Crankshaft position sensor replacement$230–$335RepairPal
Fuel pump replacement$1,344–$1,513RepairPal
Throttle body replacement$623–$766RepairPal
Alternator replacement$809–$1,088RepairPal
Mass air flow sensor replacement$262–$406RepairPal

National averages, parts and labor, before tax. Checked December 2026.

Is the repair worth it?

Compare the quote with what your car is worth before you pay.

Repair or sell calculator