Xanthan gum is a binding and thickening agent used in gluten-free cooking to replace the structural role of gluten. It helps retain moisture, adds elasticity to doughs, and prevents recipes from crumbling. It’s used in very small amounts — typically between ¼ and 1 teaspoon per 240 g (1 cup) of gluten-free flour, depending on the recipe.
We’ve all seen it in gluten-free recipes — or on the label of store-bought flour. Xanthan gum is one of those ingredients people often use without fully understanding why, or sometimes skip, thinking it’s not that important. In reality, in gluten-free baking, it plays a role that’s hard to replace.
What gluten used to do — and what xanthan gum replaces
In a traditional recipe, gluten forms when flour and water combine. It creates an elastic network that traps gas from yeast, gives dough flexibility, and holds the structure together. Without it, dough falls apart, bread collapses, and cakes break when removed from the pan.
Xanthan gum doesn’t recreate gluten — that would be impossible. But it performs a similar functional role: it binds ingredients together, retains moisture, and adds cohesion to the dough. It’s what’s called a hydrocolloid — a substance that forms a gel when mixed with water, helping create a more workable and stable texture.
In practice, gluten-free dough without a binder looks like thick purée. With xanthan gum, it holds together better, stretches slightly, and keeps its shape during baking.
Where does xanthan gum come from?
This is a question many people ask — and the answer can be surprising. Xanthan gum is produced through fermentation using a bacterium called Xanthomonas campestris, often fed with plant-based sugars. The final product is purified and dried into a fine, white powder with no taste or smell.
It is naturally gluten-free and suitable for vegan diets. It’s not a “chemical” in the industrial sense — it’s closer to other fermented food ingredients we’ve used for a long time.
👉 Key takeaway
Xanthan gum is gluten-free, tasteless, and odorless. It doesn’t change flavor — only texture and structure.
How to dose xanthan gum depending on the recipe
This is where most mistakes happen — usually from using too much. More xanthan gum does not mean better texture. Too much can make dough sticky, overly elastic, or even gummy after baking.
Here are common guidelines:
| Recipe type | Amount (per 240 g / 1 cup of flour) | Why |
|---|---|---|
| Cakes, muffins, brownies | ¼ tsp | Eggs and fat already provide structure — xanthan completes without overwhelming |
| Cookies and shortbread | ¼ tsp | Little elasticity needed — a small amount goes a long way |
| Bread and yeasted dough | ½ to 1 tsp | Needs a stronger network to trap CO₂ from the yeast |
| Pizza dough | ½ to 1 tsp | Dough must stretch without tearing — more binder than a cake needs |
| Sauces and soups | Pinch (or none) | Xanthan thickens liquids very quickly — a pinch is plenty |
Recipes rich in eggs and fat already have structure. Xanthan gum complements, it doesn’t replace.
👉 Common mistake
Adding too much xanthan gum thinking it will improve results. It often leads to a gummy or rubbery texture. Stick to recommended amounts — and if your flour already contains it, don’t add more.
Should you add it if your flour already contains some?
Good question — and in most cases, the answer is no.
All-purpose gluten-free flour blends designed for 1:1 replacement usually already include xanthan gum. That’s what allows them to behave like regular flour without adjustments.
For example, Cannelle all-purpose gluten-free flour already contains xanthan gum, which is why it works as a direct substitute.
If you’re using a single flour like rice or sorghum, you’ll need to add your own binder. But if you’re using a ready-made blend, adding more xanthan gum usually leads to overdoing it.
When can you skip xanthan gum?
There are situations where you can leave it out without issues. Some recipes naturally have enough structure from other ingredients:
- eggs in large quantities
- mashed banana
- applesauce
- psyllium (another soluble fiber)
Recipes high in fat — like dense brownies or shortbread — also hold together well without added binders.
However, for bread, pizza dough, or light cakes, xanthan gum is still difficult to replace completely. It can be substituted with guar gum in similar proportions, although results may vary slightly.
👉 Practical tip
If you’re looking for an alternative, guar gum is the closest substitute. Use the same amounts. Some people find guar gives a slightly lighter texture in cakes, while xanthan provides better structure in breads.
A quick note on digestion
Xanthan gum is a soluble fiber. In small amounts (like those used in baking), it is well tolerated by most people.
Some individuals with sensitive digestion may experience mild discomfort if consumed in larger quantities, but at typical baking levels, it’s rarely an issue.
If you have specific concerns, it’s always best to consult a healthcare professional.
Frequently asked questions
What does xanthan gum do in gluten-free recipes?
It replaces part of gluten’s structural role by binding ingredients, retaining moisture, and adding elasticity.
How much xanthan gum should I use?
About ¼ teaspoon per cup of flour for cakes and cookies, up to 1 teaspoon for bread and pizza.
Is xanthan gum gluten-free?
Yes, it is naturally gluten-free and contains no wheat, barley, or rye derivatives.
Can I replace xanthan gum?
Yes, with guar gum or psyllium in some recipes, although results may vary.
Do I need to add it if I use all-purpose gluten-free flour?
Usually not — most blends already include it.
To go further
Xanthan gum is just one of the ingredients that make a difference in gluten-free cooking. If you want to better understand how other binders and starches work, these articles can help:
Starch vs flour: what’s the difference in gluten-free cooking?
Which gluten-free flour should you choose for your recipes?
Why is my gluten-free cake dry?
Product link:
Cannelle xanthan gum