How to Get Rid of a Headache Fast at Home

Most headaches respond to a combination of over-the-counter pain relief, hydration, and simple physical strategies you can do at home. A mild to moderate headache will typically resolve within 30 minutes to two hours using the approaches below. The key is matching your remedy to the type of headache you’re dealing with.

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 workday, can cause a dull, pressing pain across your forehead or the back of your head. A dehydration headache should ease within one to two hours after drinking 16 to 32 ounces of water. That’s roughly two to four glasses. Sip steadily rather than chugging it all at once, and add a snack with some salt if you’ve been sweating or haven’t eaten recently.

Over-the-Counter Pain Relievers

If water alone isn’t enough, OTC medications are the fastest route to relief. You have three main options: acetaminophen (Tylenol), ibuprofen (Advil, Motrin), and naproxen (Aleve). Ibuprofen and naproxen are anti-inflammatory drugs, which makes them especially effective for tension headaches and migraines where inflammation plays a role. Acetaminophen works differently, blocking pain signals in the brain, and is generally gentler on the stomach.

Take whichever medication you choose at the first sign of pain. Waiting until a headache is fully established makes it harder to treat. Most people feel relief within 20 to 40 minutes.

One important safety note: acetaminophen has a firm ceiling of 4,000 milligrams in 24 hours, and exceeding that puts real strain on your liver. The extra-strength formulation caps its own recommendation even lower, at 3,000 milligrams per day. If you’re taking any other medications, check the labels carefully because acetaminophen hides in dozens of cold, flu, and sleep products.

Try a Cold or Warm Compress

Temperature therapy works surprisingly well and costs nothing. For throbbing headaches and migraines, reach for cold. A cold pack on your forehead or the back of your neck constricts blood vessels and numbs the area, reducing pain intensity within minutes. Wrap ice or a bag of frozen vegetables in a thin towel and apply for 15 to 20 minutes at a time.

For tension headaches, where the pain feels like a tight band squeezing your head, warmth is often more effective. Heat relaxes the muscles in your neck, shoulders, and scalp and raises your pain threshold. A warm towel, a heated rice sock, or even a hot shower directed at your neck and upper back can loosen things up. Some people get the best results by alternating: cold on the forehead, heat on the neck.

Use Caffeine Strategically

A small amount of caffeine can genuinely help a headache. It narrows dilated blood vessels and enhances the absorption of pain relievers, which is why caffeine is an ingredient in some OTC headache formulas. A single cup of coffee or tea alongside your ibuprofen or acetaminophen can speed up relief.

The catch is that caffeine is a double-edged sword. It takes as few as seven days of regular use, and as little as 100 milligrams per day (roughly one small coffee), for your body to become dependent. Once that happens, skipping your usual dose triggers a withdrawal headache. The American Migraine Foundation recommends keeping daily caffeine intake at or below 200 milligrams, about two small cups of coffee, to stay on the helpful side of that line.

Peppermint Oil for Tension Headaches

Peppermint oil applied to the skin is one of the better-supported natural headache remedies. In clinical trials, a 10% peppermint oil solution rubbed on the forehead and temples significantly reduced headache intensity within 15 minutes and performed comparably to acetaminophen. The menthol creates a cooling sensation that relaxes muscles and stimulates blood flow to the skin.

You can find pre-diluted peppermint roll-ons at most drugstores. If you’re using pure essential oil, dilute it with a carrier oil like coconut or almond oil before applying it to your skin. Avoid getting it near your eyes.

Identify What Triggered It

Getting rid of a headache is easier when you understand what caused it. Beyond dehydration, common triggers include skipped meals, poor sleep, alcohol, stress, bright or flickering lights, and certain foods. Aged cheeses, cured meats, fermented foods, and red wine all contain tyramine, a compound that can provoke headaches in people whose bodies don’t break it down efficiently. Tyramine causes nerve cells in the brain to release norepinephrine, and the resulting chemical shifts can trigger pain, particularly in people prone to migraines.

Processed meats like hot dogs and deli meats also contain nitrates, another well-known headache trigger. If you notice a pattern between certain foods and your headaches, keeping a simple food and headache diary for a few weeks can help you pinpoint the culprit.

Preventing Frequent Headaches

If you’re getting headaches more than once or twice a week, prevention becomes more important than treatment. Two supplements have strong evidence behind them for reducing migraine frequency. Magnesium oxide, at a dose of 400 to 500 milligrams daily, is recommended by the American Headache Society for migraine prevention. Vitamin B2 (riboflavin) at 400 milligrams daily has also shown benefit in clinical trials. Both are inexpensive, widely available, and well tolerated. Results typically take a few weeks of consistent use to appear.

Regular sleep, consistent meal timing, daily movement, and stress management form the foundation of headache prevention. These aren’t glamorous recommendations, but they address the most common underlying triggers. People who get frequent tension headaches often benefit from stretching their neck and shoulders several times a day, especially if they work at a desk.

Headaches That Need Immediate Attention

Most headaches are harmless, but a few warning signs suggest something more serious. Seek emergency care if you experience a “thunderclap” headache that reaches maximum intensity within seconds or minutes, especially if it’s the worst headache of your life. Other red flags include headache with fever, stiff neck, confusion, seizures, vision changes, weakness on one side of your body, or changes in alertness or personality.

A new headache pattern starting after age 50, headaches that get progressively worse over days or weeks, or pain that worsens with coughing, straining, or changes in position all warrant prompt medical evaluation. A headache following a head injury, even a minor one, should also be checked out.