Why Do My Eyes Hurt When I Have a Headache?

Your eyes and your head share a major pain nerve, which is why a headache so often feels like it’s drilling right behind your eyeballs. The trigeminal nerve, the largest sensory nerve in your head, branches into three divisions that cover your forehead, cheeks, and jaw. Its uppermost branch runs directly through the eye socket and into the eye itself. When any part of this nerve system becomes activated during a headache, pain signals can radiate into and around the eyes even if nothing is wrong with the eyes themselves.

The Nerve That Connects Your Head and Eyes

The trigeminal nerve is the fifth cranial nerve, and it’s responsible for nearly all sensation in your face. Its top branch, called the ophthalmic division, supplies feeling to your forehead, upper eyelid, and the surface of the eye. The interior structures of the eye are richly wired with sensory fibers that originate from this same nerve system, many of which function specifically as pain receptors.

During a headache, especially a migraine, these pain receptors can become activated through a chain reaction. Blood vessels inside the eye dilate, nerve endings release inflammatory signaling molecules, and the surrounding tissue swells slightly. All of this mechanical and chemical activity fires up the trigeminal pain receptors in and around the eye, which send signals to the brainstem. The result is a deep, aching pressure that feels like it’s coming from the eyeball itself, even though the trigger may be happening elsewhere along the nerve pathway.

This is called referred pain. It’s the same principle that makes a heart attack sometimes feel like arm pain. Because the trigeminal nerve covers such a wide territory, irritation in one branch can produce sensations in another. A headache originating in your temples or the back of your skull can easily refer pain forward into the eye socket.

Why Light Makes It Worse

If your eyes hurt more when you’re exposed to bright light during a headache, that’s not just discomfort. Light is physically intensifying the pain signal. Research has mapped out how this works: light entering the eye activates a relay in the brainstem, which triggers the release of signaling chemicals through the parasympathetic nervous system. These chemicals cause blood vessels inside the eye to expand, physically deforming the surrounding tissue and pressing on the trigeminal pain receptors embedded there.

This means light sensitivity during a headache isn’t purely a preference for darkness. It’s an active pain loop where photons entering the eye create real, measurable nerve activation. That’s why retreating to a dim room during a migraine provides genuine relief rather than just psychological comfort.

Common Headache Types That Cause Eye Pain

Migraines

Migraines are the most common culprit behind eye pain during a headache. The throbbing is typically one-sided and often concentrates around or behind one eye. Scalp hypersensitivity during a migraine can also make the area around the eyes feel tender to the touch. Light sensitivity, nausea, and visual disturbances like flickering spots or blind patches frequently accompany the eye pain.

Tension Headaches

Tension headaches produce a band-like pressure around the head that often extends into the eyes as a dull, steady ache. Muscle spasms around the eye socket contribute to this sensation. Unlike migraines, tension headaches usually affect both sides equally and don’t typically cause nausea or light sensitivity, though the eye discomfort can still be significant.

Cluster Headaches

Cluster headaches are rare, affecting roughly 1 in 1,000 people, but they produce some of the most intense eye symptoms of any headache type. The pain is severe, always one-sided, and centered directly around or behind one eye. What makes cluster headaches distinctive is that the affected eye develops visible physical changes on the same side as the pain: watering, redness, and a drooping eyelid. These autonomic symptoms happen because the nerve pathways controlling the eye’s blood supply and tear production are caught up in the same activation cascade.

Digital Eye Strain and Headaches

Screen use is now one of the most frequent triggers for the combination of eye pain and headache. Digital eye strain, sometimes called computer vision syndrome, affects an estimated 69% of people who use screens regularly. The average American worker spends seven hours per day on a computer, making this a near-universal issue.

The mechanism is straightforward. When you focus on a screen, the small muscles that control your lens and coordinate your eye movements work continuously at close range. Over hours, these muscles fatigue and spasm, producing aching around the eye socket that radiates into a headache. You also blink less while staring at a screen, sometimes by as much as half the normal rate, which dries out the eye surface and adds a gritty, burning layer to the discomfort.

A few practical adjustments can reduce this significantly. Match your room lighting to your screen brightness so your eyes aren’t constantly adjusting between a bright monitor and a dim room. A soft backlight behind your monitor can help with this. If you wear progressive lenses, consider switching to dedicated reading glasses for computer work, since looking through the correct part of a progressive lens for hours requires constant head positioning that adds to strain. Blue-light-blocking glasses, despite their popularity, show no measurable difference in reducing eye strain in research studies, though they won’t cause harm if you prefer them.

Using artificial tears before you start a long screen session, rather than waiting until your eyes already feel dry, can prevent the cycle of dryness and strain from starting. And if you wear corrective lenses, an outdated prescription that’s even slightly too strong or too weak forces your eyes to compensate constantly, which is a common and easily fixable cause of headaches. Poorly fitting frames that press on the temples are another overlooked trigger.

When Eye Pain Signals Something Serious

Most of the time, eye pain during a headache is benign. But certain combinations of symptoms point to conditions that need immediate attention.

Acute angle-closure glaucoma occurs when pressure inside the eye spikes suddenly. It causes severe eye pain, redness, headache, nausea, vomiting, and a distinctive visual symptom: rainbow-colored halos around lights. Vision loss can happen rapidly, and this is a medical emergency requiring same-day treatment.

A headache with eye pain that also includes any of the following warrants urgent evaluation:

  • Sudden double vision, which can indicate a problem with the nerves controlling eye movement
  • Vision loss alongside headache, especially if it’s progressive or persistent
  • One pupil noticeably larger than the other, which can signal compression of the nerve that controls pupil size
  • A severely drooping eyelid with the eye turned down and outward, particularly with sudden severe one-sided headache, which can indicate a brain aneurysm
  • Vomiting, seizures, or changes in mental state alongside the headache and eye pain, which may point to increased pressure inside the skull

These red flags are rare, but they represent conditions where hours matter. The vast majority of headache-related eye pain resolves on its own or responds to treating the underlying headache, whether that means managing migraines, correcting your screen setup, or updating your glasses prescription.