A twitching right eye is almost always a harmless, temporary muscle spasm that resolves on its own within a few days or weeks. The medical term is eyelid myokymia, and it involves tiny, involuntary contractions of the muscle that circles your eye. It can feel like a fluttering or pulsing sensation under the skin, and while it’s noticeable to you, other people usually can’t see it happening.
The twitch affects the right and left eye equally. There’s no medical significance to which side is twitching. What matters more is how long it lasts, what’s triggering it, and whether it spreads beyond the eyelid.
Why Your Eyelid Is Twitching
The exact mechanism behind eyelid myokymia isn’t fully understood, but it involves misfiring signals along the facial nerve that controls the ring-shaped muscle around your eye. Small bundles of muscle fibers contract in a wave-like pattern, creating that distinctive fluttering sensation. Think of it like a localized muscle cramp, similar to the random twitches you might feel in your calf or thumb.
The most common triggers are everyday lifestyle factors:
- Fatigue. Sleep deprivation is one of the top causes. The nerve signals controlling your eyelid muscles become less stable when you’re running on too little rest.
- Stress. Physical or emotional stress increases nervous system activity, which can set off involuntary muscle contractions throughout the body, including the eyelids.
- Caffeine. Coffee, energy drinks, and tea can overstimulate the muscles around your eye and make twitching more frequent or intense.
- Alcohol. Even moderate drinking can disrupt sleep quality and change how your nerves fire, both of which contribute to twitching.
Most people who experience a persistent twitch can trace it to one or more of these factors. The twitch often shows up during a particularly stressful week at work, after several nights of poor sleep, or during a period of heavier caffeine use.
Screen Time and Dry Eyes
Prolonged screen use is an increasingly common trigger. You normally blink about 15 times per minute, but when staring at a phone, computer, or tablet, that rate drops by roughly half. Less blinking means your eyes dry out faster, and dry, irritated eyes can provoke the eyelid muscle into spasming.
This isn’t caused by blue light, despite popular belief. The American Academy of Ophthalmology links screen-related eye discomfort to device overuse and reduced blinking, not to any particular wavelength of light. If you spend hours at a screen daily, the combination of eye strain and dryness creates ideal conditions for twitching to start and persist.
The 20-20-20 rule helps: every 20 minutes, look at something 20 feet away for 20 seconds. Consciously blinking more often while working at a screen also reduces dryness.
Does Magnesium Deficiency Cause It?
This is one of the most widely repeated claims about eye twitching, but the evidence doesn’t support it. A clinical study published in the Korean Journal of Health Promotion compared blood levels of magnesium, calcium, and phosphate in people with eyelid twitching against those without. There were no significant differences between the two groups. The researchers concluded that eyelid myokymia is not related to serum magnesium levels.
That doesn’t mean nutrition is irrelevant to muscle function in general, but reaching for a magnesium supplement specifically to stop an eye twitch is unlikely to make a difference. Your time is better spent addressing sleep, stress, and caffeine intake first.
How Long It Typically Lasts
Most eye twitching episodes resolve within a few days to a few weeks. Some people experience a twitch that comes and goes over several days, while others have a nearly constant flutter for a week or two before it stops. Both patterns are normal.
The most effective things you can do to speed recovery are straightforward: get more sleep, cut back on caffeine, reduce screen time where possible, and manage stress. Some people find that gently pressing a warm, damp cloth against the closed eyelid for a few minutes provides temporary relief by relaxing the muscle.
If the twitching hasn’t resolved after a few weeks, that’s a reasonable point to bring it up with a doctor. Most of the time, even prolonged twitching turns out to be benign, but a longer duration warrants a closer look.
When Twitching Signals Something More Serious
In rare cases, what starts as simple eyelid twitching can be an early sign of a more significant neurological condition. Two conditions are worth knowing about.
Blepharospasm
This condition goes well beyond a subtle flutter. Blepharospasm causes frequent, forceful blinking and uncontrollable eye closure that can affect both eyes. In severe cases, a person may be unable to open their eyes for several minutes at a time. The pattern often changes throughout the day, with fewer symptoms in the morning and worsening later when fatigue or stress builds. Bright light and social interactions can also make it worse. Blepharospasm is a chronic condition, but it’s treatable with injections that relax the overactive muscles.
Hemifacial Spasm
This condition causes spasms similar to those around the eye, but it only affects one side of the face and typically spreads to involve other muscles on that same side, including the cheek and mouth. One common cause is a blood vessel in the brain pressing against the facial nerve, which irritates the nerve and triggers involuntary contractions. It can also develop after facial nerve damage heals improperly.
The key differences that separate these conditions from ordinary twitching: the spasms are strong enough to close your eye or pull your facial muscles, they persist for months rather than weeks, and they progressively worsen or spread to other parts of your face. A simple, subtle flutter that stays confined to one eyelid is almost certainly benign myokymia, not either of these conditions.
Signs That Need Medical Attention
A few specific red flags set concerning twitching apart from the ordinary kind. You should see a doctor if the twitching forces your eye shut completely, spreads to other parts of your face, is accompanied by drooping of the eyelid, causes redness or swelling of the eye, or persists without improvement beyond a few weeks. In rare situations, imaging of the facial nerve pathway may be recommended to rule out structural causes, but this is uncommon and reserved for cases with additional neurological symptoms.
For the vast majority of people searching this question, the answer is reassuring: your right eye is twitching because you’re tired, stressed, caffeinated, or staring at screens too long. Address those factors, and the twitch will almost certainly stop on its own.

