Why Do People Twitch? What’s Normal and What’s Not

Muscle twitching happens when a small group of muscle fibers contracts involuntarily, fired by a single nerve that activates all the fibers connected to it at once. Most twitches are harmless and triggered by everyday factors like caffeine, stress, or poor sleep. Up to 70% of adults experience the jerking sensation that hits right as you fall asleep, and nearly everyone has dealt with a randomly twitching eyelid or calf muscle at some point.

How a Twitch Works

Your muscles are organized into units: one motor nerve fiber branches out to supply a bundle of muscle fibers. When that nerve fires, every fiber it connects to contracts simultaneously. This bundle is called a motor unit, and it’s the smallest piece of your muscle that can contract on its own. A twitch is what happens when one of these units fires without your permission. You might see a brief ripple under the skin or feel a quick pulse, but the muscle doesn’t produce any real movement or force.

These involuntary firings can originate at different points along the nervous system. Some start at the nerve endings in the muscle itself. Others begin higher up, in the brainstem or spinal cord. Where the signal originates largely determines what the twitch feels like and whether it means anything medically.

Common Everyday Triggers

The most frequent causes of twitching are lifestyle-related and completely benign. Caffeine is one of the biggest culprits. It blocks a brain chemical called adenosine that normally has a calming effect on nerve activity, which leaves your nerves more excitable than usual. Caffeine also opens ion channels in muscle cells and triggers the release of stored calcium inside the muscle fiber, essentially priming muscles to fire more easily. If you’ve noticed a twitchy eyelid or jumpy calf after your third cup of coffee, that’s the mechanism at work.

Stress keeps your nervous system in a heightened state of alertness, which makes spontaneous nerve firings more likely. Sleep deprivation does something similar: a tired nervous system becomes less precise in its signaling, and stray impulses slip through. Physical overexertion can also push muscles past their recovery threshold, leaving individual motor units firing erratically as they fatigue. Nicotine, a stimulant, raises nerve excitability in much the same way caffeine does.

The Jerk Right Before Sleep

That sudden full-body jolt as you’re drifting off has a name: a hypnic jerk (sometimes called a sleep start). About 70% of adults experience one at some point in their lives. These are thought to originate in the brainstem, triggered by instability in the nervous system during the transition between wakefulness and sleep. Your brain is essentially switching modes, and during that handoff, a burst of nerve activity can fire downward through the spinal cord and into your muscles all at once.

Hypnic jerks are more common when you’re overtired, stressed, or have consumed caffeine close to bedtime. They can feel dramatic, sometimes accompanied by a falling sensation or a flash of light, but they’re a normal part of how the brain transitions into sleep. They don’t indicate any underlying condition.

Eyelid Twitching

A twitching eyelid, called myokymia, is one of the most common and most annoying forms of muscle twitching. It typically affects just the lower lid of one eye and produces a fluttering sensation that’s visible if you look closely in a mirror. The most common triggers are the usual suspects: too much caffeine, not enough sleep, stress, dry eyes, and physical fatigue.

Most episodes last only seconds to minutes, though some people deal with intermittent twitching for hours. The good news is that the vast majority of cases resolve on their own within days or weeks once the underlying trigger is addressed. Cutting back on caffeine, getting more rest, or using lubricating eye drops for dryness is usually all it takes.

Electrolyte Imbalances

Magnesium, calcium, and potassium all play essential roles in controlling how excitable your nerves and muscles are. Magnesium in particular helps regulate ion transport across cell membranes and keeps neuron excitability in check. It also interacts closely with sodium, potassium, and calcium metabolism, so when magnesium levels drop, the balance between all four minerals shifts.

When any of these electrolytes runs low, nerve cells become more easily triggered, and muscles can start firing on their own. Heavy sweating, dehydration, poor diet, or certain medications (especially diuretics) can deplete these minerals. If you’re experiencing twitching alongside muscle cramps, it’s worth looking at your hydration and mineral intake.

Medications That Cause Twitching

A surprisingly wide range of medications can trigger involuntary muscle movements. The most commonly reported classes include antidepressants (particularly SSRIs and older tricyclic antidepressants), opioid painkillers, antipsychotics, and certain antibiotics. Anti-anxiety medications, anti-seizure drugs, and even some blood pressure medications have also been linked to twitching as a side effect.

Medication-related twitching can look different from person to person, ranging from subtle flickering under the skin to more noticeable jerking movements. If twitching started or worsened after beginning a new medication, that connection is worth discussing with whoever prescribed it.

Benign Fasciculation Syndrome

Some people experience muscle twitching that doesn’t go away after a few days. It persists for weeks or months, popping up in one muscle at a time, always when the muscle is at rest. If no other symptoms accompany it, this pattern is called benign fasciculation syndrome (BFS). The twitching is real, sometimes constant, but it isn’t caused by any underlying disease.

BFS tends to affect one spot in one muscle at a time, and the location can shift around the body. It’s a diagnosis of exclusion, meaning doctors confirm it by ruling out other conditions rather than by a single definitive test. The key distinguishing feature is that BFS involves only twitching. There’s no muscle weakness, no loss of muscle size, and no change in coordination or sensation. Anxiety about the twitching often makes it worse, which creates a frustrating cycle.

When Twitching Signals Something Serious

The condition most people worry about when twitching persists is ALS (amyotrophic lateral sclerosis), a progressive neurological disease. It’s important to understand how differently ALS presents compared to benign twitching. In ALS, fasciculations tend to occur in multiple muscles simultaneously rather than one spot at a time. More critically, twitching in ALS is accompanied by progressive muscle weakness and visible muscle wasting, where a muscle gradually shrinks in size.

The red flags that distinguish concerning twitching from the benign kind are specific: loss of muscle strength, noticeable reduction in muscle size, changes in sensation, and symptoms that progressively worsen over time. Twitching alone, even if it lasts for months, without any of these additional symptoms is overwhelmingly likely to be benign. If twitching does appear alongside weakness or muscle wasting, that combination warrants prompt medical evaluation.