Skip to main content
Back to articles
GUT HEALTH6 min read

Why Onions and Garlic Upset Your Stomach (and What to Do About It)

If onions and garlic leave you bloated and in pain, fructans are usually the reason. Here is why it happens and how to enjoy the flavor without the symptoms.

by Mouth To Gut Editorial Team

If a meal with onions or garlic leaves you bloated, gassy, and cramping within an hour, you are not imagining it — and you are far from alone. The usual culprit is a fermentable carbohydrate called fructans, and once you understand it, you can often keep the flavor while losing the discomfort.

Why onions and garlic cause stomach problems

Onions and garlic are high in fructans, a type of carbohydrate in the FODMAP family. Many people cannot fully absorb fructans in the small intestine, so they travel to the large intestine where gut bacteria ferment them — producing gas, bloating, and abdominal pain. Onions and garlic also contain sulfur compounds and sulfites that can bother some people.

Symptoms typically come on 30 minutes to an hour after eating and can include bloating, gas, cramping, and changes in bowel habits.

Intolerance, not usually allergy

For most people this is a food intolerance (a digestive reaction), not a true allergy (an immune reaction). True onion or garlic allergy is rare and can cause hives, swelling, or trouble breathing — which needs urgent medical care. A fructan intolerance is uncomfortable but not dangerous, and it often depends on how much you eat.

How to enjoy the flavor without the symptoms

  • Garlic- or onion-infused oil is the best-kept secret: fructans are water-soluble, not oil-soluble, so infusing oil with garlic or onion gives you the flavor without the fructans (remove the solid pieces)
  • Use the green tops of spring onions/scallions and chives — the green parts are much lower in fructans than the bulbs
  • Asafoetida (hing), a spice, mimics the savory onion-garlic flavor and is low-FODMAP in small amounts
  • Watch your threshold — many people tolerate small or cooked amounts but react to large or raw servings
  • Check hidden sources — onion and garlic powder hide in broths, sauces, dressings, and seasonings

Could it be IBS?

Fructan sensitivity is very common in people with irritable bowel syndrome (IBS). If onions and garlic are just two of several foods that reliably upset you, a structured low-FODMAP approach with a dietitian can help you find your full trigger list and reintroduce foods safely.

When to see a doctor

See a clinician if symptoms are severe, if you have signs of a true allergy (hives, swelling, difficulty breathing), or if digestive symptoms are frequent enough to affect daily life — there may be an underlying condition like IBS worth addressing.

Track it to confirm

Because the reaction is dose- and preparation-dependent, logging what you ate (raw vs cooked, how much) alongside your symptoms is the fastest way to confirm onions and garlic as a trigger and find your personal threshold.

Frequently asked questions

Why do onions and garlic upset my stomach?

They are high in fructans, a fermentable carbohydrate (FODMAP) that many people cannot fully absorb. Gut bacteria ferment it, producing gas, bloating, and pain — usually within an hour.

Is it an onion intolerance or an allergy?

Usually an intolerance (a digestive reaction), which is uncomfortable but not dangerous. True allergy is rare and causes hives, swelling, or breathing trouble — seek urgent care for those.

Can I eat cooked onions and garlic without symptoms?

Many people tolerate small or cooked amounts better than large or raw servings, since reactions are dose-dependent. Garlic-infused oil gives flavor without the fructans.

How do I get garlic flavor without the stomach upset?

Use garlic-infused oil (fructans do not dissolve into oil), the green parts of scallions, or a pinch of asafoetida.

Bottom line

Onions and garlic upset many stomachs because of fructans, a fermentable FODMAP. It is usually an intolerance, not an allergy, and it is dose-dependent — so infused oils, green onion tops, and watching your portions let most people keep the flavor without the bloat.


This article is for general education and is not medical advice. Speak with a qualified healthcare professional or dietitian about persistent digestive symptoms.

Related reading

Medical Disclaimer

This article is for informational purposes only and is not medical advice, diagnosis, or treatment. Always consult your physician or qualified healthcare provider before starting, stopping, or changing any medication, treatment, diet, or fitness program.

In a medical emergency, call 911 (or your local emergency number) immediately.

Never disregard professional medical advice or delay seeking it because of something you read here.

Read full disclaimer →
gut healthfood intoleranceFODMAPbloatingdigestion

Track your health journey

Log your symptoms, food, and lifestyle factors to find patterns that matter.

Start Tracking

We use cookies for authentication and optional analytics (Google Analytics) to improve our service. See our Privacy Policy for details.