What Makes My Eye Twitch? Causes and How to Stop It

Eye twitching is caused by tiny, uncontrolled bursts of electrical activity firing through the muscle fibers in your eyelid. In the vast majority of cases, it’s completely harmless and triggered by everyday factors like stress, poor sleep, or too much caffeine. The twitching usually affects just one eye, comes and goes over a few hours to a few days, and resolves on its own.

What’s Happening in Your Eyelid

The thin, circular muscle that wraps around your eye socket is responsible for blinking and squeezing your eyelids shut. When small sections of that muscle receive repetitive, uncontrolled electrical signals from nearby nerves, you get a flutter or pulse you can feel but that’s usually invisible to anyone else. There’s nothing structurally wrong with the nerve or the muscle. The signals are essentially misfiring, causing the muscle to contract in short bursts without relaxing fully between them.

Doctors call this eyelid myokymia, and electrophysiology studies show it involves undulating muscle spasms with impaired relaxation, even though the nervous system itself appears normal. It can happen in any muscle in the body, but the eyelid muscles are especially thin and sensitive, which is why you notice it there more than anywhere else.

The Most Common Triggers

Research consistently points to the same handful of lifestyle factors behind most episodes of eye twitching: stress, fatigue, and caffeine. These aren’t vague associations. Stress hormones increase nerve excitability throughout your body. Sleep deprivation reduces your nervous system’s ability to regulate those signals. Caffeine is a direct stimulant that can amplify both effects.

Screen time is another well-documented trigger. Staring at a screen for extended periods forces the muscles around your eyes into prolonged contraction. When the muscle doesn’t get a chance to fully relax, it becomes more prone to the kind of misfiring that produces twitching. If your eye starts twitching during a long stretch of computer work, that’s likely why.

Other common triggers include:

  • Alcohol, which disrupts sleep quality and dehydrates you
  • Nicotine, including smoking, vaping, and chewing tobacco
  • Dry or irritated eyes, especially from wind, dust, or contact lens wear
  • Bright light, which causes the eyelid muscles to work harder

Electrolytes and Mineral Imbalances

Your muscles need calcium, magnesium, and potassium to contract and relax properly. Calcium ions are the fundamental trigger for muscle contraction in every striated muscle in your body, binding to proteins on muscle fibers to initiate movement. When levels of these minerals drop, muscles throughout your body can cramp, spasm, or twitch, and the eyelid is no exception.

You don’t need a dramatic deficiency for this to happen. Mild imbalances from dehydration, skipping meals, or heavy sweating can be enough. If your eye twitching coincides with muscle cramps or general weakness elsewhere, an electrolyte issue is worth considering.

Medications That Can Cause Twitching

Certain medications are known to trigger eyelid twitching as a side effect. Topiramate (used for seizures and migraines), flunarizine (a calcium channel blocker), and clozapine (an antipsychotic) have all been linked to eyelid myokymia. There’s even a documented case of metformin, a common diabetes and PCOS medication, causing persistent unilateral eyelid twitching that resolved when the drug was stopped and returned when it was restarted.

If your twitching started within weeks or months of beginning a new medication, that connection is worth raising with whoever prescribed it. In most cases, switching to an alternative resolves the problem.

How to Stop It

Most eye twitching responds to simple changes. Cut back on caffeine, prioritize sleep, and take regular breaks from screens. The 20-20-20 rule works well here: every 20 minutes, look at something 20 feet away for 20 seconds. If your eyes are dry or irritated, lubricating eye drops can reduce the surface irritation that contributes to twitching. Reducing alcohol and nicotine intake also helps.

Stress management matters more than it might seem. Even a few minutes of deliberate relaxation, whether that’s deep breathing, a walk, or stepping away from whatever is producing the stress, can interrupt the cycle of nerve excitability that keeps the twitch going.

For persistent cases that don’t respond to lifestyle changes, the main clinical treatment is botulinum toxin injections around the eye. These temporarily block the nerve signals reaching the eyelid muscles, stopping the twitching entirely. The injections go just under the skin around the eye, not into the eye itself. Most people notice the effect within about a week, and it lasts roughly 79 days on average before wearing off.

When Twitching Signals Something Else

Benign eyelid twitching is by far the most common explanation, but a few patterns suggest something more serious is going on. The key distinction is between myokymia, which produces a gentle, rippling flutter in part of one eyelid, and conditions that involve stronger, more widespread muscle contractions.

Hemifacial spasm causes forceful contractions that can close the entire eyelid and spread to other muscles on the same side of the face. Essential blepharospasm involves involuntary squeezing of both eyes and can eventually make it difficult to keep your eyes open. Both are neurological conditions that require specialist evaluation, but neither is life-threatening.

You should seek evaluation if your twitching doesn’t resolve within a few weeks, spreads to other parts of your face, makes it hard to open your eye, involves complete eyelid closure with each twitch, or comes with redness, swelling, or drooping of the eyelid. Eyelid drooping that worsens as the day goes on can be a sign of myasthenia gravis, a condition where the connection between nerves and muscles deteriorates with use. Any of these patterns warrants a closer look, but the overwhelming odds are that your twitching eye is just telling you to sleep more, drink less coffee, and step away from the screen.