Most headaches respond to a combination of over-the-counter pain relievers, hydration, and simple physical techniques like cold therapy or stretching. The right approach depends on what type of headache you’re dealing with, but several strategies work across the board and can bring relief within 20 to 60 minutes.
Start With Water
Dehydration is one of the most overlooked headache triggers. When your body loses too much fluid, the brain actually shrinks slightly and pulls away from the skull, putting pressure on surrounding nerves. That pressure is the pain you feel. Getting rehydrated is the fastest fix for this type of headache, but sip slowly rather than gulping a full glass at once, which can cause nausea. Sucking on ice cubes works well if your stomach is already upset.
If you haven’t eaten in several hours, low blood sugar could also be contributing. A small snack alongside the water can make a noticeable difference, especially for headaches that build gradually through a busy day.
Over-the-Counter Pain Relievers
For a standard tension headache, acetaminophen and anti-inflammatory drugs like ibuprofen are effective first-line options. Both work on pain signals in the body and the brain, though anti-inflammatories have the added benefit of reducing swelling around irritated nerves and blood vessels. For mild to moderate migraines, these same medications are the recommended starting point.
The combination of acetaminophen, aspirin, and caffeine (sold as a single tablet at most pharmacies) has particularly strong evidence behind it. Caffeine narrows blood vessels, which restricts the blood flow that contributes to throbbing headache pain. It also increases the absorption and strength of whichever pain reliever you take alongside it, speeding up relief.
One important caveat: taking pain relievers too frequently can backfire. Using headache medication on 10 to 15 or more days per month for longer than three months can cause medication overuse headaches, where the drugs themselves start triggering pain. If you find yourself reaching for pain relievers most days of the week, that pattern itself needs attention.
Cold Therapy
Applying a cold pack to your forehead, temples, or the back of your neck is one of the simplest non-drug remedies. The cold constricts blood vessels and reduces the transmission of pain signals to the brain. For migraines specifically, cooling the blood flowing through the carotid artery in the neck helps lower inflammation in the brain.
Apply the cold pack for 15 to 20 minutes, then remove it for about an hour before reapplying. You can alternate on and off until the pain subsides. A bag of frozen vegetables wrapped in a thin towel works fine if you don’t have a dedicated ice pack.
Stretches That Release Tension
Tension headaches often start in the muscles of the neck, shoulders, and upper back, especially if you spend long hours at a desk or looking at a screen. Forward head posture, where your head drifts ahead of your shoulders, puts constant strain on the muscles at the base of your skull. A few targeted stretches can interrupt that cycle and provide surprisingly quick relief.
A side neck stretch is one of the most effective. Reach one hand over the top of your head and gently pull your ear toward the same shoulder until you feel a stretch on the opposite side of the neck. Hold for 15 to 30 seconds, then switch sides. For the muscles that run from your neck down to your shoulder blades, turn your head to one side and look down while using your opposite hand to gently pull your head further into the stretch.
Opening up the chest also helps. Tight pectoral muscles pull the shoulders forward and force the head into that forward position. Stand in a doorway or corner with your forearms against the wall at shoulder height and lean gently forward until you feel a stretch across your chest. Alternatively, lie on your back with palms facing up and press the backs of your shoulders toward the floor, holding for five seconds at a time. This simple move opens the chest and allows the head to settle back into a neutral position.
To strengthen the muscles that hold your head in proper alignment, try a chin tuck: slowly draw your chin down and back, as if making a double chin, and feel the back of your neck lengthen. You can do this lying down with a rolled towel under your neck or sitting upright. These exercises work best as a daily habit, not just during a headache, because they correct the posture patterns that cause tension headaches in the first place.
Caffeine: Help or Harm
Caffeine occupies an unusual place in headache management. In small amounts, it narrows blood vessels and genuinely reduces headache pain. It’s effective enough that it’s included in several over-the-counter headache formulas. A cup of coffee or tea at the onset of a headache can help, particularly if you’re also taking a pain reliever.
The flip side is that regular caffeine use creates dependence, and skipping your usual intake triggers withdrawal headaches. If your headaches tend to arrive on weekend mornings or days when you sleep in and delay your coffee, caffeine withdrawal is the likely cause. In that case, the fix isn’t more caffeine long term. It’s gradually reducing your daily intake so your body stops relying on it.
When It’s a Migraine
Migraines are a different beast from tension headaches. They typically involve throbbing pain on one side of the head, sensitivity to light and sound, and sometimes nausea or visual disturbances. For mild to moderate migraines, standard pain relievers and the acetaminophen/aspirin/caffeine combination are effective. For moderate to severe migraines, prescription medications called triptans are the first-line treatment. These work by targeting the specific pathways involved in migraine attacks rather than just blocking general pain signals.
If your headaches regularly include nausea, light sensitivity, or pain intense enough to stop your normal activities, those are signs you’re dealing with migraines rather than tension headaches. Over-the-counter medications often fall short for moderate to severe episodes, and getting a proper diagnosis opens the door to treatments that work much better.
Preventing Headaches Long Term
If headaches are a regular occurrence, daily magnesium supplementation is one of the most well-supported preventive strategies. The American Headache Society recommends 400 to 500 milligrams per day of magnesium oxide for migraine prevention. Magnesium citrate is another common oral form. Many people with frequent headaches turn out to have low magnesium levels, and supplementation can reduce both the frequency and severity of attacks over time.
Consistent sleep and meal schedules matter more than most people realize. The brain of someone prone to headaches is sensitive to changes in routine. Sleeping two hours later on weekends, skipping lunch, or going from zero to intense exercise without warming up can all trigger an episode. Keeping these basics steady does more for headache prevention than any single supplement or medication.
Headaches That Need Urgent Attention
Most headaches are uncomfortable but not dangerous. A few patterns, however, signal something that needs immediate medical evaluation. A “thunderclap” headache that reaches maximum intensity within seconds or minutes is the most urgent, as it can indicate bleeding in the brain. A headache accompanied by confusion, vision changes, weakness on one side of the body, seizures, or a stiff neck alongside fever also warrants emergency care.
Other red flags include headaches that start for the first time after age 50, headaches that progressively worsen over weeks, headaches triggered by coughing or bearing down, and headaches that change significantly in character or frequency from your usual pattern. A new, severe headache during pregnancy or in someone with a weakened immune system also falls into this category.