What Do You Do When You Have a Headache: Relief Tips

Most headaches respond to a combination of over-the-counter pain relievers, cold application, hydration, rest in a quiet room, and time. The catch is that different headache types respond better to different strategies, and some common habits like reaching for painkillers too often can make the problem worse. What works for a dull, squeezing tension headache won’t always work for a throbbing migraine with nausea, and knowing the difference shapes every decision you make from the medicine cabinet to the pillow.

Figure Out What Kind of Headache You Have

Before you do anything else, a quick self-assessment helps. Tension-type headaches, the most common kind, feel like a band of pressure around both sides of your head. The pain is mild to moderate, doesn’t pulse, and doesn’t get worse when you bend over or walk around. Migraines tend to be more intense, often on one side, with a throbbing quality that worsens with physical activity. Nausea, vomiting, and sensitivity to light and sound are hallmarks of migraine and rarely show up with tension headaches.1PubMed Central. Debate: differences and similarities between tension-type headache and migraine Stress and anxiety can trigger both types, which is part of why people confuse them.2PubMed Central. Comparison of clinical characteristics of migraine and tension type headache

This distinction matters practically. If you have a migraine, lying down in a dark, quiet room and applying cold to your neck is often more effective than trying to push through the day with ibuprofen alone. If you have a tension headache, gentle movement and stress management techniques may help just as much as medication. The rest of this article covers strategies for both, but keep your headache type in mind as you read.

Over-the-Counter Pain Relievers and the Caffeine Boost

For most headaches, the standard first move is an over-the-counter painkiller: ibuprofen, aspirin, or acetaminophen (paracetamol). All three work, but a large trial of over 1,700 patients found that the combination of aspirin, acetaminophen, and caffeine together outperformed any of those ingredients taken alone, reaching 50 percent pain relief faster than single-ingredient options.3PubMed. The fixed combination of acetylsalicylic acid, paracetamol and caffeine is more effective than single substances and dual combination for the treatment of headache: a multicentre, randomized, double-blind, single-dose, placebo-controlled parallel group study This is the formula behind products like Excedrin. The caffeine component isn’t just a stimulant perk; it blocks adenosine receptors, reduces inflammation-related prostaglandins, and improves the absorption of the painkillers it’s paired with.4PubMed Central. Caffeine and Headache: Exploring the Multifaceted Relationship

The timing matters. Take your medication early, ideally within the first 30 minutes of a headache building. Once pain is well established, especially with a migraine, oral medications absorb more slowly because your gut slows down during an attack. If you regularly find that pills don’t help once a migraine is in full swing, that delayed absorption is likely the reason.

The Medication Overuse Trap

Here’s where things get counterintuitive: using headache medication too frequently can cause more headaches. Medication overuse headache is a daily or near-daily headache pattern driven by taking pain relievers too often. The drugs most likely to trigger it include opioids, combination analgesics containing butalbital, triptans, and even standard painkillers like acetaminophen, though plain aspirin seems less problematic.5PubMed. Medication overuse headache: history, features, prevention and management strategies People with migraine are particularly vulnerable. The general guideline is to avoid using acute headache medication more than two or three days per week on a regular basis. If you’re hitting that threshold, it’s time to talk to a doctor about preventive options rather than continuing to treat each individual episode.

Apply Cold to Your Head or Neck

Cold therapy is one of the oldest headache remedies, and the evidence backs it up, especially for migraine. A systematic review found that cold application reduced migraine pain significantly within 30 minutes compared to non-cold alternatives.6PubMed. Cold intervention for relieving migraine symptoms: A systematic review and meta-analysis One trial specifically tested a frozen neck wrap targeting the carotid arteries and found roughly a 32 percent pain reduction at 30 minutes in the treatment group, while the control group actually reported increased pain over the same period.7PubMed Central. Randomized controlled trial: targeted neck cooling in the treatment of the migraine patient Cold packs applied to the forehead or temples also help with tension-type headaches, and one study found that adjusting the temperature to a tolerable range improved both pain relief and how frequently people were willing to keep using the cold pack over a four-week period.8PubMed. Modification of therapeutic temperature range in cryotherapy could improve clinical efficacy in tension type headache

You don’t need a specialized device. A bag of frozen peas wrapped in a thin towel, an ice pack, or a cold wet washcloth all work. For migraines, placing the cold on the back of your neck seems particularly effective. Apply it for 15 to 20 minutes at a time, take a break, and reapply if needed.

Drink Water

Dehydration is an underappreciated headache trigger. A pilot trial found that increasing daily water intake reduced total headache hours over two weeks by about 21 hours and decreased headache intensity.9PubMed. Increasing the daily water intake for the prophylactic treatment of headache: a pilot trial A separate review found that nearly half of headache patients who increased their water intake reported meaningful improvement, compared to a quarter of those who didn’t change their habits.10PubMed. Increased water intake to reduce headache: learning from a critical appraisal Drinking more water didn’t eliminate headache days entirely, but it improved quality of life related to headaches and is essentially free with no side effects.

When a headache hits, drinking a large glass of water is a reasonable first step, particularly if you haven’t been drinking much that day. If your headaches tend to cluster in the afternoon or on busy days when you forget to drink, chronic mild dehydration could be part of the pattern.

Rest in a Quiet, Dark Room

People with headaches instinctively retreat. Research confirms this: patients with both migraine and tension-type headaches report that isolating themselves, lying down with extra pillows, staying still, and sleeping are among the most effective non-drug strategies for relief.11PubMed. Pain-relieving factors in migraine and tension-type headache For migraines in particular, light and sound sensitivity make a dark, quiet room practically mandatory.

Sleep has a special relationship with headache. People with insomnia have roughly two to three times the risk of developing migraines and tension headaches compared to good sleepers. And perhaps the most striking finding in this area: a migraine attack often stops completely if the person manages to fall asleep during it. On the flip side, too much sleep can trigger what’s sometimes called “weekend migraine,” where the headache strikes after oversleeping.12PubMed Central. Sleep Disorders and Headache: A Review of Correlation and Mutual Influence The sweet spot is consistent sleep and wake times, even on days off.

Caffeine as a Double-Edged Sword

Caffeine relieves headaches and causes them, sometimes in the same person on different days. As a pain reliever, it works by blocking adenosine receptors and boosting the effectiveness of whatever painkiller you take alongside it.4PubMed Central. Caffeine and Headache: Exploring the Multifaceted Relationship A cup of coffee at headache onset genuinely helps many people.

The problem comes with inconsistency. If you drink caffeine daily and then skip a day, the resulting withdrawal headache can be just as bad as the original headache you were trying to avoid. Excessive or erratic intake can also trigger migraines through mechanisms like magnesium depletion and sleep disruption. Chronic heavy use may contribute to medication overuse headache through the same brain-adaptation pathways that affect painkillers.13PubMed Central. Caffeine for Headaches: Helpful or Harmful? A Brief Review of the Literature If you use caffeine to manage headaches, keep your intake steady from day to day rather than swinging between none and four cups.

Acupressure and Manual Techniques

Pressing firmly on specific points around the head, neck, and hands is a strategy that predates modern medicine by millennia, and controlled trials suggest it’s more than placebo. One randomized trial compared acupressure to a standard muscle relaxant for chronic headache and found that the acupressure group had significantly lower pain scores both immediately after treatment and six months later.14PubMed. Effect of acupressure and trigger points in treating headache: a randomized controlled trial The most commonly targeted points include the web of skin between the thumb and index finger (known in traditional Chinese medicine as LI4), the base of the skull where the neck muscles attach, and the temples.

You can try this yourself. Apply firm, steady pressure with your thumb or fingertip to the fleshy area between your thumb and index finger on the opposite hand. Hold for one to two minutes. For neck-related tension headaches, pressing into the muscles at the base of your skull on either side of the spine while tilting your head slightly back can also provide relief. The evidence is strongest for chronic headaches treated over multiple sessions rather than single acute episodes, but the lack of side effects makes it worth trying during any headache.

Biofeedback and Progressive Muscle Relaxation

Biofeedback, where you learn to consciously influence body functions like muscle tension or skin temperature using real-time monitoring, has solid evidence for both migraine and tension headache. A comprehensive review found medium-to-large effects on headache frequency, and those improvements held up over an average follow-up of 14 months.15PubMed. Biofeedback treatment for headache disorders: a comprehensive efficacy review One early study found that thermal biofeedback, where patients learned to warm their hands by redirecting blood flow, nearly eliminated migraine attacks by the end of training and maintained those gains for at least six months.16PubMed Central. Biofeedback and relaxation in the treatment of migraine headaches: comparative effectiveness and physiological correlates

Progressive muscle relaxation, a simpler technique where you systematically tense and release muscle groups, also reduces headache impact. A controlled study in patients with multiple sclerosis-related headaches found that a nurse-led progressive muscle relaxation program lowered headache impact scores by a clinically meaningful margin compared to controls over three months.17Jundishapur Journal of Chronic Disease Care. Assessment of Headache Impact Test (HIT-6) Following Nurse-Led Progressive Muscle Relaxation in Multiple Sclerosis: A Controlled Pretest-Posttest Study You don’t need a clinic for this. Guided progressive muscle relaxation recordings are widely available, take about 15 minutes, and can be done during or between headaches.

Supplements That May Help Prevent Headaches

If you get headaches frequently, prevention matters more than acute treatment. Magnesium is the supplement with the strongest evidence base. Multiple types of studies, from case-control to randomized controlled trials, support its effectiveness in reducing migraine frequency, both as a preventive supplement taken daily and, in intravenous form, as an acute treatment in hospital settings.18PubMed Central. Magnesium and Migraine Oral magnesium is safe, inexpensive, and well tolerated, though it works better in some patients than others and may take weeks of daily use before you notice a difference.19PubMed. Role of magnesium in the pathogenesis and treatment of migraine Magnesium oxide and magnesium citrate are the most commonly studied forms for headache prevention, typically in the range of 400 to 600 milligrams daily.

Other supplements with some evidence include riboflavin (vitamin B2), coenzyme Q10, and the herbal remedy feverfew. Feverfew has mixed results across trials, and the varied preparations used make it hard to give a confident recommendation.20PubMed. Nutraceuticals and Headache 2024: Riboflavin, Coenzyme Q10, Feverfew, Magnesium, Melatonin, and Butterbur Butterbur (petasites) extract has stronger efficacy evidence, but it carries a risk of liver toxicity depending on the preparation, so it’s not something to try without medical guidance.21PubMed. Herbal treatments for migraine: A systematic review of randomised-controlled studies

Prescription Options for Severe or Frequent Migraines

When over-the-counter options aren’t enough, prescription medications enter the picture. Triptans (like sumatriptan, rizatriptan, and zolmitriptan) have been the standard acute migraine treatment for decades. A large network analysis comparing triptans to newer drug classes found that most triptans outperformed the newer options, including gepants (rimegepant, ubrogepant) and lasmiditan, for both pain freedom and pain relief at two hours.22PubMed Central. Comparison of New Pharmacologic Agents With Triptans for Treatment of Migraine The newer drugs aren’t useless, though. Gepants had fewer side effects and are a better fit for people who can’t take triptans due to cardiovascular risk factors. The differences among the newer drugs themselves were not statistically significant, so choosing between them comes down to individual tolerance and insurance coverage.

When a Headache Needs Medical Attention

Most headaches are benign, but some are warnings. A sudden, severe headache that peaks within seconds (“thunderclap headache”) warrants an emergency room visit, as it can signal bleeding in the brain. Other red flags include headache with fever and a stiff neck, headache after a head injury, headache with confusion or vision changes, and a headache pattern that has changed dramatically or is entirely new, especially in someone over 50. Emergency department data confirm that older patients and those with immune system disorders are more likely to have a secondary cause behind their headache, meaning one driven by another medical condition rather than a primary headache disorder like migraine.23PLoS ONE. Headache at the emergency room: Etiologies, diagnostic usefulness of the ICHD 3 criteria, red and green flags

Headaches During Pregnancy

Pregnancy changes the headache landscape in two ways. First, about two thirds of women with migraines experience improvement during pregnancy, likely due to stable high estrogen levels.24PubMed. Managing headache during pregnancy and lactation Second, the list of safe medications shrinks considerably. Most triptans, many NSAIDs (especially in the third trimester), and several preventive medications are either contraindicated or lack adequate safety data during pregnancy. Acetaminophen is generally considered the safest first-line option, but even that should be used at the lowest effective dose. Non-drug strategies like cold packs, rest, hydration, and relaxation techniques become especially valuable during pregnancy. Any headache treatment plan during pregnancy or breastfeeding should be coordinated with the obstetric team.25PubMed. Headache in Pregnancy and Lactation

Headaches in Children and Teens

Children get headaches too, and the approach differs somewhat. For mild to moderate migraine in kids, NSAIDs like ibuprofen are the first choice. Triptans can be used for moderate to severe migraines that don’t respond to over-the-counter options, though the specific triptans approved for pediatric use vary by country. Equally important are non-drug strategies: identifying and avoiding triggers, maintaining consistent sleep schedules, staying hydrated, and limiting screen time. Families should be educated about these lifestyle factors, because for many kids, addressing triggers prevents more headaches than medication treats.26PubMed Central. The optimal management of headaches in children and adolescents

Your Desk Might Be the Problem

If your headaches cluster during or after work, consider your posture. A study of bank employees who spent long hours at desktop computers found that longer daily computer use was significantly associated with restricted neck range of motion and higher headache prevalence. Employees with prolonged screen time had roughly 64 percent higher odds of cervicogenic headache, the kind that originates in the neck and radiates upward.27Journal of Health, Wellness and Community Research. Impact of Prolonged Desktop Usage on Neck Posture and Cervicogenic Headache Among Bankers If this sounds familiar, simple adjustments help: raise your monitor to eye level, keep your feet flat on the floor, take a five-minute break every hour to move your neck and shoulders, and consider a standing desk or sit-stand converter to break up long seated stretches.

Tracking Your Headaches

One of the most useful things you can do if headaches are a recurring problem is keep a headache diary. Nearly all headache specialists ask their patients to do this, and the vast majority recommend using a phone app or digital tool to make tracking easier.28PubMed Central. Headache providers’ perspectives of headache diaries in the era of increasing technology use: a qualitative study Record when the headache started, how long it lasted, where the pain was, what you ate and drank that day, how you slept the night before, your stress level, and what treatment you used and whether it helped. Over a few weeks, patterns emerge that are invisible in the moment. You might discover that your headaches always follow a poor night’s sleep, or that they cluster around certain foods, or that they’ve been creeping upward in frequency, which could point to medication overuse.

Several free apps are designed specifically for this purpose, but even a note in your phone’s calendar works. The value isn’t in the tool but in the consistency. When you eventually see a doctor about your headaches, a diary spanning four to eight weeks gives them far more to work with than a vague recollection of “I get headaches a lot.”

Headache Remedies Through History

The desire to stop a pounding headache is about as old as recorded civilization. Medieval Persian physicians classified headaches into distinct types and documented detailed lists of triggers, dietary rules for prevention, and herbal treatments, many of which map onto modern categories and approaches.29PubMed. History of headache in medieval Persian medicine Tenth-century medical texts from Persian, Anglo-Saxon, and Chinese traditions distinguished between headache types and used herbal remedies whose active ingredients, analyzed with modern chemistry, have genuine analgesic and anti-inflammatory properties.30PubMed. An overview of headache treatments during the tenth century The NSAIDs we rely on today didn’t become widely available until the industrial revolution made mass production possible, transforming compounds like salicylic acid (the precursor to aspirin) from obscure natural extracts into household staples.31PubMed. History of NSAID Use in the Treatment of Headaches Pre and Post-industrial Revolution in the United States: the Rise and Fall of Antipyrine, Salicylic Acid, and Acetanilide Early mass-market headache powders had serious safety problems that eventually prompted the creation of the Food and Drug Act, a reminder that the regulation of painkillers has always been playing catch-up with public demand for headache relief.