Eyelid twitching is almost always caused by minor, temporary triggers like fatigue, stress, caffeine, or too much screen time. The medical term is myokymia, and it happens when the facial nerve, which connects your eyelids directly to your brain, sends faulty signals that make the tiny muscles around your eye contract involuntarily. For most people, the twitching is annoying but harmless, and it resolves on its own within days or weeks.
How the Twitch Actually Works
Your eyelids are controlled by your facial nerve, the seventh of twelve cranial nerves that run directly from your brain. When something disrupts the signaling along this nerve, the muscles around your eye fire on their own, producing that familiar fluttering sensation. The twitch is typically unilateral, meaning it affects one eye at a time, and the spasms are small and irregular rather than forceful or rhythmic.
Most episodes involve the lower eyelid, though the upper lid can twitch too. You might feel it constantly for a few minutes, or it might come and go throughout the day. Other people usually can’t see it happening, even though it feels obvious to you.
The Most Common Triggers
The everyday causes of eyelid twitching share a common thread: they increase nervous system excitability or fatigue the muscles around your eyes.
- Lack of sleep. Sleep deprivation is one of the most reliable triggers. Even a few nights of poor sleep can be enough to start the twitching.
- Stress. Physical and emotional stress raises your baseline level of nervous system activity, making involuntary muscle firing more likely.
- Caffeine and alcohol. Both are stimulants to your nervous system in different ways. Caffeine directly increases nerve excitability, while alcohol disrupts sleep quality, which compounds the problem.
- Eye strain. Prolonged focus on screens, reading in dim light, or uncorrected vision problems all fatigue the muscles around your eyes.
- Dry or irritated eyes. When your eye surface is dry or inflamed, the nerves around your eyelid can become hypersensitive. This is common with contact lens wear, allergies, or windy environments.
Screen Time and Eye Fatigue
Digital eye strain deserves its own mention because it’s so common. As little as two hours of continuous screen time per day increases your risk of eye fatigue symptoms. Part of the problem is that you blink far less when staring at a screen. Normally you blink regularly throughout the minute, but screen use cuts your blink rate by roughly two-thirds. You may also not close your eyes fully when blinking during screen work. The result is drier, more fatigued eyes, which sets the stage for twitching.
The 20-20-20 rule helps: every 20 minutes, look at something 20 feet away for 20 seconds. Building in a 15-minute break every two hours and keeping your screen slightly below eye level (about 4 to 5 inches) also reduces the strain on your eye muscles. Reducing glare from windows or overhead lighting makes a difference too, since your eyes work harder when there’s low contrast between text and the screen background.
Does Magnesium Deficiency Cause It?
This is one of the most persistent beliefs about eyelid twitching, but the evidence doesn’t support it. A study that compared blood levels of magnesium, calcium, and phosphate in people with eyelid twitching versus those without found no significant differences between the two groups. Despite magnesium’s well-known role in muscle function, low levels don’t appear to be driving most cases of myokymia. If you’re eating a reasonably varied diet, a magnesium supplement is unlikely to stop a twitching eyelid.
Medications That Can Trigger Twitching
Certain medications list eyelid twitching as a side effect. Drugs used to treat Parkinson’s disease are the most commonly cited. If your twitching started shortly after beginning or changing a medication, that connection is worth raising with your prescriber.
How to Stop a Twitching Eyelid
Since most eyelid twitching is driven by fatigue and overstimulation, the fixes are straightforward. Prioritize sleep, cut back on caffeine, and reduce screen time where possible. These changes alone resolve most cases within a few days to a couple of weeks.
When the twitching is persistent and bothersome in the moment, applying a warm washcloth to the affected eye and gently massaging the area can help relax the contracting muscles. The warmth increases blood flow and eases tension in the small muscles around the lid. There’s no strict protocol for how long to hold it there; a few minutes of gentle warmth is typically enough to provide temporary relief.
If dry eyes seem to be contributing, making a conscious effort to blink more often during screen work and using lubricating eye drops can address the underlying irritation.
When Twitching Signals Something More Serious
Benign eyelid twitching is extremely common, but a few related conditions look different and require medical attention. Blepharospasm is a condition where both eyelids develop forceful, frequent spasms that can progress over time, sometimes making it difficult to keep the eyes open. Unlike ordinary myokymia, blepharospasm affects both sides simultaneously and the contractions are stronger and more rhythmic.
Hemifacial spasm is another possibility, characterized by involuntary contractions that spread beyond the eyelid to involve one entire side of the face. This condition is sometimes caused by a blood vessel or growth compressing the facial nerve.
The signs that your twitching has moved beyond the benign category include: it hasn’t resolved within a few weeks, your eyelid closes completely with each twitch, you have difficulty opening the eye, the twitching has spread to other parts of your face or body, the area feels weak or stiff, your eyelid is drooping, or the eye itself is red, swollen, or producing discharge. Any of these patterns warrants a clinical evaluation. For persistent cases that are confirmed as benign but disruptive to daily life, targeted injections can temporarily block the nerve signals causing the spasms, stopping the twitching until the effect wears off after several months.

