Most headaches respond to a combination of over-the-counter pain relievers, hydration, and simple environmental changes. The fastest approach depends on what type of headache you’re dealing with, but for the most common kind, a tension headache, an anti-inflammatory like ibuprofen plus a glass of water and 20 to 30 minutes of rest in a quiet, dim room will resolve the pain for most people.
That said, not every headache responds to the same treatment. What works for a tension headache can be useless for a cluster headache, and some remedies that help in the short term can actually make things worse if you rely on them too often.
Identify What Kind of Headache You Have
Tension headaches feel like a band of pressure wrapping around your head. They’re the most common type, and they respond well to standard pain relievers. Migraines are more intense: the pain often concentrates on one side of the head or behind the eye, lasts hours to days if untreated, and frequently comes with nausea, vomiting, or sensitivity to light and sound. If you have a migraine, resting in a dark, quiet room tends to help. Cluster headaches are shorter (30 to 90 minutes) but far more severe, always hit one side of the head near the temple or eye, and cause redness, tearing, or nasal congestion on that side. People with cluster headaches tend to feel agitated and restless rather than wanting to lie down.
This distinction matters because cluster headaches typically don’t respond to over-the-counter medications at all. If you experience them regularly, you’ll need a prescription treatment plan. The advice below focuses on tension headaches and migraines, which account for the vast majority of headaches people deal with at home.
Over-the-Counter Pain Relievers
For tension headaches and migraines, ibuprofen or naproxen are effective first-line options. Both are anti-inflammatory drugs that target the pain pathways involved in most headaches. If those don’t work for a migraine, a combination product containing aspirin, acetaminophen, and caffeine (like Excedrin Migraine) often does. The caffeine in these products, typically around 130 mg per dose, boosts the effectiveness of the pain relievers and provides a small but measurable benefit on its own.
There are important limits, though. Don’t exceed 4,000 mg of acetaminophen in a 24-hour period. Avoid ibuprofen and naproxen if you take blood thinners, have kidney problems, or have had gastric bypass surgery. And here’s the one most people don’t know: if you use any of these medications more than 14 days a month, they can actually make your headaches worse. This is called medication overuse headache, and it creates a cycle where the drug you’re taking for relief becomes the reason you keep getting headaches.
Drink Water, but Slowly
Dehydration is one of the most overlooked headache triggers. A dehydration headache usually resolves within a few hours once you start rehydrating, but the key is to take small sips rather than gulping large amounts quickly, which can cause nausea. If your headache started after exercise, time in the heat, or a day where you simply forgot to drink enough, water alone may be all you need. If the pain persists more than a few hours after drinking water, something else is likely going on.
Cold or Warm Compress
Both cold and warm compresses reduce headache intensity, and research on migraine-type headaches found that either option applied to the neck for about 25 minutes provided meaningful relief. Cold tends to work better for migraines because it numbs the area and constricts blood vessels. Warmth is often more effective for tension headaches because it relaxes the tight muscles in your neck and shoulders that are contributing to the pain. If you’re unsure which type you have, try whichever feels more soothing. Apply it for 20 to 25 minutes, take a break, and repeat if needed.
Rest in a Dark, Quiet Room
This is especially effective for migraines. The optic nerve, which transmits light signals to your brain, plays a role in the light sensitivity that accompanies many headaches. Reducing that input gives your nervous system a chance to calm down. Even 20 to 30 minutes in a dark, quiet room can significantly reduce migraine symptoms. For tension headaches, this helps too, though the mechanism is more about reducing overall sensory stimulation and stress.
Caffeine: Helpful or Harmful
Caffeine at doses of 100 mg or more (roughly one strong cup of coffee) constricts blood vessels in the brain and enhances the effect of pain relievers. If you don’t consume caffeine regularly, a cup of coffee at the onset of a headache can genuinely help. The problem comes with daily use. Your body adapts to caffeine quickly, and when you skip it or have it later than usual, the resulting blood vessel dilation triggers a withdrawal headache. These rebound headaches can take up to two weeks to fully resolve once you cut back. So caffeine works as an occasional headache tool, but becomes a headache cause if you depend on it daily.
Peppermint Oil
For tension headaches specifically, topical peppermint oil has clinical support. A 10% peppermint oil solution applied to the temples and forehead creates a cooling sensation that relaxes the muscles and distracts the pain signals. Clinical trials used three to five applications during a headache episode. You can find peppermint oil rollers or diluted solutions at most pharmacies. Apply it directly to your temples, avoiding your eyes.
Acupressure
The LI4 pressure point, located on the back of your hand between the base of your thumb and index finger, is the most studied acupressure point for headache relief. To find it, squeeze your thumb and index finger together and look for the highest point of the muscle bulge that forms. Press firmly on that spot for two to three minutes. You should feel some aching or tenderness but not sharp pain. This works well as a supplement to other treatments, especially when you don’t have medication available.
Longer-Term Prevention
If you get headaches frequently, the strategies above will keep putting out fires without addressing the source. Exercise that raises your heart rate for at least 30 minutes, three times a week, reduces both the frequency and severity of headaches over time. Magnesium supplementation at 400 to 600 mg per day (magnesium oxide is the most commonly studied form) helps prevent migraines, particularly for people who experience visual aura, menstrual migraines, or who want an affordable, non-prescription option. Riboflavin (vitamin B2) has also shown benefit for migraine prevention. Breathing exercises and biofeedback techniques help some people reduce tension headache frequency by lowering baseline muscle tension and stress.
Headaches That Need Emergency Attention
Most headaches are uncomfortable but not dangerous. A few patterns signal something more serious. A thunderclap headache, one that reaches maximum intensity within seconds, could indicate a vascular emergency like a brain aneurysm and needs immediate evaluation. New headaches that come with fever, night sweats, or unexplained weight loss suggest a systemic illness. Neurological symptoms like weakness in an arm or leg, new numbness, or vision changes alongside a headache point to something beyond a primary headache. A first-time headache appearing after age 50 is more likely to have a secondary cause. Headaches that are clearly getting worse over weeks, that change with body position (standing vs. lying down), or that are triggered by coughing or straining also warrant prompt medical evaluation.

