What Causes Eye Twitching and When to Worry

Most eye twitching is caused by fatigue, stress, or too much caffeine. The medical term is eyelid myokymia, and it’s almost always harmless, affecting the lower eyelid on one side. It typically stops on its own once the trigger is addressed, though it can last days or even a few weeks.

What Happens Inside Your Eyelid

Your eyelid is controlled by a thin, circular muscle called the orbicularis oculi. During a twitch, individual motor units within this muscle start firing on their own in semi-rhythmic bursts, several times per second at a frequency of 3 to 8 Hz. You feel this as a fine, rippling flutter just beneath the skin. The firing is asynchronous, meaning different parts of the muscle contract at slightly different times, which is why the twitch often looks like a subtle wave rather than a full blink.

Your eyelids connect directly to your brain through the facial nerve, the seventh cranial nerve. Any disruption in the signaling along this pathway, even a minor one caused by sleep loss or overstimulation, can produce the faulty electrical activity behind a twitch.

The Most Common Triggers

The Cleveland Clinic sums it up simply: most eyelid twitching means you’re tired or wired. The most frequent culprits are:

  • Sleep deprivation. Even a few nights of poor sleep can increase neuromuscular irritability enough to set off twitching.
  • Stress and anxiety. Mental tension translates into physical tension. The small muscles around the eye are especially sensitive to this.
  • Caffeine. Coffee, energy drinks, and even tea in large amounts can overstimulate the nerve pathways controlling your eyelid.
  • Alcohol. It disrupts sleep quality and can independently irritate the nervous system.

For most people, addressing one or two of these factors is all it takes. Cutting back on caffeine, getting an extra hour of sleep, or managing a stressful period often resolves the twitching within days.

Screen Time and Eye Strain

Prolonged use of computers, phones, and tablets places constant demand on your focusing system. Your eyes must continuously adjust to pixelated characters at a close distance, and the muscles controlling focus and convergence fatigue over time. This is digital eye strain, and it’s a well-documented trigger for eyelid twitching.

Part of the problem is blinking. When staring at a screen, people blink less frequently and less completely. Incomplete blinks, where the upper eyelid doesn’t fully cover the cornea, allow the tear film to break down. The resulting dryness and irritation on the surface of the eye can reflexively trigger spasms in the surrounding muscles. If your twitching tends to flare up during or after long stretches of screen work, this is likely a contributing factor. Taking breaks every 20 minutes and consciously blinking fully can help.

Does Low Magnesium Cause Eye Twitching?

This is one of the most popular explanations online, but the clinical evidence doesn’t support it. A study that compared blood levels of magnesium, calcium, and phosphate in people with eyelid twitching versus people without found no significant differences between the two groups. Despite magnesium’s well-established role in muscle function, low serum magnesium does not appear to be a meaningful cause of eyelid myokymia specifically. If you’re eating a reasonably balanced diet, a magnesium supplement is unlikely to fix the twitch.

Medications That Can Trigger Twitching

Certain prescription drugs are known to cause eyelid spasms or full blepharospasm (forceful, sustained eye closure). The most commonly implicated classes include antipsychotics, dopamine-affecting medications, antihistamines, calcium channel blockers, certain antidepressants, benzodiazepines, and related sedatives. If your twitching started after beginning a new medication, it’s worth bringing up with your prescriber. In documented cases, the twitching improved within two months of stopping the responsible drug.

When Twitching Signals Something Else

Ordinary eyelid myokymia is a fine fluttering in one eyelid that comes and goes. A few other conditions can look similar but behave differently, and knowing the distinctions matters.

Benign Essential Blepharospasm

This is a neurological condition involving both eyes. Instead of a subtle flutter, the spasms are forceful enough to squeeze both eyes shut simultaneously. The contractions are triggered or worsened by bright light, wind, or stress, and they tend to ease with rest. Over time, the episodes can become frequent enough to interfere with driving, reading, or walking safely. It’s much rarer than simple twitching and typically develops in middle age.

Hemifacial Spasm

This condition usually starts with twitching around one eye but gradually spreads downward to involve the cheek, mouth, and sometimes the neck on the same side. The key difference from ordinary twitching is that hemifacial spasm persists even during sleep. The most common cause is a blood vessel pressing against the facial nerve where it exits the brainstem. That pressure damages the nerve’s insulation, causing it to misfire. The arteries most often responsible are the ones supplying the lower part of the brain. This condition doesn’t resolve on its own and typically requires treatment.

Red Flags Worth Noting

Simple eyelid twitching rarely needs medical attention. But certain accompanying symptoms point to something more serious: sudden double vision, headache paired with vision loss, vision changes that steadily worsen over days or weeks, twitching that spreads to other parts of your face, or any noticeable bulging of the eye. Twitching that is constant and progressively worsening, rather than intermittent and stable, also warrants evaluation. A neurologist or neuro-ophthalmologist can distinguish between benign causes and conditions that need treatment.

How Long It Typically Lasts

A single episode of eyelid myokymia usually lasts a few seconds to a few minutes, though it can recur throughout the day. The twitching period as a whole often runs a few days to a few weeks before stopping. If yours has lasted longer than three weeks without any improvement, or if it’s getting stronger rather than staying the same, that’s a reasonable point to get it checked out. For most people, though, better sleep and less caffeine are all it takes to make the twitching stop.