A good gluten-free cake recipe should deliver a soft, tender crumb that feels worthy of a birthday, anniversary, or any small celebration. The key is not one magic ingredient. It is a balanced blend of gluten-free flour, enough moisture, a little structure, and a gentle bake. This two-layer vanilla-style cake gives you a dependable base for frosting, fruit, sprinkles, or candles.
Want a celebration cake without the mixing bowl? Explore Sans Bakery's Cakes & Cupcakes collection for certified 100% gluten-free cakes and cupcakes.
What makes a gluten-free cake moist?
A moist gluten-free cake combines a balanced flour blend with a liquid fat such as neutral oil, a rich dairy ingredient such as sour cream or plain yogurt, and enough liquid to hydrate the crumb. A binder helps the cake hold together, while careful mixing and avoiding overbaking protect the soft texture.
Gluten normally gives wheat cakes elasticity and structure. Gluten-free flour blends need help from other ingredients, but more is not always better. Too much binder can make a cake gummy, too much flour can make it heavy, and a few extra minutes in the oven can take a tender cake from moist to dry.
| Ingredient choice | What it contributes | What to watch |
|---|---|---|
| Gluten-free 1-to-1 flour blend | Base structure and a familiar cake texture | Use a blend intended for baking, and check whether it already contains xanthan gum. |
| Neutral oil | Moisture that stays soft after the cake cools | Choose a mild oil so vanilla remains the star. |
| Sour cream or plain yogurt | Richness, tenderness, and a little acidity | Bring it to room temperature so it mixes evenly. |
| Eggs | Lift, richness, and a helpful natural binder | Room-temperature eggs blend into the batter more smoothly. |
| Xanthan gum, if needed | Additional structure and less crumbling | Do not add extra if your flour blend already includes it. |
That balance is why a gluten-free cake can be every bit as inviting as a conventional cake. Sans Bakery has built its work around the same inclusive idea since 2010: people should not have to settle for less flavor or joy because they are avoiding gluten. Read the Sans Bakery story for more about Erica Fair's founder-led approach.
Gluten-free cake ingredients
This recipe makes two 8-inch round layers, enough for a small layer cake. Weighing the flour and sugar gives the most consistent result, especially when working with gluten-free blends. If you use measuring cups, spoon the flour into the cup and level it instead of scooping directly from the bag.
For the cake
- 300 g, about 2 1/2 cups, gluten-free 1-to-1 baking flour blend
- 30 g, about 1/4 cup, cornstarch
- 2 teaspoons baking powder
- 1/2 teaspoon baking soda
- 1/2 teaspoon fine salt
- 1/2 teaspoon xanthan gum, only if your flour blend does not already contain it
- 300 g, about 1 1/2 cups, granulated sugar
- 120 ml, 1/2 cup, neutral oil such as avocado, canola, or another mild baking oil
- 2 large eggs, at room temperature
- 2 teaspoons pure vanilla extract
- 120 g, 1/2 cup, sour cream or plain full-fat yogurt, at room temperature
- 240 ml, 1 cup, buttermilk at room temperature
For an easy vanilla frosting
- 170 g, 3/4 cup, unsalted butter, softened
- 360 g, about 3 cups, powdered sugar, sifted
- 2 teaspoons vanilla extract
- 2 to 3 tablespoons milk or cream, as needed
- A pinch of salt
For the flour, baking powder, baking soda, xanthan gum, vanilla, sprinkles, and other packaged ingredients, read the label for your dietary needs. A recipe made with gluten-free ingredients is not automatically suitable for every allergy or sensitivity. We cover more practical allergen questions below.
Making a cake for a crowd? Browse Sans Bakery's gluten-free cakes and cupcakes for a ready-to-serve option.
Related products

A little vanilla, a lot of strawberry, and plenty of frosting magic.
View product
Meet the Lemon & Raspberry Cake: a sunny little showstopper with serious party energy.
View productHow to make this gluten-free cake recipe
Prepare your ingredients before you start. Gluten-free batter comes together quickly once the dry and wet mixtures are ready, and an evenly mixed batter bakes more reliably than one that sits on the counter while you search for a missing ingredient.
- Prepare the pans. Heat the oven to 350 F. Grease two 8-inch round cake pans, line the bottoms with parchment rounds, and lightly grease the parchment.
- Whisk the dry ingredients. In a medium bowl, whisk together the gluten-free flour blend, cornstarch, baking powder, baking soda, salt, and xanthan gum if needed. Break up any pockets of starch or gum.
- Combine the sugar and oil. In a large bowl, whisk the sugar, oil, eggs, and vanilla until smooth and slightly lighter. A hand mixer works too, but vigorous whisking is enough for this oil-based batter.
- Add the richness. Whisk in the sour cream or yogurt until no streaks remain. Scrape the bottom of the bowl so the thicker ingredient does not hide underneath the liquid mixture.
- Alternate dry ingredients and buttermilk. Add half of the dry mixture, then half of the buttermilk. Stir gently. Repeat with the remaining dry ingredients and buttermilk, mixing only until the batter is smooth. A few small lumps are better than an overworked batter.
- Fill and settle the pans. Divide the batter evenly between the pans. Tap each pan once or twice on a folded towel to release large air pockets, then smooth the tops.
- Bake and cool. Bake for 30 to 36 minutes, rotating the pans once if your oven has hot spots. The cakes are ready when the tops spring back lightly, the centers no longer jiggle, and a toothpick comes out with a few moist crumbs. Cool in the pans for 10 minutes, then turn the layers onto a rack and cool completely before frosting.
How do you know when a gluten-free cake is done?
A gluten-free cake is done when the center looks set, springs back gently when pressed, and a toothpick inserted in the middle comes out with a few moist crumbs rather than wet batter. The edges may pull away slightly from the pan. Start checking at 30 minutes, because an overbaked gluten-free cake loses moisture quickly.
Do not rely on color alone. Some blends brown before the center is ready, while a pale cake can be fully baked. If the top is darkening early, place a loose sheet of foil over the pan for the final minutes, keeping the foil away from the batter.
How to keep gluten-free cake from turning dry or crumbly
The best gluten-free cakes are built on small, repeatable habits. These adjustments help whether you are making this recipe or adapting another favorite cake for a gluten-free kitchen.
- Use a consistent flour blend. Different blends absorb liquid at different rates. If a recipe was developed for a 1-to-1 blend, changing to a starch-heavy blend can change the texture.
- Check the binder before adding more. Many all-purpose gluten-free blends already include xanthan gum. Adding a second full dose can make the crumb heavy or gummy.
- Measure by weight when possible. A packed cup of flour can add substantially more dry matter than a lightly filled cup. A kitchen scale removes that variable.
- Do not overmix. Gluten-free batter does not need the same gluten-development concern as wheat batter, but overmixing can still make the cake dense and can knock out the air you worked into the mixture.
- Cool before frosting. Warm layers are fragile, and frosting melts into the crumb. Let the cake cool fully, or chill the wrapped layers briefly before assembling.
- Store it airtight. Once frosted, cover the cake well and serve within a few days for the best texture. If you need to hold the layers, wrap them tightly after they cool and freeze them until you are ready to decorate.
A small amount of xanthan gum can help bind a gluten-free cake and reduce crumbling, but the exact need depends on the blend and the rest of the formula. Research on gluten-free cake quality has also found that xanthan gum can improve texture and delay firming when used at an appropriate level. That is useful context, but it is not a reason to add more than a recipe calls for.
Frosting and decoration ideas for a celebration cake
Vanilla buttercream keeps this cake classic, but the layers are flexible enough for many finishes. Add lemon zest to the frosting for a bright spring cake, spread a thin layer of fruit preserves between the layers, or top the cake with berries just before serving. For a chocolate version, use a certified gluten-free chocolate frosting and verify the label for any other allergens in your household.
For the neatest layers, trim only if the cakes dome significantly. Place the first layer flat-side down, add a thin filling layer, and set the second layer on top. Apply a light crumb coat, chill briefly, then add the final layer of frosting. Finish with sprinkles, berries, or candles that match the occasion.
Sans Bakery's Cakes & Cupcakes collection offers a shortcut when the celebration is soon. The collection includes options such as Lamington Cake, Chocolate Cake, Lemon & Raspberry Cake, Confetti Cake, and Vanilla & Strawberry Cake. Availability can change, so check the current product page before ordering.
What allergens are in this gluten-free cake recipe?
This recipe contains eggs and dairy from the eggs, sour cream or yogurt, buttermilk, butter, and optional milk or cream in the frosting. Depending on the brands you choose, sprinkles, baking ingredients, and chocolate decorations may introduce other allergens, including soy or nuts. Always read each package and follow the advice of your medical professional if you manage a food allergy or celiac disease.
For medically necessary gluten-free baking, use ingredients labeled or certified gluten-free according to your needs, clean shared equipment carefully, and avoid bulk ingredients with unclear handling. The U.S. Food and Drug Administration explains the conditions for using a gluten-free claim on packaged foods in its gluten-free labeling guidance. A home recipe should not be presented as a universal safety guarantee.
To make a dairy-free version, you can try a dairy-free plain yogurt, plant-based milk, and dairy-free butter that are each labeled gluten-free. The texture can change, so test the substitutions before an important event. For a vegan cake, use a recipe developed as vegan rather than simply removing the eggs. Eggs help this cake rise and hold together, so a direct swap may not give you the same result.
Need a bakery-made centerpiece? Shop Sans Bakery's Cakes & Cupcakes collection and check each product listing for current ingredients, allergens, and availability.
Frequently asked questions
Can I use any gluten-free flour for this cake?
Use a gluten-free all-purpose or 1-to-1 baking blend intended for cakes, preferably one whose package explains whether xanthan gum is included. Single flours such as almond, coconut, or rice flour do not behave like a balanced blend in this formula, so substituting one on its own will change the structure and liquid needs.
Why did my gluten-free cake crumble?
A crumbly gluten-free cake is often caused by an inconsistent flour measurement, too little binder for the blend, an under-set center, or overbaking. Let the cake cool fully before moving it, and check whether your flour blend already includes xanthan gum before adjusting the amount.
Can I make this gluten-free cake ahead of time?
Yes. Cool the layers completely, wrap them tightly, and refrigerate for up to two days or freeze them for longer storage. Thaw wrapped layers before frosting so condensation stays on the wrapper rather than the cake. Once frosted, keep the cake covered and serve within a few days for the best texture.
Does every gluten-free cake need xanthan gum?
No. Some flour blends include xanthan gum, and some recipes use other binders or rely on eggs and dairy for structure. Check the blend and follow the recipe. Adding extra xanthan gum without accounting for what is already in the flour can create a dense or gummy crumb.
Can I turn this into cupcakes?
Usually, yes, but the bake time will be shorter and the exact yield depends on how full you fill each liner. Start checking standard cupcakes around 18 minutes, and use the same visual cues: a set center, light spring-back, and a toothpick with a few moist crumbs.