Why Has My Eyelid Been Twitching for Days?

An eyelid that won’t stop twitching for days is almost always a sign that your body is tired, overstimulated, or both. The medical term is myokymia, and it’s incredibly common. These tiny, involuntary contractions of the muscle fibers in your upper or lower eyelid can come and go for days to weeks, and while they feel alarming, they’re rarely a sign of anything serious.

What’s Actually Happening in Your Eyelid

Myokymia involves small, spontaneous firing of the nerve fibers that control the thin muscle running just beneath the skin of your eyelid. The twitches are typically unilateral, meaning they affect one eye at a time, and the spasms are irregular and rippling rather than forceful. Most people experience short bursts lasting a few seconds, repeating on and off throughout the day. You can usually feel it clearly, but if you look in a mirror, the movement is often barely visible to anyone else.

The Most Likely Triggers

The overwhelming majority of eyelid twitches trace back to a short list of lifestyle factors. Most of the time, myokymia means you’re tired or wired, from caffeine, anxiety, stress, or a combination of all three.

Sleep deprivation is the single most common culprit. When your body doesn’t get adequate rest, the small muscles around your eyes are among the first to misfire. Even a few nights of poor or shortened sleep can set off a twitching episode that persists for days.

Caffeine increases the excitability of nerve fibers throughout your body, and the delicate muscles around the eye are especially sensitive. If your coffee, tea, or energy drink intake has crept up recently, that alone can explain a stubborn twitch.

Stress and anxiety keep your nervous system in a heightened state, which makes spontaneous muscle firing more likely. Many people first notice their eyelid twitching during a demanding stretch at work or a period of emotional strain.

Alcohol and nicotine also contribute. Limiting alcohol and reducing or quitting nicotine, including vaping and smokeless tobacco, can reduce your risk of developing twitches in the first place.

Screen Time Makes It Worse

If you spend long hours on a computer, tablet, or phone, digital eye strain is likely compounding the problem. When you look at a screen, you blink about a third less often than normal, roughly three to seven times per minute instead of the usual rate. Your eyes are also constantly refocusing on pixels without you realizing it, and the low contrast between text and screen backgrounds adds further strain. As little as two hours of continuous screen time per day increases the chance of developing eye strain symptoms, and that fatigue feeds directly into the conditions that trigger twitching.

What About Magnesium?

You’ll find magnesium supplements recommended on countless websites as a fix for eye twitching, but the evidence doesn’t actually support that connection. A cross-sectional study comparing 72 patients with eyelid myokymia to 197 controls found no significant differences in serum magnesium, calcium, or phosphate levels between the two groups. Despite how widely this advice circulates, there’s no solid clinical evidence that low magnesium causes eyelid twitching. Staying well-hydrated matters more than reaching for a supplement.

How to Stop the Twitching

The good news is that most cases resolve on their own once you address the underlying triggers. The twitch won’t disappear overnight, but it should get better slowly over time as you make adjustments. Here’s where to start:

  • Sleep at least 7 hours per night. Go to bed and wake up at the same time each day. Avoid screens for at least an hour before bed, and sleep in a cool, dark room.
  • Cut back on caffeine. Reduce your intake gradually, and avoid caffeine in the late afternoon or evening.
  • Hydrate properly. Aim for at least 64 ounces (about 8 glasses) of water daily.
  • Manage stress. Even basic steps like short walks, breathing exercises, or simply reducing your workload can lower your baseline nervous system activity enough to help.
  • Take screen breaks. Follow the 20-20-20 rule: every 20 minutes, look at something 20 feet away for 20 seconds. This gives your eye muscles a chance to relax and encourages normal blinking.
  • Minimize alcohol, especially in the evening.

Patients sometimes feel concerned when an eyelid twitch keeps happening for days or even weeks, but according to ophthalmologists at Washington University, this is actually very common and not a reason to panic.

When Twitching Signals Something Else

In rare cases, what starts as eyelid twitching can be an early sign of a different condition. The key is knowing what to watch for.

Blepharospasm is a condition where the twitching progresses to forceful, involuntary closure of both eyelids. It often starts as infrequent bilateral twitching that gets stronger and more frequent over time. Unlike simple myokymia, blepharospasm affects both eyes simultaneously and can eventually make it difficult to keep your eyes open.

Hemifacial spasm often begins with eyelid twitching on one side but gradually spreads to involve the entire half of the face, including the cheek, mouth, and jaw. This condition is sometimes caused by a blood vessel pressing on the facial nerve.

Simple myokymia is typically one-sided, limited to the eyelid, and irregular in its pattern. If your twitching is strong enough to close your eye, affects both eyes at the same time, or has spread to other parts of your face, those are important distinctions worth mentioning to a doctor.

How Long Is Too Long

Most eyelid twitching resolves within a few weeks once you improve sleep, reduce caffeine, and lower stress. If the twitch persists beyond a few days despite trying those changes, or if it starts interfering with your vision or daily life, it’s reasonable to have it evaluated. For twitches that continue beyond six months, doctors typically order an MRI to rule out any structural issues. In persistent cases that don’t respond to lifestyle changes, targeted injections can be used to relax the overactive muscle and stop the twitching.

For the vast majority of people, though, a twitching eyelid is your body’s way of telling you it needs more sleep, less caffeine, or a break from stress. Address those, give it a couple of weeks, and it will likely resolve on its own.