What to Do If You Have a Headache Right Now

Most headaches respond well to a combination of simple strategies you can start right now: hydrating, resting in a quiet space, and taking an over-the-counter pain reliever if needed. The key is matching your approach to the type of headache you’re dealing with and knowing the few situations where a headache needs urgent medical attention.

Start With Water

Dehydration is one of the most common and most overlooked headache triggers. When your body is low on fluid, your brain actually shrinks slightly and pulls away from the skull, putting pressure on surrounding nerves. That pressure is what you feel as pain. The fix is straightforward: drink water, but take small sips rather than gulping a large amount at once, which can cause nausea. Aim for six to eight glasses of water spread throughout the day as a baseline, and more if you’ve been sweating, drinking alcohol, or skipping fluids.

If plain water doesn’t appeal to you, a drink with electrolytes can help. A dehydration headache often eases within 30 minutes to a couple of hours once you start rehydrating.

Control Your Environment

Light and noise can intensify nearly any headache, especially migraines. If possible, move to a dim, quiet room and lie down. Fluorescent lights are particularly problematic because they flicker at a frequency that can worsen head pain, even if the flicker isn’t visible to you. Switching to soft-toned lamps positioned behind you (so you’re not staring into the light source) makes a noticeable difference.

If you can’t escape to a dark room, a few quick adjustments help. Reduce screen brightness and enable a blue-light filter on your phone or computer. Wearing a hat or pulling up a hood blocks peripheral glare. Some people who get frequent light-sensitive headaches find that rose-tinted lenses (specifically the FL-41 tint) reduce the number of attacks they get over time.

Try Cold or Heat

Applying something cold or warm to your head or neck is one of the simplest ways to dial down headache pain. A cold pack on your forehead or temples constricts blood vessels and reduces blood flow to the area, which can numb the pain. A warm compress or heated rice bag on the back of your neck does the opposite, increasing circulation and relaxing tight muscles. Neither option is universally “better.” Try both and stick with whichever brings more relief for you. Keep applications to about 15 to 20 minutes at a time, with a break in between.

When to Take a Pain Reliever

Over-the-counter options like ibuprofen and acetaminophen work well for most common headaches. The important thing is not to exceed safe limits: acetaminophen tops out at 4,000 milligrams in a 24-hour period, though staying well below that ceiling is wise for regular use. Combination products that include both ibuprofen and acetaminophen are available and can be effective, but follow the dosing on the label carefully.

Caffeine is a useful but tricky ingredient. It’s included in some pain relievers because it helps the body absorb medication faster and narrows blood vessels that may be contributing to pain. A cup of coffee or tea alongside your pain reliever can genuinely help. The catch is frequency. If you’re reaching for caffeine-containing pain relievers (or any headache medication) more than two to three days per week, or more than 10 days per month, you risk developing rebound headaches. These are headaches caused by the very medications you’re using to treat them, and they create a cycle that’s hard to break without stopping the overused medication entirely.

Other Strategies That Help

Gentle pressure on your temples or the base of your skull can ease tension-type headaches. So can slowly stretching your neck by tilting your head side to side and rolling your shoulders. Tension headaches often stem from tight muscles in the neck and scalp, and loosening those muscles addresses the root cause rather than just masking the pain.

Eating something can also help, particularly if you’ve skipped a meal. Low blood sugar triggers headaches in many people, and a small snack with protein and complex carbohydrates can resolve the pain within 15 to 30 minutes. Deep, slow breathing in a quiet space for even five to ten minutes activates your body’s relaxation response and can reduce the muscle tension feeding a headache.

Preventing Frequent Headaches

If headaches show up regularly, prevention matters more than treatment. Consistent sleep, regular meals, steady hydration, and managing stress are the foundation. These sound obvious, but inconsistency in any of them is the single biggest driver of recurring headaches for most people.

On the supplement side, magnesium and riboflavin (vitamin B2) have evidence supporting their use for headache prevention, particularly migraines. Magnesium at doses up to 400 to 500 milligrams per day and riboflavin at 400 milligrams per day, taken consistently for at least three months, have been shown to reduce headache frequency. These aren’t quick fixes for a headache happening right now, but they can reduce how often headaches occur over time.

Red Flags That Need Emergency Care

Most headaches are uncomfortable but not dangerous. A small number of warning signs, however, mean you should get to an emergency room:

  • Sudden, explosive onset: a headache that reaches maximum intensity within seconds, sometimes called a “thunderclap” headache
  • Neurological changes: slurred speech, vision changes, confusion, memory loss, difficulty moving your arms or legs, or loss of balance alongside the headache
  • Fever with a stiff neck: especially combined with nausea and vomiting, which can signal meningitis
  • “Worst headache of your life”: even if you get headaches regularly, a new level of severity is worth an ER visit
  • Headache after a head injury
  • New headaches starting after age 50, or new headaches in anyone with a history of cancer
  • Headache triggered by exertion: occurring immediately after weightlifting, running, or sex
  • Progressive worsening: a headache that steadily intensifies over 24 hours rather than plateauing or improving

A headache accompanied by severe eye redness and pain in one eye, or headaches paired with jaw pain while chewing and unexplained weight loss, also warrant prompt medical evaluation. These patterns can point to conditions that need treatment beyond standard headache care.