Sleep Science

Why do I wake up with a headache?

Short answer: Morning headaches are common: in a European survey, 7.6% of people had them regularly. They are most strongly linked with depression, anxiety and insomnia, but also with sleep apnoea, overusing painkillers, caffeine withdrawal, alcohol and migraine. A headache on waking is not a diagnosis on its own. See a doctor if it happens often, and get urgent help if it is sudden and severe or comes with symptoms like weakness, confusion or vision loss.

This article summarises research for general information. It is not medical advice.

How common are morning headaches?

In a telephone survey of 18,980 people in five European countries, 7.6% reported chronic morning headaches, about 1 in 13. They were more common in women and peaked between ages 45 and 64. The strongest links were with anxiety and depression together (28.5% had morning headaches, against 5.5% without), depression alone, body-clock disorders and insomnia. The author concluded that morning headaches are a good indicator of depression and insomnia, but not specific to sleep apnoea. This was a survey, so it shows links, not causes.

Poor or short sleep

In a Norwegian study that followed 15,268 headache-free people for about 11 years, those with insomnia at the start had a 40% higher risk of developing headaches. Among 1,283 migraine patients in a headache clinic, those who slept only about 6 hours had more frequent and severe headaches and were more likely to wake up with them. See is 6 hours of sleep enough?

Sleep apnoea

Obstructive sleep apnoea makes breathing stop and start during sleep. The NHS lists a headache when you wake up among its symptoms, along with loud snoring, gasping or choking and waking up a lot. A 2024 meta-analysis found morning headaches in about a third of people with sleep apnoea, and in one sleep clinic they disappeared in 90% of patients after CPAP treatment. The International Classification of Headache Disorders describes "sleep apnoea headache" as a morning headache, usually on both sides and lasting less than 4 hours, that improves when the apnoea is treated. But a headache on waking is common in many conditions, so it is a reason to get checked, not proof of apnoea. Diagnosis needs a sleep study.

Painkiller overuse

Ironically, taking headache medicine too often can cause more headaches. Medication-overuse headache means headaches on 15 or more days a month in someone who already gets headaches, after more than 3 months of regular painkiller use: on 15 or more days a month for paracetamol, aspirin or ibuprofen-type drugs, or 10 or more days for triptans, opioids or combination painkillers. More than half of people with headaches on 15 or more days a month have it. Don't stop prescribed medicines on your own; talk to a doctor.

Caffeine and alcohol

  • Caffeine withdrawal: if you regularly have caffeine, a late or skipped morning coffee can bring a headache. In experimental studies about half of people got one, usually starting 12–24 hours after their last caffeine. See how late you can drink coffee.
  • Alcohol: a hangover headache typically starts 5–12 hours after drinking and goes within 72 hours. Its exact cause is still not understood.

Migraine and teeth grinding

Many migraine attacks start in the morning: a 2021 review found most studies reported a peak between 6 a.m. and noon, though many individual patients have no fixed pattern. Teeth grinding at night is often blamed, but the evidence is weak: one review found clenching during the day, not grinding at night, was linked with tension-type headache.

When to get help

The NHS says to call emergency services or go to A&E if a headache:

  • started suddenly and is extremely painful;
  • comes with weakness or numbness, difficulty speaking, walking or remembering, confusion, a seizure or loss of vision;
  • comes with a very high temperature and a stiff neck, or a rash that doesn't fade under a glass;
  • follows a head injury in the last 3 months.

Get an urgent GP appointment if a headache comes with vomiting or vision problems, gets worse when you cough, sneeze, bend down or exercise, or comes with jaw pain when eating or a tender scalp. For regular morning headaches, NICE suggests keeping a headache diary for at least 8 weeks, including every medicine you take, and showing it to your doctor.

Track your nights

A diary is easier with data. MathWake's sleep tracker records how long you slept and how loud your bedroom was each night, which can help you spot short nights before headache days. It cannot diagnose sleep apnoea. See also why you're tired in the morning.

See your sleep, night by night

MathWake tracks how long you slept and how noisy the night was, and its alarm only stops after a quick mission.

Download MathWake for iPhone

Frequently asked questions

Why do I wake up with a headache every morning?

Common links include poor or short sleep, depression and anxiety, sleep apnoea, overusing painkillers, caffeine withdrawal, alcohol and migraine. Regular morning headaches are worth discussing with a doctor.

Can sleep apnoea cause morning headaches?

Yes. The NHS lists a headache on waking among its symptoms, and in one clinic morning headaches went away in 90% of patients treated with CPAP. But morning headaches have many causes, so a sleep study is needed to diagnose apnoea.

Can too little sleep cause a headache?

Short and poor sleep are linked with headaches. In a large Norwegian study, people with insomnia had a 40% higher risk of developing headaches over about 11 years.

When is a morning headache an emergency?

Get urgent help if it is sudden and extremely painful, or comes with weakness, confusion, trouble speaking, vision loss, a seizure, a stiff neck with fever, or follows a recent head injury.

Sources

  1. Prevalence and risk factors of morning headaches in the general population. Archives of Internal Medicine (Ohayon MM), 2004.
  2. The long-term effect of insomnia on primary headaches: a prospective population-based cohort study (HUNT-2 and HUNT-3). Headache (Ødegård SS et al.), 2011.
  3. Headache and sleep: examination of sleep patterns and complaints in a large clinical sample of migraineurs. Headache (Kelman L, Rains JC), 2005.
  4. Sleep apnoea. NHS, 2024.
  5. Prevalence of headaches and their relationship with obstructive sleep apnea (OSA) - Systematic review and meta-analysis. Sleep Medicine Reviews (Błaszczyk B et al.), 2024.
  6. Morning headache in sleep apnoea: clinical and polysomnographic evaluation and response to nasal continuous positive airway pressure. Cephalalgia (Goksan B et al.), 2009.
  7. ICHD-3 10.1.4 Sleep apnoea headache. International Headache Society, International Classification of Headache Disorders, 3rd edition, 2018.
  8. ICHD-3 8.2 Medication-overuse headache (MOH). International Headache Society, International Classification of Headache Disorders, 3rd edition, 2018.
  9. Headaches in over 12s: diagnosis and management (CG150) — Recommendations. National Institute for Health and Care Excellence (NICE), 2012.
  10. A critical review of caffeine withdrawal: empirical validation of symptoms and signs, incidence, severity, and associated features. Psychopharmacology (Juliano LM, Griffiths RR), 2004.
  11. ICHD-3 8.3.1 Caffeine-withdrawal headache. International Headache Society, International Classification of Headache Disorders, 3rd edition, 2018.
  12. ICHD-3 8.1.4.2 Delayed alcohol-induced headache. International Headache Society, International Classification of Headache Disorders, 3rd edition, 2018.
  13. The chronobiology of migraine: a systematic review. The Journal of Headache and Pain (Poulsen AH et al.), 2021.
  14. Circadian rhythms of migraine attacks in episodic and chronic patients: a cross sectional study in a headache center population. BMC Neurology (de Tommaso M, Delussi M), 2018.
  15. Association Between Primary Headache and Bruxism: An Updated Systematic Review. Journal of Oral & Facial Pain and Headache (Réus JC et al.), 2021.
  16. Headaches. NHS, 2024.

Not medical advice. This article is general information. If you often sleep through alarms, feel exhausted during the day, snore loudly or stop breathing in your sleep, talk to a doctor: these can have medical causes such as sleep apnea.