How to Get Rid of a Headache Quickly at Home

Most headaches respond to a combination of over-the-counter pain relief, hydration, and simple physical strategies, often within 30 minutes to two hours. The fastest approach depends on what’s causing the headache, but you don’t need to diagnose yourself perfectly before taking action. Here’s what works and how to layer these strategies together.

Start With Over-the-Counter Pain Relief

For a standard tension headache, ibuprofen (400 mg) or acetaminophen (1,000 mg) will resolve pain for most people. Ibuprofen can be repeated every four hours if needed, up to 2,400 mg in a day. Acetaminophen tops out at 4,000 mg daily. Both typically begin working within 20 to 30 minutes.

If you have both available, ibuprofen is generally the better first choice for headaches because it reduces inflammation, while acetaminophen only blocks pain signals. Aspirin (500 to 1,000 mg) is another solid option and works similarly to ibuprofen.

Adding a small amount of caffeine alongside your pain reliever can meaningfully boost its effectiveness. One study on a common anti-inflammatory found that combining it with caffeine resolved migraine attacks in 41% of patients, compared to 27% with the anti-inflammatory alone. A cup of coffee or tea alongside your pill is enough. Just be cautious if you suspect your headache is from caffeine withdrawal, since that’s a different situation where caffeine itself is the fix.

One important caution: if you’re using over-the-counter pain relievers more than two or three days per week, you risk developing rebound headaches, where the medication itself starts causing the problem.

Drink Water, Especially If You Haven’t

Dehydration is one of the most common and most overlooked headache triggers. If you’ve been sweating, drinking alcohol, skipping fluids, or just running through a busy day without water, dehydration could be driving your pain. A dehydration headache typically resolves within one to two hours after drinking 16 to 32 ounces of water. That’s roughly two to four glasses. Don’t chug it all at once. Steady sipping over 15 to 20 minutes works better and avoids nausea.

Apply a Cold Compress

A cold pack on your forehead or the back of your neck constricts blood vessels and numbs the area, which can dull headache pain noticeably. Wrap ice or a cold pack in a thin cloth and apply it for up to 20 minutes at a time. This works especially well for headaches with a throbbing quality. You can repeat it several times throughout the day with short breaks in between.

Heat, on the other hand, is better for tension-type headaches that feel like tightness around your head or neck. A warm towel draped across your shoulders and neck can relax the muscles that contribute to that band-like pressure.

Try Acupressure on Your Hand

There’s a pressure point between your thumb and index finger that can provide headache relief without any medication. To find it, squeeze your thumb and index finger together and look for the highest point of the muscle bulge that forms between them. Press firmly into that spot with the thumb of your other hand and move it in small circles for two to three minutes. Switch hands and repeat. The pressure should feel deep and slightly achy but not painful. If you don’t want to use your thumb, the eraser end of a pencil works too.

Rest in a Quiet, Dark Room

Light and sound sensitivity accompany many headaches, and continued exposure to screens, fluorescent lights, or loud environments keeps your nervous system in a heightened state that prolongs pain. If possible, step away from your screen, dim the lights, and close your eyes for 15 to 30 minutes. This is particularly effective for migraines, but it helps tension headaches too. Combining rest with slow, deep breathing can relax the muscles in your neck, shoulders, and jaw that often tighten during a headache and make it worse.

When It Might Be a Migraine

If your headache is intense, one-sided, throbbing, and comes with nausea or sensitivity to light, you’re likely dealing with a migraine rather than a simple tension headache. Standard pain relievers can still help, but the combination of aspirin, acetaminophen, and caffeine together is one of the strongest over-the-counter options for migraines. Clinical guidelines list it as a first-line treatment.

If over-the-counter options don’t cut it and migraines are a recurring problem, prescription medications called triptans are the standard treatment. They’re taken at the onset of a migraine and work by targeting the specific brain chemistry involved. A newer class of prescription treatments works differently and is an alternative for people who can’t tolerate triptans, though the relief rate is more modest.

Prevent the Next One

If headaches keep coming back, prevention matters as much as treatment. Two supplements have strong enough evidence that the American Headache Society specifically recommends them for people with frequent migraines: magnesium oxide at 400 to 500 mg daily and vitamin B2 (riboflavin) at 400 mg daily. These aren’t quick fixes for a headache you have right now, but taken consistently over weeks, they can reduce how often headaches occur.

Certain foods are known triggers for some people, though individual sensitivity varies widely. The most commonly reported culprits include aged cheeses (like cheddar, brie, and blue cheese), processed meats containing nitrates (pepperoni, salami, hot dogs), fermented foods (soy sauce, sauerkraut, miso), and alcohol, particularly red wine and beer. These foods contain a compound called tyramine that builds up during aging and fermentation. That said, a 2023 review of the research found the connection between tyramine and headaches is still not definitive, so a food diary tracking your personal patterns is more useful than blanket avoidance.

Caffeine deserves special attention. Keeping your intake consistent matters more than the amount. If you drink coffee every morning and skip it one day, the withdrawal alone can trigger a headache. Limiting yourself to no more than two caffeinated drinks per day keeps you in a range where withdrawal effects are less likely to be a problem.

Headaches That Need Immediate Attention

Most headaches are not dangerous, but a few patterns signal something more serious. Get emergency evaluation for any of these:

  • Sudden, explosive onset. A headache that hits maximum intensity within seconds, sometimes called a “thunderclap headache,” can indicate a bleeding blood vessel in the brain.
  • Neurological symptoms. New weakness in an arm or leg, numbness, difficulty speaking, or sudden vision changes alongside a headache are not typical of primary headaches.
  • Fever, night sweats, or weight loss. These systemic symptoms alongside worsening headaches suggest an underlying medical condition.
  • Clear progression. A headache pattern that is steadily becoming more severe or more frequent over weeks, rather than staying the same.
  • Positional changes. Pain that dramatically shifts when you stand up, lie down, cough, or strain could indicate a pressure problem inside the skull.
  • New headache during or after pregnancy. This warrants evaluation for vascular or hormonal complications.