Muscles twitch after a workout because fatigued nerve fibers continue firing small, involuntary contractions even after you’ve stopped exercising. These tiny visible pulses under your skin, called fasciculations, are extremely common and almost always harmless. They tend to show up in the muscles you worked hardest and typically resolve on their own within minutes to a few hours.
What’s Happening Inside Your Muscles
Every voluntary movement you make starts with a signal from your brain, traveling down a motor nerve to a bundle of muscle fibers. That nerve and the fibers it controls are called a motor unit. During exercise, your nervous system recruits more and more motor units as your muscles fatigue, ramping up the signal intensity to maintain the same level of force.
The problem comes after you stop. Your motor neurons don’t always shut off cleanly. During a fatiguing contraction, low-threshold motor units (the ones recruited first) experience a progressive drop in their firing rate, while your brain compensates by increasing overall drive to the muscle. Metabolic byproducts accumulate in the tissue and alter feedback signals between the muscle and spinal cord. The result is a temporarily destabilized communication loop: some nerve fibers keep sending sporadic signals, causing small clusters of muscle fibers to contract on their own. That’s the twitch you see rippling under your skin.
These post-exercise fasciculations are “simple type” electrical events, meaning they involve a single motor unit firing briefly. They’re electrically and clinically distinct from the type of twitching seen in neurological disease.
Dehydration Makes It Worse
Water isn’t just filler in your muscle cells. It’s directly involved in the chemical reactions that produce energy for contraction, including the breakdown of ATP (your muscles’ fuel currency) and the metabolic cycles inside mitochondria. Glycogen, your muscles’ stored carbohydrate, is bound to roughly 3 grams of water for every gram of glycogen. As you sweat during exercise, water content in your muscle cells drops, and this fluid loss accelerates the rate at which your muscles burn through their glycogen stores.
The cascade works like this: sweating reduces body fluids, core and muscle temperature rise, and the muscle burns glycogen faster than it normally would at the same exercise intensity. Research in recreationally active women found that progressive dehydration significantly increased core temperature, perceived effort, and muscle glycogen breakdown. When you finish your workout dehydrated, your muscles are both low on fuel and low on fluid, two conditions that make nerve fibers more excitable and twitching more likely.
Electrolytes and Nerve Excitability
Your nerves fire based on the flow of charged minerals (electrolytes) across cell membranes. Sodium controls fluid balance and helps transmit nerve impulses. Potassium supports the electrical signals in both nerves and muscle fibers. Calcium helps regulate the contraction process itself. Magnesium plays a stabilizing role in nerve and muscle function, essentially helping keep things from firing when they shouldn’t.
When you sweat heavily, you lose sodium and smaller amounts of potassium, calcium, and magnesium. Even a modest shift in these levels can lower the threshold at which a motor neuron fires, making involuntary twitches more likely. This is why twitching tends to be worse after long or hot workouts where sweat losses are high, and why it often improves once you rehydrate and eat something.
Common Triggers That Increase Twitching
- New or unusually intense exercise. Pushing muscles beyond what they’re adapted to causes more motor unit fatigue and more erratic firing afterward.
- Caffeine before training. Caffeine is a nervous system stimulant that increases motor neuron excitability on its own. Combined with exercise fatigue, it can amplify post-workout twitching.
- Poor sleep. Sleep deprivation raises baseline nervous system excitability. You may notice more twitching after workouts on days you slept poorly.
- Skipping food before or after training. Low blood sugar and depleted glycogen leave your muscles energy-starved, which contributes to unstable nerve signaling.
- Training in heat. Higher core and muscle temperatures accelerate glycogen use and fluid loss, compounding the factors that drive twitching.
How to Reduce Post-Workout Twitching
Start with hydration. Drink enough fluid during and after exercise to replace what you lost in sweat. If your workout lasts longer than an hour or you’re sweating heavily, a drink with sodium and potassium helps restore electrolyte balance faster than water alone.
Eating a meal or snack with carbohydrates and protein within a couple hours of training helps replenish glycogen and provides the raw materials your muscles need to recover. A banana, for example, delivers both carbohydrates and potassium.
Magnesium gets a lot of attention as a fix for muscle twitching and cramps, but the evidence is mixed. A Cochrane review of magnesium supplementation (at doses of 100 to 520 mg daily) found limited reliable evidence that it reduces exercise-related cramps or twitching specifically. It may still help if you’re genuinely low in magnesium, which is common in people who don’t eat many leafy greens, nuts, or whole grains. But it’s not a guaranteed fix, and oral magnesium causes digestive side effects like diarrhea in 11% to 37% of people who take it.
Gentle stretching and light movement after your workout can help your nervous system transition out of its high-output state. A proper cooldown gradually reduces the neural drive to your muscles rather than cutting it off abruptly.
When Twitching Is Worth Investigating
Post-exercise twitching that fades within a few hours is normal. Even twitching that lingers into the next day after a particularly brutal workout isn’t unusual. Healthy people commonly experience fasciculations in the calves, forearms, and eyelids without any underlying disease.
The key distinction is whether twitching comes with other symptoms. Fasciculations alone, without muscle weakness, wasting, or loss of coordination, are not a sign of a neurological condition like ALS. A study of patients referred for evaluation of fasciculations found that 14 of them were deeply worried about ALS, yet their twitching was mainly in the lower limbs, muscle strength was completely normal, and nerve conduction studies showed no abnormalities.
Twitching that persists for weeks in the same spot, gets progressively worse, or is accompanied by noticeable weakness, shrinking of a muscle, difficulty swallowing, or changes in coordination warrants medical evaluation. But isolated twitching after exercise, even if it happens regularly, falls squarely in the “annoying but harmless” category for the vast majority of people.

