Do Antihistamines Help With Headaches and Migraines?

Antihistamines can help with certain types of headaches, particularly migraines, but the evidence is more nuanced than a simple yes or no. Histamine plays a direct role in triggering migraine pain by dilating blood vessels outside the brain, and blocking that process with an antihistamine can reduce or prevent the headache. However, the type of antihistamine matters, the type of headache matters, and taking an antihistamine on its own may not be much better than a placebo for acute pain relief.

How Histamine Triggers Headache Pain

Histamine is one of the chemicals your body releases during allergic reactions, but it also plays a role in headache pain that has nothing to do with allergies. When histamine levels rise, the compound binds to receptors (called H1 receptors) on blood vessels outside the brain, causing them to widen. That dilation of blood vessels in and around the skull is what produces throbbing head pain.

Researchers confirmed this by infusing histamine directly into migraine patients and watching what happened. The patients developed headaches, and when they were given an H1-blocking antihistamine during the infusion, the headache was greatly reduced or completely eliminated in 15 out of 18 patients. Even more telling, giving the antihistamine before the histamine infusion prevented both the immediate headache and the delayed one that typically follows. Blocking a different receptor type (H2) had a much smaller effect, suggesting H1 receptors are the primary pathway for histamine-driven head pain.

This mechanism helps explain why some people get headaches from aged cheese, red wine, fermented foods, and other histamine-rich items. It’s not an allergy. It’s a direct vascular response to histamine overload.

Antihistamines for Acute Migraine Relief

If you’re hoping to pop a Benadryl (diphenhydramine) mid-migraine and get meaningful relief, the research is disappointing. A randomized clinical trial tested diphenhydramine against a placebo as an add-on to standard emergency migraine treatment. Sustained headache relief, defined as reaching mild or no pain within two hours and maintaining it for 48 hours without additional medication, was reported by 40% of patients who received diphenhydramine and 37% who received the placebo. That 3% difference was not statistically significant, meaning diphenhydramine as an add-on didn’t outperform a sugar pill.

So why do emergency rooms still include diphenhydramine in “migraine cocktails”? Partly tradition, partly because it reduces nausea and helps patients rest. The sedation itself can feel like relief when you’re in a dark room trying to sleep off a migraine, but the antihistamine isn’t doing much to the headache itself in that setting.

Where antihistamines do show some promise for acute attacks is when combined with pain relievers in a single formulation. One double-blind trial tested a combination of acetaminophen, codeine, an antihistamine, and caffeine against placebo for migraine attacks and found the combination significantly better at completely relieving migraine pain. But it’s difficult to untangle how much of that effect came from the antihistamine versus the other ingredients.

Antihistamines for Migraine Prevention

The strongest case for antihistamines in headache treatment isn’t about stopping a headache once it starts. It’s about preventing them from happening in the first place. Cyproheptadine, an older antihistamine that also blocks serotonin receptors, has been studied as a preventive treatment for people with frequent migraines.

In a study of patients averaging more than 10 migraines per month, taking cyproheptadine daily reduced that number dramatically within 7 to 10 days. Nine out of 12 patients had zero migraine attacks during their first month on the medication. After three months, patients on the lower dose (4 mg daily) dropped from an average of 8.7 attacks per month to 3.1, while those on the higher dose (8 mg daily) went from 10.6 attacks per month down to 2.1. These were patients whose migraines had resisted other preventive treatments.

Cyproheptadine is also one of the few migraine preventives used in children, where it has a long track record. The main side effect is drowsiness, which is why it’s typically started as a single dose at bedtime. If daytime sleepiness isn’t a problem, a second dose may be added in the morning.

Histamine Intolerance and Chronic Headaches

Some people experience frequent headaches not because of a structural problem or a migraine disorder, but because their bodies can’t break down histamine efficiently. This condition, called histamine intolerance, occurs when the enzyme responsible for clearing dietary histamine (diamine oxidase, or DAO) isn’t working well enough. The result is a buildup of histamine after eating, which can trigger a range of symptoms that mimic allergic reactions.

Headache is one of the most common symptoms, reported by about 65% of people with histamine intolerance. Other signs include dizziness, heart palpitations, digestive problems, and flushing. DAO activity can be reduced by genetic factors, gut inflammation, or certain medications. If your headaches tend to follow meals, especially meals involving aged cheeses, cured meats, fermented foods, alcohol, or vinegar, histamine intolerance may be worth exploring. An antihistamine can help manage the symptoms, but reducing high-histamine foods often makes a bigger difference for these patients.

First-Generation vs. Second-Generation Antihistamines

Not all antihistamines are equal when it comes to headaches. The older, first-generation antihistamines like diphenhydramine (Benadryl) and cyproheptadine cross into the brain, which is why they cause drowsiness. That ability to enter the central nervous system is also what gives them a broader effect on pain signaling and nausea, which is why they show up in headache treatment more often.

Newer, non-sedating antihistamines like cetirizine (Zyrtec) and loratadine (Claritin) are designed to stay outside the brain. They’re excellent for allergies, but there’s no clinical evidence that they relieve headaches. In studies of these medications, headache actually appears as a side effect at roughly the same rate (about 3.5%) in both the medication group and the placebo group. If your headaches are caused by severe nasal congestion from allergies, a non-sedating antihistamine might help indirectly by relieving the congestion, but it won’t act on headache pain the way a first-generation antihistamine can.

What This Means in Practice

If you’re dealing with occasional migraines and wondering whether to reach for an antihistamine, the honest answer is that it’s unlikely to help much on its own for an active headache. Taking diphenhydramine alongside a standard pain reliever may help you rest, but the headache relief itself will mostly come from the pain reliever.

If you’re dealing with frequent migraines, particularly if other preventive treatments haven’t worked, a prescription antihistamine like cyproheptadine taken daily is a different story entirely. The evidence for prevention is considerably stronger than for acute treatment.

And if your headaches seem linked to certain foods or drinks, or if they come with flushing, digestive issues, or a rapid heartbeat, the histamine pathway may be central to your problem. In that case, both antihistamines and dietary changes could make a real difference. Keeping a food diary to identify patterns is the simplest starting point, since histamine intolerance follows a consistent trigger-and-response pattern that becomes easier to spot once you’re looking for it.