Most headaches respond to a combination of pain relievers, hydration, rest, and simple physical interventions like cold compresses. The right approach depends on the type of headache you’re dealing with, but several strategies work across the board, and you can start most of them immediately at home.
Drink Water First
Dehydration is one of the most overlooked headache triggers. When your body loses fluid, the brain can shrink slightly and pull away from pain-sensitive structures surrounding it, creating that dull, pressing ache. The good news: dehydration headaches often ease within minutes of drinking water. You don’t need to chug a gallon. A tall glass or two is usually enough to start feeling relief.
For longer-term prevention, aiming for 2 to 3 liters of water per day significantly reduces headache frequency, severity, and duration. One study found that women who consistently drank around 2 liters daily experienced fewer migraine attacks and less disability from those attacks compared to women who drank less. If you’re prone to headaches and your water intake is low, increasing it is one of the simplest changes you can make.
Over-the-Counter Pain Relievers
Acetaminophen (Tylenol) and ibuprofen (Advil, Motrin) both work by blocking the enzymes your body uses to produce prostaglandins, chemicals that amplify pain signals and promote inflammation. The key difference: acetaminophen works only in the brain, reducing pain and fever, while ibuprofen works throughout the body and also reduces inflammation. If your headache involves any swelling or muscle tension in your neck and shoulders, ibuprofen or another anti-inflammatory like naproxen (Aleve) may be more effective.
Either option typically starts working within 20 to 45 minutes. For tension headaches, both are considered first-line treatments. The important thing is to take them early. Waiting until the pain is severe makes any medication less effective.
Watch for Rebound Headaches
Taking pain relievers too frequently can backfire. Medication overuse headache develops when you use acute headache drugs on 10 to 15 or more days per month for longer than three months (the exact threshold depends on the medication). The headache becomes self-perpetuating: the pain drives more medication use, which causes more headaches. If you find yourself reaching for painkillers most days of the week, that pattern itself may be contributing to your headaches.
Cold and Heat Therapy
For migraines, cold wins. Applying an ice pack or cold cloth to your forehead or the back of your neck can numb pain and reduce inflammation quickly. A 2013 study found that a frozen neck wrap targeting the arteries on each side of the neck significantly reduced migraine pain when applied at the start of an episode. A broader analysis from 2022 confirmed that cold interventions like gel headbands provide instant, short-term relief.
For tension headaches, heat is often more helpful. Warmth relaxes the tight muscles in your neck, shoulders, and scalp that fuel tension-type pain. A warm towel, heating pad, or even a hot shower can loosen those muscles and ease the ache. One study even tested combining a hot arm and foot bath with an ice massage on the head simultaneously for 20 minutes, and participants reported improvement.
Whichever you choose, keep the compress in place for 15 minutes or less, then give your skin a 15-minute break before reapplying.
Caffeine: Help or Harm
Caffeine is a surprisingly effective headache treatment in the right dose. Around 100 to 130 mg (roughly one strong cup of coffee) boosts the effectiveness of pain relievers for both tension headaches and migraines. That’s why caffeine is an ingredient in several over-the-counter headache formulas.
The catch: regular caffeine intake above 200 mg per day can itself provoke headaches. And if you suddenly stop after weeks of daily use at 100 mg or more, withdrawal headaches typically hit within 12 to 24 hours. Those withdrawal headaches resolve on their own within about two weeks, or within an hour if you drink a cup of coffee. So caffeine is a useful tool for occasional headaches, but daily reliance on it creates a cycle that’s hard to break.
Release Muscle Tension
Tension headaches feel like a band squeezing around your head, and they’re driven by tightness in the muscles of your scalp, neck, and upper back. Targeting those muscles directly can bring relief faster than waiting for a pill to kick in.
One effective technique involves the suboccipital muscles, the small muscles at the base of your skull where your neck meets your head. Lie on your back, place your fingertips just below the bony ridge at the back of your skull, and press gently upward into those muscles. Hold steady pressure for 3 to 5 minutes or until you feel the tension soften. This is a simplified version of a technique used in physical therapy and manual medicine specifically for tension headaches.
Gentle neck stretches, massage along the tops of your shoulders, and even just rolling your shoulders back and forth can help. Heat applied to the neck before stretching makes the muscles more responsive.
Sleep and Headache Cycles
Poor sleep and headaches feed each other. Research shows that just two consecutive nights of inadequate sleep increase your likelihood of a headache the following day. The reverse is also true: two days of adequate sleep acts as a protective factor against headaches.
A systematic review of sleep interventions for migraine and tension headaches found that structured improvements to sleep habits significantly reduced both headache frequency and intensity. The strategies that work aren’t complicated: going to bed and waking up at consistent times, keeping your bedroom dark and cool, avoiding screens in the hour before sleep, and not lying in bed awake for long stretches. If you’re getting headaches regularly and sleeping inconsistently, fixing the sleep often fixes the headaches.
Reduce Light Exposure
If light worsens your headache, dimming your environment can provide real relief. This is especially true for migraines, where light sensitivity is a core symptom. Stepping into a dark, quiet room remains one of the most effective things you can do during a migraine attack.
For people who get frequent migraines with light sensitivity, specially tinted lenses called FL-41 glasses filter out blue-green light wavelengths that are particularly irritating. In one study of children with migraines, FL-41 lenses reduced migraine frequency from an average of 6.2 episodes per month to 1.6. These lenses are available without a prescription and can be worn over regular glasses or made with your corrective prescription.
Magnesium for Prevention
If you get headaches frequently, magnesium supplementation may reduce how often they occur. A daily dose of 600 mg of magnesium taken over 12 weeks has been shown to reduce migraine frequency compared to placebo. Clinical guidelines generally recommend a range of 200 to 600 mg daily for migraine prevention. Common forms include magnesium oxide, citrate, and glycinate. Magnesium isn’t a quick fix for a headache that’s already happening, but as a daily supplement, it can reduce the number of headaches you deal with over time.
Headaches That Need Urgent Attention
Most headaches are harmless, but certain patterns signal something more serious. Be alert if a headache comes on suddenly and severely (often described as the worst headache of your life), is accompanied by fever and body-wide symptoms, follows a head injury, or comes with neurological changes like confusion, vision loss, weakness on one side of your body, or difficulty speaking. Headaches that are triggered by coughing, sneezing, or exercise, or that change dramatically depending on your position (worse lying down, better standing up, or vice versa) also warrant prompt medical evaluation.
A new headache pattern starting after age 65, or a headache that steadily worsens over days to weeks without responding to typical treatment, are additional red flags. These don’t always mean something dangerous is happening, but they require evaluation to rule out causes that need specific treatment.

