How to Bake a Classic Vanilla Cake from Scratch
A classic vanilla cake is the perfect canvas for any celebration, offering a light, tender crumb and a subtle buttery flavor that pairs well with frosting, fruit, or a simple dusting of powdered sugar. This straightforward recipe uses pantry staples and a few technique tips to guarantee a consistently moist result, whether you’re a beginner or an experienced baker.
Ingredients
- 2 ½ cups (310 g) all‑purpose flour
- 1 ½ cups (300 g) granulated sugar
- 1 cup (226 g) unsalted butter, softened
- 4 large eggs, room temperature
- 1 cup (240 ml) whole milk, room temperature
- 2 teaspoons baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- 2 teaspoons pure vanilla extract
- Optional: ¼ cup (60 ml) sour cream or Greek yogurt for extra tenderness
Instructions
- Preheat your oven to 350°F (177°C). Position the rack in the middle of the oven and allow the oven to reach the set temperature before baking.
- Grease two 9‑inch (23 cm) round cake pans with butter or a neutral oil, then line the bottoms with parchment circles. Lightly flour the sides, tapping out any excess.
- In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. This aerates the dry ingredients and ensures the leavening agents are evenly distributed.
- In a large stand‑mixing bowl, beat the softened butter on medium speed until creamy and pale, about 2 minutes. Scrape down the sides of the bowl as needed.
- Gradually add the granulated sugar to the butter, continuing to beat for 3‑4 minutes. The mixture should become light and fluffy, indicating that air has been incorporated for lift.
- Add the eggs one at a time, beating well after each addition. The batter may look slightly curdled after the first egg—continue mixing until it smooths out.
- Stir in the vanilla extract (and sour cream or Greek yogurt if using). These wet components add flavor and moisture.
- With the mixer on low, add the dry flour mixture in three additions, alternating with the milk. Begin and end with the flour mixture. Mix each addition just until incorporated; over‑mixing can develop gluten and make the cake dense.
- Divide the batter evenly between the prepared pans, smoothing the tops with a spatula. Tap the pans gently on the counter to release any large air bubbles.
- Place the pans in the pre‑heated oven and bake for 25‑30 minutes, or until a toothpick inserted into the center comes out clean or with only a few moist crumbs. The internal temperature should read 200°F (93°C) when measured with an instant‑read thermometer.
- Allow the cakes to cool in the pans on a wire rack for 10 minutes. Then run a thin knife around the edges, invert the cakes onto the rack, and let them cool completely before frosting.
- If you plan to frost immediately, the cakes should be completely cool to the touch; residual heat can melt buttercream and cause it to slide off.
Tips
- Ingredient temperature matters: Using room‑temperature butter, eggs, and milk creates an emulsion that traps air, leading to a higher rise. If any ingredient is cold, the batter can separate and the cake may be flat.
- Measure flour correctly: Spoon the flour into the measuring cup and level it with a flat edge. Packing flour adds extra weight and can make the crumb heavy.
- Don’t over‑mix: Once the flour is added, mix just until you no longer see streaks. Over‑mixing develops gluten, resulting in a tougher texture.
- Check for doneness early: Oven temperatures vary; start checking at the 22‑minute mark. If the cake is browning too quickly, loosely cover the top with foil.
Serving Suggestions
Serve the cake plain with a dusting of powdered sugar for a minimalist touch, or layer it with classic vanilla buttercream, chocolate ganache, or fresh whipped cream and berries. For a seasonal twist, top each slice with a spoonful of fruit compote—such as raspberry or peach—paired with a drizzle of honey.
Variations
Swap the vanilla extract for 2 teaspoons of almond or lemon zest for a different flavor profile. To make a chocolate version, replace ¼ cup of the flour with unsweetened cocoa powder and add 2 tablespoons of melted dark chocolate to the wet mixture. For a gluten‑free adaptation, use a 1‑to‑1 gluten‑free flour blend, but add an extra ¼ teaspoon of xanthan gum to help with structure.
Storage and Reheating
Unfrosted cake layers wrap tightly in plastic wrap and store in an airtight container at room temperature for up to 2 days. Frosted cakes keep for 3‑4 days in the refrigerator, covered loosely with a cake dome. Before serving, allow refrigerated cake to sit at room temperature for 30 minutes, or gently warm individual slices in the microwave for 10‑15 seconds. Do not reheat the whole cake in a conventional oven; the edges will dry out.
Frequently Asked Questions
Can I use melted butter instead of softened butter?
Melted butter can be used, but it changes the emulsion and may result in a denser crumb. If you melt the butter, let it cool to room temperature and add an extra ¼ teaspoon of baking powder to help with lift.
Why does my cake sink in the middle?
A sinking center is usually caused by under‑baking, an oven that’s too hot, or over‑mixing the batter. Verify the oven temperature with an independent thermometer, and ensure the cake reaches 200°F (93°C) before removing it.
Is it safe to eat the batter if I use raw eggs?
Raw eggs can carry salmonella. For safety, use pasteurized eggs or a commercial egg substitute when tasting batter. Never consume raw dough that contains untreated flour or eggs.
Can I freeze the cake?
Yes. Freeze unfrosted layers wrapped tightly in plastic wrap and then foil. They keep for up to 3 months. Thaw overnight in the refrigerator before frosting.
How do I know if the cake is fully cooked without a thermometer?
Insert a clean toothpick or cake tester into the center; it should emerge with a few moist crumbs but no wet batter. The edges will pull away slightly from the pan, indicating the structure is set.