Cooking probably does make garlic easier on the stomach for many people, but there's little direct research on this. Raw garlic is a common trigger for heartburn and gas, and heat tends to tone down the compounds and carbohydrates behind those effects.
Why raw garlic can cause trouble
- Sharp sulfur compounds. Crushing or chopping raw garlic produces allicin, the compound behind its bite and smell. In raw form it can irritate the lining of the mouth, throat and stomach, and it's linked to heartburn and nausea in some people. Heat quickly breaks allicin down, so cooked garlic is milder.
- Fructans. These are chains of fructose (a type of sugar) that some people can't fully break down. They travel to the large intestine, where gut bacteria ferment them, causing gas, bloating and cramps. Garlic is high in fructans, and they are a main reason it's restricted on the low-FODMAP diet (an eating plan used to manage irritable bowel syndrome, or IBS).
What cooking does and doesn't change
- Allicin and irritation: Heat reduces allicin, which probably explains why cooked garlic feels gentler. This is well understood chemically, though studies on digestive comfort specifically are limited.
- Fructans: Fructans are fairly heat-stable, so cooking doesn't remove them. They can leach into cooking liquid (soup or broth), but the garlic itself stays high in them. If fructans are your problem, cooked garlic may bother you just as much.
- Fat-soluble flavor: Fructans don't dissolve in oil, but the flavor compounds do. That's why garlic-infused oil, with the solid pieces strained out, is generally tolerated on a low-FODMAP diet. This is based on lab testing of FODMAP content, and it's best made commercially or with care, because homemade garlic-in-oil can pose a food-safety risk (botulism) if stored improperly.
A quick look at the numbers
Garlic is concentrated, but you eat it in small amounts. According to USDA data for raw garlic, per 100 g:
| Garlic | Onion | |
|---|---|---|
| Calories | 149 kcal | 40 kcal |
| Carbohydrates | 33 g | 9.3 g |
| Fiber | 2.1 g | 1.7 g |
One teaspoon of raw garlic is about 2.8 g, so it contributes only around 4 kcal and about 0.9 g of carbohydrate. That's why a little garlic in a dish is often fine, even for people who react to larger amounts.
Practical tips
- If raw garlic gives you heartburn, try it cooked, roasted or sautéed gently.
- If you get bloating or gas from both raw and cooked garlic, fructans are the more likely cause. Smaller amounts, garlic-infused oil, or the green parts of garlic chives may help.
- Persistent digestive symptoms, or suspected IBS or a food intolerance, are worth discussing with a doctor or registered dietitian, who can guide you through testing foods safely.