Most headaches respond well to a combination of over-the-counter pain relievers, hydration, and simple lifestyle adjustments. The specific approach depends on the type of headache you’re dealing with, how often it strikes, and whether anything in your daily routine is triggering it. Here’s what actually works, from immediate relief to longer-term prevention.
Over-the-Counter Pain Relievers
For a standard tension headache, ibuprofen and acetaminophen are the two most reliable options. Ibuprofen works by reducing inflammation, which makes it particularly effective when tight muscles in your neck and scalp are driving the pain. Acetaminophen blocks pain signals in the brain but doesn’t address inflammation, so it’s a better fit when you can’t take anti-inflammatory drugs due to stomach sensitivity or other conditions. Aspirin falls somewhere in between and can be effective for mild to moderate headaches.
The daily safety limits matter more than most people realize. For acetaminophen, the ceiling is 3,000 mg per day. For over-the-counter ibuprofen, it’s 1,200 mg per day. Exceeding these puts strain on your liver (acetaminophen) or stomach lining and kidneys (ibuprofen), especially with repeated use.
There’s an important catch: using any of these medications on 10 or more days per month for longer than three months can actually cause a new type of headache called medication overuse headache. The International Headache Society defines this as headache occurring 15 or more days per month that develops as a direct consequence of taking pain relievers too frequently. If you find yourself reaching for a bottle most days of the week, that pattern itself may be fueling the cycle.
Hydration and Dehydration Headaches
Dehydration is one of the most overlooked headache triggers, and the mechanism is surprisingly physical. When your body loses too much fluid, your brain tissue actually shrinks slightly and pulls away from the skull. That traction on the surrounding nerves produces a dull, aching pain that can feel like a tension headache or make an existing headache worse.
The fix is straightforward: aim for six to eight glasses of water per day, roughly 1.5 to 2 liters. If you’re exercising, sweating heavily, or drinking alcohol or caffeine (both of which are mild diuretics), you’ll need more. A dehydration headache often eases within 30 minutes to a few hours of drinking water, making it one of the fastest headache remedies available.
Food Triggers Worth Knowing
Certain chemicals in food can lower your headache threshold, meaning they don’t always cause a headache on their own but stack up with other triggers like stress or poor sleep to push you over the edge. The most common culprits include tyramine, sulfites, MSG, and aspartame.
In practical terms, the foods most frequently linked to headaches include:
- Aged cheeses (the older the cheese, the higher the tyramine content)
- Processed and cured meats like hot dogs, bacon, salami, and beef jerky, which contain nitrites and nitrates
- Alcohol, especially red wine, champagne, and dark liquors
- Chocolate in all forms
- MSG, found in many restaurant dishes, seasoned snacks, bouillon, and processed foods
- Certain fruits, particularly citrus, bananas, dried fruits, avocados, and overripe fruit
- Caffeine, which can both trigger and relieve headaches depending on your pattern of use
You don’t need to eliminate everything on this list. An elimination approach works better: cut out the major suspects for a few weeks, then reintroduce them one at a time to identify your personal triggers. Many people find that only two or three specific foods are relevant to their headaches.
Neck Stretches and Posture Fixes
Tension headaches frequently originate from tight muscles in the neck and shoulders, particularly if you spend long hours at a desk or looking down at a phone. A few targeted stretches can release that tension before it escalates into a full headache, or help ease one that’s already started.
A simple side bend stretch involves lifting one arm over your head, placing your palm gently against the opposite side of your skull, and pulling your head slowly toward your shoulder until you feel a stretch along the opposite side of your neck. For deeper neck tension, try the levator scapulae stretch: place one hand behind your back to drop that shoulder, turn your head to the opposite side, look downward, and gently pull your head toward the floor. Hold each stretch for 20 to 30 seconds.
Posture correction also helps. Sitting tall and lifting through the breastbone while drawing your head back in line with your shoulders (rather than craning it forward) reduces chronic strain on neck muscles. This single adjustment, practiced throughout the day, can meaningfully reduce tension headache frequency over time.
Supplements for Prevention
Several supplements have enough evidence behind them that the American Headache Society includes them in its resources for migraine prevention. These aren’t quick fixes for a headache in progress. They’re daily supplements that, taken consistently over weeks, reduce how often headaches occur.
- Magnesium oxide: 400 to 500 mg daily. Magnesium plays a role in nerve signaling, and people who get frequent headaches tend to have lower levels.
- Riboflavin (vitamin B2): 400 mg daily. This is far above the amount you’d get from food, and it supports energy production in brain cells.
- CoQ10: 300 mg daily has been shown to reduce migraine frequency in adults.
- Melatonin: 3 mg before bed. Beyond its sleep benefits, melatonin appears to have a separate effect on headache prevention.
- Feverfew: An herbal supplement that may reduce both the frequency and duration of migraine attacks.
These supplements generally take four to eight weeks of consistent daily use before you’ll notice a difference. They tend to work best for people who experience headaches several times a month rather than occasionally.
When Headaches Are Migraines
If your headaches come with throbbing pain on one side, sensitivity to light or sound, nausea, or visual disturbances, you’re likely dealing with migraines rather than tension headaches. Standard pain relievers sometimes help mild migraines, but more targeted treatments exist.
Triptans are prescription medications designed specifically for migraines. They work by narrowing blood vessels around the brain and lowering levels of a protein called CGRP that spikes during migraine attacks. For many people, triptans can stop a migraine within an hour or two if taken early enough.
For people who get migraines frequently, a newer class of preventive medications targets that same CGRP protein on an ongoing basis. These are injectable or oral medications taken regularly to reduce the number of migraine days per month. In clinical trials, roughly half of patients on these treatments achieved at least a 50% reduction in monthly headache days, compared to about one quarter on placebo. In some studies, around 17% of patients saw their migraines disappear entirely, most commonly after a few months of treatment. The American Headache Society now considers these CGRP-targeting therapies a first-line option for migraine prevention.
Cluster Headaches Need a Different Approach
Cluster headaches are less common but far more intense, producing severe, stabbing pain around one eye that lasts 15 minutes to three hours and can strike multiple times a day during a “cluster period.” Standard pain relievers are too slow to help.
The most effective acute treatment is high-flow oxygen: 100% oxygen delivered at 12 to 15 liters per minute through a non-rebreathing face mask for 15 to 20 minutes. This can abort a cluster headache quickly for many sufferers. If there’s no relief within 15 minutes, oxygen alone won’t work for that particular attack. When an attack does respond, staying on the oxygen for an additional 10 minutes after the pain stops helps prevent a rebound.
Headaches That Need Immediate Attention
Most headaches are uncomfortable but not dangerous. A small number signal something serious. The pattern to watch for is any headache that feels fundamentally different from your usual experience.
A sudden-onset headache that hits maximum intensity within seconds, sometimes called a thunderclap headache, is one of the most concerning. This can indicate a vascular problem like an aneurysm and warrants an emergency evaluation. Headaches accompanied by new neurological symptoms, such as weakness in an arm or leg, new numbness, or sudden visual changes, also fall outside normal headache territory. A headache paired with fever, night sweats, or other systemic symptoms suggests an underlying illness rather than a primary headache disorder. And headaches in someone with a compromised immune system carry a higher risk of secondary causes that need investigation.

