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:

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:

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:

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:

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:

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Looking for help with a child’s bedwetting? Visit Dr Jonathan Kushnir’s dedicated UK clinic enuresis.co.uk.