Gluten Free Vanilla Layer Cake Recipe – Simple and Moist
In this article
This gluten‑free vanilla layer cake is soft, tender, and lightly sweet, making it a reliable choice for birthdays, potlucks, or a weekend treat. The crumb stays moist for several days, so you can bake it ahead and serve it chilled or at room temperature. Pair it with fresh berries or a dusting of powdered sugar for a finished look.
Serves 12 · Prep 20 min · Cook 30 min · Total 1 hr 20 min
Ingredients
- 2 ½ cups (300 g) gluten‑free all‑purpose flour blend
- 1 ½ tsp (6 g) xanthan gum (omit if blend already contains)
- 1 ½ tsp (6 g) baking powder
- ½ tsp (2 g) baking soda
- ¼ tsp (1 g) salt
- 1 ¼ cups (250 g) granulated sugar
- ½ cup (115 g) unsalted butter, softened
- 3 large eggs, room temperature (use pasteurised eggs for safety)
- 1 cup (240 ml) whole milk or dairy‑free alternative
- 2 tsp (10 ml) pure vanilla extract
- ¼ cup (60 ml) vegetable oil (optional for extra tenderness)
Instructions
- Preheat the oven to 350°F (175°C). Grease two 9‑inch (23 cm) round cake pans and line the bottoms with parchment circles.
- In a medium bowl whisk together the gluten‑free flour, xanthan gum (if needed), baking powder, baking soda, and salt. Set aside.
- Using a hand mixer or stand mixer on medium speed, cream the softened butter and sugar for 3‑4 minutes, until the mixture is pale and fluffy. This incorporates air that helps the crumb stay light.
- Add the eggs one at a time, mixing well after each addition. Scrape the sides of the bowl to ensure even incorporation.
- Stir in the vanilla extract and vegetable oil; the oil adds moisture without affecting the gluten‑free structure.
- With the mixer on low, add the dry flour mixture in three additions, alternating with the milk. Begin and end with the dry ingredients. Mix each addition just until combined; over‑mixing can make the cake dense.
- Divide the batter evenly between the prepared pans, smoothing the tops with an offset spatula.
- Place the pans on the middle rack and bake for 25‑30 minutes, or until a toothpick inserted into the centre emerges clean and the top is lightly golden. The internal temperature should reach at least 160°F (71°C), the USDA FSIS safe minimum for egg‑based baked goods.
- Remove the cakes from the oven and let them sit in the pans for 10 minutes. Then run a thin knife around the edges, invert onto a cooling rack, and peel off the parchment. Cool completely, at least 30 minutes, before frosting.
- While the cakes cool, prepare a simple vanilla buttercream: beat ½ cup (115 g) softened butter until creamy, gradually add 3 cups (360 g) powdered sugar, 2 tbsp (30 ml) milk, and 1 tsp (5 ml) vanilla. Beat on high for 2‑3 minutes until light and fluffy.
- To assemble, place one cake layer on a serving plate, spread a thin layer of buttercream, then top with the second layer. Frost the top and sides with the remaining buttercream, smoothing with a spatula. Refrigerate for 15 minutes to set the frosting before slicing.
Essential Equipment
- Two 9‑inch (23 cm) round cake pans
- Parchment paper circles (cut to pan size)
- Stand mixer or hand mixer with paddle attachment
- Rubber spatula and offset spatula for batter handling and frosting
- Cooling rack (wire) to allow air circulation
- Instant‑read thermometer for checking internal temperature
Ingredient Swaps
- Flour blend: substitute almond flour 1:1, but add ½ tsp extra xanthan gum per cup to improve structure; cake will be denser and have a nutty flavor. \n
- Butter: replace with equal weight coconut oil (solid at room temperature) for a subtle coconut note; the crumb may be slightly more crumbly.
- Milk: use any plant‑based milk (almond, oat, soy) in the same volume; avoid flavored milks to keep vanilla profile.
- Eggs: for a vegan version, use ¼ cup (60 ml) unsweetened applesauce per egg or a flax‑egg (1 tbsp ground flaxseed + 3 tbsp water, let sit 5 minutes). Expect a softer texture.
Layer Assembly
After the cakes have cooled, level each layer with a serrated knife or cake leveler to create flat surfaces. This step ensures even stacking and a professional appearance. Spread the buttercream in a thin “crumb coat” around the sides and top, then chill for 10 minutes to lock in crumbs. Apply the final coat of frosting, using a bench scraper for smooth sides and an offset spatula for a decorative swirl on the top if desired. The finished cake can be served immediately or stored as described below.
Refrigerated Storage
Cover the assembled cake loosely with plastic wrap or store it in an airtight cake carrier. Refrigerate within two hours of baking. The frosting will stay fresh and the cake will retain moisture for 3‑4 days. Before serving after refrigeration, allow the cake to sit at room temperature for 20‑30 minutes to soften the buttercream.
Freezer Storage
If you need longer keeping, wrap each cooled cake layer tightly in plastic wrap, then in a layer of aluminum foil. Place the wrapped layers in a freezer‑safe zip‑lock bag. Freeze for up to two months. To use, thaw overnight in the refrigerator, then bring to room temperature before frosting.
Safety Notes
All raw eggs should be pasteurised or handled with clean hands to reduce the risk of Salmonella. The batter contains raw flour, which can harbor bacteria; however, the flour is cooked during baking, eliminating the hazard. When serving to pregnant guests, young children, or immunocompromised individuals, ensure the cake is fully baked and the internal temperature reaches at least 160°F (71°C) as confirmed with an instant‑read thermometer.