Under-eye twitching is almost always caused by tiny, involuntary contractions in the muscle fibers beneath your lower eyelid. The medical term is myokymia, and in most cases it resolves on its own once you address the trigger. The four most common triggers are fatigue, stress, caffeine, and excessive alcohol intake. Tackling those first will stop the twitching for the vast majority of people.
Why Your Eye Is Twitching
The small muscles around your eye can start firing on their own when the nerves controlling them become irritated. This irritation typically comes from being overtired, overstimulated, or both. Caffeine and alcohol are the two dietary factors most consistently linked to eyelid twitching. Nicotine, whether from smoking, vaping, or chewing tobacco, can also contribute.
Mineral balance plays a role too. Magnesium helps regulate nerve signaling, and when levels are low, calcium flows more freely into nerve cells. That overexcites the muscle nerves, which can trigger twitches, tremors, and cramps throughout the body, including the delicate muscles under your eyes. Stress and caffeine can make this worse even when your magnesium levels are borderline rather than truly deficient.
Dry or irritated eyes are another underappreciated trigger. If your eyes feel gritty, tired, or dry alongside the twitching, the surface irritation itself may be driving the spasms.
Cut Back on Caffeine and Alcohol First
If you’re drinking more coffee, energy drinks, or alcohol than usual, that’s the easiest place to start. You don’t necessarily need to quit entirely. Cutting back by one or two servings a day is often enough to calm the nerve irritation within a few days. Pay attention to hidden sources of caffeine like tea, chocolate, pre-workout supplements, and some medications.
Alcohol disrupts sleep quality even when it helps you fall asleep faster, so it can contribute to twitching through two pathways at once: direct nerve stimulation and poor rest.
Prioritize Sleep
Fatigue is the single most common factor behind eyelid myokymia. The twitching often shows up during a stretch of short nights or disrupted sleep, and for many people, getting one or two solid nights of rest is all it takes to stop it. If you’ve been averaging less than seven hours, that’s the likely culprit. Even napping during the day can help in the short term while you work on improving your nighttime routine.
Reduce Screen Time and Eye Strain
Spending long stretches staring at a computer, tablet, or phone forces the small muscles around your eyes to work harder than they would during normal distance viewing. Over hours, this leads to digital eye strain, which can trigger or worsen twitching. Blue light from screens and LED lighting adds to the strain over time.
The simplest fix is the 20-20-20 rule: every 20 minutes, look at something 20 feet away for 20 seconds. This lets the focusing muscles in and around your eyes relax and reset. If you work at a computer all day, this one habit can make a noticeable difference within a week. Blue-light-filtering glasses or screen coatings may also help if you’re spending many hours on digital devices.
Try a Warm Compress
For immediate relief, place a warm, damp washcloth over the twitching eye for a few minutes. The warmth relaxes the contracting muscle fibers and increases blood flow to the area. You can gently massage the skin beneath the eye at the same time. This won’t fix the underlying trigger, but it can interrupt a twitching episode and provide temporary comfort while you work on the lifestyle changes that address the root cause.
Address Dry Eyes
If your eyes feel dry, scratchy, or tired alongside the twitching, the surface irritation may be contributing to the problem. Over-the-counter lubricating eye drops (artificial tears) can help calm the irritation. You’ll also want to blink more deliberately when using screens, since people tend to blink far less often while focused on a display. A humidifier in your bedroom or office can help if you live in a dry climate or spend time in air-conditioned spaces.
Consider Your Magnesium Intake
Magnesium deficiency doesn’t just cause eye twitching. It can also cause muscle cramps, fatigue, and weakness throughout the body. If you’re noticing twitches in other muscles or general tiredness alongside the eye spasms, low magnesium could be a factor. Foods rich in magnesium include dark leafy greens, nuts, seeds, beans, and whole grains. Magnesium supplements are widely available, though getting enough through food is generally preferable since your body absorbs it more effectively that way.
Managing Stress
Stress is one of the four primary triggers, and it’s also the hardest one to simply “cut back on.” What helps is recognizing that stress-related twitching is your body giving you a concrete signal that your nervous system is running hot. Exercise, deep breathing, adequate sleep, and reducing caffeine all work together here. Many people find that the twitching is the first symptom to appear during stressful periods and the last to go away, so give yourself a week or two of consistent changes before expecting it to stop completely.
When Twitching Needs Medical Attention
Most under-eye twitching resolves within a few days to a few weeks. You should see a doctor if the twitching persists beyond a few weeks, or if you notice any of these additional signs:
- Your eyelid closes completely with each twitch
- You have difficulty opening the eye
- Twitching spreads to other parts of your face or body
- The area around your eye feels weak or stiff
- Your eye is red, swollen, or has discharge
- Your eyelid is drooping
These symptoms can indicate conditions beyond simple myokymia that require further evaluation. In severe or persistent cases, small injections of botulinum toxin into the affected eyelid muscles can provide relief lasting 12 to 18 weeks. But this is reserved for cases that don’t respond to the lifestyle changes above, which work for the vast majority of people.

