Drinking water, applying a cold compress, and taking an over-the-counter pain reliever will stop most headaches within a few hours. But the fastest fix depends on what’s causing the pain. Here’s a practical breakdown of what to try, in what order, and what to watch for if the headache won’t quit.
Start With Water
Dehydration is one of the most common and most overlooked headache triggers. Even mild dehydration, the kind you get from skipping water during a busy afternoon, can cause a dull, pressing pain across the forehead or the entire head. The fix is simple: drink a full glass or two of water and rest for a bit. Most dehydration headaches clear up within a few hours once you rehydrate.
A good daily baseline is six to eight glasses of water, roughly half a gallon. If you’ve been sweating, drinking alcohol, or consuming a lot of caffeine, you likely need more. Don’t chug it all at once. Steady sipping over 30 to 60 minutes works better and is easier on your stomach.
Try a Cold Compress
A cold pack applied to the forehead or temples is one of the fastest non-drug ways to dull headache pain. Cold narrows blood vessels and reduces inflammation, which is why it works especially well for migraines and throbbing headaches. Wrap a bag of ice or frozen vegetables in a towel (never place ice directly on skin) and hold it against the painful area for up to 20 minutes at a time. You can repeat this every couple of hours.
Heat works better for tension-type headaches, the kind that feel like a tight band around your head and often involve stiff neck or shoulder muscles. A warm towel draped across the back of your neck or a heated pad on your shoulders can loosen the muscles driving the pain.
Over-the-Counter Pain Relief
Ibuprofen and acetaminophen are the two most common choices. Ibuprofen reduces inflammation, making it a good pick for headaches with any swelling component. Acetaminophen works on pain signaling in the brain and is gentler on the stomach. Both typically take 20 to 45 minutes to kick in.
The key rule with acetaminophen: never exceed 4,000 milligrams (4 grams) in a 24-hour period, and stay well under that if you drink alcohol. With ibuprofen, follow the package directions and take it with food to protect your stomach lining. If you find yourself reaching for pain relievers more than two or three days a week, that pattern can actually cause its own type of headache, called a medication-overuse headache, which creates a frustrating cycle of more pain and more pills.
Use Caffeine Strategically
Caffeine is a genuine headache treatment, not just a folk remedy. A dose of 100 milligrams or more (roughly one strong cup of coffee) boosts the effectiveness of pain relievers for both tension headaches and migraines. It constricts blood vessels and helps your body absorb medication faster. Some OTC headache formulas already include caffeine for this reason.
The catch: caffeine is a double-edged sword. If you regularly consume more than 200 milligrams a day (about two cups of coffee) and then skip it, withdrawal headaches can develop within 12 to 24 hours. These feel like a steady, throbbing ache and come with fatigue and trouble concentrating. If you suspect caffeine withdrawal is the cause, a small cup of coffee will usually resolve it quickly. But the longer-term fix is gradually reducing your daily intake so your brain stops depending on it.
Release Tension in Your Neck and Shoulders
Many headaches start in the muscles of the neck and upper back, especially if you sit at a desk, look down at a phone, or sleep in an awkward position. A few targeted stretches can provide noticeable relief.
- Chin to chest: In a sitting or standing position, slowly lower your chin toward your chest and hold for 30 seconds. You should feel a gentle stretch along the back of your neck.
- Chin tuck (nodding exercise): Lie on your back with a rolled towel behind your neck. Make a small nodding motion, tucking your chin slightly, and hold for 10 seconds. Repeat five to ten times. This strengthens the deep muscles that support your head.
- Upper back extension: Lie face down and prop your upper body onto your elbows. Breathe deeply and hold the position for up to two minutes. This counteracts the forward-slumped posture that loads tension into the base of the skull.
Doing these stretches three to five times a day, especially during long work sessions, can reduce headache frequency over time.
Try Acupressure on Your Hand
There’s a pressure point between the base of your thumb and index finger, on the back of your hand, that has been used for centuries to relieve headache pain. To find it, squeeze your thumb and index finger together and look for the highest point of the muscle bulge that forms. Press firmly on that spot with the thumb of your other hand, using a circular or steady motion, for two to three minutes. Then switch hands. You can repeat this several times a day. It won’t replace pain medication for a severe headache, but for mild to moderate pain, many people find it takes the edge off.
Dim the Lights
Light sensitivity isn’t just a symptom of headaches. It can actively make them worse. People with migraines have significantly lower thresholds for light discomfort across the entire spectrum, meaning even normal indoor lighting can intensify pain during an attack. Unfiltered white light, the kind from overhead fluorescent bulbs and device screens, tends to be the most aggravating.
If your head is hurting, move to a dimmer room, lower your screen brightness, or close your eyes for 15 to 20 minutes. If you get frequent headaches triggered by light, tinted glasses that filter specific wavelengths (often marketed as FL-41 lenses) can help reduce the glare that feeds into headache pain.
Know Your Food Triggers
Certain compounds in food are well-established headache triggers, especially for people prone to migraines. The main culprits include tyramine (found in aged cheeses, red wine, and some fermented foods), nitrates and nitrites (in processed meats like bacon, hot dogs, and deli ham), MSG (a flavor enhancer common in takeout and packaged snacks), and artificial sweeteners like aspartame and sucralose.
Red wine is a particularly potent trigger because it contains both tyramine and sulfites. Alcohol in general lowers serotonin levels in the brain and promotes dehydration, both of which can set off an attack. Citrus fruits, food dyes (especially yellow #5 and red #40), and certain beers that undergo heavy fermentation are other common offenders. Keeping a simple log of what you ate in the hours before a headache can help you identify your personal triggers, since they vary from person to person.
Magnesium for Recurring Headaches
If you get headaches frequently, your magnesium levels may be part of the problem. Studies on migraine prevention have found that taking 600 milligrams of magnesium daily for 12 weeks reduced headache frequency compared to a placebo. Guidelines generally recommend a range of 200 to 600 milligrams per day for prevention. Magnesium citrate and magnesium glycinate (also called bisglycinate) are the forms most commonly recommended because they absorb well. Magnesium oxide is cheaper but can cause digestive issues at higher doses.
This isn’t a quick fix for a headache happening right now. It’s a daily supplement strategy that builds up over weeks. But for people who deal with multiple headaches per month, it’s one of the better-studied natural approaches.
Headaches That Need Medical Attention
Most headaches are harmless, if miserable. But certain features signal something more serious. A headache that hits suddenly and severely, sometimes described as “the worst headache of my life,” needs emergency evaluation. The same goes for a headache accompanied by fever, confusion, vision changes, weakness on one side of the body, a stiff neck, or seizures.
Other warning signs that warrant a call to your doctor: headaches that started for the first time after age 50, headaches that are progressively getting worse over weeks, pain triggered by coughing, sneezing, or exercise, pain that changes with body position (worse lying down or standing up), or headaches that began after a head injury. A new headache pattern in someone with a weakened immune system or a history of cancer also deserves prompt evaluation. These red flags don’t always mean something dangerous is happening, but they’re the cases where imaging or further testing can rule out conditions that need treatment.

