Time: 1 hr 25 min · Serves: 10 · The key step: Whisk the dry ingredients twice so the flours, starches, and xanthan gum are fully blended — this prevents gummy spots and ensures an even crumb. This gluten-free vanilla layer cake is tender, moist, and lightly sweet, with a fine crumb that holds together for stacking and frosting. It suits birthdays, potlucks, or any dessert table, and it uses a simple blend of rice flour, potato starch, and tapioca flour that you can find in most supermarkets.
Ingredients
- 1 cup (120 g) white rice flour
- 1 cup (120 g) brown rice flour
- 1/2 cup (60 g) potato starch (not potato flour)
- 1/2 cup (60 g) tapioca flour
- 2 tsp xanthan gum
- 1 tsp salt
- 1 1/2 tsp baking powder
- 1/2 tsp baking soda
- 1 cup (200 g) granulated sugar
- 1/2 cup (115 g) unsalted butter, softened
- 1/2 cup (120 ml) neutral oil (such as canola or sunflower)
- 3 large eggs, room temperature
- 1 tbsp vanilla extract
- 1 cup (240 ml) buttermilk, room temperature
Instructions
- Preheat oven to 350°F (175°C). Grease two 8-inch (20 cm) round cake pans and line the bottoms with parchment paper.
- In a large bowl, whisk together white rice flour, brown rice flour, potato starch, tapioca flour, xanthan gum, salt, baking powder, and baking soda. Whisk for at least 30 seconds — this step is critical for even distribution of the gums and leaveners.
- In a separate bowl, beat the butter and sugar with an electric mixer on medium speed until light and fluffy, about 3 minutes. Add the oil and beat for 1 minute more.
- Add eggs one at a time, beating well after each. Beat in vanilla.
- With the mixer on low, add the dry ingredients in three additions, alternating with the buttermilk, starting and ending with the dry. Mix just until combined — overmixing can make the cake dense.
- Divide the batter evenly between the prepared pans. Smooth the tops with a spatula.
- Bake for 30–35 minutes, until a toothpick inserted in the center comes out clean and the tops spring back when lightly pressed. The internal temperature of the cake should read 200°F (93°C) on an instant-read thermometer.
- Cool in the pans on a wire rack for 15 minutes, then turn out onto the rack and cool completely before frosting, about 1 hour.
Frosting and Filling
This cake pairs well with a simple vanilla buttercream or a cream cheese frosting. For a dairy-free version, use a dairy-free butter substitute and a dairy-free milk in place of buttermilk (add 1 tbsp lemon juice to 1 cup milk and let sit 5 minutes).
For a layered look, spread a thin layer of frosting between the two cake layers, then frost the outside. If you prefer a single-layer cake, bake in a 9×13-inch (23×33 cm) pan for 35–40 minutes.
Storage and Make-Ahead
Store frosted cake in an airtight container in the refrigerator for up to 4 days. Unfrosted layers can be wrapped tightly in plastic wrap and frozen for up to 3 months. Thaw in the refrigerator overnight before frosting.
Bring the cake to room temperature before serving (about 30 minutes) for the best texture and flavor.
Common Mistakes
Gummy or Dense Crumb
If you skip the double-whisking of dry ingredients, xanthan gum can clump, creating gummy pockets. Also, overmixing the batter after adding the flour can develop too much structure, making the cake tough. Mix until the flour is just incorporated.
Cake Sinking in the Middle
Opening the oven door during the first 20 minutes of baking lets in cold air and can cause the cake to collapse. Use the oven light and window to check doneness instead. Also, ensure your baking powder and baking soda are fresh — test by stirring 1/2 tsp into 1/4 cup hot water; it should bubble vigorously.
Dry or Crumbly Texture
Gluten-free flours absorb more liquid than wheat flour. If your batter looks stiff before baking, add 1–2 tbsp extra buttermilk. Also, do not overbake — start checking at 30 minutes. Remove the cake when a toothpick comes out with a few moist crumbs, not completely dry.
Why This Works
The combination of rice flours provides structure, while potato starch and tapioca flour add tenderness and chew. Xanthan gum replaces gluten’s elasticity, so the cake holds together without being dense. Buttermilk adds tang and helps tenderize the crumb.
For a chocolate version, replace 1/4 cup of the white rice flour with 1/4 cup (30 g) unsweetened cocoa powder and increase the sugar by 2 tbsp.
If you don’t have buttermilk, use 1 cup (240 ml) milk mixed with 1 tbsp lemon juice or white vinegar, let sit for 5 minutes. This substitute will work the same.
Frequently Asked Questions
Can I use a gluten-free all-purpose flour blend?
Yes, you can substitute 2 1/2 cups (300 g) of a gluten-free all-purpose flour blend that already contains xanthan gum. Omit the xanthan gum from the recipe. Check the blend’s ingredients — if it doesn’t list xanthan gum, add 1 tsp.
Can I make this cake dairy-free?
Yes, use a dairy-free butter substitute and a dairy-free buttermilk: 1 cup (240 ml) unsweetened almond or oat milk mixed with 1 tbsp lemon juice. Let sit 5 minutes before using.
Can I use this recipe for cupcakes?
Yes, divide the batter into 12 lined muffin cups and bake at 350°F (175°C) for 18–22 minutes, until a toothpick comes out clean. Cool completely before frosting.
Safety Note
This recipe contains raw eggs in the batter. The cake is baked to a safe internal temperature, so it is safe to eat. However, do not taste the raw batter, as it contains raw flour and eggs. If you want to taste the batter, heat-treat the flour in a 350°F (175°C) oven for 5 minutes, let it cool, and use pasteurized eggs. Pregnant people, young children, older adults, and those with weakened immune systems should avoid raw flour and raw eggs.
Related
- Gluten-Free Banana Bread Recipe UK
- How to Make Gluten Free Cake Pops
- Gluten Free Dairy Free Gingerbread Cake Recipe
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).