To sleep with a headache, drink a glass of water, take acetaminophen (paracetamol) or ibuprofen following the label, then lie still in a dark, quiet, cool room with your head and neck comfortably supported, and keep your usual wake time in the morning. Most headaches go away on their own and aren't serious, according to the NHS. The goal tonight is to settle the pain enough to fall asleep, without doing the things that tend to make tomorrow's head worse.
Free toolSleep CalculatorBest bedtime or wake-up time, based on 90-minute sleep cycles.How to sleep with a headache tonight
Work through this short list in the half hour before bed. Most of it comes from the NHS self-care advice for headaches.
- Drink a glass of water. Dehydration is a common cause of headaches, and the NHS lists plenty of water as the first thing to try.
- Take acetaminophen (paracetamol) or ibuprofen if you need it, following the label. Don't add a combination cold or flu product that already contains a pain reliever.
- Eat something light if you skipped a meal. Irregular meals are a common trigger.
- Put screens away. Long stretches of screen time strain your eyes, which the NHS says to avoid with a headache.
- Skip the nightcap. The NHS advice is not to drink alcohol when you have a headache.
- Make the room dark, quiet and cool, then lie down and keep still.
- Set your normal alarm. Sleeping much longer than usual can make a headache worse.
How to sleep with a bad headache or a pounding headache
With a bad or pounding headache, take a pain reliever early, then lie still in the dark rather than tossing and turning. A throbbing headache often feels worse when you move, so settling into one position and staying there helps more than searching for the perfect spot.
Try this order: water, pain reliever, lights off, phone face down across the room. Give the medicine time to work before you decide it isn't working. Breathing slowly and letting your jaw, shoulders and forehead go loose can help you relax, and the NHS notes that stress can make headaches worse.
Check the red flags further down before you settle in. A headache that is sudden and extremely painful, the worst you've ever had, is not one to sleep off.
How to sleep with a tension headache
For a tension headache, relax your neck and shoulders, support your head so your neck stays level, and take a pain reliever following the label if you need one. Stress and bad posture are both common causes, so the hours before bed matter as much as the pillow.
A few things that tend to help:
- Get off the laptop early. A long evening hunched over a screen combines eye strain and poor posture.
- Use one pillow that keeps your neck straight, whether you lie on your back or your side. Too high or too flat bends the neck.
- Wind down on purpose. A warm shower, dim lights and a few minutes of slow breathing. Our guide to how to sleep when stressed has a fuller routine.
How to sleep with a sinus headache
When a headache comes with a cold, flu or blocked nose, rest, drink plenty of water and take a pain reliever following the label. The NHS lists colds and flu as common causes of headaches and specifically advises resting when you have one.
An extra pillow may feel more comfortable while your nose is blocked. Don't use mouth tape while you're sick, nauseous or your nose is blocked. Our guides to sleeping with a runny nose and sleeping with the flu cover congestion and aches in more detail.
One caution: a headache that gets worse when you cough, sneeze or bend over needs urgent advice from a doctor, so don't assume that pattern is "just sinus."
How to sleep with a headache and fever
With a headache and fever, focus on fluids, light layers and a pain reliever following the label, as you would for a fever alone. Our guide to how to sleep with a fever walks through chills, sweats and what to keep by the bed.
Get emergency help if a very high temperature comes with a stiff neck, light hurting your eyes, or a rash that doesn't fade when you press a glass against it.
How to sleep with a migraine
With a migraine, take your pain reliever as soon as the headache starts, then lie down in a dark, quiet room and keep still. The NHS describes a migraine as a throbbing headache, often on one side, that gets worse when you move, often with nausea or vomiting and sensitivity to light and sound. Attacks usually last 4 hours to 3 days.
That makes the bedroom setup the main tool you have tonight:
- Blackout the window or wear an eye mask
- Turn off anything that hums, beeps or glows
- Keep a bucket or bowl and a glass of water within reach if you feel sick
- Lie still, with your head supported, and let sleep come
The NHS lists stress, tiredness, skipping meals and too much caffeine among common migraine triggers. Keeping a diary of what you ate, drank and how you slept before each attack can help you spot your own pattern. If coffee is part of it, the caffeine calculator shows how much is likely still in your system at bedtime.
What helps by headache type
| Headache tonight | What helps |
|---|---|
| Bad or pounding | Water, pain reliever per the label, lie still in the dark |
| Tension | Screens off early, neck kept level, slow breathing, warm shower |
| With a cold, flu or blocked nose | Rest, fluids, extra pillow if it feels better, no mouth tape |
| With a fever | Fluids, light layers, pain reliever per the label |
| Migraine | Pain reliever at the first sign, dark quiet room, bucket and water nearby |
| After drinking | Water, no more alcohol, normal wake time |
| From a missed meal | A light snack, then water and rest |
Should you sleep off a headache?
Rest helps, but don't sleep much longer than you usually would. The NHS lists oversleeping as something that can make a headache worse. The exception is when you're also ill with a cold or flu: then rest is part of recovery, and our guide to how much sleep you need when sick explains why more sleep is fine.
For an ordinary headache, go to bed at a normal time and get up at your usual time. Use the sleep calculator to pick a bedtime that fits your usual alarm, so you aren't tempted to sleep in to make up for a rough night.
Can painkillers cause more headaches?
Yes. Taking painkillers too often can cause more headaches, and the NHS lists "too many painkillers" as a cause. For migraine, the NHS advice is to try not to take painkillers on more than 2 days a week.
If you're reaching for tablets most nights, that's a reason to see a doctor, not to take more. Write down what you take and when, especially at night when it's easy to lose track.
Can alcohol give you a headache that keeps you up?
It can. Too much alcohol is a common cause of headaches, and the NHS says not to drink alcohol when you have one. Alcohol can also make you fall asleep faster but disrupt sleep in the second half of the night, so a drink "to knock you out" tends to backfire. See when to stop drinking alcohol before bed for a cutoff time.
When to see a doctor for a headache
See a doctor if your headache isn't getting better or is getting worse, or if you get headaches regularly.
Get urgent advice (in the US, call your doctor or an urgent care clinic) if you have a headache:
- With vision problems
- Triggered or made worse by coughing, sneezing, bending over or exercise
- With vomiting
- With jaw pain when eating, or a tender scalp
- That is a migraine attack lasting more than 72 hours, or aura lasting more than 1 hour
Call 911 (or your local emergency number) if a headache comes with any of these:
- A seizure, numbness or weakness in the face, arms or legs
- Sudden, extremely painful onset
- A head injury in the last 3 months
- Trouble speaking, walking, balancing or remembering
- Drowsiness or confusion, or loss of vision
- A very high temperature with a stiff neck, light hurting your eyes, or a rash that doesn't fade under a glass
Don't drive yourself if you have any of these signs. For a child with a headache, follow your pediatrician's advice.