How to Treat a Headache: Remedies That Actually Work

Most headaches respond well to a combination of over-the-counter pain relievers, hydration, and rest. The key is matching your treatment to the type of headache you’re experiencing and acting early, since waiting too long can make any headache harder to resolve.

Start With Over-the-Counter Pain Relievers

For a standard tension headache, the dull, band-like pressure most people experience, simple pain relievers work well when taken at the right dose. Acetaminophen (Tylenol) at 1,000 mg is effective for most adults, and you can repeat that dose every four to six hours up to a maximum of 4,000 mg in 24 hours. Ibuprofen (Advil, Motrin) at 400 mg taken three to four times daily is another solid option, as is naproxen (Aleve) at 500 mg twice daily.

Take your chosen pain reliever as soon as the headache starts building rather than waiting until it peaks. Ibuprofen and naproxen are anti-inflammatory, which makes them slightly more effective for headaches involving muscle tension in the neck and shoulders. Acetaminophen is gentler on the stomach, so it’s a better choice if you haven’t eaten or if you’re prone to digestive issues.

Adding caffeine can boost the effectiveness of whatever pain reliever you choose. About 100 to 130 mg of caffeine, roughly one strong cup of coffee, increases the benefit of standard painkillers for both tension headaches and migraines. If you don’t normally drink caffeine, even a smaller amount can help.

Non-Drug Approaches That Actually Help

Dehydration is one of the most overlooked headache triggers. Drinking 16 to 32 ounces of water at the first sign of a headache resolves or reduces symptoms for many people, especially if you’ve been sweating, drinking alcohol, or simply haven’t had enough fluids that day.

Applying a cold pack to your forehead or the back of your neck for 15 to 20 minutes constricts blood vessels and provides noticeable relief, particularly for migraines. For tension headaches, a warm compress on the neck and shoulders can be more effective because it relaxes the tight muscles driving the pain. Some people alternate between cold and warm and find that combination works best.

Lying down in a dark, quiet room is more than just comfort. Sensory input, especially bright light and noise, activates the same neural pathways that amplify headache pain. Reducing that input gives your nervous system a chance to settle. Even 20 to 30 minutes of rest in a dim room can cut a moderate headache significantly.

When It’s a Migraine

Migraines feel different from tension headaches. They’re typically one-sided, throbbing, and often come with nausea, light sensitivity, or visual disturbances like flashing lights or blind spots. If you get migraines regularly, over-the-counter pain relievers taken early can still work, but they often aren’t enough on their own.

Prescription medications called triptans are the most widely used targeted treatment for migraines. They work by narrowing blood vessels in the brain and blocking pain signals. If you find that standard painkillers consistently fail to control your migraines, triptans are worth discussing with your doctor. Newer medications that block a protein involved in migraine pain signaling (called CGRP) are now considered a first-line option for preventing frequent migraines, according to a 2024 position statement from the American Headache Society.

For occasional migraines, combining an over-the-counter pain reliever with caffeine, staying in a dark room, and placing a cold pack on your forehead is a reasonable approach. The critical factor is timing: treating within the first 30 to 60 minutes of symptoms gives you the best chance of stopping it.

Headaches in Children

Children get headaches too, and the approach is similar but with weight-based dosing. Both acetaminophen and ibuprofen are effective, with ibuprofen having slightly stronger evidence for relieving headache pain within two hours. The standard dose for both is 7.5 to 10 mg per kilogram of body weight. Children’s formulations come in liquid form with dosing charts on the label, making it straightforward to give the right amount. Rest, hydration, and a snack (since low blood sugar triggers headaches in kids more easily than in adults) round out the approach.

Don’t Overdo the Pain Relievers

This is one of the most important things to know about headache treatment: taking pain relievers too frequently can cause more headaches. This is called medication overuse headache, and it’s surprisingly common. The general threshold is 15 or more days per month for simple painkillers like ibuprofen or acetaminophen, and around 10 days per month for combination medications or triptans.

What happens is your brain adapts to the regular presence of the medication and produces pain signals when it wears off, creating a cycle where you need the drug to feel normal. If you notice you’re reaching for pain relievers more than two or three days per week, that’s a signal to shift toward prevention rather than continuing to treat each individual headache.

Preventing Headaches Before They Start

Regular sleep, consistent meal timing, adequate hydration, and exercise are the foundation of headache prevention. They sound basic, but irregular sleep patterns and skipped meals are two of the most reliable headache triggers across every headache type.

Several supplements have solid evidence behind them for reducing headache frequency, particularly migraines. The American Headache Society recommends magnesium oxide at 400 to 500 mg daily. Riboflavin (vitamin B2) at 400 mg daily and CoQ10 at 300 mg daily have also been shown to reduce migraine frequency. These supplements take several weeks to show their full effect, so they’re preventive tools, not treatments for a headache you already have.

Caffeine deserves a careful mention here. If you regularly consume more than 200 mg per day (about two cups of coffee), skipping it can trigger a withdrawal headache within 12 to 24 hours. Some people find that withdrawal symptoms start at intake as low as 100 mg per day. If you suspect caffeine withdrawal is behind your headaches, the fix is either maintaining consistent intake or tapering gradually over a week or two rather than stopping abruptly.

Headache Signs That Need Medical Attention

Most headaches are harmless, but certain features signal something more serious. A sudden, severe headache that reaches maximum intensity within seconds, often described as “the worst headache of my life,” can indicate bleeding in the brain and needs emergency evaluation. Other warning signs include headache with fever and neck stiffness (which can indicate infection), headache with neurological changes like weakness, confusion, vision loss, or difficulty speaking, and a new or changed headache pattern after age 50.

A headache following a head injury, a headache that wakes you from sleep repeatedly, or a headache that steadily worsens over days to weeks without responding to treatment also warrants a medical evaluation. None of these automatically mean something dangerous is happening, but they fall outside the pattern of normal tension headaches and migraines and should be assessed.