Muscle twitching is an involuntary, small contraction of muscle fibers under your skin. In the vast majority of cases, it signals nothing more than a tired, overstimulated, or nutrient-depleted muscle. These twitches, called fasciculations, can pop up anywhere: your eyelid, calf, thumb, or the side of your arm. They feel like a tiny fluttering or pulsing sensation and usually resolve on their own.
The Most Common Causes
Most twitching traces back to a handful of everyday triggers. Sleep deprivation is one of the biggest. When you’re running low on rest, your nerves become more excitable and fire signals to muscles that didn’t ask for them. The American Academy of Ophthalmology specifically lists poor sleep as a top cause of the eyelid twitches that so many people notice.
Caffeine is another frequent culprit. As a stimulant, it can push your nerve cells into overdrive, triggering twitches anywhere in the body. If you’ve recently increased your coffee, tea, or energy drink intake, that’s worth noting. Stress and anxiety play a similar role by keeping your muscles in a state of low-level tension that eventually spills over into involuntary contractions.
Exercise can also set off twitching, especially after an intense workout. When a muscle is fatigued and its electrolytes are partially depleted, individual motor units can start firing on their own. This is why your quad or calf might twitch for hours after a hard run.
Electrolytes and Mineral Deficiencies
Your nerves rely on a precise balance of minerals to send signals correctly. When that balance is off, twitching is one of the first symptoms. Three minerals matter most here:
- Calcium helps your nerves communicate with your muscles. Low blood calcium is the most common electrolyte cause of involuntary muscle contractions.
- Magnesium acts as a natural brake on nerve excitability. When levels drop, your nerves fire more easily, producing twitches and cramps.
- Potassium is critical for both nerve and muscle cell function, particularly in the heart. Low potassium can cause twitching alongside fatigue and weakness.
Dehydration, heavy sweating, certain medications (especially diuretics), and diets low in leafy greens, nuts, or dairy can all contribute to these imbalances. In more severe cases, low electrolytes can progress from mild twitching to sustained, painful muscle contractions called tetany.
Eyelid Twitches
Eyelid twitching, known as myokymia, deserves its own mention because it’s the type people notice most and worry about most. It’s almost always harmless. Common triggers include caffeine, alcohol, bright light, eye strain (especially from screens), fatigue, nicotine, stress, and even wind or air pollution irritating the eye surface. Most eyelid twitches come and go over days to weeks, and addressing the underlying trigger is usually all it takes to stop them.
Medications That Cause Twitching
Several classes of medication can cause involuntary muscle movements as a side effect. The most commonly implicated are opioid pain medications, antidepressants (particularly SSRIs and tricyclics), antipsychotics, certain antibiotics, and anti-seizure medications. Mood stabilizers like lithium are also well-documented triggers. If your twitching started or worsened after beginning a new medication, that connection is worth discussing with your prescriber.
Benign Fasciculation Syndrome
Some people experience persistent, recurring twitches for weeks, months, or even longer without any underlying disease. This is called benign fasciculation syndrome (BFS). The defining feature of BFS is that twitching is the only symptom. There’s no muscle weakness, no loss of coordination, and no shrinkage of muscle tissue. The twitches typically show up at a single site in one muscle at a time, rather than firing across multiple muscles simultaneously.
BFS is a diagnosis of exclusion, meaning a neurologist confirms it by ruling out other conditions. This usually involves a neurological exam and an electromyogram (EMG), a test that measures the electrical activity of your muscles. If both come back normal and you have no other symptoms, BFS is the likely diagnosis. The condition is not dangerous and does not progress into anything more serious, though the twitching itself can be annoying and anxiety-provoking.
When Twitching Signals Something Serious
The reason many people search “what does twitching mean” is fear that it could indicate a neurological disease like ALS (amyotrophic lateral sclerosis). This fear is understandable but, statistically, very rarely justified. The critical difference between benign twitching and ALS is the presence of other symptoms.
ALS twitching is accompanied by progressive muscle weakness, difficulty with everyday tasks like buttoning a shirt or gripping objects, and visible muscle wasting (atrophy) where the muscle physically shrinks. These symptoms get worse over time, not better. ALS fasciculations also tend to appear in multiple muscles at the same time, rather than jumping around to one spot at a time the way benign twitches do.
If your twitching is the only thing happening, meaning your muscles are still strong, you can move normally, and nothing is getting progressively worse, the twitching is overwhelmingly likely to be benign.
How to Reduce Twitching
Because most twitching comes from lifestyle factors, the fixes are straightforward. Prioritize sleep. Cut back on caffeine, particularly if you’ve crept above three or four cups a day. Stay well hydrated, and make sure your diet includes adequate sources of magnesium, potassium, and calcium (think bananas, spinach, nuts, yogurt, and beans).
Regular stretching helps, especially for muscles that twitch frequently. If a twitch is actively bothering you, stretching or gently massaging the area can quiet it down. Applying heat or ice to the spot also works for some people. Walking around and moving the affected muscle can interrupt the nerve signal causing the contraction.
For twitching that hits at night, particularly leg cramps, keeping your sheets and blankets loose gives your muscles room to relax. Sleeping on your back with a pillow positioned to keep your toes pointing upward can also help. Stretching your calves and hamstrings before bed reduces the likelihood of being woken up by a cramp or twitch.
If your twitching persists for several weeks despite addressing these triggers, or if you notice any new weakness or coordination problems alongside the twitching, a neurological evaluation can give you a clear answer.

