Factsheet 26 · Self-management
Sleep and migraine
How sleep and migraine affect each other, and simple ways to protect your sleep.
Key points
- Sleep problems are a common trigger. About half of people with migraine say poor sleep sets off attacks.
- Too much sleep can trigger attacks as well as too little. Weekend lie-ins are a common culprit.
- People with migraine are more likely to have insomnia. Treating it can reduce headaches.
- A regular routine, including at weekends, is one of the simplest ways to protect yourself.
- 50 in 100say disturbed sleep triggers their attacks
- 32 in 100say sleeping late triggers their attacks
How sleep and migraine are linked
The same parts of the brain control sleep and help switch migraine attacks on and off. This is why many attacks start in the early morning, and why sleep can end an attack. The link works both ways. Poor sleep can trigger attacks, and frequent attacks can disturb sleep. See our The hypothalamus and migraine factsheet.
Insomnia
Insomnia means trouble getting to sleep, staying asleep or waking too early, on at least 3 nights a week. It’s more common in people with migraine, especially chronic migraine.
Snoring and morning headaches
Waking with a headache most days can be a sign of sleep apnoea, where breathing stops and starts during sleep. Loud snoring, gasping and daytime sleepiness are other signs. See your GP, as it’s treatable.
Signs sleep may be a trigger
- Attacks after a late night or broken sleep
- Attacks on weekend mornings or the first day of a holiday
- Waking with an attack most days
Shift work and travel
Night shifts and jet lag upset your body clock. Keep sleep and meals as regular as you can, use blackout blinds after night shifts, and adjust gradually to new time zones.
Sleep during an attack
Sleep can help an attack pass. Rest in a dark, quiet room after taking your treatment. Try not to sleep for hours in the daytime, as this can upset your sleep that night.
What helps?
Keep a regular rhythm
- Go to bed and get up at the same time every day, including weekends.
- Aim for 7 to 9 hours a night.
- Keep daytime naps short: under 30 minutes.
- Get daylight in the morning.
Wind down
- Keep your bedroom dark, quiet and cool
- Stop screens and work 30 to 60 minutes before bed
- Avoid caffeine after midday, and alcohol close to bedtime
- Try relaxation or breathing exercises if your mind is busy
If you can’t sleep. If you’re awake for more than 20 minutes, get up and do something calm in dim light. Go back to bed when you feel sleepy. This teaches your brain to link bed with sleep.
Treatment for insomnia
CBT for insomnia (CBT-I) is the recommended first treatment. In a small trial of women with chronic migraine, headache days fell by about half after 3 sessions of CBT-I, compared with a quarter in the comparison group. Ask your GP about CBT-I. In some areas, the NHS offers a free digital programme called Sleepio.
Track your sleep. Record your bedtime, wake-up time and how well you slept alongside your attacks. After a few weeks, you’ll see whether changes in sleep come before attacks. Our free migraine diary has rows for this.
Sleeping tablets. Sleeping tablets are only for short-term use. They don’t fix the cause, and some leave you groggy. Some medicines used to prevent migraine, such as amitriptyline, can also help sleep. Ask your GP.
Where to find support
- The Migraine Trust: helpline 0808 802 0066, migrainetrust.org
- NHS 111: for urgent advice when your GP is closed
- Your GP: about insomnia, snoring or morning headaches
When to see your GP
See your GP about insomnia, loud snoring, gasping at night, or waking with a headache most days. Call 999 for a sudden, severe headache unlike any you have had before. For advice, call NHS 111.
References
- Kelman, L. (2007) ‘The triggers or precipitants of the acute migraine attack’, Cephalalgia, 27(5), pp. 394–402.
- National Institute for Health and Care Excellence (2022) Sleepio to treat insomnia (MTG70). nice.org.uk/guidance/mtg70
- Smitherman, T.A. et al. (2016) ‘Randomized controlled pilot trial of behavioral insomnia treatment for chronic migraine with comorbid insomnia’, Headache, 56(2).
- Tiseo, C. et al. (2020) ‘Migraine and sleep disorders: a systematic review’, The Journal of Headache and Pain, 21.

