Gluten-free cake relies on a blend of flours and a binder to replace the structure and elasticity that wheat gluten provides. This vanilla layer cake uses a tested ratio of rice flour, potato starch, and tapioca flour with xanthan gum, producing a tender crumb that holds together for stacking and slicing. It suits birthdays, potlucks, or any dessert where a classic white cake is expected.
Ingredients
- 2 1/2 cups (300 g) gluten-free all-purpose flour blend (containing xanthan gum, or add 1 tsp xanthan gum)
- 1 1/2 cups (300 g) granulated sugar
- 1 tbsp (12 g) baking powder
- 1/2 tsp salt
- 1 cup (240 ml) whole milk, at room temperature
- 1/2 cup (120 ml) vegetable oil
- 2 large eggs, at room temperature
- 2 tsp vanilla extract
- 1/2 cup (120 ml) boiling water
Instructions
- Preheat oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans and line bottoms with parchment paper.
- In a large bowl, whisk together the flour blend, sugar, baking powder, and salt.
- Add milk, oil, eggs, and vanilla. Beat with an electric mixer on medium speed for 2 minutes, scraping down the sides as needed.
- Reduce speed to low and slowly pour in boiling water. Mix until just combined; the batter will be thin.
- Divide batter evenly between the prepared pans. Bake for 28–32 minutes, until a toothpick inserted in the center comes out clean and the top springs back when lightly pressed.
- Cool in pans on a wire rack for 15 minutes, then turn out onto racks to cool completely before frosting.
Why It Can Come Out Dry, Dense, or Runny
Gluten-free batters behave differently from wheat batters. Dry cake usually means too much flour blend or overbaking. Measure flour by spooning into the cup and leveling; do not scoop. Bake until a toothpick comes out with a few moist crumbs, not completely dry—overbaking removes moisture quickly.
Dense cake often comes from undermixing or a missing binder. Beat the batter fully for the full 2 minutes; this develops structure. If your flour blend lacks xanthan gum, add 1 tsp; without it, the cake will crumble and sink.
Runny batter can be from adding too much boiling water or using a flour blend with high starch content. Stick to the exact liquid amounts. If the batter seems very thin, that is normal for this recipe—it should be pourable, not thick.
Substitutions That Work
Dairy-Free Version
Replace the whole milk with unsweetened almond milk or oat milk, 1:1. The cake will be slightly less tender but still moist. Use dairy-free butter or oil in the frosting.
Egg-Free Version
Replace each egg with 1/4 cup (60 ml) unsweetened applesauce. The cake will be more tender and may sink slightly in the center; bake a few minutes longer until set.
Different Flour Blends
If you use a blend that already contains xanthan gum, omit the added xanthan. If you use a single flour like almond flour, the ratio changes entirely—do not substitute 1:1; use a recipe designed for almond flour.
How to Store and Frost This Cake
Once cooled, wrap unfrosted layers tightly in plastic wrap. They keep at room temperature for 2 days or in the refrigerator for up to 4 days. Frosted cake keeps in the refrigerator for up to 3 days; bring to room temperature before serving for best texture.
For freezing, wrap unfrosted layers in plastic wrap and then foil. Freeze for up to 3 months. Thaw in the refrigerator overnight before frosting.
For a simple vanilla buttercream: beat 1 cup (2 sticks, 226 g) softened butter with 3 cups (360 g) powdered sugar, 2 tbsp milk, and 1 tsp vanilla until fluffy. Frost between layers and over the top and sides.
Common Mistakes and Their Fixes
- Too dry: Overbaking or too much flour. Use an oven thermometer to verify temperature; check cake at 28 minutes. If it is dry, brush layers with a simple syrup (1/2 cup water + 1/4 cup sugar, heated until dissolved) before frosting.
- Too dense: Not beating enough or missing xanthan gum. Beat for the full 2 minutes; ensure your blend has xanthan or add it. Also, make sure baking powder is fresh (test by dropping 1 tsp in hot water—it should bubble).
- Too runny: Too much liquid or a high-starch flour blend. Follow the recipe exactly; if your blend is very starchy (like a mix of cornstarch and potato starch), reduce boiling water to 1/3 cup (80 ml).
Can I Make This Ahead?
Yes. Bake the layers up to 2 days ahead, cool completely, and store wrapped at room temperature. Frost the day of serving. Or freeze unfrosted layers for up to 3 months.
If you need a larger cake, double the recipe and bake in three 9-inch pans; increase baking time to 35–40 minutes. For cupcakes, bake 18–20 minutes at 350°F (175°C).
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).