Yes, lack of sleep can cause headaches. A short or broken night is a common trigger for both tension-type headaches and migraines, so if you’re nursing a dull ache after four hours of sleep, there’s a pretty ordinary explanation.
This kind of headache is common and usually short-lived. You can start feeling better today with water, food and a few simple fixes, and a steadier sleep schedule makes the next one less likely.
How Much Sleep Loss It Takes
Less than you’d think. In a small 1990 study of healthy adults published in Cephalalgia, losing one to three hours of sleep over one to three nights was enough to bring on headaches. Nobody in that group had to pull an all-nighter.
If you already get migraines, you may know a short night is one of your triggers. When short sleep keeps happening, the headaches can show up more often and hit harder.
Sleep can also cause trouble in the other direction. Sleeping in, long naps and big weekend catch-up sessions can set off a headache too.
As a baseline, adults should get at least seven hours of sleep on a regular basis, according to a joint recommendation from the American Academy of Sleep Medicine and the Sleep Research Society. If you’re wondering whether your usual night measures up, here’s more on whether 6 hours of sleep is enough.
What a Lack-of-Sleep Headache Feels Like
Most of the time it’s a dull, pressing ache on both sides of your head. Many people describe it as a tight band around the forehead or temples. It’s usually mild to moderate: annoying and draining, but you can still get through your day.
You might also feel it behind your eyes, or at the back of your head and neck if your muscles are tight. It often shows up alongside the other signs of a short night: heavy eyes, foggy thinking, irritability, a low mood and constant yawning.
Timing is a clue. The headache may be there when you wake up, or it may build through the day and get worse as you get more tired.
It’s probably sleep-related if it follows a short or broken night, comes with no other new symptoms and fades once you get a full night of sleep.
Tension-Type Headache or Migraine After a Bad Night?
A tension-type headache feels like pressure or tightness on both sides. It doesn’t usually get worse when you walk around, and it doesn’t come with nausea.
A migraine feels different. It’s more often throbbing or pulsing, frequently on one side, and it can bring nausea and sensitivity to light and sound. Some people see an aura (flashing lights or zigzag lines) beforehand. Moving around usually makes it worse.
Migraine is also far more common in women. In a large US survey published in Neurology in 2007, about 17% of women had a migraine in the past year, compared with roughly 6% of men. That’s about three women for every man.
Why Sleep Loss Triggers Headaches
1) Your Pain Threshold Drops
After a short night, your body may become more sensitive to pain, so an ache you’d normally shrug off can feel a lot louder. A short night is also linked to more inflammation, which may add to that sensitivity.
2) Brain Chemicals Shift
Sleep loss may affect serotonin, a brain chemical tied to both mood and migraine. That may be why a short night can bring a headache and a short fuse at the same time.
3) Stress Hormones Rise and Muscles Tighten
A rough night can push up cortisol, your main stress hormone. If your shoulders creep toward your ears and your jaw stays clenched the next day, that muscle tension in your neck, shoulders and scalp often comes with the pressing, band-like ache of a tension-type headache.
4) Your Internal Clock Gets Thrown Off
Your sleep-wake cycle follows a circadian rhythm, guided in part by the hypothalamus, a small area of your brain that makes hormones tied to basic needs like sleep and hunger. When your sleep timing gets knocked off course, that disruption may contribute to headaches.
The link often runs both ways. A pounding head makes it hard to fall asleep, the short night leaves you depleted, and the next day brings another headache.
Other Things a Bad Night Sets Off
A short night changes how you spend the next day, and some of those changes can pile onto the headache:
-
Caffeine: Extra coffee gets you through the afternoon, pushes bedtime later and can leave you with a caffeine withdrawal headache the next morning if your first cup comes late.
-
Dehydration: Long days, a glass of wine and forgetting to drink water all add up.
-
Skipped or late meals: Running on empty, with low blood sugar, can make a headache worse.
-
Screens: Late-night scrolling strains your eyes and makes it harder to fall asleep.
-
Alcohol: It can make you drowsy at first, but sleep often gets lighter and more broken later in the night.
-
Jaw clenching or teeth grinding: During stressful stretches, this can leave you with sore jaw muscles and temple pain in the morning.
Your cycle can add to it as well. Sleep often gets worse around your period, and period-related migraines can overlap with a headache from a short night, which makes it hard to tell which one you’re feeling.
Can Too Much Sleep Cause Headaches?
It can. Oversleeping, long naps and catch-up sleep can all set off a headache, especially if you get migraines.
The “weekend headache” is a classic example. After a week of short nights, you sleep in on Saturday. That shifts your body clock and pushes back your first coffee, and you wake up groggy with a headache.
Naps can do it too. Waking up from deep sleep can leave you foggy (doctors call this sleep inertia), and you may also be thirsty or sore from sleeping with your neck at an odd angle.
So try to keep your bedtime, wake time and naps about the same from day to day. If you nap, keep it to about 20 to 30 minutes, earlier in the afternoon.
How to Get Rid of a Headache From Lack of Sleep
When your head hurts and you’re running on fumes, start here:
-
Drink water first: Have a big glass, then keep sipping. If you’ve been sweating or drinking alcohol, an electrolyte drink can help too.
-
Eat something with protein: Especially if you skipped breakfast or lunch.
-
Have your usual coffee if you drink it daily: One cup may ease a headache, but stacking extra cups can backfire later.
-
Take an over-the-counter pain reliever: Ibuprofen, acetaminophen, naproxen or aspirin can help. Follow the label, keep it occasional and check with your provider first if you’re pregnant.
-
Try a cold or warm compress for 10 to 15 minutes: Cold on your forehead or temples helps with throbbing pain. Warmth on your neck and shoulders helps with tightness.
-
Take a short nap if you can: About 20 minutes in a dark, quiet room is enough.
-
Loosen up: Gently stretch your neck and shoulders, unclench your jaw and step outside for daylight and a short walk.
-
Go easy on screens: Lower the brightness and look away regularly.
About pain relievers: using them too often can lead to rebound headaches, also called medication-overuse headaches. Under the international diagnostic criteria, that risk applies to people who already get headaches and take pain relievers on about half the days of the month or more for several months.
How Long a Lack-of-Sleep Headache Lasts
Usually a few hours. In the 1990 study, they lasted anywhere from about an hour to the whole day. Most ease off after a normal night of sleep. If yours lasts for days or keeps coming back, check in with a healthcare provider.
If It Feels Like a Migraine
Rest in a dark, quiet room as early as you can, since sleep can help end a migraine attack. In a 1982 study of 50 people with migraine published in the Journal of Neurology, Neurosurgery, and Psychiatry, sleep was a common way the headache phase ended. Some people could shorten an attack by sleeping during the day.
If your doctor has given you a migraine plan or medication, follow it. If you don’t have one and migraines keep happening, a doctor can talk to you about migraine-specific treatment.
How to Prevent Headaches From Lack of Sleep
Small changes to the life you already have can make a real difference, and one bad night doesn’t undo them.
-
Wake up at the same time every day: Weekends included. This one habit keeps your body clock steady.
-
Aim for seven or more hours: Pick your wake time, then count back to find your bedtime.
-
Give yourself a wind-down hour: Put work and screens away, dim the lights and keep your bedroom cool, dark and quiet.
-
Stop caffeine about six hours before bed: And go easy on evening drinks.
-
Get daylight and movement early: Morning light and regular exercise help with sleep, as long as your workout isn’t right before bed.
The caffeine cutoff comes from a small 2013 sleep study published in the Journal of Clinical Sleep Medicine. A large dose taken six hours before bed still cut people’s sleep by more than an hour. Treat six hours as a sensible guideline.
A simple sleep and headache diary helps too. Jot down your bedtime, wake time, caffeine, alcohol, cycle day and whether you got a headache. Patterns show up quickly, and your notes are useful to bring to a doctor’s appointment.
If stress keeps you up at night, a short relaxation or mindfulness practice before bed can help you settle down. For the full checklist of habits, see our guide to sleep hygiene.

Where Sleep Supplements Fit
A sleep supplement may help on the occasional night when you have trouble falling asleep. Melatonin is the hormone your body makes as it gets dark, and magnesium glycinate is a popular choice for relaxing before bed. Our guide to magnesium for sleep goes deeper.

Our doctor-developed Sleeping Beauty® combines melatonin (3 mg in a two-capsule serving), magnesium and valerian root, plus lemon balm, to help you fall asleep faster and stay asleep longer.* You take one or two capsules about an hour before bed, as needed. It’s part of our Mood + Sleep collection. If you’d rather skip capsules, Quick Melt Strips SLEEP* dissolve on your tongue with no water needed.
Check with your healthcare provider before taking a sleep supplement if you’re pregnant, take medication or have had trouble sleeping for weeks.
When It’s Something Else: Sleep Disorders and Warning Signs
Sometimes a morning headache points to something other than a short night.
1) Sleep Apnea
If you wake up with a headache several days a week and also snore loudly, gasp for air at night or feel sleepy all day, ask your doctor about sleep apnea.
A sleep apnea headache shows up on waking, usually affects both sides of the head and fades within about four hours. It improves when the sleep apnea is treated, often with a CPAP machine.
2) Insomnia
If you have trouble falling asleep or staying asleep most nights for weeks at a time, talk to your doctor. Ongoing insomnia is treatable, and there are approaches that don’t rely on sleeping pills.
3) Hypnic Headache
This headache wakes you up from sleep, often at about the same time each night.
4) Cluster Headache
This is a severe pain on one side of the head, around the eye. The eye on that side may water and the nostril may run, and attacks often come at night.
See a healthcare provider if your headaches:
-
Happen often or keep getting worse
-
Have you reaching for pain relievers on about half the days of the month
-
Regularly wake you up
-
Change from your usual pattern
Get urgent care right away for a sudden headache that feels like the worst of your life, or a headache with fever and a stiff neck, confusion, weakness, numbness, vision loss or trouble speaking. The same goes for any headache after a head injury.
Water Today, a Steady Wake Time Tomorrow
If you’re reading this with a headache after a short night, start with a big glass of water, and know that most of these headaches ease off after one good night of sleep.
For the nights ahead, hold your wake time steady, weekends included. If falling asleep is the hard part, a supplement from our Mood + Sleep collection can be part of your wind-down routine.
If the headaches keep coming, show up with snoring or wake you at night, bring your sleep and headache diary to your doctor so you can work out what’s going on together.
*