Cake by Scratch Recipe: Classic Vanilla Layer Cake
In this article
This is a true from-scratch vanilla cake recipe: no box mixes, no shortcuts, just butter, sugar, flour, eggs, and milk transformed into a tender, moist, and flavorful layer cake. It works because the creaming method builds structure and the buttermilk adds a subtle tang that balances the sweetness. This is the cake you make for birthdays, celebrations, or when you simply want the real thing.
Ingredients
- 3 cups (360g) all-purpose flour, plus more for pans
- 1 tablespoon baking powder
- 1/2 teaspoon baking soda
- 1 teaspoon fine salt
- 1 cup (226g) unsalted butter, softened
- 1 3/4 cups (350g) granulated sugar
- 4 large eggs, at room temperature
- 1 tablespoon pure vanilla extract
- 1 1/4 cups (300ml) buttermilk, at room temperature
Instructions
- Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans with butter or nonstick spray, then dust with flour, tapping out the excess.
- In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
- In a large mixing bowl, beat the softened butter and sugar together with an electric mixer on medium speed until light and fluffy, about 3–5 minutes. Scrape down the sides of the bowl once or twice.
- Add the eggs one at a time, beating well after each addition. Beat in the vanilla extract.
- With the mixer on low speed, add the dry ingredients in three additions, alternating with the buttermilk in two additions. Begin and end with the dry ingredients. Mix just until combined—do not overmix. The batter should be smooth and thick.
- Divide the batter evenly between the prepared pans. Smooth the tops with a spatula.
- Bake for 28–32 minutes, or until a toothpick inserted into the center comes out clean and the tops spring back when lightly touched. The cakes should be golden brown.
- Let the cakes cool in the pans on a wire rack for 10 minutes. Then run a knife around the edges, invert onto the rack, and cool completely before frosting.
Tips
- Room temperature ingredients matter: Cold butter and eggs don't cream properly and can make the batter curdle. Take them out 30–60 minutes before starting.
- Measure flour correctly: Spoon the flour into your measuring cup and level it off with a knife. Scooping directly from the bag can pack in too much flour, making the cake dry.
- Don't overmix the batter: Once you add the dry ingredients, mix only until no streaks of flour remain. Overmixing develops gluten, which can make the cake tough.
- If you don't have buttermilk: Make a quick substitute by adding 1 tablespoon of lemon juice or white vinegar to 1 1/4 cups of milk. Let it sit for 5 minutes before using.
Serving Suggestions
This cake is delicious on its own, but it truly shines with a simple vanilla buttercream or cream cheese frosting. Serve it with fresh berries, a dusting of powdered sugar, or a scoop of vanilla ice cream. For a classic pairing, fill the layers with strawberry jam and top with whipped cream.
Variations
- Chocolate layer cake: Replace 1/2 cup (60g) of the flour with 1/2 cup (40g) unsweetened cocoa powder. You may need to increase the buttermilk by 2 tablespoons for a moist crumb.
- Lemon cake: Add the zest of 2 lemons to the sugar and rub it in with your fingers before creaming. Replace the vanilla with 1 teaspoon of lemon extract.
- Funfetti: Fold in 1/2 cup of rainbow sprinkles at the end of mixing. Use confetti-style sprinkles for the best color.
- Cupcakes: Pour the batter into lined muffin tins, filling each about 2/3 full. Bake at 350°F (175°C) for 18–22 minutes, or until a toothpick comes out clean.
Storage and Reheating
Frosted cake can be stored in an airtight container at room temperature for up to 3 days. Unfrosted cake layers can be wrapped tightly in plastic wrap and refrigerated for up to 2 days, or frozen for up to 3 months. To freeze, wrap each layer in plastic wrap, then foil. Thaw overnight in the refrigerator before frosting. To refresh a slice, microwave it for 10–15 seconds—this makes it taste freshly baked.
Frequently Asked Questions
Why did my cake sink in the middle?
This often happens if the oven temperature is too low, the batter is overmixed, or the cake is underbaked. Make sure your oven is actually at 350°F (175°C) using an oven thermometer. Also, avoid opening the oven door during the first 20 minutes of baking.
Can I use salted butter instead of unsalted?
Yes, but reduce the added salt to 1/2 teaspoon. Salted butter contains about 1/4 teaspoon of salt per stick, so adjusting prevents the cake from becoming too salty.
Can I make this cake without a stand mixer?
Absolutely. Use a hand mixer or even a wooden spoon. If mixing by hand, beat the butter and sugar vigorously for about 5 minutes, and be careful not to overmix once the flour is added.
How do I know when the cake is done?
Insert a toothpick into the center—it should come out clean or with a few moist crumbs, not wet batter. The cake should also pull away slightly from the sides of the pan.
Can I use cake flour instead of all-purpose?
Yes. Substitute 3 cups all-purpose flour with 3 cups cake flour (or 3 cups minus 3 tablespoons all-purpose plus 3 tablespoons cornstarch). Cake flour gives a lighter, finer crumb.
Why is my cake dry?
Overbaking is the most common cause. Check the cake at 25 minutes. Also, make sure you measured the flour correctly and didn't overmix the batter. Adding a simple syrup (equal parts sugar and water brushed over the layers) can rescue a dry cake.