Xanthan gum is a food additive made from a type of bacteria called Xanthomonas campestris. This bacterium ferments sugars, typically derived from corn, soy, or wheat, and produces a slimy, gooey substance. That substance is then dried and ground into a fine powder that we know as xanthan gum. It is a common thickener and stabilizer used in many processed foods and everyday household products.
How Is Xanthan Gum Made From Bacteria?
The process is a controlled fermentation, similar to how yogurt or beer are made. Manufacturers start with a sugar source, most often corn sugar or glucose syrup. They add the Xanthomonas campestris bacteria to this sugar solution in a large fermentation tank.
Over a few days, the bacteria consume the sugar and produce a sticky polysaccharide (a complex carbohydrate) as a waste product. This is the raw xanthan gum. The liquid is then pasteurized to kill the bacteria. After that, the gum is precipitated out of the liquid using an alcohol like isopropyl alcohol. Finally, the solid gum is dried, milled into a powder, and packaged.
This is not a chemical laboratory synthesis. It is a natural biological process. The final product is a pure carbohydrate, and it does not contain live bacteria.
What Is Xanthan Gum Made From in Common Products?
When you see xanthan gum on a food label, it is usually derived from one of three base crops. The most common source is corn. Soy and wheat are also used. In the United States, corn is the dominant source because it is cheap and plentiful.
This matters for people with allergies. Xanthan gum made from wheat may contain trace gluten. However, most commercial xanthan gum is processed so thoroughly that the final product is considered gluten-free by regulatory standards. If you have celiac disease or a severe wheat allergy, you should still check the label or contact the manufacturer to confirm the source.
For people with corn or soy allergies, the risk is similar. The fermentation and purification process removes the protein components that trigger allergic reactions. But the finished powder can occasionally carry trace amounts of the source crop. If you have a severe allergy, look for xanthan gum specifically labeled as corn-free or soy-free.
What Does Xanthan Gum Do in Food?
Xanthan gum is a powerful thickener and stabilizer. It is used in salad dressings to keep oil and water from separating. It gives gluten-free baked goods structure and elasticity that they would otherwise lack. It is also used in sauces, ice cream, and beverages to improve texture and mouthfeel.
It works by creating a network of molecules that traps water. Even a very small amount—often less than 0.5% of a product’s weight—can dramatically change a liquid’s viscosity. This is why it is used in such tiny quantities in commercial food production.
One of its most valuable properties is that it is stable across a wide range of temperatures and pH levels. It does not lose its thickening power when heated or frozen, and it works in acidic environments like salad dressing or hot sauce. This stability makes it a preferred choice for food manufacturers over other thickeners like cornstarch or gelatin.
Is Xanthan Gum Safe to Eat?
Yes. Xanthan gum is generally recognized as safe by the U.S. Food and Drug Administration and by food safety agencies worldwide. It has been used in food for over 50 years. The FDA approved it as a food additive in 1969.
Because it is a soluble fiber, your body does not digest it. It passes through your digestive tract mostly intact. For most people, this causes no problems at all.
However, large amounts can cause digestive discomfort. Some studies suggest that consuming more than about 15 grams per day can lead to gas, bloating, and loose stools. In normal food consumption, you are getting a fraction of a gram per serving, so this is rarely a concern.
There is one important warning. Inhaling xanthan gum powder is dangerous. People who work in food manufacturing or who handle the powder in bulk should wear respiratory protection. There are documented cases of workers developing lung inflammation after inhaling large amounts of the dust. The powdered form should never be inhaled.
Xanthan Gum vs. Other Thickeners
Xanthan gum is often compared to other thickeners like guar gum, cornstarch, and gelatin. Each has different properties and uses.
| Thickener | Source | Best Used For | Key Limitation |
|---|---|---|---|
| Xanthan gum | Bacterial fermentation | Gluten-free baking, dressings, sauces | Can cause digestive issues in large amounts |
| Guar gum | Guar bean | Ice cream, cold liquids | Less stable at high temperatures |
| Cornstarch | Corn kernel | Sauces, gravies, soups | Loses thickness when frozen or in acidic liquids |
| Gelatin | Animal collagen | Jellies, marshmallows, desserts | Not vegetarian; melts when heated |
Guar gum is a plant-based thickener extracted from the guar bean. It is cheaper than xanthan gum and works well in cold foods like ice cream. But it does not tolerate heat as well as xanthan gum does.
Cornstarch is a common kitchen staple. It thickens well but breaks down in acidic liquids and loses its structure when frozen. Xanthan gum does not have these problems, which is why it is preferred in commercial products that need a long shelf life.
Gelatin is animal-based and not suitable for vegetarians or vegans. Xanthan gum is a suitable alternative for those diets, though it produces a different, less elastic texture.
Xanthan Gum in Gluten-Free Baking
Gluten-free flours lack the proteins that give wheat dough its stretch and structure. Xanthan gum replaces that function. It binds the flour and water together, trapping air bubbles so the baked goods rise properly.
Without xanthan gum, gluten-free bread tends to crumble and fall apart. With it, the loaf holds together and has a chewier texture. The amount needed varies by recipe. A typical guideline is about 1/4 to 1/2 teaspoon per cup of gluten-free flour for cookies and cakes, and up to 1 teaspoon per cup for bread. These are general kitchen guidelines, not strict medical or clinical recommendations.
Too much xanthan gum makes baked goods gummy or slimy. Too little makes them crumbly. It takes some practice to get the ratio right for each recipe.
Xanthan Gum in Non-Food Products
Xanthan gum is not only in food. It is widely used in cosmetics, toothpaste, and personal care products. It thickens lotions and creams and keeps the ingredients from separating.
It is also used in industrial applications. The oil and gas industry uses xanthan gum to thicken drilling mud. This helps carry rock cuttings out of the drill hole and lubricates the drill bit.
In these non-food uses, the same fermentation process produces the gum. The purity requirements are different, but the base ingredient is the same. If you have a corn or soy allergy, you should know that xanthan gum in toothpaste or lotions could theoretically contain trace proteins from the source crop. However, allergic reactions to xanthan gum applied to the skin are extremely rare.
Frequently Asked Questions
Is xanthan gum vegan?
Yes, xanthan gum is vegan. It is produced by bacterial fermentation of plant sugars and contains no animal products.
Can I make xanthan gum at home?
No, making xanthan gum at home is not practical. The fermentation process requires controlled conditions and specialized equipment to isolate and dry the gum safely.
Does xanthan gum expire?
Yes, xanthan gum has a shelf life of about two to three years. It does not spoil in a way that becomes dangerous, but its thickening power gradually weakens over time.
Is xanthan gum the same as guar gum?
No, they are different products. Xanthan gum comes from bacterial fermentation, while guar gum comes from the guar bean. They have different properties and are not always interchangeable in recipes.

