For most common headaches, an over-the-counter pain reliever like ibuprofen or acetaminophen will do the job. Ibuprofen at 400 mg can start working within 30 minutes, making it one of the fastest and most reliable options. But the best choice depends on the type of headache you’re dealing with, how often it happens, and what else is going on with your health.
Best OTC Options for Everyday Headaches
The vast majority of headaches people experience are tension-type headaches, that band-like pressure around the forehead and temples. Three main over-the-counter pain relievers work well for these.
Ibuprofen is generally considered the top pick. Clinical trials show it outperforms placebo within 30 minutes of taking it, and it carries slightly less risk of stomach irritation than aspirin. A soluble (liquid gel) formulation kicks in even faster, with pain relief reported around 39 minutes compared to 47 minutes for acetaminophen.
Acetaminophen (Tylenol) is a solid alternative, especially if you have a sensitive stomach or can’t take anti-inflammatory drugs. At 1,000 mg, it performs about as well as 650 mg of aspirin in head-to-head trials. The trade-off is that it’s harder on your liver, and the maximum safe dose is 4,000 mg in 24 hours. If you drink alcohol regularly, that ceiling is even lower.
Naproxen sodium (Aleve) absorbs quickly and reaches peak levels in the blood within about an hour. Its main advantage is that it lasts longer than ibuprofen, so it’s a better fit if your headaches tend to drag on for hours. It’s a bit tougher on the stomach than ibuprofen over time.
Why Caffeine Makes Pain Relievers Work Better
Adding caffeine to a standard pain reliever gives it a measurable boost. A large Cochrane review found that about 5% to 10% more people achieve meaningful pain relief (at least a 50% reduction over four to six hours) when caffeine is part of the formula. That’s why products like Excedrin combine acetaminophen, aspirin, and caffeine in one tablet. A cup of coffee alongside your pain reliever can have a similar effect, though the dose is less controlled.
One caveat: if caffeine is part of your daily routine, skipping it can actually trigger a headache. So caffeine works both as a treatment and, paradoxically, as a cause.
What Works for Migraines
Migraines are a different beast from tension headaches. They typically involve throbbing pain on one side of the head, sensitivity to light and sound, and sometimes nausea or visual disturbances. Standard OTC pain relievers can help mild migraines if you take them early, but moderate to severe attacks often need something stronger.
Triptans are the most widely prescribed class of medication for acute migraines. They work by narrowing blood vessels in the brain and blocking pain signals. Your doctor can prescribe these as pills, nasal sprays, or injections depending on how fast you need relief and whether nausea makes swallowing a pill difficult. A newer class of medications called gepants works differently, targeting a specific protein involved in migraine pain. These tend to cause fewer side effects, particularly for people who can’t tolerate triptans because of heart or blood vessel conditions.
Cluster Headaches Need Different Treatment
Cluster headaches produce intense, stabbing pain around one eye, often striking in repeated episodes over weeks or months. Over-the-counter pain relievers are too slow to help because cluster attacks peak within minutes and may last only 15 to 90 minutes.
The two main treatments are high-flow oxygen therapy and injectable triptans. Oxygen, breathed through a mask for about 20 minutes, is considered the first-line treatment. It’s extremely safe, has no medication interactions, and works for about 77% of patients. Injectable triptans work for a similar percentage of people but carry a higher risk of physical and psychological side effects. Oxygen is also the preferred option during pregnancy and for people who experience multiple attacks per day.
Supplements That Reduce Headache Frequency
If you get frequent headaches or migraines, certain supplements taken daily can reduce how often they occur. These aren’t quick fixes for a headache in progress. They’re preventive tools that work over weeks.
- Magnesium oxide: 400 to 500 mg per day, recommended by the American Headache Society for migraine prevention.
- Riboflavin (vitamin B2): 400 mg per day, commonly used and supported by clinical evidence for reducing migraine frequency.
- CoQ10: 300 mg per day has been shown to reduce the number of migraines in adults.
These supplements have relatively few side effects. Magnesium can cause loose stools at higher doses, which is the most common complaint.
Hydration and Sleep Matter More Than You’d Think
Dehydration is one of the most overlooked headache triggers. The general recommendation is eight 8-ounce glasses of water per day, adjusted upward if you’re sweating, exercising, or in hot weather. Many people who get frequent headaches find that simply drinking more water cuts the number of episodes noticeably.
Sleep consistency is equally important. The magic number isn’t necessarily eight hours. It’s whatever amount leaves you feeling rested, kept the same every night. If you naturally sleep six hours and feel good, that’s fine. The problem is irregular sleep, like five hours on weekdays and nine on weekends. That inconsistency is a reliable migraine trigger for many people.
The Rebound Headache Trap
Taking headache medication too often can actually cause more headaches. This is called medication overuse headache, and it’s defined as headaches occurring 15 or more days per month in someone who has been using pain relievers on 10 to 15 or more days per month (depending on the type) for longer than three months.
It’s a frustrating cycle: you take medication for the headache, the medication wears off, a new headache appears, and you take more. All common pain relievers can cause this, including acetaminophen, ibuprofen, and triptans. The general rule of thumb is to avoid using acute headache medication more than two to three days per week on a regular basis. If you find yourself reaching for a bottle that often, it’s time to talk about preventive strategies instead.
Headache Treatment During Pregnancy
Acetaminophen is the safest option throughout pregnancy. You can also use acetaminophen tablets that include caffeine.
NSAIDs like ibuprofen and naproxen are more complicated. Their safety in the first trimester isn’t well established, and taking them during the third trimester can lead to birth defects. The only window where they’re considered acceptable is the second trimester, and even then only for 48 hours or less at a time, typically reserved for migraines that don’t respond to acetaminophen.
When a Headache Is an Emergency
Most headaches are painful but harmless. A few patterns, though, signal something potentially dangerous. The most concerning is a thunderclap headache: sudden onset, reaching maximum intensity (a 10 out of 10) within seconds. This can indicate a ruptured blood vessel in the brain and needs immediate emergency evaluation.
Other warning signs worth taking seriously:
- Neurological changes: new weakness in an arm or leg, unusual numbness, or sudden vision changes
- Systemic symptoms: headache accompanied by fever, night sweats, or unexplained weight loss
- New headaches after age 50: a first-time headache pattern in someone over 50 is more likely to have a serious underlying cause
- Progressive worsening: headaches that are clearly getting more severe or more frequent over weeks
- Positional changes: pain that shifts dramatically when you stand up, lie down, cough, or strain
Any of these patterns, especially in combination, warrant a prompt medical evaluation rather than another round of ibuprofen.

