What to Do If You Have a Headache: Relief Tips

Most headaches respond well to a combination of simple strategies you can start within minutes: hydrating, resting in a dim room, applying a cold compress, 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 attention.

Figure Out What Kind of Headache You Have

The relief strategy that works best depends on the headache. Tension headaches, the most common type, feel like a tight band squeezing both sides of your head, often across the forehead or the back of the skull. They typically last anywhere from 30 minutes to a few hours. There’s no nausea, no light sensitivity, just steady pressure.

Migraines feel different. The pain is intense, throbbing, and often one-sided. Migraines can last hours or even days and frequently come with nausea, vomiting, sensitivity to light and sound, or visual disturbances like flashing lights before the pain starts. If this sounds familiar, your relief plan needs to be more aggressive and start as early as possible.

Cluster headaches are rarer but unmistakable. The pain is severe, penetrating, and centered around one eye or temple. People with cluster headaches often can’t sit still during an attack. They pace, rock, or feel intensely agitated. The affected eye may turn red or tear up, and that side of the nose may get congested.

Drink Water First

Dehydration is one of the most overlooked headache triggers. If you haven’t been drinking enough fluids, especially on a hot day or after exercise, a dehydration headache can develop quickly. Drinking 16 to 32 ounces of water should relieve this type of headache within an hour or two. Even if dehydration isn’t the main cause, staying hydrated won’t hurt and may take the edge off your symptoms while you try other strategies.

Control Your Environment

Light and noise make most headaches worse, particularly migraines. If you can, move to a quiet room and dim the lights. Fluorescent lighting is especially problematic, so switch to natural light or use dimmers if you have them. Turn down the brightness on your phone and computer screen. Polarized sunglasses can help if you need to be outside or can’t fully control the lighting around you.

Temperature matters too. A cold compress applied to your forehead or the back of your neck constricts blood vessels, reduces swelling, and numbs the area. Wrap ice or a cold pack in a thin towel and apply it for 15 to 20 minutes at a time. Cold therapy works well for most headache types. For tension headaches specifically, some people find that warmth on tight neck and shoulder muscles provides better relief, so it’s worth experimenting.

Try Progressive Muscle Relaxation

Tension headaches often stem from tightened muscles in the neck, shoulders, jaw, and forehead. Progressive muscle relaxation is a simple technique that’s been shown to be effective for both tension headaches and migraines. It takes about 10 to 15 minutes and works by systematically tensing and then releasing muscle groups throughout the body.

Find a comfortable position, either sitting or lying down. Starting with your fists, clench them tightly for five seconds while breathing in, then release all at once and notice how the relaxation feels. Move through your body in order: biceps, forehead (wrinkle it into a frown), eyes (squeeze them shut), jaw (clench gently), neck, and shoulders (shrug them up to your ears). For each group, hold the tension for five seconds, then let go completely. Try saying the word “relax” to yourself each time you release. You can repeat each muscle group once or twice using less tension each time.

This technique works especially well if your headaches tend to build during stressful days or after long stretches of computer work.

When to Use Pain Relievers

Over-the-counter options like acetaminophen (Tylenol), ibuprofen (Advil, Motrin), and naproxen (Aleve) all work for common headaches. Take the maximum dose listed on the bottle for the best effect. Ibuprofen and naproxen also reduce inflammation, which can be helpful if your headache involves swollen tissues or sinus pressure.

The important rule is timing: pain relievers work better the earlier you take them. If you wait until the headache is at full intensity, especially with a migraine, they become much less effective. If you feel a headache building, don’t wait it out hoping it will pass.

One critical caution: using any pain reliever more than two or three days per week on a regular basis can cause rebound headaches, where the medication itself starts triggering new headaches. If you find yourself reaching for painkillers that often, the pattern itself is worth addressing with a doctor.

Supplements That Reduce Frequent Headaches

If you get headaches regularly, certain supplements can lower how often they occur. The American Headache Society recommends 400 to 500 milligrams of magnesium oxide daily for migraine prevention. Magnesium plays a role in nerve signaling, and many people with frequent migraines have lower-than-average levels. Riboflavin (vitamin B2) at 400 milligrams daily is another well-studied option. These are preventive strategies, not quick fixes for a headache you already have, so they need to be taken consistently over weeks to show results.

Fix Your Sleep

Poor sleep and headaches feed each other in a vicious cycle. People with insomnia have two to three times the risk of migraines and tension headaches compared to good sleepers. Morning headaches in particular are closely tied to sleep quality. One study found that people with insomnia disorders experienced morning headaches at nearly three times the rate of people without insomnia (18.4% versus 6.9%).

Sleep apnea is another common culprit. About 12% of people with obstructive sleep apnea experience headaches on waking, compared to roughly 5% of the general population. If you wake up with headaches regularly, snore loudly, or feel exhausted despite getting enough hours of sleep, sleep apnea is worth investigating. Treating the underlying sleep problem often resolves the headaches on its own.

Headaches That Need Immediate Attention

Most headaches are harmless, but a few patterns signal something serious. The most urgent is a thunderclap headache: sudden onset that reaches maximum intensity within seconds. This can point to a ruptured aneurysm and needs emergency evaluation immediately.

Other red flags to watch for:

  • Fever, night sweats, or other signs of illness alongside the headache, which can indicate infection or another systemic condition
  • New neurological symptoms like weakness in an arm or leg, new numbness, or vision changes that aren’t typical for you
  • Headaches that keep getting worse over days or weeks, either in severity or frequency
  • A new type of headache after age 50, which is more likely to have a secondary cause
  • Headaches that change with position, like worsening when you stand up or lie down, or that are triggered by coughing or straining
  • New headaches during or after pregnancy, which can signal vascular or hormonal complications

If your headache fits any of these descriptions, skip the home remedies and get evaluated. For everything else, the combination of hydration, a calm environment, a cold compress, relaxation, and an early dose of a pain reliever handles the vast majority of headaches effectively.