Most headaches respond well to a combination of over-the-counter pain relievers, hydration, rest, and a few targeted lifestyle changes. The right approach depends on what type of headache you’re dealing with, but for the common tension-type headache that most people experience, relief is usually straightforward and fast.
Over-the-Counter Pain Relievers
For a standard tension headache, ibuprofen and acetaminophen are the two most reliable options. In a randomized clinical trial comparing the two head-to-head, 400 mg of ibuprofen outperformed 1,000 mg of acetaminophen on both pain intensity and speed of relief. More people taking ibuprofen reached complete headache relief, and they got there faster. Both worked significantly better than a placebo, so either is a reasonable choice if one doesn’t agree with you.
Naproxen sodium is another option that works on a similar timeline. All three of these oral pain relievers typically begin working within 30 to 60 minutes, so don’t expect instant results. Give the medication time before reaching for a second dose.
Adding caffeine to any of these makes them modestly more effective. A Cochrane review of high-quality evidence found that about 100 mg of caffeine (roughly one cup of coffee) added to an analgesic increased the number of people who got meaningful pain relief by 5% to 10%. That’s a small but real boost, which is why many combination headache products already include caffeine. A cup of coffee alongside your pain reliever can do the same thing.
Hydration and Headaches
Dehydration is one of the most overlooked headache triggers. In a pilot trial of migraine patients, adding roughly 1.5 liters (about six extra glasses) of water per day over 12 weeks reduced total headache hours by an average of 21 hours over each two-week period and lowered pain intensity. Even if dehydration isn’t the primary cause of your headache, drinking a full glass of water when one starts is a simple, zero-risk first step.
Sleep and Headache Prevention
Poor sleep and headaches share overlapping brain circuitry. The brainstem structures that regulate your sleep-wake cycles also function as your brain’s built-in pain suppression system. When sleep is disrupted, particularly the deeper stages, that pain-dampening system doesn’t work as well, lowering your threshold for headaches. This is why a bad night of sleep so reliably triggers a headache the next day.
Consistent sleep matters more than total hours. Going to bed and waking up at roughly the same time, even on weekends, helps keep these systems functioning properly. Both too little and too much sleep can trigger headaches, so aim for a regular schedule rather than trying to “catch up” on lost hours.
Supplements That May Reduce Frequency
If you get frequent headaches or migraines, two supplements have decent evidence behind them for prevention. Magnesium, taken daily, has been shown to reduce headache frequency and severity over a period of 16 weeks. It won’t stop a headache that’s already started, but as a daily supplement it can lower how often they occur. The forms most commonly studied are magnesium oxide and magnesium citrate.
Riboflavin (vitamin B2) at 400 mg per day cut migraine frequency in half in one study, dropping it from 4 days per month to 2 days per month after three months of consistent use. The key word is consistent: these supplements work as prevention, not rescue, and they take weeks to months before you notice a difference.
What Works for Migraines Specifically
Migraines are a different animal from tension headaches. They tend to involve throbbing pain on one side of the head, sensitivity to light and sound, and sometimes nausea or visual disturbances. Standard pain relievers can help if taken early, but migraines that don’t respond to over-the-counter options often need prescription treatment.
A newer class of prescription medications works by blocking a protein called CGRP that plays a central role in migraine attacks. These drugs are available as both preventive daily pills and as-needed treatments for active migraines. One notable advantage is that they don’t appear to cause medication overuse headache, a frustrating cycle where taking pain relievers too frequently actually triggers more headaches. Traditional painkillers, including ibuprofen and acetaminophen, can cause this rebound effect when used more than about 10 to 15 days per month.
Cluster Headaches Need a Different Approach
Cluster headaches are far less common but far more intense. They cause excruciating pain around one eye, often with tearing, nasal congestion on that side, and restlessness. Standard pain relievers are too slow to help because cluster attacks peak within minutes.
The most effective acute treatment is inhaling 100% oxygen through a specialized non-rebreather mask at high flow rates (12 to 15 liters per minute) for 15 to 30 minutes. This requires a prescription and home oxygen setup, but it works quickly and has essentially no side effects. If you’re experiencing repeated episodes of severe, one-sided headaches lasting 15 minutes to 3 hours, this pattern is worth bringing to a neurologist.
Quick Relief Without Medication
Several non-drug strategies can ease a headache or work alongside pain relievers. Applying a cold pack to your forehead or the back of your neck constricts blood vessels and can dull pain within minutes. For tension headaches, a warm compress on the neck and shoulders may work better by relaxing tight muscles. Resting in a dark, quiet room helps, especially if light or noise is making the pain worse. Gentle pressure on the temples or the base of the skull, held for 15 to 30 seconds at a time, provides temporary relief for many people.
Headaches That Need Urgent Attention
Most headaches are uncomfortable but not dangerous. A few patterns, however, signal something more serious. A sudden, explosive headache that peaks within seconds, sometimes described as the worst headache of your life, can indicate bleeding in the brain. A headache with fever, stiff neck, and vomiting may point to meningitis. New headaches accompanied by slurred speech, vision changes, confusion, or weakness on one side of the body could indicate a stroke.
Other situations that warrant prompt evaluation: headaches that start right after physical exertion or sex, headaches that progressively worsen over 24 hours, new or changed headache patterns in anyone over 50, and new headaches in anyone with a history of cancer or a weakened immune system.