How to Get Rid of a Headache: Evidence-Ranked Relief, Step by Step

Key Takeaways
- Tension-type headaches are the most common kind worldwide, and gentle movement plus heat on the neck often helps them, while migraine typically responds better to cold, dark, and quiet.
- In a randomized trial, a cold wrap applied to the neck at migraine onset significantly reduced pain within 30 minutes.
- Using over-the-counter pain relievers on more than roughly 10 to 15 days per month can cause rebound (medication-overuse) headaches — the remedy becomes the cause.
- Regular aerobic exercise around three times a week has reduced migraine frequency in trials to a degree comparable with some established preventive strategies.
- Both too little and too much sleep trigger headaches; a consistent wake time seven days a week protects better than extra weekend hours.
- A 'thunderclap' headache that peaks within about 60 seconds, or any headache with fever, stiff neck, weakness, or confusion, is an emergency — not a wait-and-see situation.
To ease most headaches, drink one to two glasses of water, step away from screens, and rest briefly in a quiet, dim room. A cold pack on the forehead or a warm compress on the neck often helps, as can gentle movement like a short walk. If pain is sudden and severe, or comes with fever, confusion, or weakness, seek medical care promptly.
It usually arrives around 3 p.m. — a slow tightening across the forehead, as if someone were adjusting an invisible band one click at a time. You squint at the screen, roll your shoulders, and start bargaining: maybe more coffee, maybe less, maybe just push through until dinner.
Here’s the thing most of us get wrong. We treat every headache the same way, usually by reaching for whatever is in the medicine cabinet and hoping. But headaches come in distinct types with different mechanisms, and the fixes that work for one can do nothing for another — or, in the case of overused pain relievers, quietly make things worse.
So instead of another list of vague tips, this is a ranked, evidence-first walkthrough: what to do in the first fifteen minutes, which home remedies actually hold up in studies, and — because this matters more than anything else on the page — the specific warning signs that mean a headache needs a doctor, not a dark room.
First, figure out which headache you're fighting
The right fix depends on the type, and the differences are more distinct than most people realize. Tension-type headaches — the pressing, band-around-the-head kind — are by far the most common; the World Health Organization estimates they affect a majority of adults at some point. Migraine is a different animal: usually one-sided, throbbing, worsened by movement, often paired with nausea or sensitivity to light and sound. Cluster headaches, rarer at roughly one in a thousand people, strike one eye with searing intensity in bouts lasting weeks.
| Type | How it feels | Telltale clue | First move |
|---|---|---|---|
| Tension-type | Dull, pressing, both sides | Neck and shoulder tightness | Movement, heat, stress break |
| Migraine | Throbbing, often one side | Nausea, light sensitivity | Dark quiet room, cold pack |
| Dehydration-related | Dull, all-over | Improves within hours of fluids | Water, rest |
| Cluster | Severe, around one eye | Restlessness, watery eye | Medical evaluation |
Why bother sorting this out? Because a brisk walk can genuinely help a tension headache but may worsen a migraine mid-attack, and because cluster headaches need a clinician’s care rather than home remedies. Two minutes of honest self-assessment — where does it hurt, does movement make it worse, is there nausea — points you toward the steps that follow instead of guesswork.
The first 15 minutes: what to do right now, in order
When a headache starts, sequence matters, because early intervention consistently outperforms late intervention in headache research. Here’s the order that the evidence supports.
Start with water — a full glass or two, sipped over a few minutes. Mild dehydration is one of the most common and most reversible headache contributors, and studies suggest that when fluids are the cause, rehydration can bring relief within 30 minutes to three hours.
Next, change your environment. Step away from the screen, dim harsh lighting, and reduce noise if you can. For migraine especially, Mayo Clinic and NHS guidance both point to resting in a dark, quiet room as one of the most reliably effective non-drug measures.
Then apply temperature: a cold pack wrapped in a thin towel on the forehead or the back of the neck for migraine-type pain, or a warm compress on tight neck and shoulder muscles for tension-type pain. In one small randomized trial, a cooled neck wrap applied at migraine onset meaningfully reduced pain within 30 minutes.
Finally, if you and your clinician have already settled on an appropriate pain reliever, taking it early in the attack — rather than toughing it out for two hours first — is when it works best. That’s not a loophole for taking more; it’s a timing insight. Waiting until pain peaks means chasing the headache rather than intercepting it.
Does drinking water really get rid of a headache?
Sometimes, and it costs nothing, which is why it earns the top of the list. The honest version of the evidence: dehydration headaches are well documented — the brain sits in fluid, and even modest fluid loss can trigger pain-sensitive structures — and MedlinePlus and the NHS both list inadequate fluid intake among common headache triggers.
What the research actually shows is more modest than the internet suggests. A small trial in which people with recurrent headaches added roughly six extra cups of water a day found improved quality of life and less perceived pain, though not fewer headache days overall. So water is not a universal cure. It’s a fast, safe, high-probability first step, particularly if you’ve been sweating, traveling, drinking alcohol, or simply forgot to drink much before noon.
A useful self-test: if your headache came with thirst, a dry mouth, or darker urine, hydration is a strong candidate for the cause, and improvement typically arrives within a few hours. If you’re well hydrated and the headache persists, move down the list rather than forcing more fluids — dramatically over-drinking water helps nothing.
One practical habit worth stealing from sports medicine: front-load fluids earlier in the day. Many desk-hour headaches trace back to a morning of coffee and nothing else, followed by an afternoon deficit your skull registers before your thirst does.
Caffeine: the double agent in your headache story
Caffeine occupies a strange position in headache science — it appears on both the trigger list and the remedy list, and both placements are legitimate.
On the remedy side: caffeine narrows blood vessels and appears to enhance pain relief, which is why it shows up as an ingredient in some headache products. A modest cup of coffee early in a headache can help some people, and Harvard Health notes this effect is real, if inconsistent.
On the trigger side, the mechanism is withdrawal. If your body expects caffeine daily and it arrives late — or not at all — blood vessels rebound and a headache follows, often within 12 to 24 hours of your usual dose window. This is the classic Saturday-morning headache of people who drink office coffee on a weekday schedule and sleep in on weekends.
There’s a third complication: in people with frequent migraine, regular high caffeine intake is associated with more headache days, not fewer, and some headache specialists advise tapering rather than escalating.
The practical translation is about consistency, not abstinence. Keep your caffeine intake moderate and — this is the part most people miss — keep the timing steady, weekends included. If you suspect caffeine is feeding your headaches, taper gradually over a week or two rather than quitting cold, which reliably produces the very headache you’re trying to escape.
Can exercise actually get rid of a headache?
For tension-type headaches, movement is one of the most underrated remedies in the entire toolkit — and given how many headaches begin in a chair, that’s fitting. Gentle aerobic activity increases blood flow, releases endorphins that act on the same pain pathways as some medications, and loosens the neck and shoulder muscles that feed tension headaches. A 10- to 20-minute walk, easy cycling, or light mobility work can take the edge off an active tension headache for many people.
Migraine is more complicated, and the distinction matters. During an attack, physical activity typically makes migraine pain worse — that’s actually one of its diagnostic features — so mid-attack exercise is the wrong move. Between attacks, though, the evidence flips impressively: randomized trials have found that regular aerobic exercise, on the order of 30 to 45 minutes three times a week, reduced migraine frequency to a degree comparable with some established preventive strategies.
A few ground rules keep exercise on the helpful side of the ledger. Warm up gradually, since sudden all-out exertion can itself trigger a headache in susceptible people. Hydrate before and after. And skip the heavy straining — breath-holding lifts and maximal efforts are more likely to provoke exertional headaches than to relieve anything.
If a headache reliably appears during exercise, especially if it’s sudden or severe, that’s not something to train through; it warrants a conversation with a clinician.
Is your neck the real culprit? The desk-worker headache
Trace a tension headache backward and you often land at the base of the skull, where the upper trapezius and suboccipital muscles attach. Hold your head forward of your shoulders — the default posture of screen work — and those muscles work overtime; the head weighs roughly 10 to 12 pounds in neutral position, and its effective load on the neck multiplies as it drifts forward. Hours of that, and the muscles refer pain up and over the scalp in exactly the band-like pattern tension headaches are known for.
Cleveland Clinic and Mayo Clinic both list muscle tension and sustained postures among the main contributors to tension-type headache, which means the fix can be mechanical rather than pharmaceutical.
- Chin tucks: sitting tall, glide your chin straight back (making a brief double chin), hold five seconds, repeat five to ten times. This resets the deep neck flexors that forward posture switches off.
- Upper-trap stretch: gently tilt one ear toward the shoulder until you feel a stretch on the opposite side; hold 20 to 30 seconds per side.
- Shoulder rolls and doorway chest stretches every hour or two of desk work.
Raise your monitor so the top third sits at eye level, and keep your phone closer to eye height than lap height. None of this is glamorous. But for the person whose headaches arrive most workday afternoons and spare the weekends, the neck — not the head — is usually where the problem lives.
Cold pack or heating pad — which one actually works?
Both, but for different headaches, and mixing them up wastes a perfectly good remedy.
Cold is the stronger performer for migraine-type pain. Cooling the forehead, temples, or neck appears to constrict blood vessels and dampen the transmission of pain signals; in a randomized trial, participants who applied a frozen neck wrap targeting the carotid arteries at migraine onset reported significantly reduced pain at the 30-minute mark compared with those who didn’t. Mayo Clinic includes cold compresses among its recommended self-care steps for migraine. Keep a thin towel between ice and skin, apply for about 15 to 20 minutes, and repeat after a break if needed.
Heat wins for tension-type headaches, because the target isn’t the head at all — it’s the tight musculature of the neck and shoulders driving the pain. A warm compress, heating pad on a low setting, or a genuinely warm shower relaxes those muscles and improves local blood flow. Fifteen to twenty minutes is plenty, and warmth before the stretches described above makes them noticeably more productive.
Unsure which type you have? A reasonable rule of thumb: throbbing pain with light sensitivity leans cold; pressing pain with a stiff, achy neck leans heat. And if one temperature does nothing after a fair trial, switching to the other is a legitimate experiment — individual responses vary, and the stakes are pleasantly low.
What about pain relievers — and the rebound trap nobody warns you about
Over-the-counter pain relievers genuinely work for many occasional headaches; that’s well supported and worth saying plainly. Used early in an attack, at the frequency your clinician or the label advises, they’re a reasonable tool.
The trap is frequency, and it’s common enough to have its own diagnosis: medication-overuse headache, sometimes called rebound headache. Here’s the mechanism in brief. When pain relievers are used very often — NHS and Mayo Clinic guidance generally flags regular use on more than about 10 to 15 days per month, depending on the product — the brain’s pain-processing systems adapt. As each dose wears off, a withdrawal-like headache emerges, prompting another dose, and the cycle tightens. The cruel result: the remedy becomes the cause, and the person ends up with more headache days than they started with, often a dull daily headache that’s worst on waking.
Warning signs that this cycle may have started include headaches on most days, reaching for relief preemptively ‘just in case,’ and finding that the usual remedy barely works anymore. The way out is not simply stopping abruptly on your own — headaches typically worsen before they improve, and the process goes far better with a clinician’s guidance and a plan.
The evidence-first rule of thumb: pain relievers are for occasional headaches. If you need them more than two or three days a week, the conversation to have isn’t with the pharmacy shelf — it’s with a doctor, because better preventive options exist.
Sleep and headaches: too little hurts, and so does too much
Sleep and headache share wiring — the hypothalamus and brainstem regions involved in sleep regulation overlap with pain-modulating circuits — which is why the relationship runs in both directions. Poor sleep triggers headaches; frequent headaches disrupt sleep; and the resulting loop is one of the most common patterns headache clinics see.
The details are more interesting than ‘sleep more.’ Both sleep deprivation and oversleeping are documented triggers, particularly for migraine — that’s part of why weekend lie-ins so often end in a headache rather than a refreshed morning. What appears to protect people most is regularity: a consistent wake time, seven days a week, matters more than squeezing out extra hours on some nights to repay others.
For an active headache, a short nap in a dark, quiet room can abort a migraine for some people — many patients describe sleep as the only thing that fully ends an attack. For prevention, the fundamentals hold up in the research: a target of roughly seven to nine hours for most adults, a cool and dark bedroom, and winding down without screens in the last half hour, since bright light close to bedtime delays sleep onset.
Two specifics worth flagging. Headaches that consistently wake you from sleep, or that are present every morning on waking, deserve medical evaluation — they can signal sleep apnea or other conditions a clinician should assess rather than something to self-manage indefinitely.
Screens, eyestrain, and the 20-20-20 rule
Blame the screen, but be precise about why. Digital eyestrain headaches come less from the light itself than from the work of sustained near focus: the eye’s focusing muscles hold one contracted position for hours, blink rates drop by as much as half during concentrated screen use, and squinting recruits the same forehead and temple muscles that ache in a tension headache.
The most practical countermeasure is the 20-20-20 rule: every 20 minutes, look at something at least 20 feet away for at least 20 seconds. It sounds almost too small to matter, and yet it directly relaxes the focusing system that near work locks up. Pair it with deliberate full blinks and the dryness component improves too.
A few setup details do measurable work. Position your screen about an arm’s length away with the top at or slightly below eye level, so your neck stays neutral and your eyelids sit slightly lowered — a posture that reduces both muscle strain and eye-surface drying. Match screen brightness to the room rather than running a bright display in a dim space, and cut glare from windows behind or beside you.
One myth worth retiring gently: current evidence has not shown that blue-light-filtering glasses prevent eyestrain or headaches, whatever the marketing implies. And if screen headaches are frequent, an eye exam is a smarter investment — an uncorrected or outdated prescription is one of the most fixable headache causes there is.
Which foods trigger headaches — and does skipping meals count?
Skipping meals is the food-related trigger with the strongest, least controversial evidence, so start there. When blood sugar dips after a missed meal, the brain — a glucose-hungry organ — responds with stress hormones, and a headache commonly follows. If your headaches cluster in late morning or late afternoon, an erratic eating schedule is a prime suspect, and regular meals are among the simplest preventive steps NHS guidance recommends.
Specific food triggers are real but wildly individual, and the popular lists overstate the certainty. The candidates with the most consistent evidence: alcohol (red wine especially), and for some people aged cheeses, cured meats, and heavily processed foods. Chocolate is frequently accused but poorly convicted — some research suggests craving chocolate can be an early symptom of a migraine already underway, making it look like a cause when it’s actually a warning sign.
Rather than banning entire food groups on suspicion, keep a simple diary for a month: note what you ate in the 24 hours before each headache, along with sleep and stress. A pattern that repeats three or more times is worth testing; a single coincidence is not. Overly restrictive elimination diets, undertaken without guidance, tend to add stress and subtract nutrients without reducing headaches.
On the prevention side, some evidence — reviewed by the NIH Office of Dietary Supplements — links low magnesium status with migraine, and magnesium-rich foods such as leafy greens, nuts, seeds, and whole grains are a sensible, food-first response. Anyone considering supplements should talk with a clinician first.
Do relaxation and breathing techniques actually hold up in studies?
Better than skeptics assume, though not as magically as wellness feeds suggest. Stress is the most commonly reported headache trigger across surveys, and the mechanism is concrete: stress raises muscle tension in the scalp and neck, alters pain processing, and disrupts sleep — a three-way assist for headaches.
The techniques with actual trial evidence behind them, per reviews cited by Mayo Clinic and Harvard Health:
- Slow diaphragmatic breathing: inhale through the nose for about four counts, exhale slowly for six, for five to ten minutes. Longer exhales engage the parasympathetic system that dials down the stress response.
- Progressive muscle relaxation: systematically tensing and releasing muscle groups from feet to face teaches you to notice — and drop — tension you didn’t know you were holding, particularly in the jaw and shoulders.
- Biofeedback: using sensors to learn control over muscle tension and other stress responses has decades of evidence for reducing tension-type headache and migraine frequency, and it’s among the best-supported non-drug preventives.
- Regular mindfulness practice: evidence suggests it reduces headache-related disability and how much headaches interfere with life, even when it doesn’t always reduce raw frequency.
The catch, and it’s an honest one: these work as ongoing practices, not emergency buttons. Ten minutes of breathing mid-attack may take the edge off; ten minutes daily for two months is where the frequency reductions show up in studies. Consistency is the active ingredient.
When to see a doctor about a headache
Most headaches are unpleasant, not dangerous. A small minority signal something serious, and the distinguishing features are specific enough to memorize.
Seek emergency care immediately for any of the following, per Harvard Health and NHS guidance:
- A ‘thunderclap’ headache — sudden, severe pain that reaches peak intensity within about 60 seconds, often described as the worst headache of your life
- Headache with fever, stiff neck, confusion, or a rash
- Headache with weakness, numbness, trouble speaking, vision loss, or difficulty walking
- Headache after a blow to the head, especially with drowsiness, vomiting, or worsening pain
- Headache with a seizure or fainting
Book a prompt (non-emergency) appointment if your headaches are new and you’re over 50; if a long-standing pattern has clearly changed in character or frequency; if headaches consistently wake you from sleep or greet you every morning; if they worsen with coughing, straining, or lying down; if you’re pregnant and developing new headaches; or if you’re reaching for pain relievers more than two or three days a week.
One reassuring number for perspective: the overwhelming majority of headaches evaluated in primary care turn out to be tension-type or migraine, both manageable. But the red flags above exist precisely because the rare exceptions — bleeding, infection, sharply raised pressure inside the skull — are treatable when caught early. When a headache behaves in a way yours never have before, that novelty itself is the reason to be seen.
Preventing the next one: the habits with real evidence behind them
Treating headaches one at a time is a defensive game. The stronger position — and the one headache specialists consistently emphasize — is prevention, and the evidence points to a handful of unglamorous habits doing most of the work.
Headache medicine sometimes summarizes them with the acronym SEEDS: Sleep on a consistent schedule, Exercise regularly, Eat regular meals and hydrate, keep a Diary, and manage Stress. It’s striking how much of this list overlaps with basic fitness advice, which is rather the point: the same routines that build endurance also stabilize the physiological rhythms — sleep, blood sugar, stress hormones — whose disruptions trigger headaches.
The diary deserves special advocacy, because it converts guesswork into data. For four to six weeks, log each headache’s timing and intensity alongside sleep hours, meals, caffeine, exercise, and notable stress. Patterns emerge quickly: the headaches that follow short sleep, the ones tied to skipped lunches, the Monday cluster after weekend schedule chaos. That record also transforms a doctor’s visit from vague description into something a clinician can actually act on.
And if lifestyle changes aren’t enough — if headaches still arrive weekly or interfere with work and life — that’s not a personal failure to try harder at hydration. Effective preventive treatments exist across several categories, and a clinician can match one to your specific headache type. The step-by-step approach in this article is where to start; it was never meant to be where everyone finishes.
Frequently asked questions
How can I get rid of a headache fast without medication?
Drink one to two glasses of water, move to a quiet, dim space, and apply temperature: a cold pack on the forehead or neck for throbbing migraine-type pain, or a warm compress on tight neck muscles for pressing tension-type pain. Slow breathing with long exhales and a short walk (for tension headaches only) add measurable help. Acting in the first 15 minutes works better than waiting for the pain to peak.
How long does a tension headache usually last?
Anywhere from 30 minutes to several days, according to Mayo Clinic, though most resolve within hours — especially with rest, hydration, heat on the neck, and a break from screens. If a tension-type headache persists beyond a few days, keeps returning multiple times a week, or changes in character, it’s worth a medical appointment to confirm the diagnosis and discuss prevention.
Why do I get a headache every day?
Daily headaches deserve a doctor’s evaluation rather than ongoing self-treatment. Common explanations include medication-overuse (rebound) headache from frequent pain-reliever use, chronic tension-type headache, chronic migraine, sleep disorders such as sleep apnea, and untreated eyestrain. A clinician can sort these out, and a two-to-four-week diary of headaches, sleep, meals, and medication days will make that visit far more productive.
Can dehydration really cause headaches, and how much water helps?
Yes — dehydration is a well-documented headache trigger, and rehydrating can bring relief within 30 minutes to a few hours when fluid loss is the cause. There’s no magic volume; one to two glasses promptly, then steady sips, is reasonable. Clues that dehydration is the culprit include thirst, dry mouth, darker urine, or a day of sweating or alcohol. If you’re well hydrated and still hurting, look to other causes.
Does sleeping cure a headache?
Often, especially for migraine — many people find a nap in a dark, quiet room ends an attack, and sleep and pain share overlapping brain circuitry. But the relationship cuts both ways: oversleeping is itself a documented trigger, which is why weekend lie-ins commonly backfire. For prevention, a consistent wake time matters more than extra hours, and headaches that wake you from sleep warrant medical evaluation.
Do pressure points or massage work for headaches?
Massage of the neck, shoulders, and temples has reasonable evidence for tension-type headaches, since it directly addresses the muscle tightness driving the pain — self-massage of the suboccipital muscles at the skull’s base is a practical starting point. Evidence for specific acupressure points is weaker and mixed. Massage is low-risk, so it’s a fair experiment, but it works best as part of a broader plan including posture, movement, and stress management.
Is it better to use ice or heat for a headache?
Cold generally works better for migraine-type pain — apply a wrapped cold pack to the forehead, temples, or neck for 15 to 20 minutes. Heat works better for tension-type headaches, where the true target is tight neck and shoulder muscles; a warm compress or shower relaxes them. If your best guess at the headache type doesn’t respond after a fair trial, switching temperatures is a legitimate, low-risk experiment.
Can exercise cause headaches instead of helping?
It can. Sudden strenuous exertion, heavy straining lifts, exercising dehydrated, and hard workouts in heat can all provoke exertional headaches, and physical activity typically worsens a migraine already in progress. Gradual warm-ups, hydration, and moderate intensity prevent most of these. A headache that appears suddenly and severely during exercise — particularly a first-ever or worst-ever one — should be evaluated by a doctor rather than trained through.
Why do I wake up with a headache in the morning?
Frequent morning headaches have several evaluable causes: sleep apnea, nighttime teeth grinding, medication-overuse rebound (which classically peaks on waking as overnight doses wear off), alcohol the evening before, or an off-schedule sleep pattern. Because a few of these — especially sleep apnea — carry health consequences beyond headaches, regularly waking with head pain is a specific pattern worth bringing to a clinician rather than treating indefinitely at home.
When is a headache serious enough for the emergency room?
Go immediately for a sudden, severe headache that peaks within about a minute; a headache with fever and stiff neck; one accompanied by weakness, numbness, slurred speech, vision loss, or confusion; a headache after a head injury; or one with a seizure or fainting. These features can signal bleeding, infection, or other emergencies where fast treatment changes outcomes. When in doubt about a headache unlike any you’ve had, err toward being seen.
References
- MedlinePlus — Headache
- NHS — Headaches
- Cleveland Clinic — Headaches: Types, symptoms, causes and treatment
This article is for general information only and is not a substitute for professional medical advice. Please consult a qualified doctor about your individual situation.
More from the Blog
Piriformis Stretch: The Small Muscle Behind Big Sciatic Pain
A piriformis stretch lengthens a small, pear-shaped muscle deep in the buttock that lies close to the sciatic nerve. The best-known version is the…
Cold Plunge: What Ice-Cold Water Actually Does to Your Body
Ice-cold water triggers a rapid stress response: heart rate and blood pressure jump, norepinephrine surges, blood vessels constrict, and breathing quickens. Evidence supports modest…
Best Exercises for Upper Body: A Balanced Plan Beyond Push-Ups
A balanced upper-body routine pairs pushing moves (push-ups, presses) with an equal amount of pulling (rows, pull-downs), plus overhead and arm work, trained two…
Glute Bridge: The Underrated Exercise Your Back Will Thank You For
A glute bridge is a floor exercise in which you lie on your back with knees bent and lift your hips by squeezing your…
Hip Flexor Stretch: Undo the Sitting Your Hips Remember
A hip flexor stretch lengthens the muscles that lift your thigh toward your chest — mainly the iliopsoas and rectus femoris — which often…
Sciatica Stretches: Evidence-Based Relief for the Nerve That Runs Deep
Gentle stretching can ease sciatica pain for many people by reducing pressure and irritation around the sciatic nerve, though it does not cure the…






