Migraine and Insomnia: Why They Fuel Each Other, and the CBT-I Treatment That Helps
You finally drift off, only to wake at 3am with a familiar throb behind one eye. Or you lie awake dreading tomorrow’s attack, which somehow makes the pain arrive sooner and hit harder. If you live with migraine, you’ve probably noticed that your worst head pain and your worst nights of sleep tend to turn up together. This isn’t a coincidence, and it isn’t “just stress.” Migraine and insomnia are two of the most tightly linked conditions in sleep medicine, each one capable of triggering and worsening the other.
The good news is that this cycle can be broken, and not with more medication. Cognitive Behavioural Therapy for Insomnia (CBT-I) is the recommended, evidence-based insomnia treatment, and a growing body of research shows it can ease migraine burden too, by treating the sleep problem that’s quietly feeding it.
How Common Is the Overlap Between Migraine and Insomnia?
Studies consistently find that people with migraine are far more likely to also meet criteria for chronic insomnia than people without migraine, with some clinical samples reporting that roughly half of chronic migraine patients have significant sleep disturbance. The relationship is bidirectional: poor sleep is a well-documented migraine trigger, and migraine itself damages the sleep that might otherwise protect against it.
This matters because the two conditions are often treated in isolation. A neurologist focuses on headache management; sleep gets mentioned in passing, if at all. Yet when the insomnia is left untreated, it can undermine the headache treatment, keep the nervous system in a sensitised, pain-prone state, and leave you exhausted on top of everything else.
Why Poor Sleep Can Trigger a Migraine Attack
Sleep and migraine share overlapping brain circuitry, particularly in the hypothalamus and brainstem regions involved in regulating both pain and the sleep-wake cycle. When sleep is disrupted, several things happen that make an attack more likely:
- Lowered pain threshold. Even one night of short or fragmented sleep reduces your tolerance for pain, making the migraine threshold easier to cross.
- Disrupted deep sleep. Slow-wave sleep appears to have a protective, almost “resetting” effect on the pain system. Insomnia reduces the time spent in this stage.
- Irregular sleep timing. Oversleeping at weekends, late nights, or erratic bedtimes destabilise the body clock, and an unstable circadian rhythm is itself a recognised migraine trigger.
- Increased inflammation and stress hormone activity. Chronic poor sleep raises markers linked to both headache frequency and heightened pain sensitivity.
Why Migraine Attacks Wreck Your Sleep
The relationship runs the other way too. A migraine attack, or the fear of one, can dismantle a good night’s sleep in several ways:
- Pain itself. Throbbing head pain, light and sound sensitivity make falling or staying asleep physically difficult.
- Anticipatory anxiety. Many people start watching for warning signs of the next attack, which keeps the nervous system alert at exactly the time it needs to wind down. This is similar to the fear of not sleeping that drives insomnia on its own.
- Disrupted routines. Long daytime naps taken to recover from an attack, or time spent resting in a dark room, can shift your body clock and make the following night harder.
- Medication timing. Some acute migraine treatments, including those containing caffeine, can interfere with sleep if taken later in the day.
Over time, this becomes a self-sustaining loop: bad sleep lowers the migraine threshold, the attack disrupts sleep further, and each cycle makes the next one more likely.
Why Painkillers and Sleeping Tablets Rarely Break the Cycle
It’s understandable to reach for medication when you’re exhausted and in pain. But relying on sleep medication or frequent acute headache treatment to manage this cycle tends to run into problems:
- Sleeping tablets can mask insomnia symptoms without addressing the behaviours and racing thoughts that maintain it, so sleep tends to deteriorate again once the medication is reduced.
- Frequent use of acute migraine or pain medication carries a recognised risk of medication-overuse headache, where the treatment itself becomes part of the problem.
- Neither approach resets the irregular sleep patterns or the hypervigilance that keep the migraine-insomnia cycle turning.
If you are currently taking medication for migraine or sleep, please continue to follow your GP or specialist’s advice. Never stop or change a prescribed medication without speaking to them first; this article isn’t a substitute for that conversation, and your GP can advise on the safest way forward alongside behavioural treatment.
How CBT-I Helps When Migraine and Insomnia Occur Together
CBT-I is the first-line, NICE-recommended treatment for chronic insomnia, and it works by targeting the habits and thought patterns that keep insomnia going long after any original trigger, such as a bad run of migraine attacks, has passed. For people with comorbid migraine, this tends to involve:
- Stabilising the sleep-wake schedule, which helps regulate the circadian rhythms implicated in migraine triggering.
- Sleep restriction therapy, which consolidates fragmented sleep into a more efficient, restorative block rather than long hours spent lying awake.
- Addressing anticipatory anxiety about both sleeplessness and the next attack, so the nervous system can properly wind down at night. You can read more about why CBT-I works on this level.
- Reducing unhelpful daytime napping and compensatory behaviours that feel helpful in the moment but destabilise sleep over the following nights.
Because CBT-I treats the sleep system directly rather than sedating it, improvements tend to hold once treatment ends, which is a key reason it’s increasingly used alongside standard headache care rather than instead of it.
What the Research Says
This isn’t a fringe idea. A systematic review and meta-analysis of trials using CBT in migraine patients with comorbid insomnia, covering the literature up to August 2024, found that CBT approaches were associated with reductions in migraine severity and frequency, alongside sleep improvement. A separate pilot randomised controlled trial, run at the University of Strathclyde, is specifically testing digital CBT-I against standard sleep hygiene advice in women with chronic migraine and insomnia, reflecting growing clinical interest in treating the two conditions together rather than separately.
This mirrors the broader evidence base: NICE has already recommended digital CBT-I as a cost-effective, first-line option for insomnia in UK primary care, ahead of sleeping pills. The migraine-specific research builds on that same foundation, suggesting the benefits of fixing sleep extend further than sleep alone.
Practical Steps You Can Start Tonight
While full CBT-I is best delivered with guidance, a few habits can start easing the cycle straight away:
- Keep a fixed wake-up time, seven days a week, even after a poor night or a migraine-disrupted one. This is one of the strongest stabilisers of the body clock.
- Cap daytime naps to 20–30 minutes where possible, and avoid napping late in the day after an attack.
- If you’re lying awake, whether from pain or a racing mind, get up and do something calm in dim light rather than battling it out in bed. Our guide on waking up during the night explains why this helps rather than hinders.
- Review your wind-down routine for anything that might be adding to vigilance, such as checking symptoms or scrolling for migraine triggers right before bed.
- Track patterns between sleep and attacks for two or three weeks; many people are surprised how closely they line up once they look.
These steps help, but they work best as part of a structured approach. For a fuller set of first steps, see our guide to insomnia treatment without medication, and if falling asleep itself is the main struggle, our article on how to fall asleep fast covers the techniques that tend to help most.
Breaking the Cycle for Good
Migraine and insomnia can feel like two separate battles, but they’re usually two ends of the same rope. Pulling on the sleep side, specifically and deliberately, tends to loosen both. You don’t need to accept exhausted days and dreaded nights as the price of living with migraine. Structured, evidence-based CBT-I addresses the sleep disruption directly, and the research increasingly suggests your head may thank you for it too.
If sleepless nights and migraine have become a cycle you can’t break alone, take our free insomnia self-assessment to understand what’s driving it, or get in touch to find out how a tailored CBT-I programme could help.
Frequently asked questions
Can bad sleep really trigger a migraine attack?
Yes. Sleep deprivation and disrupted sleep lower your pain threshold and reduce the amount of restorative deep sleep that helps regulate the brain’s pain circuits, making an attack more likely. Both too little sleep and sudden changes to your usual sleep timing, such as sleeping in at weekends, are recognised migraine triggers.
Should I nap after a migraine attack?
Short rest can help in the moment, but long or late naps often make the following night’s sleep worse, which can set up the next attack. If you need to rest, keep it brief and earlier in the day where possible, and try to return to your usual wake-up time the next morning.
Will treating my insomnia actually reduce how often I get migraines?
Early research is promising. Studies using CBT-based approaches in people with migraine and comorbid insomnia have found reductions in both sleep difficulty and migraine frequency or severity, though researchers note more large-scale trials are still needed. Treating the insomnia is unlikely to cure migraine outright, but it removes one of the most common and modifiable triggers.
Is it safe to do CBT-I while I’m also taking migraine medication?
CBT-I is a behavioural, non-drug treatment and is generally safe to use alongside migraine medication. However, you should not stop or change any prescribed medication without speaking to your GP or specialist first, and it’s worth mentioning your sleep difficulties to them so your overall care is joined up.