Lock IconYour Privacy is Our Priority

Connect with others who understand.

  •   Learn from expert-reviewed resources
  •   Real advice from people who’ve been there
  •   People who understand what you’re going through
Sign Up Log In
Powered By

Migraine and Sleep Problems: What You Need To Know

Updated on December 3, 2026

Key Takeaways

  • Migraine and sleep problems often go hand in hand, with poor sleep able to trigger attacks and migraine attacks able to disrupt sleep in return.
  • Research shows that people with migraine are nearly twice as likely to develop insomnia, and sleep disorders like restless legs syndrome and sleep apnea are also more common in this group. Some medications used to treat migraine, including those with caffeine or certain anti-inflammatory drugs, can also make it harder to get a good night's rest.
  • If sleep problems are a regular part of life with migraine, it may be worth talking to a doctor about being screened for sleep disorders, reviewing your current treatment plan, and asking about options like cognitive behavioral therapy for insomnia, which studies have shown may help improve both sleep quality and migraine symptoms.
  • View all takeaways

Bad nights and migraine attacks tend to show up together, and it can be hard to tell which came first. Migraine and sleep problems can affect each other: poor sleep can trigger attacks and attacks can affect a restful night.

In this article, learn about how migraine and sleep problems can affect each other, what can help, and when to talk to a doctor.

How Are Migraine and Sleep Connected?

The relationship between migraine and sleep has been researched since the 19th century. Recent studies continue to show that sleep disturbances are among the most common migraine attack triggers. It goes both ways: People with migraine are more likely to have sleep problems, and sleep problems can contribute to a migraine attack.

🗳️ How does migraine affect your sleep?
I struggle with insomnia, which triggers migraine attacks
Migraine symptoms keep me up at night, causing insomnia
I don’t know which started first, but I have both migraine and insomnia
It doesn’t — I sleep well

Thanks! You've successfully submitted your vote.

Here’s what the research shows:

  • Among people with headache disorders, including migraine, about 75 percent of headaches start during sleep or right after waking up
  • Almost half of morning migraine attacks start right after waking up and may sometimes signal an underlying sleep disorder
  • People with migraine were almost twice as likely to develop insomnia (having a hard time falling asleep, staying asleep, or feeling rested after sleep) compared to those without migraine
  • People with both migraine and insomnia tend to have more intense, frequent, and disruptive migraine attacks than those without insomnia. Insomnia may also increase the risk that episodic migraine progresses to chronic migraine.

The Brain Connection Between Sleep and Migraine

Despite having been researched for so long, scientists still don’t fully understand why sleep and migraine are so closely linked.

The connection might involve shared brain structures. The hypothalamus and brain stem are areas in the brain that help control the sleep-wake cycle and how the body processes pain. They’re both involved in migraine and sleep.

Sleep and migraine processes share some of the same chemical messengers called neurotransmitters, such as serotonin, dopamine, orexin, and adenosine.

Adenosine is a chemical that builds up the longer you stay awake, and it also rises during migraine attacks. This overlap could help explain why not enough sleep can set off an attack.

How Sleep Problems Can Trigger Migraine

Poor sleep is one of the most common triggers for migraine. One MyMigraineTeam member shared, “The weather and lack of sleep are triggers for me.”

It’s not always a lack of sleep that triggers migraine attacks, though. Not getting enough sleep, sleeping too much, and having an irregular sleep schedule can all trigger migraine attacks.

Research shows that poor sleep quality or too little sleep can set off an attack. Many people with migraine say that getting enough sleep can help relieve symptoms. Individual triggers vary considerably from person to person.

However, sleeping in can be an issue, too. Some people notice attacks after sleeping in on weekends, which can be called a “weekend migraine.”

Irregular sleep schedules and disruption of circadian rhythms can significantly impact whether someone gets migraine headaches. Night shift and rotating shift workers have about a 60 percent increased risk in developing migraine.

How Migraine Disrupts Sleep

Even though more sleep can help migraine symptoms, having an episode can impact quality sleep too. People with migraine tend to have poorer sleep quality, insomnia, sleep apnea, bruxism, nocturnal hypertension, and nighttime tiredness.

Many people experience migraine attacks in the morning. Morning migraine attacks can cut sleep short. If it extends into the night, migraine headaches can make it harder to sleep at night, too. This keeps the cycle going.

When migraine symptoms fade, the postdrome phase of recovery can affect sleep. People with postdrome may feel drained, foggy, or exhausted for a day or more. The symptoms can throw off sleep schedules, especially when naps or extra rest is required.

One MyMigraineTeam member shared, “I feel that when mine are really intense, it makes it hard for me to sleep once the migraine has passed. I’ll feel drained afterwards and just can’t fall asleep.”

Migraine Medications That Impact Sleep

Some common medications for headaches can affect sleep. For example, over-the-counter Excedrin and prescription ergotamine/caffeine (Migergot) contain caffeine, which can disrupt normal sleep.

Drugs that aren’t stimulants can cause sleep problems, too. Nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen or naproxen, especially at higher doses, can cause side effects that can disturb restful sleep due to reflux, dyspepsia, or abdominal discomfort.

People taking topiramate (Topamax) are at risk of an uncommon but known side effect of sleep changes. In clinical trials, 8 percent to 9 percent of adults taking topiramate daily reported insomnia.

Sleep Disorders Linked to Migraine

Sleep disorders are conditions that affect the quality or quantity of sleep. People with migraine are more likely to have certain sleep disorders. Here are the ones research has connected to migraine.

Insomnia

Insomnia is the most common sleep problem in people with chronic migraine. About 26 percent of people with migraine had insomnia, compared with 15 percent of people without headaches.

Insomnia is tied to more painful, intense, and frequent migraine attacks, in addition to a higher chance of migraine becoming chronic.

Obstructive Sleep Apnea

Obstructive sleep apnea (OSA) is a common sleep disorder where people briefly have issues breathing during sleep. It’s known for causing morning headaches, but the link to migraine specifically isn’t clear.

Some studies have found similar rates of OSA in people with and without migraine. However, others have found that OSA increased the risk of migraine with aura in people of European descent.

Restless Legs Syndrome

Tossing and turning to find a comfortable position to sleep could be something more. Restless legs syndrome (RLS) causes an uncomfortable urge to move your legs, usually at night. It affects 5 percent to 10 percent of the general population, but up to 39 percent of people with migraine.

People with more severe or frequent symptoms of RLS were found to have the highest risk of having migraine and migraine with aura.

Parasomnias

Parasomnias are a category of sleep behaviors that could disturb normal restful sleep. Sleep walking, teeth-grinding, and nightmares are some parasomnia behaviors that are associated with migraine.

Why Diagnosis Matters

Undiagnosed sleep disorders can trigger migraines. Experts recommend that doctors screen people with headaches for insomnia. This way, the appropriate treatment can be started, which may reduce how often and how severely attacks happen.

If you’re waking up not feeling rested or if you notice sleep changes trigger your migraines often, get evaluated for possible sleep disorders with your doctor.

How To Manage Sleep Problems With Migraine

Better sleep won’t cure migraine headaches, but treating sleep problems may reduce how often attacks happen and how bad they get. Consider the following steps that could help:

  • Keep a consistent schedule — Go to bed and wake up at the same time every day, weekends included
  • Build a wind-down routine — This could include avoiding caffeine, dimming lights, and putting away screens
  • Be mindful of naps — Keep naps short and early so they don’t cut into nighttime sleep
  • Track sleep and attacks — Log your bedtime, wake time, and sleep quality alongside your migraine attacks to spot patterns, which can be discussed with your care team
  • Stay active and manage stress — Mind-body exercises like Tai Chi, diaphragmatic breathing, and mindfulness meditation can decrease the frequency of headaches or improve sleep quality
  • Review your treatment plan — Managing your migraine effectively can improve sleep quality, so it’s worth checking in with your doctor about whether your medications or treatment could be affecting your sleep

Ask About Cognitive Behavioral Therapy for Insomnia

If insomnia is a regular problem, ask your doctor about cognitive behavioral therapy for insomnia (CBT-I). It’s recommended as a first-line treatment for insomnia in people with migraine.

CBT-I is typically delivered as a structured program over several weeks. It helps retrain your sleep habits and change the thoughts that keep you up at night. Studies have shown improvements in migraine frequency and intensity and sleep quality with CBT-I.

When To See a Doctor About Sleep Problems

Sleep problems can affect anyone every now and then. If sleep problems are a regular part of life with migraine, it’s worth talking to your doctor. Consider symptoms like:

  • Your partner reporting loud snoring or gasping during sleep
  • Waking up with a headache most mornings
  • Feeling sleepy during the day even after a full night in bed
  • Having trouble falling or staying asleep for most nights
  • Noticing more frequent or intense migraine attacks
  • Feeling an urge to move your legs at night
  • Waking up with a sore jaw

Your doctor may go through your sleep patterns, energy levels through the day, and migraine attack frequency. They may adjust your migraine treatment or refer you to a sleep specialist for more investigation. Sleep diaries can help identify patterns in migraine symptoms and sleep changes.

Sleep and migraine can affect each other. Work with your care team to get your sleep on track, which can help ease your migraine symptoms, too.

Are your headaches a symptom of migraine? Get a quick assessment.

Share this article

This is a member-feature!

Sign up for free to view article comments.

A MyMigraineTeam Member

Migraine and lack of sleep seems to go hand in hand with me, most nights I sleep 3-4 fitful hours. When I go 3-4 days very little sleep, then I may sleep 6 fitful hours. I'm reluctant to take… read more

Attach a gif

Click on a gif to attach it

Powered By KLIPY
All updates must be accompanied by text or a picture.

We'd love to hear from you! Please share your name and email to post and read comments.

You'll also get the latest articles directly to your inbox.

Subscriber Photo Subscriber Photo Subscriber Photo
112,696 members
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service.
Privacy Policy • Terms of Use

Related

Migraine is more than just a headache. It can cause a wide range of symptoms, including head pain...
How To Identify Migraine Symptoms Early
Migraine is more than just a headache. It can cause a wide range of symptoms, including head pain...
If you’re working or a parent who lives with migraine, the symptoms that begin before a migraine ...
My Migraine Warning Signs (VIDEO)
If you’re working or a parent who lives with migraine, the symptoms that begin before a migraine ...
From memory lapses and attention issues to challenges finding the right words, cognitive dysfunct...
Migraine and Cognitive Function: What To Expect
From memory lapses and attention issues to challenges finding the right words, cognitive dysfunct...

This is a member-feature!

Sign up for free to save articles for later.

Join today!

Information You Can Trust.
Support When You Need It.

Continue with Facebook
Continue with Google
Continue with Email
By joining, you accept our Terms of Use, and acknowledge our collection, sharing, and use of your data in accordance with our Health Data and Privacy policies.
Already a member? Log In

Thank you for subscribing!

Become a member to get even more

Bubbles with Question Marks
Ask Questions
Doctor with Stethoscope
Get Advice
Videos on Mobile Device
Personalized Content
Group with Heart
Meet Others Who Understand
See answer