Most eye twitching is eyelid myokymia, a harmless flutter in one lid set off by stress, lack of sleep, too much caffeine or dry eyes. It usually fades on its own within days to a few weeks. Sleep more, keep caffeine under 400 mg a day and rest your eyes. See a doctor if it lasts weeks, shuts your eye or spreads.
On this page
- Why is my eye twitching? The common causes
- Why does my eye keep twitching for days?
- What does it mean when your eye twitches?
- Is it a simple eye twitch or blepharospasm?
- How do you stop eye twitching?
- When should you see a doctor for eye twitching?
- What do doctors use first for twitching that will not stop?
- Eye twitching checklist
- Bottom line
- FAQ
Why is my eye twitching? To answer that, we read the National Eye Institute pages on blepharospasm and dry eye, the NINDS page on dystonia, MedlinePlus Genetics, a Cochrane review of Botox for eyelid spasm and several medical reviews, using the method on our page about how we review health topics.[1][4][5][6]
The short answer: most eyelid twitching comes from stress, poor sleep, too much caffeine or dry eyes, and it usually goes away on its own within days to a few weeks.[1][2]
| What it is | Small, rippling contractions of the eyelid muscle, called eyelid myokymia. It usually affects one eye, most often the lower lid.[2] |
|---|---|
| Common triggers | Stress, dry eye, too much caffeine and lack of sleep.[1] |
| How long it lasts | Seconds to hours per episode. It can come and go for several days or a few weeks.[2] |
| Caffeine guide | Up to 400 mg a day, about two to three 12-ounce cups of coffee, is not generally linked to harm in healthy adults.[12] |
| Rare causes | Benign essential blepharospasm, which affects about 20,000 to 50,000 people in the United States, and hemifacial spasm.[4][8] |
| See a doctor if | It lasts more than a few weeks, your eyelid closes completely, or other parts of your face twitch.[1] |
| Supplements | No trial we found shows magnesium or any other supplement stops eyelid twitching.[11] |

Why is my eye twitching? The common causes
An eye twitch is usually eyelid myokymia: spontaneous, gentle, rippling contractions of the muscle that closes the eyelid. It feels like a flutter under the skin. Other people often cannot see it. The National Eye Institute names four everyday triggers: stress, dry eye, too much caffeine and lack of sleep.[1][2]
A week of late nights, extra coffee to get through the day and long hours at a screen can hit all four at once.
- Stress and fatigue: MedlinePlus Genetics describes the common, temporary eyelid twitch as one that can be caused by fatigue, stress or caffeine.[4]
- Caffeine: The FDA says too much caffeine can cause jitters, trouble sleeping and a fast heartbeat. Cutting back helps you sleep, which removes a second trigger.[12]
- Dry eyes: Nearly 16.4 million Americans have dry eye, and long screen sessions can make it worse.[10]
- Screen time: In a 2024 study, people with twitching that lasted more than 2 weeks spent more time on screens than people without it.[3]
Cold weather and being female are listed as risk factors for twitching that keeps coming back.[2]
Why does my eye keep twitching for days?
Ordinary eyelid twitching often comes back in waves, with episodes lasting seconds to hours, and the whole spell can run for several days or even a few weeks. This on-and-off pattern is normal. Most spells fade once the trigger eases, for example after a few nights of better sleep.[1][2]
Twitching tends to keep going when the trigger keeps going. If work stress, short sleep or heavy screen use continues, the flutter may keep returning.
A 2024 case-control study from Turkey compared 103 people whose eyelid twitching lasted more than 2 weeks with 103 people without twitching. The twitching group averaged 6.88 hours of screen time a day, against 4.84 hours in the comparison group. Longer screen time went along with longer twitching (correlation 0.670).[3]
This was a small study at a single center. It shows a link, not proof that screens cause twitching. If your twitch started during a busy stretch at the computer, screen time is a fair place to start.[3]
What does it mean when your eye twitches?
Medically, a twitching eye almost always means a tired or irritated eyelid muscle, not a hidden illness. The National Eye Institute says eyelid twitching usually goes away on its own. Ordinary twitching is short-lived and usually limited to one lid.[1][2]
Many people search for the meaning of left eye twitching or right eye twitching. Folk beliefs give each side a meaning, such as luck or news on the way. We found no medical source that gives the left or right side any special meaning. The one pattern doctors describe is that myokymia usually affects one eye at a time, more often the lower lid.[2]
If your left eye twitches today and your right eye twitched last month, look for the same everyday triggers either way.
What does carry meaning is the pattern. Twitching that spreads to both eyes, forces the eyelids shut or pulls the cheek and mouth is different, and the next section covers it.[1][5]
Is it a simple eye twitch or blepharospasm?
Benign essential blepharospasm is a rare nerve condition that makes both eyelids squeeze or close without warning, while a common twitch is a light flutter in one lid. MedlinePlus Genetics stresses that blepharospasm is different from the common, temporary twitching caused by fatigue, stress or caffeine.[4]
The NIH sources we read describe blepharospasm this way.
- Who gets it: Blepharospasm affects about 20,000 to 50,000 people in the United States. Women get it more than twice as often as men, and it usually starts in middle to late adulthood.[4]
- Age: The National Eye Institute says women aged 40 to 60 are more likely to get it.[1]
- Type of condition: NINDS calls blepharospasm the second most common type of focal dystonia, a movement disorder that affects one part of the body.[5]
- Effect on sight: The eyelids can close completely and lead to vision loss, even though the eyes themselves are healthy.[5]
- Spread: It usually involves both eyes over time. When the jaw, tongue or lower face join in, it is called Meige syndrome.[4]
Hemifacial spasm
Hemifacial spasm is another condition. It causes involuntary contractions of the muscles supplied by the facial nerve, on one side of the face. Doctors often order an MRI to look for a blood vessel pressing on the facial nerve.[8]
How do you stop eye twitching?
For an ordinary twitch, the fastest fix is to remove the trigger: sleep more, cut back on caffeine, rest your eyes from screens and treat dry eye. There is no pill that switches the twitch off, and most spells settle without treatment. The steps below follow what the National Eye Institute lists for twitching and for dry eye.[1][10]
- Aim for 7 to 8 hours of sleep a night for a week. The National Eye Institute suggests this for dry eye as well.[10]
- Count your caffeine. Coffee, energy drinks, tea and soda add up. Stay at or below 400 mg a day, and try less if the twitch started after you drank more.[12]
- Take regular screen breaks. Close your eyes for a few seconds or look away from the screen often.[10]
- Try over-the-counter artificial tears if your eyes feel dry, gritty or tired. They are the usual first step for mild dry eye.[10]
- Lower stress where you can, since stress is a listed trigger.[1]
- Keep a short log of when the twitch starts, how long it lasts and whether it spreads. This helps a doctor if you need one.
Magnesium comes up a lot online. The NIH Office of Dietary Supplements lists muscle cramps among the signs of extreme magnesium deficiency, but it does not name eyelid twitching. The 2024 screen time study found no difference in blood electrolyte levels between people who twitched and people who did not.[3][11]
If you still try a supplement, adults should keep magnesium from supplements at or below 350 mg a day, unless a doctor advises otherwise. Higher doses can cause diarrhea, nausea and cramping.[11]
Decision table: what to do about your twitch
| If you notice | Most likely | What to do |
|---|---|---|
| A flutter in one lid after short sleep, stress or extra coffee | Ordinary eyelid twitching[1][2] | Sleep, cut caffeine, take screen breaks, wait a few weeks |
| Twitching with gritty, burning or tired eyes | Dry eye adding to the twitch[10] | Artificial tears and screen breaks; eye exam if it continues |
| Twitching that has lasted more than a few weeks | Needs a check[1] | Book a visit with an eye doctor |
| Both eyes squeeze shut or blink hard without warning | Possible blepharospasm[4][5] | See an eye doctor or neurologist |
| Twitching spreads to your cheek or mouth on one side | Possible hemifacial spasm[8] | See a doctor; an MRI may be ordered |
When should you see a doctor for eye twitching?
See a doctor if eye twitching lasts more than a few weeks, if your eyelid closes completely, or if other parts of your face start to twitch. Those are the signs the National Eye Institute lists. They point toward blepharospasm or hemifacial spasm, which have good treatments but do not fade on their own.[1][8]
See a doctor right away if:
- Your eyelids shut so hard or so often that you cannot see to drive, read or walk safely.[5]
- Twitching moves to the cheek, mouth or other parts of the face.[1]
- Both eyes start to squeeze or blink hard without warning.[4]
Magnesium supplements can interact with bisphosphonates for bone loss and some antibiotics, so check with a pharmacist if you take either.[11]
If you are pregnant, take daily medicines or have a long-term health condition, talk with your doctor before adding any supplement.
What do doctors use first for twitching that will not stop?
For blepharospasm, the standard first treatment is botulinum toxin (Botox) injections into the eyelid muscles, usually repeated every 3 to 4 months. If injections stop working, surgery to remove some of the eyelid muscle, called myectomy, is an option. The National Eye Institute is clear that there is no cure, so the goal is to control the spasms.[1]
For hemifacial spasm, doctors also use botulinum toxin injections. Surgery called microvascular decompression moves the blood vessel away from the facial nerve. A 2025 review called both approaches highly effective.[8]
| Study | Who and how many | Treatment | Result |
|---|---|---|---|
| Cochrane review, 2020[6] | 3 trials, 313 people with blepharospasm | Botulinum toxin A vs placebo | Spasm severity fell by 0.93 points at 4 to 6 weeks. Drooping lids were about 4 times as common (risk ratio 4.02). Effect lasted 10.6 weeks in one trial. All trials were industry-funded. |
| AAO technology assessment, 2018[7] | 13 studies, 1,523 patients (1,143 blepharospasm, 380 hemifacial spasm) | Botulinum toxin products | Level I evidence for three products in blepharospasm. Benefit held over at least 10 years in long-term studies. |
| Meta-analysis, 2020[9] | 39 studies, 6,249 patients with hemifacial spasm | Microvascular decompression surgery | 90.5% were spasm-free about 1.25 years after surgery. Most studies looked back at records. |
| Case-control study, 2024[3] | 103 people with twitching over 2 weeks and 103 controls | None (screen time measured) | 6.88 vs 4.84 hours of screens a day. No difference in blood electrolytes. |
The Cochrane review also found people given Botox were about 5.73 times as likely to report vision problems such as blurred vision than those given placebo.[6]
For ordinary eyelid twitching, doctors usually reassure and suggest the same steps as above: rest, less caffeine and treatment for dry eye. They do not use supplements as a replacement for that care.[1][10]
Eye twitching checklist
Use this list for one to two weeks before you decide on a doctor visit.
- Note which eye twitches, which lid and how long each episode lasts.[2]
- Add up your daily caffeine from all drinks and keep it under 400 mg.[12]
- Get 7 to 8 hours of sleep for at least a week.[10]
- Take screen breaks, and use artificial tears if your eyes feel dry.[10]
- Check the date. Twitching for more than a few weeks needs an exam.[1]
- Watch for spread to the other eye, cheek or mouth, or lids that close fully.[1][5]
- If you buy a magnesium supplement, read the label for the elemental dose and see our page on how we review health topics for how we judge labels.[11]
For more on dry eye and other topics, browse our eye and vision guides.
Bottom line
A twitching eyelid is almost always eyelid myokymia, set off by stress, poor sleep, caffeine or dry eyes. It is harmless and usually fades on its own within days to a few weeks once you deal with the trigger.[1][2]
For most people, a week of better sleep and less caffeine is a better first step than any supplement, because those triggers have support and no supplement does. If the twitch lasts for weeks, closes your eye or spreads across your face, see a doctor, since blepharospasm and hemifacial spasm respond well to treatment.[1][6][8]
Frequently asked questions
Can lack of sleep cause eye twitching?
Yes. Lack of sleep is one of the four common triggers the National Eye Institute lists, along with stress, caffeine and dry eye. A week of 7 to 8 hours a night is often enough for the flutter to settle.
Can caffeine make your eye twitch?
Too much caffeine is a known trigger. The FDA says up to 400 mg a day, about two to three cups of coffee, is not generally linked to harm in healthy adults. If your twitch started after more coffee, cut back first.
Does magnesium help eye twitching?
We found no trial showing magnesium stops eyelid twitching. Extreme deficiency can cause muscle cramps, but one study found no difference in blood electrolytes in people who twitched. Adults should keep supplemental magnesium at or below 350 mg a day.
Can staring at screens cause eye twitching?
A 2024 study linked more daily screen time with longer-lasting eyelid twitching, though it was small and cannot prove cause. Screens can also dry your eyes. Regular breaks and artificial tears are simple steps worth trying.
Why is my eye twitching constantly?
Twitching that keeps returning is usually a stubborn case of ordinary myokymia from ongoing stress, short sleep or dry eye. If it lasts more than a few weeks, closes your eye or spreads across your face, see an eye doctor.
Sources
- Blepharospasm. National Eye Institute, 2024
- Eyelid Myokymia (StatPearls). StatPearls, NCBI, 2023
- Association Between Eyelid Twitching and Digital Screen Time. Gunes, Cureus, 2024
- Benign essential blepharospasm. MedlinePlus Genetics, National Library of Medicine
- Dystonia. National Institute of Neurological Disorders and Stroke
- Botulinum toxin type A therapy for blepharospasm. Duarte et al., Cochrane Database of Systematic Reviews, 2020
- Chemodenervation for the Treatment of Facial Dystonia. Bilyk et al., Ophthalmology (American Academy of Ophthalmology), 2018
- Hemifacial spasm: an update on pathophysiology, investigations and management. Jesuthasan et al., Journal of Neurology, 2025
- Spasm Freedom Following Microvascular Decompression for Hemifacial Spasm. Holste et al., World Neurosurgery, 2020
- Dry Eye. National Eye Institute, 2025
- Magnesium: Fact Sheet for Consumers. NIH Office of Dietary Supplements, 2026
- Spilling the Beans: How Much Caffeine is Too Much?. U.S. Food and Drug Administration
This article is general information, not medical advice. Dietary supplements are not reviewed by the FDA for safety or effectiveness before they are sold. Talk to your doctor before you start any supplement, especially if you are pregnant, nursing, take medication or have a health condition.
