Quick answer

This recipe creates a classic two-layer vanilla cake with buttercream frosting. It involves mixing a simple batter, baking two 9-inch layers, leveling them for stability, and covering them with a rich, spreadable frosting. The process requires standard kitchen equipment and attention to oven temperature and cooling times.

There’s something timeless about a classic homemade vanilla layer cake recipe. It’s a celebration staple, a blank canvas for creativity, and a deeply satisfying baking project that rewards patience and attention to detail. This guide walks through the process of creating a tender, flavorful cake and a rich buttercream frosting, with tips for achieving even layers and a smooth, professional-looking finish. For more foundational baking techniques, you can explore our Baking Recipes category.

About this recipe

This recipe follows standard home-cooking proportions and USDA food safety guidance. We have not tested this exact version in our kitchen, so check doneness with a thermometer and adjust to your oven.

Ingredients

For the Vanilla Cake:

  • 2 ½ cups all-purpose flour
  • 2 ½ teaspoons baking powder
  • ½ teaspoon salt
  • 1 cup unsalted butter, at room temperature
  • 2 cups granulated sugar
  • 4 large eggs, at room temperature
  • 1 tablespoon pure vanilla extract
  • 1 cup whole milk, at room temperature

For the Vanilla Buttercream Frosting:

  • 1 ½ cups unsalted butter, at room temperature
  • 5-6 cups confectioners’ sugar, sifted
  • 2-3 tablespoons whole milk or heavy cream
  • 2 teaspoons pure vanilla extract
  • Pinch of salt

Equipment

  • Two 9-inch round cake pans
  • Parchment paper
  • Mixing bowls (large and medium)
  • Electric hand mixer or stand mixer
  • Whisk and rubber spatula
  • Measuring cups and spoons
  • Cooling racks
  • Serrated knife or cake leveler
  • Offset spatula or butter knife for frosting
  • Cake turntable (optional but helpful)
  • Toothpicks or a cake tester
  • Instant-read thermometer (for food safety)

Instructions

  1. Prepare the pans and oven: Preheat your oven to 350°F (175°C). Grease the bottoms and sides of two 9-inch round cake pans. Line the bottoms with parchment paper circles and lightly grease the paper. This helps ensure the cakes release cleanly.
  2. Combine dry ingredients: In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
  3. Cream butter and sugar: In a large bowl, use an electric mixer on medium speed to beat the softened butter until smooth and creamy. Gradually add the granulated sugar and continue beating on medium-high speed for 3-5 minutes, until the mixture is very pale and fluffy. This step incorporates air, which is key for a light cake texture.
  4. Add eggs and vanilla: Add the eggs one at a time, beating well after each addition until fully incorporated. Scrape down the sides of the bowl as needed. Mix in the vanilla extract.
  5. Combine wet and dry ingredients: With the mixer on low speed, add about one-third of the flour mixture, followed by half of the milk. Repeat with another third of flour, the remaining milk, and finally the last third of flour. Mix only until each addition is just combined; avoid overmixing. Finish by folding the batter a few times with a spatula to ensure everything is incorporated from the bottom of the bowl.
  6. Bake: Divide the batter evenly between the two prepared pans. Smooth the tops with a spatula. Bake on the center rack for 30-35 minutes, or until the cakes are golden, spring back when lightly touched in the center, and a toothpick inserted into the center comes out clean or with a few moist crumbs. An instant-read thermometer inserted into the center should read at least 200°F.
  7. Cool: Let the cakes cool in their pans on a wire rack for 15-20 minutes. Then, run a knife around the edges, invert the pans onto the rack, and carefully peel off the parchment paper. Allow the cake layers to cool completely, which can take 1-2 hours, before frosting. Warm cakes will melt the frosting.
  8. Make the frosting: While the cakes cool, prepare the buttercream. In a large bowl, beat the softened butter on medium speed until completely smooth and creamy, about 2-3 minutes. Gradually add 4 cups of the sifted confectioners’ sugar, one cup at a time, beating on low speed after each addition. Add the vanilla extract, salt, and 2 tablespoons of milk. Beat on medium-high speed for 2-3 minutes until very light and fluffy. If the frosting is too thick, add more milk, a teaspoon at a time. If it’s too thin, add more confectioners’ sugar until you reach a thick, spreadable consistency.
  9. Level and assemble: Once the cake layers are completely cool, use a long serrated knife or cake leveler to carefully slice off any domed tops to create flat, even layers. Place a small dab of frosting on your cake stand or serving plate to secure the first layer. Place the first layer, cut-side up, on the stand. Spread about ¾ to 1 cup of frosting evenly over the top with an offset spatula. Carefully place the second layer on top, cut-side down. Apply a thin layer of frosting over the entire cake to seal in crumbs (this is called a “crumb coat”). Chill the cake for 15-20 minutes to set this layer.
  10. Frost the cake: Apply the remaining frosting in a thicker, final layer. Using an offset spatula, start with the sides and then the top, smoothing as you go. For a simple, clean look, use the spatula to create smooth sides and a flat top. For texture, you can create swirls with the spatula tip.
Prep Time Cook Time Servings
30-40 minutes 30-35 minutes 12-16 slices

Food Safety and Storage

Proper handling and storage are essential for food safety. Eggs and dairy products used in this recipe require care.

  • Unfrosted cake layers can be wrapped tightly in plastic wrap and stored at room temperature for one day or frozen for up to 3 months. Thaw in the refrigerator before using.
  • A frosted cake with buttercream can be stored, covered, at room temperature for up to two days if your kitchen is cool. In warmer or humid conditions, or if you need to store it longer, refrigerate it. The buttercream will firm up in the fridge.
  • Leftover slices should be stored in an airtight container. Refrigerated cake is best enjoyed within 4-5 days. Let refrigerated slices sit at room temperature for 20-30 minutes before serving for the best texture.
  • Always use clean utensils when handling the cake to prevent cross-contamination. For comprehensive guidelines on food storage, refer to the FDA and USDA cold food storage charts.

Safety

Ensure eggs and all dairy products are fresh and have been stored properly. The cake is fully baked when an instant-read thermometer inserted into the center reads at least 200°F. Always cool cakes completely on a wire rack to prevent condensation and sogginess. Practice safe kitchen habits: keep work surfaces clean, wash hands thoroughly, and avoid cross-contamination between raw and ready-to-eat ingredients.

Variations

This classic homemade vanilla layer cake recipe is wonderfully adaptable. Here are a few ideas to customize it:

  • Flavor Infusions: Add the zest of one lemon or orange to the cake batter for a citrus twist. You can also substitute 1 teaspoon of almond extract for 1 teaspoon of the vanilla extract in either the cake or frosting.
  • Chocolate Chip Cake: Fold 1 cup of mini chocolate chips into the batter just before dividing it between the pans.
  • Berry Filling: Add a layer of flavor between the cakes by spreading a thin layer of seedless raspberry or strawberry jam over the bottom layer before adding the buttercream.
  • Different Frostings: While vanilla buttercream is classic, you could use a cream cheese frosting or a chocolate buttercream. For a different dessert style, consider a fruit crisp.
  • Cupcakes: This batter can be baked as cupcakes. Line muffin tins with paper liners and fill each about two-thirds full. Bake at the same temperature for 18-22 minutes. This yields about 24-28 cupcakes.

For more simple baking ideas, see our guides on banana muffins or blueberry muffins.

FAQ

Why did my cake layers dome in the middle?

Doming is common and is often caused by the oven being too hot, which sets the edges before the center has fully risen. Using cake strips (damp fabric strips wrapped around the outside of the pan) can help insulate the edges and promote even baking. Leveling the layers with a serrated knife after cooling solves this issue for assembly.

Can I make this cake ahead of time?

Yes. You can bake the cake layers 1-2 days in advance. Let them cool completely, then wrap each layer tightly in plastic wrap and store at room temperature. You can also freeze the wrapped layers for up to 3 months. The buttercream can be made 2-3 days ahead and stored in an airtight container in the refrigerator. Let it come to room temperature and re-whip with your mixer for a minute before using.

My buttercream looks curdled or separated. What happened?

This usually happens if the butter was too cold or if the ingredients were at different temperatures. To fix it, gently warm the bottom of the mixing bowl over a pan of barely simmering water for just a few seconds while mixing, or add a tablespoon of the already-made frosting that has been warmed slightly. Then continue beating. The key is to have all ingredients at a similar, cool room temperature before you start.

How do I get perfectly smooth sides when frosting?

The crumb coat (a thin initial layer) is crucial. After chilling the crumb coat, apply your final, thicker layer of frosting. Use an offset spatula held at a slight angle against the side of the cake. A bench scraper or the flat edge of a large knife, held vertically against the cake while turning it on a turntable, can create very smooth sides. Dip your tool in hot water and dry it for the smoothest finish.

Can I use a different size pan?

You can, but it will affect the baking time and the height of your layers. For three 8-inch pans, reduce the baking time to 25-30 minutes. For a 9×13-inch sheet pan, the batter will bake in about 35-40 minutes. Always check for doneness with a toothpick or thermometer. For other foundational recipes, our guide to chocolate chip cookies covers similar baking principles.

References

  1. USDA Food Safety and Inspection Service: Safe minimum internal temperatures, Safe Temperature Chart
  2. FoodSafety.gov: Cold food storage guidance, Cold Food Storage Charts
  3. FDA: Safe food handling, Buy, Store & Serve Safe Food
  4. Manufacturer manuals and specification sheets: For oven calibration and appliance-specific guidance.