This vanilla birthday cake is a classic white-crumb cake with a buttery flavor and a fine texture. It is a versatile dessert suitable for birthdays, potlucks, or family celebrations. The cake is designed to be sturdy enough for layering and frosting while remaining moist.
Serves 12 · Prep 30 min · Cook 35 min · Total 2 hr 35 min
Ingredients
- 2 1/2 cups (315 g) all-purpose flour
- 1 1/2 cups (300 g) granulated sugar
- 1 tablespoon (12 g) baking powder
- 1/2 teaspoon (3 g) salt
- 3/4 cup (170 g) unsalted butter, softened to room temperature
- 1 cup (240 ml) whole milk, room temperature
- 3 large eggs, room temperature
- 2 teaspoons (10 ml) pure vanilla extract
- 2 tablespoons (30 ml) vegetable oil
Instructions
- 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.
- In a medium bowl, whisk together 2 1/2 cups (315 g) all-purpose flour, 1 tablespoon (12 g) baking powder, and 1/2 teaspoon (3 g) salt. Set this dry mixture aside.
- In a large mixing bowl or stand mixer fitted with a paddle attachment, beat 3/4 cup (170 g) softened unsalted butter and 1 1/2 cups (300 g) granulated sugar on medium-high speed for 3 to 5 minutes until the mixture is pale and fluffy.
- Add 3 large eggs one at a time, beating well after each addition. Mix in 2 teaspoons (10 ml) vanilla extract and 2 tablespoons (30 ml) vegetable oil until combined.
- Reduce the mixer speed to low. Add approximately one-third of the flour mixture, then half of the 1 cup (240 ml) whole milk. Repeat with flour and milk, ending with the final portion of flour. Mix only until the streaks of flour disappear to avoid overworking the gluten.
- Divide the batter evenly between the two prepared 9-inch (23 cm) pans. Smooth the tops with a spatula.
- Bake at 350°F (175°C) for 30 to 35 minutes. Because this is an egg-based cake, ensure the center is fully set. The safe minimum internal temperature for egg-containing baked goods is 160°F (71°C) as per USDA FSIS guidelines, checked with an instant-read food thermometer in the center of the cake.
- Remove the pans from the oven and let them cool for 10 to 15 minutes. Run a knife around the edges, then invert the cakes onto wire racks to cool completely for at least 1 hour before frosting.
How Do You Know the Cake Is Done?
Visual and tactile cues are the first indicators of doneness. The edges of the cake should begin to pull away slightly from the sides of the pan, leaving a small gap. The top should be a pale golden brown and spring back immediately when pressed lightly in the center with a finger.
The most reliable method is using a toothpick or a thin wooden skewer. Insert the skewer into the center of the cake; it should come out clean or with a few moist crumbs attached. If the skewer has wet batter on it, the cake needs another 3 to 5 minutes of baking. Using a digital thermometer is the only way to guarantee the cake has reached the USDA FSIS safe minimum internal temperature of 160°F (71°C).
How Long Does Vanilla Cake Keep?
Unfrosted cake layers can be stored at room temperature in an airtight container for about 2 to 3 days. Once frosted with a buttercream that contains butter or cream cheese, the cake should be refrigerated to maintain the stability of the frosting and the safety of the dairy ingredients.
Refrigerated cake keeps for 3 to 5 days. To prevent the cake from drying out in the fridge, wrap the layers tightly in plastic wrap or store them in a cake carrier. When serving a refrigerated cake, let it sit at room temperature for 30 to 60 minutes so the butter in the cake and frosting softens, which improves the texture and flavor.
For longer storage, wrap the cooled, unfrosted layers in a double layer of plastic wrap and aluminum foil. Store them in the freezer for up to 3 months. Thaw the cake in the refrigerator overnight or at room temperature for 2 hours before frosting.
What Can You Change for Different Flavors?
To make a Lemon Vanilla cake, replace the 2 teaspoons (10 ml) of vanilla extract with 1 tablespoon (15 ml) of fresh lemon zest and 1 tablespoon (15 ml) of lemon juice. Since the lemon juice adds acidity, you may need to add an extra 1/2 teaspoon (3 g) of baking powder to maintain the lift.
For an Almond Vanilla version, substitute 1 teaspoon (5 ml) of the vanilla extract with 1 teaspoon (5 ml) of almond extract. This creates a nuttier, more aromatic profile often found in wedding cakes. The remaining measurements for flour, sugar, and butter remain the same.
If you need a dairy-free version, replace the 3/4 cup (170 g) of unsalted butter with an equal amount of vegan butter sticks and the 1 cup (240 ml) of whole milk with unsweetened soy milk or oat milk. Check the labels of these substitutes to ensure they are allergen-free according to your needs. The baking time typically remains the same, though the crumb may be slightly denser.
How Should You Serve and Pair This Cake?
This cake is traditionally served as a tiered layer cake. Place one 9-inch (23 cm) layer on a serving plate, spread a thick layer of vanilla buttercream frosting over the top, and place the second layer on top. Frost the top and sides of the cake. For a classic birthday look, use a piping bag with a star tip to create swirls of frosting around the top edge and add multi-colored sprinkles.
Pair the cake with fresh berries, such as sliced strawberries or raspberries, which provide a tart contrast to the sweet vanilla and butter. A glass of cold milk or a cup of black coffee balances the richness of the buttercream. For a more formal presentation, serve a slice with a dollop of whipped cream and a mint leaf garnish.
Common Issues with Vanilla Cake Batter
If the batter looks curdled or separated after adding the eggs or milk, it is often because the ingredients were not at the same temperature. When cold milk or cold eggs are added to creamed butter, the butter can seize and clump. To fix this, gently warm the bowl over a pot of simmering water (a bain-marie) for a few seconds while whisking, or simply continue mixing on medium speed until the emulsion stabilizes.
Overmixing the batter after the flour is added is a common cause of a tough, rubbery cake. Overmixing develops too much gluten in the all-purpose flour. To avoid this, stop the mixer the moment the last streak of flour disappears. Use a rubber spatula to fold in the final bits of dry ingredients by hand if necessary.
A cake that sinks in the middle usually indicates that the oven door was opened too early, causing a temperature drop, or that the baking powder was expired. Always ensure your baking powder is fresh by testing a small amount in hot water; it should bubble immediately. If it does not, replace it with a new container.
Safety with Raw Ingredients
This recipe contains raw flour and raw eggs. Raw flour can be contaminated with E. coli, and raw eggs can carry Salmonella. Do not eat raw cake batter or dough. To make a batter safe for tasting, heat-treat the flour in the oven at 350°F (175°C) until it reaches an internal temperature of 160°F (71°C) and let it cool before using. Use pasteurized eggs for an additional layer of safety. Pregnant people, young children, older adults, and anyone with a weakened immune system should strictly avoid consuming raw eggs and raw flour.
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 volume of batter to avoid overflow or under-baking. For two 8-inch (20 cm) pans, use the same amount of batter but increase the baking time by 5 to 10 minutes, as the layers will be thicker.
To bake this as a single layer in a 9x13 inch (23x33 cm) rectangular pan, pour all the batter into one greased and floured pan. Bake at 350°F (175°C) for 35 to 45 minutes. Check the center with a thermometer to ensure it reaches 160°F (71°C) before removing it from the oven.
If using 6-inch (15 cm) pans for a tall cake, divide the batter among three pans. Bake for 25 to 30 minutes. Because the smaller pans have a higher surface-area-to-volume ratio relative to the center, they often bake faster than larger pans. Always rely on the internal temperature and the toothpick test rather than the timer alone.