Skip to content

Sleep MediBilbao Salud

Can Lack of Sleep Cause Headaches? How Poor Sleep Triggers Headaches and How to Stop Them

Most people know the feeling: after a short or broken night, a dull headache arrives, sometimes as soon as they wake up. Sleep and headache are closely linked. Too little sleep, irregular sleep and poor-quality sleep can all trigger headaches, and frequent headaches can in turn disturb sleep. This guide explains why it happens, which types of headache are involved, and practical sleep strategies that reduce headaches.

Topic
Psychology
Updated
Reading time
5 minutes
Reviewed by
Dr. Itziar Gotxi Erezuma · Medical doctor (ENT) · Bizkaia Medical Association no. 484809757

Why lack of sleep causes headaches

The brain areas that regulate sleep overlap with those that process pain. When sleep is short or fragmented, several changes make headache more likely:

  • The pain threshold falls, so normal sensations are perceived as more painful.
  • Stress hormones and inflammatory substances rise.
  • Levels of neurotransmitters such as serotonin and adenosine change; these are involved in migraine.
  • Muscle tension in the neck and shoulders increases, especially with stress.
  • People often skip meals, drink more caffeine and less water after a poor night, adding further triggers.

Headaches linked to poor sleep

  • Tension-type headache: a dull, pressing or tight band around the head, usually on both sides, often with tender neck and shoulder muscles. See pain at the base of the skull.
  • Migraine: lack of sleep and changes in sleep pattern are common triggers. Migraine causes throbbing, often one-sided pain with nausea and sensitivity to light and sound.
  • Morning headache: present on waking and often improving within a few hours; can be linked to sleep apnoea, teeth grinding, caffeine withdrawal or medication overuse.
  • Cluster headache: very severe pain around one eye that often wakes people at the same time each night; it needs medical assessment.

Can too much sleep also cause headaches?

Yes. Sleeping much longer than usual, for example at weekends, can trigger headaches, particularly migraine. Possible reasons include a shift in the body clock, delayed caffeine intake, delayed meals and dehydration. Keeping wake-up times consistent, including on days off, is one of the most effective ways to reduce sleep-related headaches.

Sleep disorders that cause headaches

  • Insomnia: difficulty falling or staying asleep increases headache frequency, and people with chronic headache are more likely to have insomnia. See insomnia and can't sleep: what to do.
  • Obstructive sleep apnoea: repeated drops in oxygen and broken sleep cause morning headaches, loud snoring and daytime sleepiness; see can sleep apnea be cured.
  • Teeth grinding (bruxism): causes morning headaches at the temples and jaw ache; see TMJ symptoms.
  • Shift work and jet lag: disrupt the body clock and commonly trigger headaches.
  • Restless legs and anxiety: both fragment sleep; see nocturnal panic attacks.

How to relieve a headache after a bad night

  • Drink one or two glasses of water.
  • Eat a balanced breakfast; low blood sugar makes headaches worse.
  • If you normally drink coffee, have your usual amount; skipping it can cause withdrawal headache.
  • Take a simple painkiller such as paracetamol or ibuprofen if suitable, but not on more than a few days a week.
  • Get some daylight and gentle movement, such as a short walk.
  • Relax the neck and shoulders with gentle stretches or a warm shower.
  • If possible, a short nap of 20 to 30 minutes early in the afternoon; longer naps can disturb the next night.

Sleep habits that prevent headaches

  • Keep the same wake-up time every day, including weekends.
  • Aim for 7 to 9 hours of sleep for most adults.
  • Avoid caffeine after midday and limit alcohol, which fragments sleep.
  • Create a wind-down routine: dim lights, no screens for 30 to 60 minutes before bed.
  • Keep the bedroom cool, dark and quiet.
  • Get regular exercise, but not intensely late in the evening.
  • Manage stress with relaxation techniques; see how to calm your nervous system.
  • Keep a headache and sleep diary to identify patterns.

For persistent insomnia, cognitive behavioural therapy for insomnia (CBT-I) is the recommended first treatment and is more effective long term than sleeping tablets. It can be delivered by a psychologist trained in sleep.

When to see a doctor

  • A sudden, severe headache that peaks within a minute: emergency care.
  • Headache with fever, stiff neck, rash, confusion, weakness, slurred speech or vision loss: emergency care.
  • A new headache after the age of 50.
  • Headaches that wake you from sleep regularly or are worst on waking and getting worse.
  • Headaches on more than 15 days a month, or needing painkillers on more than 10 days a month.
  • Loud snoring with pauses in breathing or excessive daytime sleepiness.

Key points to remember

  • Lack of sleep lowers the pain threshold and commonly triggers tension headaches and migraine.
  • Irregular sleep and oversleeping can also trigger headaches.
  • Frequent morning headaches may point to sleep apnoea, grinding or medication overuse.
  • Regular sleep times, enough sleep and treating insomnia reduce headaches.

Questions about sleep and headaches

These answers are general information and do not replace an examination or individual medical advice.

Can lack of sleep cause headaches?

Yes. Short or broken sleep lowers the pain threshold and is a common trigger for tension headaches and migraine.

What does a headache from lack of sleep feel like?

Usually a dull, pressing pain on both sides of the head, sometimes with neck tension. In people with migraine it can trigger a migraine attack.

How long does a headache from lack of sleep last?

Often a few hours, improving with fluids, food, rest and simple painkillers. Migraine can last longer.

Why do I wake up with a headache?

Common causes include poor sleep, sleep apnoea, teeth grinding, caffeine withdrawal, alcohol and frequent painkiller use.

Can sleeping too much cause headaches?

Yes. Oversleeping and irregular sleep times can trigger headaches, especially migraine.

How much sleep do I need to avoid headaches?

Most adults need 7 to 9 hours, with regular sleep and wake times being as important as the total.

Sources

  1. NHS · Headaches
  2. NHS · Tension headaches
  3. NHS · Migraine
  4. NHS · Insomnia
  5. NHS · Obstructive sleep apnoea

This guide is for general information and does not replace medical advice. How a problem is diagnosed and treated depends on your examination and medical history. If you think you have an emergency, contact your local emergency services.