Your eye is twitching because the thin muscle that circles your eyelid is firing off tiny involuntary contractions, most likely triggered by fatigue, stress, caffeine, or some combination of the three. This is called eyelid myokymia, and it’s the most common facial movement disorder. It’s almost always harmless, usually hits just one lower eyelid, and typically resolves on its own within a few days, though it can occasionally persist for weeks or even months.
What’s Actually Happening in Your Eyelid
The muscle responsible is the orbicularis oculi, a ring-shaped muscle that controls blinking and squinting. During a twitch, small bundles of nerve fibers within this muscle start firing on their own in rapid, semirhythmic bursts, roughly 3 to 8 times per second. Each burst lasts a fraction of a second, with tiny pauses of about 100 to 200 milliseconds between them. That’s what creates the fluttering or pulsing sensation you can feel (and sometimes see) under the skin.
The exact reason nerve fibers start misfiring isn’t fully understood, but the irritation appears to originate in the nerve endings within the muscle itself rather than deeper in the brain. That’s one reason it stays so localized and resolves without treatment.
The Most Common Triggers
A few lifestyle factors account for the vast majority of eyelid twitching episodes:
- Sleep deprivation. Tired muscles are more prone to involuntary firing. Even one or two nights of poor sleep can set it off.
- Stress. Physical and emotional stress both increase muscle tension and nerve excitability throughout the body, including in the delicate muscles around your eyes.
- Caffeine. As a stimulant, caffeine directly increases the likelihood of muscle spasms. Most people can tolerate up to about 400 milligrams per day (roughly two strong cups of coffee), but sensitivity varies. Caffeine also shows up in chocolate, tea, energy drinks, cola, and some over-the-counter medications.
- Screen time. Digital eye strain from prolonged device use is a significant contributor. Research suggests up to 90% of adults who regularly use screens experience some degree of eye strain, and that strain can trigger or prolong twitching.
- Dehydration. When your body is low on fluids, it can disrupt the balance of electrolytes like magnesium, potassium, and calcium that help muscles contract and relax properly. Dehydration also dries out the eye surface, which can increase irritation and blinking.
- Nutritional gaps. Low magnesium or potassium levels specifically have been linked to muscle twitches, including in the eyelids. Foods like bananas, nuts, avocados, and leafy greens can help if your diet is falling short.
Most people who notice an all-day twitch can point to at least two of these factors happening simultaneously. A stressful week plus extra coffee plus not enough sleep is a classic recipe.
How to Stop the Twitch
Since eyelid myokymia is driven by lifestyle triggers, the fix is straightforward: address whichever factors apply to you.
A warm compress can offer immediate relief. Soak a clean washcloth in warm water, wring it out, and hold it gently against your closed eye for five to ten minutes. You can repeat this throughout the day. The warmth relaxes the muscle fibers and increases blood flow to the area.
Cut back on caffeine, especially in the afternoon and evening where it also disrupts sleep quality. If you’re drinking more than two cups of coffee a day, that’s a good place to start. Stay hydrated with water throughout the day, which helps maintain the electrolyte balance your muscles depend on. Artificial tears (available over the counter) can also help if your eyes feel dry or gritty, since surface irritation can feed the twitching cycle.
Prioritize sleep. Keep your bedroom dark, cool, and free of screens. Avoid large meals and alcohol before bed. Even one solid night of rest often stops a twitch that’s been going all day. If stress is a major factor, brief breaks from screens and news, along with time spent with people you enjoy, can lower the baseline tension that keeps the muscle irritable.
When Twitching Signals Something More Serious
Eyelid myokymia is almost always benign, but two related conditions are worth knowing about so you can recognize the difference.
Benign essential blepharospasm is a focal dystonia that affects both eyelids. It starts as increasingly frequent, forceful blinking and can progress over time to the point where your eyes clamp shut involuntarily. Unlike a simple twitch, it involves both sides and produces visible, strong closures rather than a subtle flutter. It disappears during sleep.
Hemifacial spasm starts similarly to myokymia, with intermittent twitching around one eye, but gradually spreads over months or years to involve other muscles on the same side of the face. The spasms last seconds to minutes, worsen with stress and fatigue, and notably continue during sleep, which distinguishes them from blepharospasm.
Simple myokymia can occasionally be an early sign of either condition, but far more commonly it stays isolated to one eyelid and resolves on its own.
Signs You Should Get It Checked
The Mayo Clinic recommends seeing a healthcare provider if your twitching doesn’t resolve within a few weeks, or sooner if you notice any of the following:
- Your eyelid closes completely with each twitch
- You have difficulty opening the eye
- The affected area feels weak or stiff
- Twitching spreads to other parts of your face or body
- Your eye is red, swollen, or producing discharge
- Your eyelid is drooping
For persistent cases that don’t respond to lifestyle changes, small injections of botulinum toxin into the affected eyelid muscle can provide relief lasting 12 to 18 weeks. This is reserved for severe or chronic cases and carries minor temporary side effects like slight lid drooping.
For the vast majority of people whose eye has been twitching all day, though, the answer is simpler: sleep more, drink less coffee, step away from your screen, and give it a day or two. The twitch is annoying, but it’s your body’s way of telling you it needs a break.

