The Feast

Home cooking recipes for everyday dinners and easy entertaining

Classic Vanilla Cake Recipe for Every Occasion

· 7 min read · Baking and Desserts

This vanilla cake is a buttery, moist sponge with a clean bean flavor and a fine crumb. It is a versatile dessert suited for birthday parties, holiday gatherings, or a simple weekend treat.

Serves 12 · Prep 30 min · Cook 35 min · Total 2 hr 15 min

Ingredients

  • 2 1/2 cups (315 g) all-purpose flour
  • 1 1/2 cups (300 g) granulated sugar
  • 1 tbsp (12 g) baking powder
  • 1/2 tsp (3 g) salt
  • 3/4 cup (170 g) unsalted butter, softened to room temperature
  • 3 large eggs, room temperature
  • 1 cup (240 ml) whole milk, room temperature
  • 1 tbsp (15 ml) pure vanilla extract
  • 2 tbsp (30 ml) vegetable oil

Instructions

  1. Preheat the oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans with butter or non-stick spray and line the bottoms with parchment paper circles to prevent sticking.
  2. Sift together the 2 1/2 cups (315 g) all-purpose flour, 1 tbsp (12 g) baking powder, and 1/2 tsp (3 g) salt in a medium bowl. Set this dry mixture aside.
  3. In a large mixing bowl or stand mixer fitted with a paddle attachment, beat the 3/4 cup (170 g) softened butter and 1 1/2 cups (300 g) granulated sugar on medium-high speed for 3-5 minutes until the mixture is pale and fluffy.
  4. Add the 3 eggs one at a time, beating well after each addition to ensure the emulsion stays stable. Stir in the 1 tbsp (15 ml) vanilla extract and 2 tbsp (30 ml) vegetable oil.
  5. Reduce the mixer speed to low. Add the flour mixture in three parts, alternating with the 1 cup (240 ml) whole milk (flour, then milk, then flour, then milk, then flour). Mix only until the streaks of flour disappear to avoid overworking the gluten, which causes a tough cake.
  6. Divide the batter evenly between the two prepared 9-inch (23 cm) pans. Smooth the tops with a spatula.
  7. Bake at 350°F (175°C) for 30-35 minutes. The cake is done when a toothpick inserted into the center comes out clean or with a few moist crumbs, and the edges have slightly pulled away from the pan.
  8. Cool the cakes in the pans for 10-15 minutes on a wire rack. Run a knife around the edges and invert the cakes onto the rack to cool completely before frosting.

Food Safety Note: This recipe contains raw flour and raw eggs. To prevent foodborne illness, heat-treat the flour to 160°F (71°C) before use and use pasteurised eggs. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid consuming raw or undercooked batter.

How Do I Know the Vanilla Cake Is Done?

The most reliable way to check for doneness is the toothpick test. Insert a wooden toothpick or a thin skewer into the center of the cake. If it comes out with wet batter, the cake needs more time. If it comes out clean or with a few dry crumbs, it is finished. Another visual cue is the "spring back" method: gently press the center of the cake with your finger; if the cake springs back immediately, it is set. If the indentation remains, it requires another 3-5 minutes of baking.

Check the edges of the cake. When the sponge has cooked through, the sides will naturally shrink away from the walls of the pan by about 1/8 inch (3 mm). If the top is browning too quickly but the center is still liquid, lower the oven temperature by 25°F (15°C) and extend the baking time by 5-10 minutes. Using an instant-read thermometer is the most precise method; the internal temperature should reach approximately 205-210°F (96-99°C) for a fully set sponge.

How Long Does Vanilla Cake Keep?

Unfrosted vanilla cake layers can be stored at room temperature in an airtight container for about 2-3 days. However, once frosted with a buttercream or cream cheese frosting, the cake must be refrigerated because the dairy in the frosting is perishable. Refrigerate the cake within 2 hours of frosting to prevent bacterial growth.

In the refrigerator, a frosted vanilla cake typically keeps for 3-5 days. To prevent the cake from drying out in the fridge, place it in a cake carrier or wrap the layers tightly in plastic wrap. For longer storage, wrap individual cake layers in two layers of plastic wrap and then a layer of aluminum foil. Store them in the freezer for up to 3 months. To thaw, leave the cake in the freezer wrap and move it to the refrigerator overnight, or let it sit at room temperature for 2-4 hours before frosting.

When reheating cake slices from the refrigerator, let them sit at room temperature for 30 minutes to allow the butter in the sponge to soften, which restores the original texture. If reheating in a microwave, use a low power setting for 10-15 seconds to avoid melting the frosting or drying out the crumb.

What Can I Swap in a Vanilla Cake?

For a dairy-free version, replace the 1 cup (240 ml) whole milk with an equal amount of oat milk or soy milk. These provide a similar fat content and consistency. Replace the 3/4 cup (170 g) unsalted butter with a vegan butter stick. Note that vegan butter may result in a slightly different flavor profile and a marginally softer crumb.

If you do not have vanilla extract, you can use vanilla bean paste for a more intense flavor and visible black specks. Use the same 1 tbsp (15 ml) measurement. For a different aromatic profile, replace half of the vanilla extract with almond extract, which gives the cake a nutty, wedding-cake style taste. If using honey or maple syrup as a partial sweetener replacement for the sugar, reduce the total liquid (milk) by 2 tablespoons (30 ml) to compensate for the moisture in the syrup, and be aware that the cake will brown faster due to the fructose.

How Do I Serve and Pair Vanilla Cake?

This cake pairs well with a classic vanilla buttercream or a tart raspberry jam filling to cut through the sweetness of the sponge. For a fresh accompaniment, serve slices with macerated strawberries (sliced strawberries tossed with a teaspoon of sugar) or a dollop of lightly sweetened whipped cream. A side of fresh blueberries or raspberries adds a tart contrast and visual color.

For beverages, a cold glass of milk or a hot cup of Earl Grey tea complements the vanilla notes. For a more formal presentation, serve the cake with a drizzle of warm salted caramel sauce or a dusting of powdered sugar. If serving as a party cake, stack the two layers with a thick layer of frosting in between and cover the exterior with a smooth coat of icing and sprinkles.

Vanilla Cake Measurements for Different Pan Sizes

The provided recipe is designed for two 9-inch (23 cm) round pans. If you wish to use different pan sizes, you must adjust the baking time and temperature to ensure the center cooks without burning the edges.

Pan Size Estimated Bake Time Temperature Notes
One 9x13 inch (23x33 cm) rectangular pan 35-45 minutes 350°F (175°C) Single layer; check center with toothpick.
Two 8-inch (20 cm) round pans 30-35 minutes 350°F (175°C) Cakes will be taller; check doneness early.
12 cupcakes (standard size) 18-22 minutes 350°F (175°C) Fill liners 2/3 full; do not overfill.
One 10-inch (25 cm) round pan 40-50 minutes 325°F (163°C) Lower temp prevents doming in large pans.

Why Does Vanilla Cake Sink in the Middle?

A sunken center is usually caused by one of three factors: underbaking, opening the oven door too early, or using expired leavening agents. If you open the oven door during the first 20 minutes of baking, the sudden drop in temperature can cause the air bubbles in the batter to collapse before the cake structure has set. Avoid opening the door until at least 75% of the baking time has elapsed.

Underbaking occurs when the cake looks done on top but the center is still wet. This happens often in larger pans where the edges cook faster than the middle. To fix this, ensure your oven is properly calibrated. If the cake consistently sinks, try using a heating core or a flower nail in the center of the pan to distribute heat more evenly. Additionally, check the expiration date of your baking powder; if it has lost its potency, the cake will not rise sufficiently to support its own weight, leading to a collapse.

Another common cause is over-mixing the batter. When you beat the flour into the wet ingredients for too long, you develop too much gluten. This creates a tough structure that can trap air unevenly, causing the cake to rise rapidly and then crash. Mix the flour only until no dry clumps remain. If the batter looks smooth and slightly glossy, stop mixing immediately.

In this article
  1. Ingredients
  2. Instructions
  3. How Do I Know the Vanilla Cake Is Done?
  4. How Long Does Vanilla Cake Keep?
  5. What Can I Swap in a Vanilla Cake?
  6. How Do I Serve and Pair Vanilla Cake?
  7. Vanilla Cake Measurements for Different Pan Sizes
  8. Why Does Vanilla Cake Sink in the Middle?