Home › Learn › Why garlic and onion trigger IBS, and what to use instead

Why garlic and onion trigger IBS, and what to use instead

Updated 2026-10-31 · 5 min read

Key takeaways

Garlic and onion trigger IBS symptoms in many people because they're among the richest food sources of fructans, chains of fructose that the human gut can't digest.[1][2] Fructans pass undigested into the colon, where bacteria ferment them into gas. In a gut that's extra sensitive to stretching, as it often is in IBS, that can mean bloating, pain and changes in bowel habit, even when the garlic or onion is hidden in a sauce or stock.[3]

Why do garlic and onion trigger IBS symptoms?

Whole garlic bulbs and loose cloves on a table
Garlic is one of the most concentrated sources of fructans in the diet.Photo: Ivar Leidus, CC BY-SA 4.0, via Wikimedia Commons

Fructans are short chains of fructose molecules, one of the FODMAP groups. Humans lack the enzymes to break them down, so fructans aren't absorbed. They arrive intact in the colon, where gut bacteria ferment them and produce gas.[1] When Monash University researchers measured 60 vegetables, garlic, artichoke, shallots, leek bulb and onions had the highest fructan content.[2]

The gas itself isn't the whole story. In an MRI study, people with IBS and healthy volunteers produced similar amounts of colonic gas after a drink of inulin, a type of fructan, but 13 of 29 people with IBS developed significant symptoms, compared with 6 of 29 after plain glucose.[3] In a blinded trial of 25 people with IBS who had improved on a diet low in fructose and fructans, 77% said their symptoms weren't adequately controlled when fructans were secretly added back, compared with 14% when given glucose. Symptoms also grew with the dose.[4] Not everyone with IBS reacts to fructans, though, and the only way to know whether you do is to test it (see below).

Where do garlic and onion hide?

A whole brown onion
Onion is a base ingredient in many stocks, sauces and spice blends.Photo: Colin, CC BY-SA 3.0, via Wikimedia Commons

Avoiding visible slices of onion is the easy part. Garlic and onion are base flavorings in kitchens around the world, so they turn up in foods you might not suspect:

What can you use instead of garlic and onion?

You don't have to give up savory flavor. Dietitians and FODMAP researchers recommend these swaps:[6][7][8]

Instead ofTry
GarlicGarlic-infused oil, garlic chives, ginger
OnionGreen tops of spring onions (scallions), green leafy part of leeks, chives
Onion "depth" in curries, dals and stewsA little asafoetida (hing), alone or with garlic-infused oil
Ready-made stockHomemade stock made without onion and garlic

Why does garlic-infused oil work? Fructans dissolve in water, which is why they end up in stocks.[5] They don't carry over into pure oil, though, so oil flavored with garlic, with the solid pieces removed, is used as a low-FODMAP substitute for garlic itself.[6][7] One safety point: low-acid garlic-in-oil kept at room temperature has caused botulism. In the US, commercial products must now contain acidifying agents or microbial inhibitors.[9] Store-bought infused oil is the simplest choice. If you make your own, keep it refrigerated.

Pickling onion and garlic in vinegar, then draining them, has also been shown to lower their FODMAP content.[6] As with any spice blend, check the label of asafoetida powder if you have other dietary restrictions.

Wheat, rye and fructans: is it really the gluten?

Wheat and rye contain fructans too. Wheat's fructan content is fairly low, but because people eat so much bread and pasta, wheat contributes more fructans to the diet than any other food.[1] Foods that contain only a little wheat, such as a sauce thickened with wheat starch, usually don't need to be avoided on a low-FODMAP diet.[1]

That matters for people who feel better without gluten but don't have celiac disease, a condition often called non-celiac gluten (or wheat) sensitivity. Several blinded trials suggest that fructans, not gluten, are often the culprit:

How to find out whether fructans are your trigger

The reliable way is a structured elimination and reintroduction. First you remove fructans along with the other FODMAPs for a few weeks. Then you test them back. Because fructans vary in structure, garlic, onion and wheat are usually tested separately, so passing a bread challenge doesn't mean onion is safe, or the other way round.[1] Our FODMAP reintroduction guide explains how, and the low-FODMAP diet guide covers the other five FODMAP groups.

Because garlic and onion are so often hidden, it helps to record mixed dishes ingredient by ingredient in your food and symptom diary. IBS Clue was built partly for this problem. You snap a photo of a meal, and the app lists likely ingredients, including hidden garlic and onion in sauces, and estimates the meal's fructan level along with the other five FODMAP groups. Treat those estimates as a starting point and confirm them with a proper challenge.

Frequently asked questions

Does cooking garlic or onion make them easier to tolerate?

Not reliably. Because fructans are water-soluble, they move from the onion or garlic into the surrounding liquid, which is why soups, stocks and sauces made with them can be high in FODMAPs even after the pieces are removed.

Is garlic powder or onion powder low FODMAP?

No. Dried onion products such as onion powder are concentrated sources of fructans, and garlic powder is made from garlic, one of the richest fructan sources. Both are generally avoided during the elimination phase.

Are shallots and leeks high in FODMAPs?

Shallots and the white bulb of leeks are among the vegetables highest in fructans. The green leafy part of leeks and the green tops of spring onions are used as lower-FODMAP alternatives.

Will I have to avoid garlic and onion forever?

Not necessarily. Reintroduction shows how much, if any, you tolerate, and some people find they can manage small amounts. Tolerance can also change over time, so it's worth retesting.

Sources

  1. Whelan K, Martin LD, Staudacher HM, Lomer MCE. The low FODMAP diet in the management of irritable bowel syndrome: an evidence-based review of FODMAP restriction, reintroduction and personalisation in clinical practice. J Hum Nutr Diet. 2018;31(2):239-255. doi.org/10.1111/jhn.12530
  2. Muir JG, Shepherd SJ, Rosella O, et al. Fructan and free fructose content of common Australian vegetables and fruit. J Agric Food Chem. 2007;55(16):6619-6627. doi.org/10.1021/jf070623x
  3. Major G, Pritchard S, Murray K, et al. Colon hypersensitivity to distension, rather than excessive gas production, produces carbohydrate-related symptoms in individuals with irritable bowel syndrome. Gastroenterology. 2017;152(1):124-133.e2. doi.org/10.1053/j.gastro.2016.09.062
  4. Shepherd SJ, Parker FC, Muir JG, Gibson PR. Dietary triggers of abdominal symptoms in patients with irritable bowel syndrome: randomized placebo-controlled evidence. Clin Gastroenterol Hepatol. 2008;6(7):765-771. doi.org/10.1016/j.cgh.2008.02.058
  5. Iacovou M, Tan V, Muir JG, Gibson PR. The low FODMAP diet and its application in East and Southeast Asia. J Neurogastroenterol Motil. 2015;21(4):459-470. doi.org/10.5056/jnm15111
  6. Varney JE, Madan J, Halmos EP, et al. Implementing a fermentable oligosaccharides, disaccharides, monosaccharides, and polyols diet in Asia: addressing cultural, clinical and practical challenges. J Neurogastroenterol Motil. 2025;31(4):422-437. doi.org/10.5056/jnm25090
  7. Sultan N, Varney JE, Halmos EP, et al. How to implement the 3-phase FODMAP diet into gastroenterological practice. J Neurogastroenterol Motil. 2022;28(3):343-356. doi.org/10.5056/jnm22035
  8. O'Brien L, Kasti A, Halmos EP, et al. Evolution, adaptation, and new applications of the FODMAP diet. JGH Open. 2024;8(5):e13066. doi.org/10.1002/jgh3.13066
  9. Morse DL, Pickard LK, Guzewich JJ, et al. Garlic-in-oil associated botulism: episode leads to product modification. Am J Public Health. 1990;80(11):1372-1373. doi.org/10.2105/ajph.80.11.1372
  10. Skodje GI, Sarna VK, Minelle IH, et al. Fructan, rather than gluten, induces symptoms in patients with self-reported non-celiac gluten sensitivity. Gastroenterology. 2018;154(3):529-539.e2. doi.org/10.1053/j.gastro.2017.10.040
  11. Biesiekierski JR, Peters SL, Newnham ED, et al. No effects of gluten in patients with self-reported non-celiac gluten sensitivity after dietary reduction of fermentable, poorly absorbed, short-chain carbohydrates. Gastroenterology. 2013;145(2):320-328.e3. doi.org/10.1053/j.gastro.2013.04.051
  12. Molina-Infante J, Carroccio A. Suspected nonceliac gluten sensitivity confirmed in few patients after gluten challenge in double-blind, placebo-controlled trials. Clin Gastroenterol Hepatol. 2017;15(3):339-348. doi.org/10.1016/j.cgh.2016.08.007
  13. Lacy BE, Pimentel M, Brenner DM, et al. ACG Clinical Guideline: management of irritable bowel syndrome. Am J Gastroenterol. 2021;116(1):17-44. doi.org/10.14309/ajg.0000000000001036

This page is for general information and isn’t medical advice. IBS shares symptoms with other conditions, so see a doctor for a diagnosis — and promptly for warning signs such as blood in your stool, unexplained weight loss or symptoms that wake you at night.