I haven't tried it when baking, but I do use it when making homemade ice cream. I use 1/8 tsp. xanthan or guar gum per 2 qt. batch and it keeps it from becoming a solid hard unscoopable block in the freezer. I'd like to try it when baking, but I'm not sure exactly what you are trying to achieve...a softer or firmer cake?