GutPathways Take the quiz
The gut-brain axis

Migraine and IBS share a histamine link in the gut

Migraine and IBS show up together far more often than chance allows. Underneath both, research keeps pointing to the same place, how gut bacteria and mast cells handle histamine, tryptase and serotonin. The food on the plate is rarely the real trigger, and the microbiome's handling of it usually is.

  • 14 min read
  • By Theodoros Prevedoros, Biochemist, MSc
  • Published
  • Updated
  • Sources checked
Watercolor illustration of a ribbon of histamine droplets rising from gut bacteria in the intestine to a glowing trigeminal nerve in a head silhouette, with the title Migraine and IBS share a histamine link in the gut
One route, from gut bacteria to the trigeminal nerve.

What is the relationship between migraine and IBS?

Migraine and IBS overlap far more than chance would predict, and the connection now has solid numbers behind it. Pooled data from 22 studies, with 286,993 people with IBS and 53,520 people with migraine, show that IBS roughly doubles the odds of also having migraine or headache. Migraine, in turn, raises the odds of IBS even more.1

The two conditions usually sit in different specialties, gastroenterology for one and neurology for the other. As a result, it is easy to miss how closely they track in the same person. Researchers increasingly place them on the same spectrum of nervous system sensitivity, rather than treating them as two unrelated diagnoses that happen to meet.1

How often migraine and IBS overlap
  • Migraine patients with IBS (OR)2.51
  • IBS patients with migraine or headache (OR)2.09
  • Migraine patients who later develop IBS (HR)1.62

Todor and Fukudo 2023, 22 studies. The line at 1 means no association.

Show the table
FactorOdds or hazard ratio
IBS patients with migraine or headache (OR)2.09 (1.79 to 2.43)
Migraine patients with IBS (OR)2.51 (1.76 to 3.58)
Migraine patients who later develop IBS (HR)1.62 (1.29 to 2.03)
Study

Across 22 studies, people with migraine had about two and a half times the odds of also having IBS, and people with IBS about twice the odds of migraine or headache. Depression and fibromyalgia were similarly common in both groups.1

Do people with IBS get migraines?

Yes, and by a wide margin. In practice, migraine comes up again and again in people referred for gut symptoms alone, often mentioned almost in passing rather than as the main complaint.

Someone will describe years of bloating, abdominal pain and irregular bowel habits, and only then mention their headaches as an afterthought. Most people do not connect the two on their own. The pooled data above explain why they should, since the link holds in both directions.1 So migraine deserves its own line of questions in a first gut consultation, and gut symptoms deserve theirs in a headache clinic.

REAL QUESTION

i've had ibs for years and migraines since my 20s. my neurologist and my gi doctor have never talked to each other. is it weird to think they're connected??

Not weird at all. Migraine and IBS show up together about twice as often as chance would predict, and the link runs both ways. They share mechanisms in the gut and the nervous system, including histamine, mast cells and serotonin, so it is worth asking both doctors to look at the full picture together.

What connects migraine and IBS in the gut-brain axis?

At least three biological routes tie migraine and IBS together, and a fourth has emerged from gut microbiome research. None of them starts with the food on the plate. Instead, they start with what a person's gut bacteria and immune cells do with that food, which is why the same meal can pass without trouble one day and set off a migraine on another.

Illustration of the pathway from gut bacteria releasing histamine, through a blood vessel, to a trigeminal nerve fiber, with labels for gut bacteria, histamine and trigeminal nerve
Gut bacteria, histamine and the trigeminal nerve sit on one continuous pathway, not three separate stories.

Histamine and mast cells

Histamine is the most direct route. Gut bacteria that carry histidine decarboxylase turn dietary histidine into histamine. In a person with low DAO activity, the main enzyme that breaks histamine down, that histamine builds up instead of clearing.4

Once histamine rises, mast cells in the meninges, the lining of the brain, become easier to trigger. When these cells release their granules, histamine and other mediators reach nearby trigeminal nerve fibers. In rats, releasing the granules of these mast cells was enough to switch on the pain pathway behind migraine headache.5

Illustration of a basophil with many round granules releasing histamine toward a nerve receptor, labeled basophil and histamine
Basophils and mast cells store histamine in granules and release it in one burst once triggered.
From gut bacteria to a migraine attack
  1. Gut bacteria make histamine

    Bacteria that carry histidine decarboxylase turn dietary histidine into histamine.

  2. DAO cannot keep up

    Low diamine oxidase activity lets that histamine accumulate instead of clearing.

  3. Meningeal mast cells react

    Histamine and tryptase from mast cells in the brain's lining reach nearby trigeminal fibers.

  4. The trigeminal nerve fires

    Sensitized fibers fire more easily, and the migraine begins.

A simplified chain. Each step is supported by separate studies, not by one experiment.

Infographic

Which gut routes may lead to migraine?
  1. Histamine

    Gut bacteria turn dietary histidine into histamine. With low DAO activity, that histamine builds up instead of clearing.

  2. Tryptase and nerves

    Tryptase from mast cells activates PAR2 on trigeminal nerve fibers, which lowers the threshold at which they fire.

  3. Serotonin

    Most serotonin is made in the gut, where it governs motility, secretion and how strongly the gut registers pain.

  4. Dysbiosis

    In mice, wiping out gut bacteria with antibiotics prolonged migraine-like pain through a rise in TNF-alpha.

Sources: Comas-Basté et al. 2020, Zhang and Levy 2008, Yano et al. 2015, Tang et al. 2020.

gutpathways.com

Infographic: Which gut routes may lead to migraine?Save this infographicImage 4:5, with sources, from gutpathways.com

Which gut bacteria have been studied in migraine?

Several organisms come up when researchers compare the gut microbiota of people with migraine and matched headache-free controls. The species found lower in migraine are generally the ones linked elsewhere with calmer gut function, while the ones found higher lean toward more inflammatory groups.

Gut organisms studied in migraine
OrganismWhat research found
Faecalibacterium prausnitziiLower in elderly women with migraine. One of the gut's main butyrate producers, which helps keep the lining calm.9 More in low Faecalibacterium prausnitzii.
Bifidobacterium adolescentisAlso lower in the migraine group of the same study.9
Methanobrevibacter smithiiLower in the migraine group of the same study. This archaeon makes methane and affects how the gut handles gas and energy.9
Clostridium speciesHigher in the migraine group, described by the authors as the "unfriendly" side of the Firmicutes.9
Eggerthella lentaChanged in people with migraine compared with healthy controls in a separate study.10
AlcaligenesChanged in people with migraine in the same separate study.10
Study

In 108 stool samples from elderly women with and without migraine, the migraine group had lower diversity, more Clostridium species and less Faecalibacterium prausnitzii, Bifidobacterium adolescentis and Methanobrevibacter smithii.9

None of these organisms causes migraine on its own, and a similar shift appears in SIBO cases that never involved a headache. Taken together, the pattern suggests a gut community that makes fewer of the calming metabolites the nervous system relies on, and more of the byproducts that keep it on edge.

Can treating histamine intolerance reduce migraine?

In some people, yes, and the clearest data point to diamine oxidase. If DAO activity is too low for the histamine a person makes or eats, the excess circulates more freely. In a randomized trial, a DAO supplement shortened migraine attacks, although the difference from placebo was modest.3

Histamine intolerance
A mismatch between how much histamine the body is exposed to, from food, gut bacteria or both, and how well the enzyme DAO can break it down. When DAO activity is too low, histamine builds up and can cause headache, gut and skin symptoms even after ordinary meals.4

Low DAO is more common in migraine than most people expect. In 137 people with migraine and 61 controls, DAO activity was lower in the migraine group, and 87% of the migraine patients had values below the study's cut-off. At the same time, 44% of the people without migraine were also below that cut-off, so a low result is common and does not explain a migraine on its own.2

87%of migraine patients had DAO activity below 80 HDU/mL (n = 137).2
44%of people without migraine were below the same cut-off (n = 61).2

A separate randomized, double-blind trial then tested whether correcting the deficit changes anything. One hundred people with episodic migraine and low DAO took a DAO supplement or a placebo for one month.3

Migraine attack duration before and after one month (hours)

6.14
4.76
DAO supplement
7.53
6.68
Placebo
BeforeAfter

Izquierdo-Casas 2019, randomized double-blind trial, n = 100. Mean hours of pain per attack.

Study

In 100 people with migraine and DAO deficiency, one month of DAO supplement cut attack duration by 1.4 hours, a significant change within the group. The placebo group dropped by 0.9 hours, which was not significant on its own. The number of attacks and pain intensity fell similarly in both groups.3

Overall, the effect was real but modest, and specific. Attacks got shorter, while their number and intensity did not clearly change. DAO status looks like one lever among several, not a single explanation for every migraine in someone with IBS.

What foods trigger migraines in people with IBS?

In migraine and IBS, the food itself is rarely the real trigger. What usually decides whether a meal becomes a migraine is how much histamine is already in it, together with a person's own DAO capacity. That is why the same dish can be harmless for months and then suddenly provoke an attack.

Five food groups come up most often in practice. All five share one thing: they are fermented, aged or stored long enough for bacteria to make meaningful amounts of histamine before the food reaches the plate.4, 11

Five foods where bacteria have already made histamine
  1. Wedge of aged hard cheese with a small knife on a wooden table

    Aged cheese

    The longer a cheese ages, the more time bacteria have to turn its amino acids into histamine. A sharp, well-aged wedge can carry far more than a fresh, mild one.

  2. Hand-drawn slices of cured salami on a wooden board with a knife

    Cured and fermented meats

    Salami, chorizo and other cured meats rely on bacterial fermentation for their flavor, and that same fermentation makes histamine as a byproduct.

  3. Hand-drawn jar of sauerkraut with a wooden fork and an open lid

    Fermented vegetables

    Sauerkraut, kimchi and other fermented vegetables owe their tang to live bacterial cultures, the same cultures that can make histamine.

  4. Glass of red wine on a wooden table in warm window light

    Red wine

    Malolactic fermentation, which gives red wine its smoother finish, is carried out by bacteria that can also make histamine. Alcohol itself may also block DAO.11

  5. Hand-drawn glass food container with leftovers on a refrigerator shelf

    Leftovers and stored food

    Histamine climbs the longer cooked meat, fish or leftovers sit, even in the refrigerator, because bacteria keep breaking down proteins.

Cutting back on these foods can help in the short term, but it treats the symptom rather than the cause. The lasting fix usually involves the gut bacteria and the DAO capacity that decide how much histamine a meal ends up delivering, which is what the routes above describe. The SIBO side of this is covered in how histamine intolerance and SIBO feed each other.

Does treating IBS change migraine in practice?

In practice, it often does, and it is one of the more consistent patterns in migraine and IBS cases worked up through biochemistry data mining. In the clinics where I work as a scientific collaborator, when a case traces back to bacterial overgrowth or a histamine-making gut pattern and that is corrected, people often report fewer and milder migraines along with fewer gut symptoms, sometimes before the headaches were addressed directly at all.

The gut work usually targets the same levers described above. It lowers the bacterial histamine load, supports the species linked to calmer gut function, and gives DAO enough support to keep up with a person's actual histamine exposure. None of this replaces migraine treatment when it is needed. Still, it explains why so many people notice both problems easing together rather than one at a time.

ℹ️ Info: A clinical pattern, not a trial result. No randomized trial has yet tested IBS treatment as a migraine therapy. The two conditions share enough biology that treating one carefully tends to move the other, which is why they are worth assessing together.

Frequently asked questions

Migraine and IBS occur together far more than chance would predict. Pooled data from 22 studies show that IBS roughly doubles the odds of migraine or headache, and migraine raises the odds of IBS about two and a half times. Shared routes include histamine, tryptase, serotonin and gut bacteria.1

Aged cheese, cured meats, fermented vegetables, red wine and stored leftovers come up most often. The trigger is usually the histamine that bacteria have already made in the food, combined with a person's own DAO capacity to clear it.4

Yes, and more often than people without IBS. In practice, migraine is often mentioned almost as an afterthought during a gut consultation, and pooled research confirms that the link is real.1

In practice, often yes. Correcting the gut bacteria and histamine handling behind IBS frequently goes together with fewer and milder attacks. This is a consistent clinical pattern rather than the result of a dedicated trial.

People describe anything from a dull, pressing headache on bad gut days to full migraine attacks with nausea and sensitivity to light. When headaches follow meals, flares or histamine-rich foods, the gut side is worth checking.

Histamine can trigger headache in people who clear it poorly, and headache is one of the most common symptoms of histamine intolerance.11 In animal studies, histamine-releasing mast cells in the brain's lining switched on the migraine pain pathway.5

In one randomized trial in people with low DAO, a one-month supplement shortened attacks by 1.4 hours, while the number of attacks and pain intensity did not change more than with placebo.3 It may help some people, as one part of a wider plan.

References

11 studies
  1. Todor TS, Fukudo S. Systematic review and meta-analysis of calculating degree of comorbidity of irritable bowel syndrome with migraine. Biopsychosoc Med. 2023.
  2. Izquierdo-Casas J, Comas-Basté O, Latorre-Moratalla ML, et al. Low serum diamine oxidase (DAO) activity levels in patients with migraine. J Physiol Biochem. 2018.
  3. Izquierdo-Casas J, Comas-Basté O, Latorre-Moratalla ML, et al. Diamine oxidase (DAO) supplement reduces headache in episodic migraine patients with DAO deficiency: a randomized double-blind trial. Clin Nutr. 2019.
  4. Comas-Basté O, Sánchez-Pérez S, Veciana-Nogués MT, et al. Histamine intolerance: the current state of the art. Biomolecules. 2020.
  5. Levy D, Burstein R, Kainz V, Jakubowski M, Strassman AM. Mast cell degranulation activates a pain pathway underlying migraine headache. Pain. 2007.
  6. Zhang XC, Levy D. Modulation of meningeal nociceptors mechanosensitivity by peripheral proteinase-activated receptor-2: the role of mast cells. Cephalalgia. 2008.
  7. Yano JM, Yu K, Donaldson GP, et al. Indigenous bacteria from the gut microbiota regulate host serotonin biosynthesis. Cell. 2015.
  8. Tang Y, Liu S, Shu H, Yanagisawa L, Tao F. Gut microbiota dysbiosis enhances migraine-like pain via TNFα upregulation. Mol Neurobiol. 2020.
  9. Chen J, Wang Q, Wang A, Lin Z. Structural and functional characterization of the gut microbiota in elderly women with migraine. Front Cell Infect Microbiol. 2019.
  10. Kopchak O, Hrytsenko O. Feature of gut microbiota in patients with migraine and healthy individuals. Georgian Med News. 2022.
  11. Maintz L, Novak N. Histamine and histamine intolerance. Am J Clin Nutr. 2007.

Found this useful? Share it with someone who needs it.

LinkedInWhatsAppEmail
Cite this article

Prevedoros, T. (2026, July 26). Migraine and IBS share a histamine link in the gut. Gut Pathways. https://gutpathways.com/articles/migraine-ibs-histamine-link/

Portrait of Theodoros Prevedoros

Biochemist, MSc

Theodoros Prevedoros

I am a biochemist (MSc). Since 2007 I have worked alongside gastroenterologists, pediatricians, endocrinologists and other specialists, first as a scientific director and now as a scientific partner to medical practices. More about the author.

Cover of the book IBSyncrasy

IBSyncrasy

Not every IBS is the same. IBSyncrasy explains how the gut works, then walks through ten patterns that show why symptoms differ from person to person.

Get the book on Amazon

Recommended reading

All articles
Gut-brain axis11 min read

New biomarker links fibromyalgia and gut microbiome

What new studies show about fibromyalgia and the gut microbiome: neurofilament light chain as a blood marker of nerve strain, the routes from gut dysbiosis to…

Michelle's case IBSNew cases, 14 min read

The pill, dieting and quitting smoking slowed the bowel

Michelle, 64, has lived with IBS with constipation since university, when she started the pill and then followed extreme diets. Her case explains how progestins, dieting,…

Living with IBS? Take the 3-minute quiz and see which of the ten real cases in IBSyncrasy your story resembles most. Take the quiz

Read a free excerpt first

Leave your email to open the excerpt. You will also get occasional new articles. Unsubscribe any time.