That pulsing, thumping sensation in or around your eye is almost always eyelid myokymia, a harmless involuntary twitch of the tiny muscles in the upper or lower eyelid. The twitching is so fine and rhythmic that it genuinely feels like a heartbeat trapped under the skin, but it is muscle firing, not a pulse. What makes the sensation confusing is that your eye actually does have a real pulse, a subtle pressure wave synced to your heartbeat that you normally cannot feel. In a small number of cases, though, the “heartbeat in my eye” sensation does trace to something vascular or neurological rather than a simple muscle twitch, and knowing what separates the benign from the serious is worth understanding.
Eyelid Myokymia and Why It Mimics a Pulse
Eyelid myokymia is the clinical name for spontaneous, fine contractions of the orbicularis oculi muscle, the ring of muscle that surrounds each eye and lets you blink and squint. Unlike a full-strength muscle cramp, these contractions are tiny, often visible only as a faint ripple under the skin. They tend to fire in bursts with a semi-regular rhythm, which is why so many people describe the feeling as a heartbeat or a pulse. You can sometimes see the twitch in a mirror, and other people usually cannot notice it at all.
The twitching almost always affects one eye at a time, and it favors the lower eyelid, though the upper lid gets involved too. Episodes can last a few seconds, a few minutes, or, frustratingly, on and off for days or weeks. The condition is considered benign and self-limiting, meaning it resolves on its own without treatment in the vast majority of cases.
The Usual Triggers
Researchers consistently identify the same cluster of triggers behind eyelid myokymia: stress, sleep deprivation, fatigue, caffeine intake, and prolonged screen exposure.1Iranian Rehabilitation Journal. Rehabilitation in Recurrent Ocular Myokymia: Trigger, Retraining, and Visual Ergonomics If you are experiencing the heartbeat-in-the-eye feeling for the first time, there is a good chance at least two of these apply to your current week. The connection between caffeine and eyelid twitching is strong enough that many eye doctors will ask about your coffee and energy drink intake before anything else.
Screen time deserves its own mention because so many people now spend the majority of their waking hours staring at a display. Prolonged near-focus work reduces your blink rate, fatigues the muscles around the eye, and dries out the ocular surface. That combination creates ideal conditions for myokymia to fire up. The fix is annoyingly simple and annoyingly hard to follow: more sleep, less caffeine, fewer hours of unbroken screen use, and some kind of stress management. When people actually make those changes, the twitching tends to stop within days.
Medications That Can Set Off Eyelid Twitching
Beyond lifestyle triggers, certain medications have been linked to persistent eyelid myokymia. A published case described a woman who developed unilateral eyelid twitching that spread from the lower lid to the upper lid and eyebrow while taking topiramate for binge eating; the symptoms resolved after the drug was discontinued.2PubMed Central. Topiramate-Induced Persistent Eyelid Myokymia Other drugs associated with myokymia include flunarizine, clozapine, and gold salts.3PubMed Central. Metformin-induced eyelid myokymia Metformin, widely prescribed for type 2 diabetes, has also appeared in case reports as a trigger.
If you started a new medication recently and the twitching appeared around the same time, it is worth mentioning the timeline to your prescribing doctor. Drug-induced myokymia often resolves once the medication is adjusted, though the decision to change a medication always needs to weigh the twitching against whatever the drug is treating.
Magnesium and the Nutritional Angle
You will find magnesium supplements recommended for eye twitching across the internet, and there is some scientific basis for the idea. A study comparing people who complained of eye twitching found that those with low serum magnesium levels had measurably thinner retinal nerve fiber layers and lower retinal vascular density than those with normal magnesium.4Taylor & Francis Online / PubMed Central. Influences of Hypomagnesemia on Optic Nerve and Retinal Vascular Structure Determined Using Optical Coherence Tomography (OCT) Angiography Magnesium plays a well-known role in muscle relaxation and nerve conduction, so a deficiency can make muscles more excitable, including the small muscles around the eye.
That said, most people eating a reasonably varied diet are not truly magnesium-deficient. Groups at higher risk for low magnesium include people who drink heavily, those on certain diuretics or proton pump inhibitors, and people with gastrointestinal conditions that impair absorption. If you suspect a deficiency, a simple blood test can confirm it, and supplementation is inexpensive. But magnesium is not a miracle cure for everyone with a twitchy eyelid, because most cases are driven by the stress-sleep-caffeine trifecta rather than a nutritional gap.
Your Eye Actually Does Have a Pulse
Here is the part that makes the sensation feel so convincing: your eye genuinely has a heartbeat-synced pressure fluctuation. Every time your heart contracts and sends a wave of blood into the ophthalmic artery, the blood fills the choroid, a dense vascular layer lining the back of the eye. That inflow causes the choroid to swell slightly, which raises the pressure inside the eyeball for a fraction of a second before it falls back during the resting phase of the heartbeat.5PubMed Central. Effect of Changing Heart Rate on the Ocular Pulse and Dynamic Biomechanical Behavior of the Optic Nerve Head This is called the ocular pulse amplitude, and it is a normal, continuous feature of healthy eyes.
The retinal blood vessels themselves also change diameter in sync with the heartbeat. Research measuring retinal vessel size across the cardiac cycle found that arterial diameter peaks during the pumping phase with an increase of about three and a half percent, while venous diameter shifts by nearly five percent between its lowest and highest points.6Eye. Vessel diameter changes during the cardiac cycle You normally do not feel any of this because the pressure changes are small and your brain filters them out. But certain conditions, from elevated blood pressure to increased anxiety-driven body awareness, can make the ocular pulse perceptible.
Doctors actually use the ocular pulse amplitude as a diagnostic tool. Measurements taken with specialized instruments can help distinguish between different types of glaucoma and track disease progression, because the relationship between intraocular pressure and the ocular pulse shifts in predictable ways when the drainage system of the eye is compromised.7PubMed Central. Ocular pulse amplitude in different types of glaucoma using dynamic contour tonometry: Diagnosis and follow-up of glaucoma
When Anxiety Makes You Feel It More
A phenomenon called somatosensory amplification explains why some people notice the heartbeat sensation in their eye far more intensely than the underlying twitch or pulse would seem to warrant. When you are anxious, your brain turns up the volume on body sensations. Minor twitches that a relaxed person would never register become the focus of intense attention, and the more you focus on them, the more prominent they feel. Research on people with generalized anxiety found that somatosensory amplification scores correlated with the severity of their anxiety, and about half of the patients studied also had significant health anxiety.8PubMed Central. Somatosensory amplification, health anxiety, and alexithymia in generalized anxiety disorder
This creates a feedback loop that many people recognize: you feel a twitch, you worry about it, the worry makes you hyper-aware of the area, and now every tiny muscle firing or blood-pressure fluctuation becomes impossible to ignore. The sensation is real, not imagined, but anxiety is amplifying it well beyond its physical significance. For a lot of people, simply learning that eyelid myokymia is harmless is enough to break the cycle, because the anxiety component deflates once the fear of a serious problem is removed.
Dry Eyes and Blepharospasm
Persistent twitching around the eye sometimes coexists with dry eye disease, and the relationship between the two is not always straightforward. Dry, irritated eyes can trigger reflexive squeezing and twitching of the muscles around the eye as the body attempts to spread tears across the surface. In more severe cases, this can escalate into blepharospasm, a condition where the eyelid muscles involuntarily clamp shut. Many patients with blepharospasm also show signs of dry eye, and while botulinum toxin injections effectively reduce the spasms, they do not fix the underlying dryness.9British Journal of Ophthalmology. Botulinum toxin A treatment in patients suffering from blepharospasm and dry eye
If your twitching comes with a gritty or burning sensation, frequent blinking, and sensitivity to light, dry eye may be contributing. Artificial tears, deliberate blink breaks during screen time, and addressing any environmental factors like dry office air can help with both the dryness and the twitching it provokes.
Hemifacial Spasm and the Neurological Side
If the twitching started around the eye and has been gradually spreading to the cheek or the corner of the mouth on the same side of the face, the picture changes. Hemifacial spasm is a condition where involuntary contractions affect the muscles on one side of the face, and it typically begins with seemingly harmless flickers of the eyelid before progressing downward over months or years.10Journal of Neurosurgery. Hemifacial spasm: a neurosurgical perspective Unlike myokymia, hemifacial spasm does not go away on its own and tends to worsen over time.
The most common cause is a blood vessel pressing against the facial nerve where it exits the brainstem. The pulsation of the vessel against the nerve root gradually irritates it, creating abnormal signals that fire the facial muscles involuntarily.11PubMed Central. Hemifacial spasm: a neurosurgical perspective The irony here is that a literal heartbeat, the pulsation of an artery, is actually what drives the condition. The only curative treatment is microvascular decompression, a surgical procedure that places a small cushion between the offending vessel and the nerve.12PubMed Central. Hemifacial spasm and neurovascular compression Botulinum toxin injections can manage the symptoms in the meantime, but they need to be repeated every few months.
The key differentiator between myokymia and hemifacial spasm is progression. Myokymia stays confined to the eyelid, fluctuates with lifestyle triggers, and eventually stops. Hemifacial spasm starts at the eyelid but steadily recruits more muscles on the same side of the face, and the contractions become stronger and more frequent rather than fading.
Rare Vascular Causes That Actually Involve a Pulse
In uncommon situations, the “heartbeat in my eye” feeling truly is a pulse. A carotid-cavernous fistula is an abnormal connection between an artery and the venous channels behind the eye. When arterial blood pours directly into the low-pressure venous system of the orbit, it creates visible congestion: dilated veins on the surface of the eye, swelling of the conjunctiva, and sometimes a pulsating protrusion of the eyeball itself.13JAMA Ophthalmology. CAROTID-CAVERNOUS FISTULA WITH TYPICAL SIGNS ON CONTRALATERAL SIDE ONLY Some patients can hear a whooshing sound in the affected eye that matches their heartbeat. This is one of the few situations where the sensation of a pulse in the eye is exactly what it seems.
Orbital arteriovenous malformations are another rare vascular cause. These tangles of abnormal blood vessels can produce pain around the eye, bulging of the eye, dilated corkscrew-shaped vessels visible on the surface of the eyeball, and a palpable pulsation or audible bruit.14JAMA Ophthalmology. Orbital Arteriovenous Malformations The hemodynamic stress on the abnormal vessels can eventually lead to bleeding or clot formation.15PubMed Central. The Complexities of Orbital Arteriovenous Malformations: A Systematic Review of Clinical Features and Treatment Approaches
These vascular conditions are dramatically different from a twitchy eyelid. The red flags include a red, bulging eye; visibly engorged blood vessels; decreased vision; a rhythmic whooshing sound you can hear; pain; and swelling that does not fluctuate with stress or sleep the way myokymia does. If any of these are present, imaging of the orbital blood vessels is warranted. Advanced MRI techniques can now map the blood vessels behind the eye without contrast dye, making diagnosis faster and less invasive.16PubMed. Retrobulbar magnetic resonance angiography using binomial off-resonant rectangular (BORR) pulse
How the Serious Causes Are Treated
For carotid-cavernous fistulas, the standard approach is endovascular treatment, where a catheter is threaded through the blood vessels and the abnormal connection is sealed off using coils, balloons, or stents. A meta-analysis of endovascular treatments for these fistulas found that complete occlusion was achieved immediately in about two-thirds of cases, with full symptom resolution in roughly four out of five patients.17World Neurosurgery: X. Clinical efficacy of endovascular treatment approach in patients with carotid cavernous fistula: A systematic review and meta-analysis Older approaches like carotid ligation are still used in some settings, with low rates of serious complications.18PubMed Central. Carotid cavernous fistula: ophthalmological implications
For benign myokymia that simply will not quit, treatment is usually conservative: address the triggers, improve sleep, cut caffeine. When that is not enough, botulinum toxin injections into the affected eyelid muscle can quiet the twitching for several months at a time. Benzodiazepines, anticonvulsants, and muscle relaxants are also used in stubborn cases, though botulinum toxin remains the most targeted option for facial myokymia.19PubMed Central. Treatment of segmental continuous hypertrophic myokymia of the limb with botulinum A toxin
The Anatomy Behind Why You Feel It There
Part of the reason the eye area is so prone to noticeable twitching and pulsation is its anatomy. The orbit is a compact, bony space packed with muscles, nerves, fat, and a remarkably complex network of blood vessels. The main blood supply arrives through the ophthalmic artery, the first branch off the internal carotid artery as it enters the skull, and the vascular layout varies considerably from person to person. This means the proximity of pulsating arteries to the thin muscles and nerves of the eyelid is not identical in everyone, which may help explain why some people are more susceptible to feeling a “heartbeat” in the eye than others.
The eyelid skin is also among the thinnest in the body, with very little subcutaneous fat. That means there is almost nothing to buffer the sensation when a muscle underneath it starts contracting. A twitch of the same intensity in your thigh would go completely unnoticed. In the eyelid, it feels dramatic precisely because there is so little tissue between the firing muscle and your sensory awareness of it.
When to Actually Worry
The vast majority of people who feel a heartbeat in their eye have simple eyelid myokymia that will resolve with lifestyle adjustments. But there are specific patterns that warrant a visit to an eye doctor or neurologist:
- Spreading movement: Twitching that started around the eye and has migrated to the cheek, mouth, or jaw on the same side suggests hemifacial spasm rather than myokymia.
- Visible eye changes: Redness, bulging, engorged surface vessels, or swelling of the white of the eye alongside the pulsating feeling could indicate a vascular problem in the orbit.
- Audible sound: A whooshing or buzzing sound you can hear in rhythm with your heartbeat, especially when lying down or in a quiet room, points toward an arteriovenous communication.
- Vision loss: Any decrease in visual acuity, double vision, or visual field changes accompanying the sensation are not features of benign myokymia.
- Duration beyond three months: While myokymia can recur, continuous twitching lasting months without any break, especially if it is getting worse, should be evaluated.
For the person reading this at two in the morning with a twitching eyelid and a phone in hand: you are overwhelmingly likely dealing with a tired, overstimulated eye muscle. Get some sleep, ease off the coffee, and give your eyes a break from the screen. If it is still going strong in a few weeks, or if any of the warning signs above apply, that is when professional evaluation makes sense.