Why Does My Eye Keep Twitching and How to Stop It

That annoying fluttering in your eyelid is almost certainly a benign muscle twitch called myokymia, and it’s one of the most common reasons people turn to a search engine with mild panic. The twitch is caused by tiny, involuntary contractions of the muscle that controls your eyelid, most often in the lower lid of just one eye. It’s rhythmic, it’s distracting, and in the vast majority of cases it’s completely harmless.

The Most Common Triggers

Eyelid twitching has a short list of well-established triggers, and most of them come down to your body being overtired or overstimulated. The Mayo Clinic identifies these as the primary culprits:

  • Fatigue and sleep deprivation
  • Stress and anxiety
  • Too much caffeine
  • Nicotine use
  • Eye strain (especially from screens)
  • Dry or irritated eyes
  • Alcohol intake
  • Bright light, wind, or air pollution

Most people experiencing a persistent twitch can trace it to a combination of these factors rather than a single cause. A stretch of poor sleep combined with heavy coffee intake and a stressful week at work is the classic recipe. As Cleveland Clinic puts it simply: “Most of the time, myokymia means you’re tired or wired.”

Why Screen Time Makes It Worse

If your twitch seems to flare up during or after long stretches at a computer, that’s not a coincidence. Staring at a screen reduces your blink rate, which dries out your eyes and fatigues the muscles around them. This combination of dryness and strain is a direct trigger for twitching.

Ophthalmologists recommend the 20-20-20 rule to counteract this: every 20 minutes, look at something about 20 feet away for 20 seconds. This simple habit relaxes the focusing muscles in your eyes, encourages more regular blinking, and has been shown to reduce both eye strain and twitching. If you spend most of your day on a screen and your eye is twitching, this is the single easiest intervention to try first.

How Long a Twitch Typically Lasts

A typical episode of eyelid twitching is intermittent throughout the day, meaning you’ll feel it flutter for a few seconds, then it stops, then it comes back again minutes or hours later. Most cases resolve within a few days once you address the underlying trigger. Some twitches, though, can persist for weeks or even months, especially if the triggering factors (poor sleep, high caffeine, ongoing stress) remain unchanged. A longer duration doesn’t automatically mean something is wrong, but it does mean your body is telling you something needs to shift.

What About Magnesium?

You’ll find magnesium supplements widely recommended online for eye twitching, but the evidence behind this is surprisingly thin. A cross-sectional study comparing 72 patients with eyelid twitching to 197 controls found no significant differences in serum magnesium levels between the two groups. Calcium and phosphate levels were also the same. Despite the popular belief (especially widespread in some countries) that low magnesium is the main cause, the research simply hasn’t supported that claim. That doesn’t mean magnesium is useless for general health, but taking a supplement specifically to stop an eye twitch may not do what you’re hoping.

How to Stop the Twitching

Since the most reliable triggers are lifestyle-related, the fixes are too. Washington University’s ophthalmology department recommends a straightforward checklist:

Get at least seven hours of sleep per night, and try to keep your bedtime and wake time consistent. Avoid screens for at least an hour before bed, and sleep in a cool, dark room. Drink at least 64 ounces (about eight glasses) of water daily. Cut back on caffeine, particularly in the late afternoon and evening, and minimize alcohol, especially close to bedtime.

If dry eyes are part of the problem, over-the-counter lubricating eye drops (sometimes called artificial tears) can help. Reducing screen time or at least building in regular breaks with the 20-20-20 rule will also address strain and dryness simultaneously. For stress-related twitching, the twitch itself often resolves once the stressful period passes, but anything that genuinely lowers your baseline stress level (exercise, better sleep, fewer stimulants) speeds up the process.

Most people find their twitch disappears within days of making even one or two of these changes.

When a Twitch Signals Something Else

In rare cases, what starts as a simple eyelid flutter can be an early sign of a more significant neurological condition. There are two main ones worth knowing about. Blepharospasm involves involuntary spasms that affect both eyes and can eventually force the eyelids shut. Hemifacial spasm causes twitching that spreads from the eye to other muscles on the same side of the face (the cheek, mouth, or jaw). Both of these are treatable, often with targeted injections that relax the overactive muscles. Botulinum toxin was actually one of the first FDA-approved treatments for these conditions.

Simple eyelid myokymia stays isolated to one eyelid. If your twitching spreads beyond the eyelid to involve other parts of your face, affects your vision, or persists for more than a few days despite addressing the common triggers, those are signs to get it evaluated. A twitch that stays in one lower eyelid and comes and goes over a few days to weeks is, in the overwhelming majority of cases, just your body asking for more sleep and less caffeine.