The most likely reason your eye keeps twitching is a harmless condition called eyelid myokymia, a fine, involuntary fluttering of the muscle that circles your eye. It almost always affects just one eye, usually the lower lid, and it’s the most common facial movement disorder. The usual culprits are stress, too much caffeine, not enough sleep, or spending long hours on screens. In most cases, the twitching comes and goes for a few days and resolves on its own, though it can sometimes persist for weeks or even months.
What’s Actually Happening in Your Eyelid
Your eyelid is controlled by a thin ring of muscle called the orbicularis oculi. During a twitch, small bundles of fibers in that muscle fire spontaneously, producing tiny, rhythmic contractions you can feel but other people usually can’t see. There’s no weakness or damage involved. The muscle is simply misfiring in short bursts, often intermittently throughout the day.
The Most Common Triggers
Stress is the single most frequent trigger. Mental or physical stress causes your body to release cortisol, which acts as a stimulant and can make muscles more excitable, including the small fibers in your eyelid. If you’ve been under more pressure than usual at work, sleeping poorly, or dealing with anxiety, that alone can explain a persistent twitch.
Caffeine overstimulates eye muscles directly. If you’ve recently increased your coffee, energy drink, or tea intake, that’s worth examining. Even a modest bump in consumption can be enough to set off twitching in some people.
Sleep deprivation compounds both of these. Fatigued muscles are more prone to involuntary contractions, and poor sleep also raises stress hormones, creating a feedback loop that keeps the twitch going.
Screen Time and Eye Strain
If your twitching started during a period of heavy computer or phone use, digital eye strain is a likely contributor. When you look at a screen, you blink about a third less often than normal, and you may not fully close your eyes during those reduced blinks. Your eyes are also constantly focusing and refocusing to read low-contrast text on a bright background. All of that fatigues the muscles around your eyes and dries out the surface, both of which can trigger or prolong twitching.
Does Magnesium Deficiency Cause It?
You’ll find this claim everywhere online, but the clinical evidence is weak. A cross-sectional study comparing 72 patients with eyelid twitching to 197 controls found no significant difference in magnesium levels between the two groups. Calcium and phosphate levels were also the same. While magnesium plays a real role in muscle function, low magnesium doesn’t appear to be a meaningful driver of eyelid twitching specifically. Taking a supplement is unlikely to hurt, but don’t expect it to be a magic fix.
How Long It Lasts and What Helps
Most episodes bother you on and off for several days, then fade. Some last a few weeks. The most effective things you can do are straightforward:
- Sleep more. Even one or two extra hours a night can make a noticeable difference.
- Cut back on caffeine. Try reducing by one or two cups a day and see if the twitching eases within a few days.
- Use lubricating eye drops. Keeping your eyes moist reduces the irritation that can perpetuate twitching, especially if you spend a lot of time on screens.
- Manage stress. Exercise, breaks during the workday, or anything that lowers your baseline tension can help.
- Take screen breaks. Following the 20-20-20 rule (every 20 minutes, look at something 20 feet away for 20 seconds) gives your eye muscles a chance to relax.
You don’t need to do all of these at once. Often addressing just the one or two triggers most relevant to your life is enough to stop the twitching within a week.
When Twitching Points to Something Else
Simple eyelid twitching is almost never a sign of a serious condition, but there are two related disorders worth knowing about so you can tell the difference.
Blepharospasm is a condition where both eyelids start blinking forcefully and involuntarily. It typically begins as frequent blinking that gradually becomes stronger over time. In severe cases, people can’t keep their eyes open at all. If your twitching has evolved into forceful, squeezing blinks affecting both eyes, that’s a different situation from a simple twitch.
Hemifacial spasm starts as intermittent twitching around one eye but slowly spreads over months or years to involve other muscles on the same side of the face, like the cheek or mouth. Unlike simple myokymia, hemifacial spasms continue during sleep and tend to worsen with stress and fatigue.
Simple myokymia can occasionally be an early sign of either condition, but it far more commonly stays isolated to one eyelid and resolves. The key differences to watch for: twitching that spreads beyond the eyelid to your cheek or mouth, forceful eye closure you can’t control, twitching that affects both eyes simultaneously, or any accompanying facial drooping or weakness. Very rarely, persistent eye twitching accompanied by other neurological symptoms can be associated with conditions like multiple sclerosis, Parkinson’s disease, or Bell’s palsy, but in those cases, the twitching is almost always accompanied by other obvious signs.
If your twitch lasts longer than one week without improvement, or if you notice any of the patterns described above, it’s worth getting evaluated. For the vast majority of people, though, the answer is simpler: you’re tired, stressed, caffeinated, or staring at screens too much, and your eyelid is letting you know.