How Do I Get Rid of a Headache? Fast Relief Tips

Most headaches respond to a combination of hydration, over-the-counter pain relief, and simple physical techniques you can do at home. The fastest approach depends on what type of headache you’re dealing with, so it helps to narrow that down first. A tension headache, which accounts for the majority of headaches, typically eases within 30 minutes to a few hours with the right steps.

Figure Out What Kind of Headache You Have

Tension headaches feel like steady pressure across your forehead, temples, or the back of your head, almost like a band tightening around your skull. The pain is mild to moderate, affects both sides, and doesn’t get worse when you walk or climb stairs. You might be sensitive to light or sound, but not both at the same time. These can last anywhere from 30 minutes to several days.

Migraines are different. The pain is moderate to severe, usually throbbing, and concentrated on one side of your head. Nausea, vomiting, and intense sensitivity to both light and sound are common. Some people get visual disturbances (flashing lights, blind spots) before the pain starts. Migraines need a more aggressive treatment approach than tension headaches.

Cluster headaches are rarer but unmistakable. They hit suddenly with extreme pain behind or around one eye, peak within 5 to 10 minutes, and can last up to three hours. The eye on the affected side often gets red, teary, and swollen. These tend to strike at the same time each day for weeks before disappearing for months.

Drink Water First

Dehydration is one of the most common and overlooked headache triggers. A dehydration headache typically clears within a few hours once you start rehydrating, but the key is to sip slowly rather than gulping a large amount at once, which can cause nausea. If you haven’t been drinking enough today, or you’ve been sweating, this is the single easiest fix to try.

For general prevention, aim for six to eight glasses of water a day, roughly 1.5 to 2 liters. If your headache doesn’t improve after a few hours of steady hydration, dehydration probably isn’t the main cause.

Take the Right Over-the-Counter Pain Reliever

Acetaminophen (Tylenol) and ibuprofen (Advil, Motrin) both work for tension headaches and migraines. Ibuprofen has the added benefit of reducing inflammation, which can help if your headache involves swollen blood vessels or muscle tension. The maximum safe dose of acetaminophen is 4,000 milligrams in 24 hours, though staying well under that limit is wise, especially if you drink alcohol.

Adding caffeine boosts the effectiveness of pain relievers significantly. About 100 to 130 milligrams of caffeine, roughly the amount in a strong cup of coffee, enhances how well acetaminophen and aspirin work. One large clinical study found that a combination of aspirin, acetaminophen, and 130 mg of caffeine was as effective as prescription migraine medication for treating acute migraine attacks. If you don’t have a combination product, taking your pain reliever with a cup of coffee achieves a similar effect.

One important caution: using pain relievers more than two or three days a week can cause rebound headaches, where the medication itself starts triggering new headaches. If you find yourself reaching for pills that often, it’s worth looking at prevention strategies instead.

Apply a Cold Compress

Placing a cold pack on your forehead, temples, or the back of your neck can relieve headache pain by constricting blood vessels and numbing the area. Wrap ice or a cold pack in a thin towel and apply for 15 to 20 minutes at a time. This works particularly well for migraines, where throbbing pain is linked to blood vessel changes. For tension headaches, some people find warmth on the neck and shoulders more helpful since it loosens tight muscles, so try both and see what your body responds to.

Release Tension in Your Neck and Shoulders

Tight muscles at the base of your skull and along the back of your neck are a major driver of tension headaches. A few simple stretches can make a noticeable difference within minutes.

  • Neck turns: Slowly turn your head to the left and hold for 5 to 10 seconds, then repeat on the right. Do this up to 10 times on each side.
  • Side tilts: Tilt your head toward your left shoulder, hold for 5 seconds, then switch sides. Repeat up to 10 times.
  • Chin tucks: While sitting or standing, tuck your chin toward your chest without looking down. Hold for up to 10 seconds. Repeat 5 to 10 times. This stretch targets the muscles right at the base of your skull where tension headaches often originate.
  • Backward tilt: Gently tilt your head backward until you feel a mild stretch in the front of your neck. Hold for 5 seconds and repeat 5 times.

You can also press your thumbs into the two soft spots at the base of your skull, just where your neck muscles attach. Apply firm, steady pressure for 15 to 30 seconds, then release. This targets the same muscle group that tightens during long hours of screen work or stress.

Reduce Stimulation

If you’re dealing with a migraine or a severe tension headache, your nervous system is already on high alert. Move to a quiet, dimly lit room if you can. Close your eyes for 15 to 20 minutes. Even a short break from screens, bright lights, and noise can let your pain start to settle. For migraines especially, continuing to push through sensory stimulation tends to make the attack last longer and feel worse.

Prevent Your Next Headache

If headaches are a regular part of your life, daily magnesium may help. The American Headache Society recommends 400 to 500 milligrams of magnesium oxide per day for migraine prevention. Magnesium citrate is another well-absorbed option. Results aren’t immediate; most people need a few weeks of consistent use to notice a reduction in headache frequency.

Certain foods are well-established headache triggers, particularly for migraines. The main culprits are aged cheeses (cheddar, brie, parmesan, blue cheese), processed meats (hot dogs, salami, pepperoni, jerky), alcohol (especially red wine, beer, and sherry), chocolate, and foods containing MSG, which hides on labels under names like “natural flavoring” and “hydrolyzed protein.” Fresh yeast products like warm bakery bread and doughnuts contain compounds that can also trigger attacks, though freezing bread appears to deactivate the yeast enough to reduce the risk. Keeping a simple food diary for a few weeks can help you identify your personal triggers, since not every food on these lists will affect every person.

Regular sleep, consistent meal timing, and managing stress are the less exciting but most effective long-term headache prevention tools. Many people who get frequent tension headaches find that their headaches drop dramatically once they fix an erratic sleep schedule or start addressing the muscle tension that builds up during their workday.

Headaches That Need Immediate Attention

Most headaches are harmless, but a few patterns signal something more serious. Seek emergency care if you experience a sudden, explosive headache that reaches maximum intensity within seconds, sometimes called a thunderclap headache, as this can indicate a ruptured blood vessel in the brain. Other warning signs include a headache with fever and neck stiffness, new weakness or numbness in your face, arm, or leg, vision changes that aren’t typical for you, or a headache that keeps getting progressively worse over days or weeks. A new type of headache starting after age 50 also warrants evaluation, since it’s more likely to have a secondary cause. Headaches that change with body position, like worsening when you stand up or lie down, or that are triggered by coughing or straining can point to pressure issues that need investigation.