Migraine triggers

Sleep and migraine: too little, too much, and irregular

Sleep and migraine are tangled in both directions: bad sleep invites attacks, and attacks wreck sleep. The strange part — and the useful part — is that oversleeping can be just as risky as a short night.

Updated August 2026 · 6 min read

A two-way street

Sleep and migraine share brain circuitry — the hypothalamus, which runs your body clock, shows changed activity in the hours before an attack begins. That overlap helps explain why the relationship runs both ways: people with migraine report insomnia and unrefreshing sleep more often than average, and disturbed sleep is among the most consistently reported attack triggers in diary studies. It also explains why sleep can end an attack; many people find that if they can manage to sleep, they wake up on the other side of it.

Too little sleep

A short or broken night is the intuitive half of the story. Sleep deprivation lowers your threshold: research suggests it makes the pain pathways involved in migraine more excitable, so triggers that you'd normally absorb — a skipped meal, a stressful morning, a pressure drop — are more likely to tip you into an attack. One bad night doesn't guarantee anything, but a run of them stacks the odds.

Too much sleep, and the weekend migraine

Less intuitive: sleeping in triggers attacks too. The pattern is common enough to have a name — the weekend migraine. You keep a disciplined schedule Monday to Friday, then Saturday you sleep two hours past your alarm and wake with that familiar building pain. Several things change at once on that morning: your wake time shifts, your sleep length jumps, and if you drink coffee daily, your first cup arrives hours late — mild caffeine withdrawal layered on top of the schedule change. The American Migraine Foundation highlights both irregular schedules and oversleeping as recognized triggers, alongside sleep deprivation.

Regularity beats duration

The emerging picture from research is that the migraine brain cares less about hitting a specific number of hours and more about predictability. A consistent bedtime and wake time — yes, weekends included — appears to do more for attack frequency than chasing extra sleep on an erratic schedule. Think of steady sleep as a threshold-raiser: it doesn't remove your other triggers, but it gives you more headroom before any of them can push you over.

Worth knowing

Poor sleep the night before an attack isn't always a trigger — sometimes it's a symptom. The prodrome phase of migraine can begin many hours before the pain, and restlessness or shallow sleep can be part of it. A diary showing timing, night after night, helps you and your doctor tell the two stories apart.

Tracking sleep against attacks — without the homework

Testing your own sleep sensitivity means answering one question per attack: how did I sleep the night before? Writing that down manually, every day, mid-attack, is the kind of chore that kills diaries. This is why Dim reads last night's sleep from Apple Health automatically — whatever your iPhone or Apple Watch already recorded — and attaches it to each attack you log, alongside weather and pressure. After a month or two you can look at the record honestly:

Any of those three answers is progress. The last one is the most underrated: crossing sleep off the suspect list saves you from restructuring your life around a trigger you don't actually have.

What helps if sleep is one of your triggers

The advice is unglamorous and effective: keep wake time steady seven days a week, wind down before bed away from bright screens, and treat naps with care if they push your night sleep later. If you snore heavily, gasp at night, or wake up with headaches most mornings, mention it to your doctor — sleep disorders like apnea are more common in people with migraine and are treatable once diagnosed. And bring your diary: a record showing attacks lined up against short or shifted nights gives a clinician something concrete to act on.

Quick answers

Can oversleeping cause a migraine?

Yes, for some people — the classic weekend migraine follows a long lie-in. The migraine brain reacts to deviations from routine in both directions, so extra sleep can be as risky as too little.

How much sleep should I get to avoid migraines?

There's no universal number. Research points to regularity — consistent bed and wake times every day — as mattering at least as much as duration. Your own tracked data shows what range works for you.

How do I track sleep against my attacks?

Log each attack with the previous night's sleep. Dim pulls last night's sleep from Apple Health automatically and attaches it to every log, so the comparison builds itself.

See what your nights are doing to your days

Dim logs an attack in three taps and attaches last night's sleep from Apple Health automatically — along with weather and pressure. Quiet, dark, and private.

Download Dim migraine tracker on the App Store

No account · No ads · Nothing sold

Dim is a diary, not a medical device. This article is general information, not medical advice — it does not diagnose, treat, or prevent any condition. Always consult a qualified clinician about your health.