Most headaches can be relieved within 30 minutes to two hours using a combination of simple strategies: hydration, over-the-counter pain relief, cold therapy, and rest. The right approach depends on what’s causing your headache, but even when you’re not sure, a few reliable techniques work for the majority of tension-type and mild-to-moderate headaches.
Drink Water First
Dehydration is one of the most common and most overlooked headache triggers. Even mild fluid loss from skipping water during a busy day, exercising, or drinking coffee without enough water alongside it can cause a dull, pressing headache. A dehydration headache typically goes away within one to two hours after drinking 16 to 32 ounces of water. That’s roughly two to four glasses. Sip steadily rather than gulping it all at once, and don’t wait to see if it works before trying other strategies in parallel.
Over-the-Counter Pain Relievers
If water alone isn’t enough, ibuprofen and acetaminophen are the two most widely used options. Ibuprofen reduces inflammation, which makes it particularly effective for headaches tied to muscle tension or sinus pressure. Acetaminophen works more centrally on pain signaling and is easier on the stomach. Combination tablets containing both are available over the counter, typically dosed at two tablets every eight hours with a maximum of six tablets per day.
Whichever you choose, take it early. Pain relievers work best when you take them at the first sign of a headache rather than waiting until the pain peaks. One important limit to know: never exceed 4,000 milligrams of acetaminophen in a 24-hour period, as higher amounts can damage the liver. If you’re already taking other medications that contain acetaminophen (many cold and flu products do), check the labels carefully.
Apply a Cold Compress
Cold therapy constricts blood vessels, slows cell activity, and blocks the release of chemicals that contribute to pain and swelling. For headaches, place a cold pack on your forehead, temples, or the back of your neck for 15 to 20 minutes. You can use a store-bought gel pack from the freezer, a bag of frozen vegetables, or ice cubes in a sealed plastic bag. Always wrap it in a towel or pillowcase first to protect your skin.
Heat works better for some people, particularly when the headache is driven by tight neck and shoulder muscles. A warm, moist towel draped across the back of your neck or a warm shower can loosen muscle tension and temporarily raise your pain threshold. If you’re not sure which type of headache you have, try cold first. It’s more broadly effective for acute pain.
Try Peppermint Oil
Topical peppermint oil is one of the few herbal remedies with solid clinical backing for tension headaches. A 10% peppermint oil solution applied to the temples and forehead has been shown to be significantly more effective than placebo for relieving tension-type headache pain. You can find pre-diluted roll-on products at most pharmacies. Apply a small amount to your temples and massage gently in circular motions. The cooling sensation works quickly, often within 15 minutes, and it pairs well with other approaches like cold therapy or pain relievers.
Use Acupressure
A pressure point called LI4 (or Hegu) sits on the back of your hand, in the fleshy area between the base of your thumb and index finger. To find it, squeeze your thumb and index finger together. The point is at the highest part of the muscle bulge that forms. Press firmly with the thumb and index finger of your opposite hand and hold for two to three minutes, then switch hands. This technique is used in clinical settings at institutions like Memorial Sloan Kettering and can take the edge off a headache when you don’t have medication available.
Step Away From Screens
Extended screen time causes a condition called digital eye strain, which produces headaches, dry eyes, blurry vision, and neck pain. If your headache came on during a long stretch at a computer or phone, the screen itself may be the trigger. The American Optometric Association recommends the 20-20-20 rule: every 20 minutes, look at something 20 feet away for at least 20 seconds. This gives the muscles controlling your focus a chance to relax.
Beyond regular breaks, dimming your screen brightness to match the ambient light in your room and increasing text size so you’re not squinting both reduce the strain that leads to headaches. If screen-related headaches are a recurring problem, positioning your monitor about an arm’s length away and slightly below eye level can help prevent them.
Rest, but Keep Naps Short
Sleep is one of the body’s most effective headache remedies. Lying down in a dark, quiet room for even 20 to 30 minutes can significantly reduce headache pain. However, longer naps can backfire. Research on chronic migraine found that greater headache severity was associated with longer naps, and that longer daytime naps reduced sleep quality at night. Poor nighttime sleep, in turn, makes headaches more likely the next day, creating a cycle. If you’re going to nap, set an alarm for 20 to 30 minutes. That’s long enough to let your body recover without disrupting your overnight sleep.
Ginger for Migraines
If your headache is more than a dull ache and involves throbbing, light sensitivity, or nausea, it may be a migraine. One surprisingly effective option is ginger. A clinical trial found that roughly one-eighth of a teaspoon of ginger powder was statistically comparable to sumatriptan (a prescription migraine drug) at reducing migraine severity within two hours, with fewer side effects. You can stir ginger powder into warm water or tea at the onset of symptoms. It’s not a guaranteed fix, but it’s safe, inexpensive, and worth trying before or alongside other treatments.
Prevent the Next One
If headaches are showing up more than once or twice a week, prevention matters more than treatment. Magnesium supplementation is one of the most studied preventive strategies. Clinical guidelines recommend 200 to 600 mg daily, and studies using 600 mg of magnesium per day for 12 weeks found that migraines occurred less frequently than in people taking a placebo. Magnesium citrate and magnesium glycinate tend to be better absorbed and easier on the stomach than magnesium oxide, which can cause digestive issues at higher doses.
Other preventive habits with strong evidence behind them include consistent sleep and wake times (even on weekends), regular moderate exercise, and staying ahead of hydration throughout the day rather than catching up after a headache starts.
When a Headache Signals Something Serious
The vast majority of headaches are harmless, but a small number are warning signs of something dangerous. Neurologists use a set of red flags known as the SNOOP criteria to identify headaches that need immediate medical attention. You should seek emergency care if your headache involves any of the following:
- Sudden onset: a severe headache that reaches maximum intensity within seconds, often described as the worst headache of your life
- Neurologic symptoms: confusion, vision changes, slurred speech, weakness on one side of the body, or seizures
- New pattern after age 40: a first-ever severe headache or a dramatic change in your usual headache pattern
- Systemic symptoms: fever, stiff neck, unexplained weight loss, or a headache that worsens with coughing or bending over
These patterns don’t always mean something is wrong, but they warrant evaluation quickly rather than at-home treatment.

