What does it mean when your eye twitches?
Eye twitching (myokymia) is almost always harmless and caused by stress, fatigue, caffeine, or dry eyes. Here's when it's nothing to worry about and when to see a doctor.
2 min read · Updated 2026-04-14
For informational purposes only. This content is not a substitute for professional medical advice. Always consult a qualified healthcare provider before making health decisions.
Short answer
Eye twitching (medically called myokymia) is almost always harmless. It's caused by involuntary spasms of the eyelid muscle — usually triggered by fatigue, stress, caffeine, dry eyes, or screen time. It typically resolves on its own within a few days.
Most common causes
1. Fatigue
The most common trigger. When you're sleep-deprived, muscles become hyperexcitable and can spasm involuntarily. Your eyelid muscle is particularly sensitive to this.
2. Too much caffeine
Caffeine is a stimulant that affects nerve and muscle function. If your twitching gets worse after coffee, try reducing intake.
3. Stress
High stress levels affect the nervous system and can cause muscle spasms, including in the eyelid.
4. Dry eyes
Insufficient eye lubrication causes irritation, which can trigger twitching. Screen time worsens this — people blink significantly less when staring at screens.
5. Eye strain
Extended focus without breaks, improper glasses prescription, or bright lighting can all cause muscle fatigue around the eye.
6. Magnesium deficiency
Less common, but low magnesium can cause muscle cramps and twitching throughout the body including the eyelids.
How to stop eye twitching
- Sleep more — if you're under-rested, rest is the fastest fix
- Reduce caffeine — cut back for a few days and see if it improves
- Use artificial tears — lubricating eye drops relieve dry eye irritation
- Take screen breaks — follow the 20-20-20 rule: every 20 minutes, look at something 20 feet away for 20 seconds
- Reduce stress — exercise, meditation, or simply identifying the stressor
Most twitching resolves within a few days to a couple of weeks.
When to see a doctor
See a doctor if:
- Twitching persists for more than 3 weeks
- Your entire eyelid closes (not just a flutter)
- Twitching affects other parts of your face
- Your eye is red, swollen, or has discharge
- You have vision changes
These can indicate conditions like blepharospasm, hemifacial spasm, or rarely, neurological issues.