How to Help a Headache: Home Remedies That Work

Most headaches respond well to a combination of simple strategies you can start within minutes: hydrating, resting in a cool and quiet space, and using an over-the-counter pain reliever if needed. The specific approach that works best depends on the type of headache you’re dealing with, but a few techniques help across the board.

Identify What Kind of Headache You Have

The two most common types feel quite different. Tension headaches produce a dull, pressing band of pain around both sides of your head and tend to last anywhere from 30 minutes to several hours. Migraines are usually one-sided, pulsing, and moderate to severe. They often come with sensitivity to light or sound, and sometimes nausea. One quick way to tell them apart: people with migraines typically want to lie still and avoid any physical activity, while tension headaches don’t usually get worse when you move.

A less common but intense type, cluster headache, causes severe pain around one eye and lasts under four hours per episode. Cluster headaches need a different treatment approach and are worth discussing with a doctor if you suspect them.

Knowing your headache type matters because the best relief strategies differ. Cold therapy reduces inflammation and works well for migraines, while warm compresses relax tight muscles and suit tension headaches better.

Drink Water, but Slowly

Dehydration is one of the most overlooked headache triggers. If you haven’t been drinking enough fluids, especially on a hot day or after exercise, rehydrating is the fastest path to relief. Take small sips rather than gulping a large glass at once, which can cause nausea. Most dehydration headaches improve within a few hours once you start replacing fluids.

For prevention, aim for six to eight glasses of water a day, roughly 1.5 to 2 liters. If your headaches tend to show up in the afternoon, check whether you’ve been drinking enough through the morning.

Use Cold or Warm Compresses

For a migraine, place a cold pack on your forehead or the back of your neck. The cold numbs the area and helps reduce inflammation in blood vessels that contribute to that throbbing pain. A bag of frozen peas wrapped in a thin towel works fine. Keep it on for 15 to 20 minutes at a time.

For a tension headache, try the opposite. A warm towel draped across your neck and shoulders or a heated rice bag relaxes the tight muscles that are generating the pain. A warm shower aimed at your neck and upper back does the same thing.

Control Your Environment

Light makes most migraines worse. More than 80 percent of migraine attacks involve light sensitivity, which is why retreating to a dark room is one of the oldest and most reliable remedies. If you can’t get to a dark space, dim your screens and close blinds.

Interestingly, not all light is equally harmful. Research from Harvard Medical School found that blue and red light generate the largest pain signals in the migraine brain, while green light generates the smallest. In well-lit conditions, nearly 80 percent of migraine patients reported worsening pain from every color of light except green, which actually reduced pain by about 20 percent. If you need some light, a green-tinted lamp or green-light bulb may be worth trying.

Try a Muscle Relaxation Technique

Progressive muscle relaxation is one of the best-studied non-drug approaches for headaches, particularly tension-type. The method is straightforward: you systematically tense and then release muscle groups throughout your body, starting at your feet and working up to your face. Tense each group for 10 to 20 seconds, then relax for 30 to 40 seconds while breathing slowly and deeply.

In a clinical trial where participants practiced this twice a week for six weeks (30-minute sessions in a quiet, dimly lit room), both tension headache and migraine sufferers saw significant drops in pain intensity, attack frequency, and headache-related disability. The effect was strongest for tension headaches. You don’t need a therapist to do this. Plenty of free guided audio sessions walk you through the full 16-muscle-group sequence, and even a shortened version during a headache can help loosen the neck and shoulder tension that fuels the pain.

Over-the-Counter Pain Relief

Acetaminophen (Tylenol) and ibuprofen (Advil, Motrin) are the two main options. Ibuprofen has an edge for headaches involving inflammation, like migraines, because it’s an anti-inflammatory. Acetaminophen works well for general pain relief. You can take acetaminophen every 4 to 6 hours and ibuprofen every 6 to 8 hours, but don’t exceed five doses of acetaminophen or four doses of ibuprofen in 24 hours.

Timing matters. Taking a pain reliever early, when the headache is still mild, is far more effective than waiting until the pain peaks. However, using these medications more than two or three days a week on a regular basis can lead to medication overuse headaches, where the pain reliever itself starts causing rebound headaches. If you find yourself reaching for painkillers that often, it’s a sign the underlying headache pattern needs a different strategy.

The Caffeine Question

Caffeine is a double-edged sword for headaches. A cup of coffee or tea can genuinely help, which is why caffeine is included in some over-the-counter headache formulas. It narrows blood vessels and can boost the effectiveness of pain relievers.

The problem comes with regular use. If you drink caffeine daily and then skip it, the resulting withdrawal commonly triggers a headache on its own. And consuming too much caffeine (more than about two servings a day) is itself associated with more frequent headaches. So caffeine can work as an occasional rescue tool, but leaning on it regularly tends to create a cycle that makes headaches worse over time.

Foods That Can Trigger Headaches

If your headaches are recurring, your diet may be playing a role. Several naturally occurring chemicals in food are known triggers, particularly for migraines. Tyramine, found in aged cheeses (cheddar, brie, parmesan, blue cheese), cured meats (pepperoni, salami, hot dogs, jerky), and fermented or pickled foods, is one of the most common culprits. Nitrates and nitrites in processed meats are another.

Other notable triggers include chocolate, red wine and beer, soy sauce and foods containing MSG (often listed as “natural flavoring” or “hydrolyzed protein” on labels), the artificial sweetener aspartame, and certain fruits like avocados, figs, and raisins. Even fresh yeast breads and sourdough make the list. Alcohol of any kind is a trigger, but red wine, beer, and sherry tend to be the worst offenders.

You don’t need to eliminate everything at once. A headache diary, where you log what you ate in the hours before each headache, is the most practical way to identify your personal triggers.

Supplements for Prevention

Two supplements have the strongest evidence for reducing headache frequency over time: magnesium and riboflavin (vitamin B2). Clinical trials have used 300 mg of magnesium and 400 mg of riboflavin daily for migraine prevention. These aren’t quick fixes for a headache in progress. They work preventively over weeks of consistent use. Magnesium in particular may help if your levels are low, which is common and hard to detect without testing since standard blood tests don’t reflect the body’s total magnesium stores well.

When a Headache Needs Urgent Attention

Most headaches are uncomfortable but harmless. A few warning signs, however, point to something that needs immediate medical evaluation:

  • Thunderclap onset: a headache that reaches maximum intensity within one minute. This can be the only initial symptom of a brain bleed.
  • Neurological changes: weakness, numbness, vision loss, confusion, or difficulty speaking alongside the headache.
  • Headache with fever and stiff neck: raises concern for infection affecting the brain or its lining.
  • New headache pattern after age 65: older adults with a new type of headache have a higher likelihood of a serious underlying cause.
  • A headache that keeps getting worse over days or weeks rather than coming and going in the usual pattern.
  • Headache triggered by coughing, sneezing, or exercise: can occasionally signal a structural problem that needs imaging.

A brand-new headache type that you’ve never experienced before, or a familiar headache that suddenly behaves differently, is always worth taking seriously.