Most eyelid twitching stops on its own within a few days to a few weeks, and the fastest way to get rid of it is to address the trigger behind it, usually some combination of poor sleep, too much caffeine, or stress. The twitch itself is called myokymia, a tiny involuntary spasm of the muscle fibers in your upper or lower eyelid. It’s almost always harmless, but it can be incredibly annoying. Here’s what actually works to make it stop.
Why Your Eyelid Is Twitching
Your eyelids connect directly to your brain through the facial nerve, one of twelve cranial nerves. When something disrupts the signaling along that nerve, the small muscles in your eyelid can fire on their own, producing that fluttering or pulsing sensation. The disruption is usually minor and temporary.
The most common triggers are:
- Sleep deprivation or fatigue
- Excess caffeine
- Stress
- Dry eyes
- Nicotine use
- Physical overexertion
Most people can point to at least one of these when a twitch starts. Often it’s two or three stacking up at the same time, like a stressful week at work combined with late nights and extra coffee to compensate.
How to Stop an Active Twitch
When your eyelid is mid-twitch and you want immediate relief, close the affected eye and press a warm, damp cloth gently against the lid for a minute or two. The warmth relaxes the small muscle fibers causing the spasm. You can also try gently pulling the eyelid outward with your fingertip, which can interrupt the nerve signal driving the twitch. Neither technique is a permanent fix, but they often settle the spasm long enough to break the cycle.
Cut Back on Caffeine
Caffeine is one of the most reliable triggers for eyelid twitching because it directly stimulates your nervous system and can amplify faulty nerve signals. If you’re having more than two or three cups of coffee a day, or if you’ve recently increased your intake, that’s worth addressing first. You don’t necessarily need to quit entirely. Try cutting your intake by one cup a day for a few days and see if the twitching improves. Don’t forget to count tea, energy drinks, and sodas in your total.
Prioritize Sleep
Fatigue and sleep deprivation show up on virtually every list of myokymia triggers, and for good reason. When you’re underslept, your nervous system becomes more excitable, which makes misfiring in small muscles more likely. If your twitch appeared during a stretch of poor sleep, getting a few solid nights of seven to eight hours is often enough to resolve it completely. This is the single change that people report helping the most.
Address Dry Eyes
Dry, irritated eyes can trigger twitching because the surface of the eye and the eyelid muscles share nerve pathways. When your cornea is irritated, the surrounding muscles can react with involuntary contractions. Over-the-counter artificial tears (lubricating eye drops) can help, especially if you wear contact lenses, live in a dry climate, or spend long hours looking at screens. Use preservative-free drops if you’re applying them more than a few times a day, since the preservatives in regular drops can cause their own irritation over time.
Reduce Screen Time and Eye Strain
Staring at a screen for extended periods reduces your blink rate, which dries out your eyes and fatigues the muscles around them. As little as two continuous hours of daily screen time increases the likelihood of eye strain symptoms. If your job keeps you at a computer all day, the most practical countermeasure is the 20-20-20 rule: every 20 minutes, look at something at least 20 feet away for about 20 seconds. This gives the focusing muscles in and around your eyes a brief reset.
Building in a 15-minute break from screens every two hours also helps. During those breaks, close your eyes or focus on something distant. If you can reduce non-essential screen time to under four hours daily, that’s ideal, though not realistic for everyone.
Manage Stress
Stress increases the baseline excitability of your nervous system, making twitches more likely to start and harder to stop. The tricky part is that eyelid twitching itself can become a source of stress, creating a feedback loop. Any stress-reduction strategy that works for you is worth trying. Regular exercise, better sleep (which also addresses fatigue), breathing exercises, or simply identifying and reducing the source of stress can all help break the cycle. The twitch often fades once the stressful period passes.
What About Magnesium?
You’ll find plenty of advice online recommending magnesium supplements for eyelid twitching. The idea is intuitive since magnesium plays a role in muscle and nerve function. But the clinical evidence is weak. A study that directly tested whether low magnesium levels cause eyelid twitching found no significant difference in magnesium, calcium, or phosphate levels between people with twitching and those without. Taking a magnesium supplement is unlikely to hurt you, but don’t expect it to be a reliable fix.
How Long Eyelid Twitching Lasts
A typical episode of eyelid myokymia lasts a few days to a few weeks. Some people experience it on and off for a couple of months before it resolves. The timeline depends largely on whether the underlying trigger persists. If you’re sleeping poorly and drinking too much coffee throughout that entire period, the twitch is more likely to linger. Once you address the trigger, the twitching usually stops within a few days.
Signs That Something More Serious Is Going On
Ordinary eyelid twitching affects one eye at a time, stays confined to the eyelid, and comes and goes. A different condition called benign essential blepharospasm starts similarly but gradually worsens over time, eventually affecting both eyes. Early signs include increased blinking frequency and eye irritation that gets worse with wind, sunlight, or air pollution. As it progresses, the spasms become strong enough to force both eyes shut, significantly impairing vision. This condition typically appears in mid- to late adulthood.
Another condition to be aware of is hemifacial spasm, where twitching starts near the eye but spreads to other muscles on the same side of the face, including the cheek, mouth, or jaw. If your twitching is spreading beyond the eyelid, becoming more frequent, or has persisted for more than three months despite addressing common triggers, it’s worth getting evaluated.
For blepharospasm and hemifacial spasm, the most effective treatment is targeted injections of botulinum toxin into the affected muscles. In a long-term study following 87 patients over an average of 10 years, 90% experienced good to full improvement with these injections. The effect kicks in within several days and lasts three to four months before another round is needed. But these conditions are uncommon. The overwhelming majority of eyelid twitches are benign and temporary.

