Most eye twitches stop on their own within a few days or weeks, but you can speed things along by addressing the trigger behind it. That involuntary fluttering in your eyelid is called myokymia, and it’s caused by tiny, rapid contractions of the muscle that circles your eye. The contractions fire in quick bursts, pulsing three to eight times per second, which is why the sensation feels like a fine ripple rather than a full blink. It’s almost always harmless, but it can be incredibly annoying.
What Triggers an Eye Twitch
The exact mechanism behind eyelid twitching isn’t fully understood, but the known triggers are well documented. The most common culprits are:
- Caffeine excess
- Stress
- Fatigue or poor sleep
- Eye strain (especially from screens)
- Alcohol
- Nicotine
- Dry or irritated eyes
- Bright light, wind, or air pollution
Most people can trace their twitch to at least one of these. Often it’s a combination: a stressful week at work plus too much coffee plus not enough sleep. Identifying which triggers are active in your life right now is the fastest path to making the twitch stop.
Cut Back on Caffeine and Alcohol
Caffeine is the single most commonly overlooked trigger. If your eyelid started twitching during a period when your coffee, tea, or energy drink intake crept up, that’s probably not a coincidence. You don’t necessarily have to quit caffeine entirely. Try reducing your intake by one or two cups a day and see if the twitch resolves within a few days. Alcohol has a similar excitatory effect on nerve signaling, so cutting back on that as well can help.
Reduce Screen Time and Eye Strain
Prolonged screen use forces the small muscles around your eyes to work continuously, and that sustained effort can tip them into involuntary twitching. The simplest countermeasure is the 20-20-20 rule: every 20 minutes, look at something about 20 feet away for 20 seconds. This gives the focusing muscles in and around your eyes a brief reset.
Beyond that, check your setup. A screen that’s too bright relative to the room, or positioned so you’re looking slightly upward, increases strain. Lowering screen brightness to match the ambient light and keeping the monitor at or slightly below eye level can make a meaningful difference over the course of a workday.
Address Sleep and Stress
Fatigue and stress are the two triggers that tend to work together. When you’re sleep-deprived, your nervous system becomes more excitable, making involuntary muscle contractions more likely. Stress amplifies this by keeping your body in a heightened state of alertness. If you’ve been sleeping fewer than seven hours or going through a particularly stressful stretch, improving your sleep is one of the most effective things you can do for a persistent twitch.
This doesn’t require a complete lifestyle overhaul. Even adding 30 to 60 minutes of sleep for a few nights, or taking short breaks during the day to decompress, can be enough to let the twitch resolve.
Try a Warm Compress
For immediate relief, a warm compress placed over the twitching eye can help relax the muscle. Soak a clean cloth in warm water, wring it out, and hold it gently against your closed eyelid. Research on eyelid treatments suggests that about five minutes of sustained warmth is the sweet spot for relaxing the tissue. You can repeat this a few times a day. Some people find that gently massaging the eyelid with a fingertip afterward provides additional relief.
Use Lubricating Eye Drops
Dry, irritated eyes are an underappreciated trigger for twitching. If your eyes feel gritty, tired, or dry, especially after long stretches of screen time or in air-conditioned environments, the surface irritation alone can provoke the muscle into twitching. Over-the-counter artificial tears add moisture and reduce friction on the cornea, which can calm things down. They also help flush out dust and other small irritants that may be contributing to the problem.
If you wear contact lenses or spend most of your day in dry indoor air, using artificial tears a few times a day is a reasonable first step even before addressing other triggers.
What About Magnesium?
You’ll find magnesium recommended for eye twitching all over the internet, but the clinical evidence is surprisingly thin. 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. That doesn’t mean magnesium plays zero role in muscle function (it does), but it suggests that most people with a twitching eyelid aren’t magnesium-deficient. Taking a supplement is unlikely to hurt, but don’t count on it as a fix if you haven’t addressed the lifestyle triggers first.
When a Twitch Becomes Something Else
A standard eye twitch affects one eyelid, usually the lower one, and comes and goes. It’s a fine fluttering you can feel but other people often can’t see. This is benign myokymia, and it resolves on its own in the vast majority of cases.
There are two rarer conditions worth knowing about. Blepharospasm involves both eyes and causes forceful, sustained squeezing of the eyelids rather than a subtle flutter. It can eventually interfere with your ability to keep your eyes open. Hemifacial spasm starts near the eye but gradually spreads to involve other muscles on the same side of the face, pulling at the cheek or mouth. Both of these are distinct from a common twitch in that they get progressively worse over time rather than coming and going.
For people with blepharospasm or hemifacial spasm, injections of botulinum toxin into the affected muscles are the standard treatment, with a 98% success rate according to UCLA Health data. The effects last up to 12 weeks before needing to be repeated. But these conditions are uncommon, and most people reading this article have simple myokymia that will respond to the lifestyle changes above.
How Long It Takes to Stop
Most eye twitches resolve within a few days to a few weeks. If you actively reduce your caffeine, improve your sleep, and manage screen time, you’ll typically notice improvement within days. Some twitches are stubborn and linger for a couple of weeks even after you’ve addressed the obvious triggers, which is normal.
If your twitch hasn’t improved after a few weeks, or if it starts spreading beyond the eyelid, causes the eye to close completely, or is accompanied by redness, swelling, or discharge, it’s worth getting evaluated. These patterns suggest something other than simple myokymia and may need targeted treatment.

