How to Make Vanilla Cake from Scratch
A from-scratch vanilla cake is a butter-and-sugar cake leavened with baking powder, flavored with real vanilla, and baked until the center springs back. The most common method is the creaming method: beat softened butter with sugar until pale, add eggs, then alternate dry ingredients with milk. The reverse-creaming method (mixing dry ingredients with butter first, then adding liquid) gives a finer crumb and is the case where the steps differ.
Start With Room-Temperature Butter, Eggs and Milk
Cold butter traps air poorly, and cold eggs and milk can curdle the batter. Set butter out 45-60 minutes before mixing; it should dent when pressed but not look greasy. Put eggs in a bowl of warm tap water for 10 minutes, and microwave milk in 10-second bursts until it feels cool-neutral on your wrist, about 70°F (21°C).
Preheat the oven to 350°F (175°C) and place a rack in the center. Grease two 8-inch (20 cm) round pans, line the bottoms with parchment, and grease the parchment. If you only have 9-inch (23 cm) pans, start checking 5 minutes earlier.
Measure the Dry Ingredients by Weight
Flour settles in the bag, so a cup scooped straight from the container can weigh 20-30 g more than a cup spooned and leveled. Use a scale if you have one: 2 3/4 cups (330 g) all-purpose flour, 2 1/2 teaspoons baking powder, 1/2 teaspoon baking soda, and 3/4 teaspoon fine salt. Whisk them together for 30 seconds so the leaveners are evenly spread.
If you are using self-rising flour, skip the baking powder, baking soda and salt, and use 2 3/4 cups (330 g) self-rising flour. Check the label for the flour's own sodium level, since brands differ.
Cream the Butter and Sugar Until Pale
Beat 1 cup (227 g) unsalted butter, softened, with 1 3/4 cups (350 g) granulated sugar on medium speed for 3-4 minutes, until the mixture is pale ivory and looks fluffy. Scrape the bowl and beater once halfway. This step dissolves sugar crystals and beats air into the butter, which is what makes the cake rise evenly.
Add 4 large eggs one at a time, beating 20 seconds after each and scraping the bowl between additions. The batter should look glossy; if it looks curdled, the eggs were too cold or added too fast. Beat in 2 teaspoons vanilla extract.
Alternate the Flour and Milk in Three Additions
Add the flour mixture in three parts, alternating with 1 cup (240 ml) whole milk, starting and ending with flour. Mix on low speed just until each addition disappears, about 15 seconds. Overmixing develops gluten and makes the cake tough and tunneled.
Divide the batter evenly between the pans, about 2 cups (480 ml) per pan, and smooth the tops with a spatula. Drop the pans from 2 inches (5 cm) onto the counter once to release large air bubbles.
Bake Until the Center Springs Back
Bake at 350°F (175°C) for 25-30 minutes, until the tops are golden and a toothpick inserted in the center comes out with a few moist crumbs. Rotate the pans front to back at 20 minutes if your oven bakes unevenly. The cake is done when the center springs back when pressed lightly; if it leaves an indent, give it 3 more minutes.
Cool the cakes in the pans on a wire rack for 10 minutes, then run a knife around the edge and turn them out onto the rack. Cool completely, about 1 hour, before frosting. A warm cake will melt buttercream and slide.
When the Cake Sinks, Tunnels or Sticks
| Symptom | Likely cause | Fix next time |
|---|---|---|
| Sunken center | Too much batter per pan, oven door opened early, or underbaking | Fill pans two-thirds full; keep the door closed until 20 minutes; bake until the center springs back |
| Tunnels and tough crumb | Overmixing after the flour goes in | Mix on low just until no dry streaks remain |
| Dry, crumbly edges | Flour measured heavy or cake baked too long | Weigh flour; start checking at 25 minutes |
| Stuck to the pan | Pans greased but not lined, or cake cooled too long in the pan | Line the bottoms with parchment and turn out after 10 minutes |
Before You Start: A Short Checklist
- Butter, eggs and milk at room temperature (butter 65-68°F / 18-20°C).
- Oven rack in the center and oven fully preheated, about 15 minutes.
- Two 8-inch (20 cm) round pans, greased and parchment-lined.
- Dry ingredients whisked together in a separate bowl.
- A scale if you have one, or the spoon-and-level method for flour.
- Vanilla extract, not imitation vanilla flavor, for the fullest flavor.
Frosting, Storing and Swapping Ingredients
This cake suits vanilla buttercream, cream cheese frosting or a simple dusting of powdered sugar. To frost, place one cooled layer on a plate, spread about 1/2 cup (120 ml) frosting over it, set the second layer on top, then cover the top and sides with the remaining frosting, about 2 cups (480 ml) total.
Store the unfrosted cake wrapped tightly at room temperature for up to 2 days, or freeze the layers wrapped in plastic and foil for up to 2 months. Thaw in the fridge overnight. Frosted cake keeps in the fridge for 3-4 days; bring it to room temperature for 30 minutes before serving. Any cake with perishable frosting should be refrigerated within 2 hours.
For a dairy-free version, replace the butter with 1 cup (227 g) plant-based stick butter and the milk with 1 cup (240 ml) oat or soy milk; the crumb will be slightly denser. Cake flour can replace all-purpose flour at 2 3/4 cups (310 g), giving a softer texture. Do not reduce the sugar by more than 1/4 cup (50 g), or the cake will be dry and pale.
Raw flour and raw eggs carry a risk of foodborne illness. Do not eat the batter before baking. Baked cake is safe once it reaches an internal temperature of 200°F (93°C) at the center, though most home bakers rely on the spring-back test.