That involuntary flutter of your eyelid can be maddening — especially when it happens repeatedly throughout the day. The good news is that eye twitching is almost always harmless and has specific, fixable causes. Here are the 7 most common reasons and what to do about each one.

What Causes Eye Twitching?

Eye twitching (medically called myokymia) is caused by the orbicularis oculi muscle around the eye contracting involuntarily. The most common triggers are: fatigue, caffeine, stress, eye strain, dry eyes, magnesium deficiency, and alcohol. In rare cases, persistent twitching can signal a neurological issue.

1 Fatigue and Sleep Deprivation

Easy Fix

Sleep deprivation is the number one cause of eye twitching. When you are tired, your nervous system loses some of its fine-tuned control over involuntary muscle contractions. The eyelid muscle is particularly sensitive to this effect and is often the first place twitching appears when you are running on insufficient sleep.

Fix: Prioritize 7-8 hours of sleep. If your twitch starts on a day when you slept poorly, this is almost certainly the cause. One night of good sleep often stops the twitch completely.

2 Too Much Caffeine

Easy Fix

Caffeine is a stimulant that increases the excitability of neurons throughout your nervous system. High doses or sensitivity to caffeine can lower the threshold for spontaneous muscle firing, leading to twitching. The eyelid is a particularly fine muscle and shows this effect earlier than larger muscle groups.

Fix: Try reducing your daily caffeine intake by half for 1-2 weeks and observe whether the twitching reduces. Also cut off caffeine intake after 2 PM to avoid stimulating your nervous system in the evening.

3 Stress

Medium Fix

Psychological stress activates the sympathetic nervous system and releases adrenaline, increasing the overall excitability of your nervous system. Under stress, your body is primed for rapid action, which means your muscles are more easily triggered into spontaneous contraction.

Fix: Identify your main stress source. Short-term techniques like deep breathing (inhale for 4 counts, hold for 7, exhale for 8) can calm the nervous system within minutes. Long-term, regular exercise is one of the most effective stress regulators available.

4 Eye Strain from Screens

Easy Fix

Hours of staring at a screen without breaks causes fatigue in the muscles that control eye movement and focus. The orbicularis oculi responds to this surrounding muscle fatigue with twitching. Extended screen use also reduces blinking from the normal 15-20 times per minute to as few as 5-7, causing dry eye that further irritates the eyelid.

Fix: Apply the 20-20-20 rule: every 20 minutes, look at something 20 feet away for 20 seconds. Consciously blink more when using screens. Use artificial tears if your eyes feel gritty or dry.

5 Dry Eyes

Easy Fix

Dry eye syndrome irritates the cornea and conjunctiva, sending continuous low-level nerve signals to the surrounding eyelid muscles. This persistent low-level stimulation can trigger the orbicularis oculi to twitch reflexively. Dry eyes are extremely common, especially in air-conditioned or heated environments, in contact lens wearers, and in people over 40.

Fix: Use preservative-free artificial tears 2-4 times daily. Take screen breaks to allow full blinking. Consider a humidifier in your workspace. If dry eyes are chronic, an eye doctor can assess for meibomian gland dysfunction, which is the root cause in most cases.

6 Magnesium Deficiency

Easy Fix

Magnesium plays a critical role in regulating nerve transmission and muscle contraction. It acts as a natural calcium channel blocker, keeping muscles from over-firing. Low magnesium makes muscles across the body, including the eyelid, more prone to spontaneous twitching and cramps.

Fix: Eat magnesium-rich foods: dark chocolate, almonds, pumpkin seeds, spinach, avocado, and black beans. If diet alone is insufficient, magnesium glycinate or citrate supplements at 200-400mg daily are well-tolerated and often reduce muscle twitching within 1-2 weeks.

Pro Tip: Many people are low in magnesium without knowing it — standard blood tests measure serum magnesium, not cellular magnesium, which can be low even when blood levels appear normal.

7 Alcohol and Dehydration

Easy Fix

Alcohol is both a diuretic and a nervous system disruptor. It depletes magnesium and electrolytes that regulate nerve function, and it disrupts sleep quality, compounding the fatigue-related twitching. Hangovers frequently trigger eye twitches through this combination of dehydration and poor sleep.

Fix: Hydrate well after drinking alcohol. Drink 1 glass of water per alcoholic drink to offset the diuretic effect. If twitching consistently appears after drinking, it is your nervous system telling you to reduce alcohol intake.

When to See a Doctor

See a doctor if: twitching persists for more than 3-4 weeks, spreads to other parts of your face, causes your eye to close completely, or is accompanied by facial drooping or vision changes. These are rare but can indicate a neurological condition called hemifacial spasm that is treatable with Botox injections or surgery. In the vast majority of cases, rest, reducing caffeine, and managing stress resolves eye twitching within days.