How to Get Rid of a Headache From a Hangover

The fastest way to ease a hangover headache is to take a standard dose of ibuprofen, drink water with electrolytes, and eat something with complex carbohydrates like toast. That combination targets the three main drivers of the pain: inflammation in your brain, dehydration, and low blood sugar. Most hangover symptoms last about 12 hours after waking up, so the goal is to shorten and soften that window.

Why Alcohol Causes a Headache

Alcohol triggers headache pain through a cascade of inflammation, not just dehydration. When you drink, ethanol and its byproducts activate pain receptors on the membranes surrounding your brain. These receptors release inflammatory signaling molecules that cause blood vessels in your head to dilate, increasing blood flow and putting pressure on surrounding nerves. That pressure registers as a throbbing headache.

At the same time, your body produces inflammatory compounds like TNF-alpha and IL-1beta, which peak 7 to 24 hours after drinking. This is why your headache often feels worst the morning after rather than while you’re still drinking. Your liver is also busy processing alcohol into acetaldehyde, a toxic byproduct that contributes to nausea and head pain before it gets broken down further. Understanding that inflammation is the core problem explains why the right pain reliever matters more than just drinking water.

Take the Right Pain Reliever

Ibuprofen (Advil, Motrin) or naproxen (Aleve) are your best options. Both are anti-inflammatory drugs that directly counteract the inflammatory process driving your headache. A standard over-the-counter dose is all you need.

Avoid acetaminophen (Tylenol) when you’re hungover. Your liver is already working overtime to process alcohol, and acetaminophen adds to that burden. Alcohol depletes your liver’s stores of glutathione, the antioxidant your liver uses to safely process acetaminophen. Without enough of it, acetaminophen can become toxic to liver cells. Acetaminophen toxicity accounts for nearly half of acute liver failure cases in North America, and combining it with heavy drinking raises that risk. One caveat with ibuprofen: it can irritate your stomach lining, so take it with food rather than on an empty stomach.

Rehydrate With More Than Water

Alcohol is a diuretic, meaning it makes your kidneys flush out more fluid than you’re taking in. Along with that fluid, you lose key electrolytes: sodium, potassium, magnesium, calcium, and others. Plain water replaces the fluid but not the minerals, so a drink with electrolytes works better. Sports drinks, coconut water, or oral rehydration solutions all do the job. Even broth is a good option since it contains sodium and is easy on your stomach.

Don’t try to chug a liter of water all at once. Sipping steadily over a couple of hours is easier on your stomach and gives your body time to actually absorb what you’re drinking.

Eat Something, Even if You Don’t Want To

Alcohol disrupts how your liver and pancreas manage blood sugar. This can leave you with low blood sugar the morning after, which causes shakiness, weakness, and sweating on top of your headache. Eating bland foods with complex carbohydrates, like toast, crackers, or oatmeal, stabilizes your blood sugar and reduces nausea.

Eggs are a particularly smart choice. They’re rich in L-cysteine, an amino acid that reacts directly with acetaldehyde, the toxic byproduct your liver produces while breaking down alcohol. A study at the University of Helsinki found that L-cysteine supplements reduced hangover symptoms, and while eating eggs delivers a smaller amount than the study doses, it still helps your body clear acetaldehyde faster while providing protein and easy calories.

Coffee: Helpful but Limited

A cup of coffee can help your headache, but it’s a double-edged sword. Caffeine narrows blood vessels, which counteracts the vessel dilation that’s pressuring nerves around your brain. That vasoconstriction genuinely reduces headache pain. The problem is that caffeine is also a mild diuretic, which can worsen dehydration if you’re not drinking water alongside it. And if you’re a regular coffee drinker, skipping your morning cup will add a caffeine withdrawal headache on top of the hangover.

The practical move: have your normal amount of coffee, drink water with it, and don’t expect caffeine alone to fix the problem.

What Probably Won’t Help

“Hair of the dog,” or drinking more alcohol, delays your hangover rather than curing it. Your symptoms begin as blood alcohol concentration approaches zero, so adding more alcohol just pushes that timeline back. You’ll feel the same pain later, potentially worse.

Most marketed hangover supplements have thin evidence behind them. One exception worth noting: prickly pear cactus extract showed some promise in a clinical trial published in JAMA Internal Medicine, where it cut the risk of a severe hangover roughly in half. But you’d need to take it before drinking, not the morning after, which limits its usefulness when you’re already in pain.

How Long a Hangover Lasts

The average hangover lasts about 18 hours from the time you stop drinking, or roughly 12 hours after waking up. For most people, symptoms fall somewhere in the 14 to 23 hour range. Your headache will typically peak in the morning and gradually ease through the afternoon. The steps above won’t eliminate the hangover instantly, but they can meaningfully compress that timeline and reduce the intensity.

Reduce Headaches Next Time

What you drink matters almost as much as how much. Dark liquors like bourbon, brandy, cognac, and red wine contain high levels of congeners, chemical byproducts of fermentation that worsen hangovers. Tequila is also high in congeners despite being lighter in color. Clear drinks like vodka, gin, white wine, light rum, and light beer contain far fewer congeners and tend to produce milder morning-after symptoms.

Alternating alcoholic drinks with glasses of water throughout the night slows your intake and reduces total fluid loss. Eating a full meal before drinking slows alcohol absorption, giving your liver more time to process each drink before the next one arrives. None of this is a guarantee, but the difference between a brutal hangover and a manageable one often comes down to these small choices made the night before.