Perfect Vanilla Layer Cake
Perfect vanilla layer cake has three tender, vanilla-scented white cake layers, a smooth vanilla custard center and white chocolate buttercream. The batter uses both butter and oil for a soft crumb, while egg whites keep the layers pale.
Plan on 200 minutes of prep and 70 minutes of cooking, including chilling the custard and assembling. It makes one three-layer 9-inch cake for birthdays, holidays and other celebrations.
Why you’ll love it
Why This Perfect Vanilla Layer Cake Recipe Works
The layers, filling and frosting each have a distinct job, so careful method makes the cake easier to assemble and slice.
- Butter and oil balance the crumb. Butter gives the cake its rich flavor, while oil helps keep it soft. Creaming the butter and sugar first also builds air into the batter.
- Egg whites keep the layers pale. They provide structure without the color of yolks, making a white cake that pairs neatly with the vanilla filling and frosting.
- Alternating wet and dry ingredients protects the batter. Adding them in thirds reduces the chance of overmixing once flour is in the bowl. Scraping the bowl helps everything combine evenly.
- A piped border keeps filling in place. The frosting rim contains the custard as you stack the cake. A thin crumb coat then traps loose crumbs before the final frosting layer.
What you need
Ingredients You’ll Need
Measure each group before starting, and bring the items marked room temperature to that temperature.
- Flour, baking powder and salt: 450 g (3¾ cups) all-purpose flour, 8 g (2 teaspoons) baking powder and 4 g (1 teaspoon) fine sea salt form the dry base.
- Butter and sugar: 285 g (10 ounces) room-temperature unsalted butter and 396 g (2 cups) granulated sugar, creamed to lighten the batter.
- Extracts: 4 g (1 teaspoon) vanilla bean paste or extract plus 1 g (¼ teaspoon) almond extract.
- Egg whites: 245 g (8 large), at room temperature, for structure and a pale crumb.
- Milk and oil: 305 g (1⅓ cups) room-temperature whole milk and 60 g (¼ cup) vegetable oil make the liquid mixture.
- Custard dairy: 460 g (2 cups) whole milk and 235 g (1 cup) heavy cream; full-fat dairy gives the richest filling.
- Custard flavorings: 2 g (½ teaspoon) fine sea salt and 7 g (1½ teaspoons) vanilla bean paste, or one scraped vanilla bean.
- Sugar and cornstarch: 99 g (½ cup) granulated sugar and 28 g (¼ cup) cornstarch sweeten and thicken the custard.
- Yolks and cold butter: 145 g (7 large) egg yolks enrich the custard; 28 g (2 tablespoons) cold unsalted butter finishes it.
- Frosting butter: 454 g (16 ounces, or 2 cups) unsalted butter at room temperature forms the base.
- Frosting flavorings: 7 g (1½ teaspoons) vanilla bean paste or one scraped vanilla bean, plus 4 g (1 teaspoon) fine sea salt.
- Sweetened condensed milk: 397 g (one 14-ounce can) sweetens the frosting and keeps it creamy.
- White chocolate: 226 g (8 ounces), finely chopped and melted, adds flavor and body.
Tools
Equipment You’ll Need
- Serrated knife and cake turntable: The knife levels the cooled layers, and the turntable helps you frost the assembled cake evenly.
- Piping bag with ½-inch tip: A ½-inch (1 cm) tip makes a sturdy frosting border to contain the custard between layers.
The method
How to Make Perfect Vanilla Layer Cake
1. Prepare the pans
Heat the oven to 350°F / 170°C with a rack in the center. Grease three 9-inch / 23 cm pans, line their bases with parchment, then grease again.
Greasing over the parchment makes the cooled layers easier to turn out.
2. Cream the batter base
Whisk together the flour, baking powder and salt. Beat the butter and sugar for 4-5 minutes until light and fluffy. Mix in both extracts for about 1 minute, then add the egg whites in about four additions on medium speed, scraping well after each.
The butter mixture should look pale and airy before the whites go in.
3. Finish and bake the layers
Whisk the milk and oil together. On low speed, add the dry mixture and liquid in thirds, scraping between additions, until smooth. Divide the batter among the pans and level it. Give the layers 30-34 minutes in the oven; a toothpick pushed into the center should come out clean or carry a few moist crumbs.
Wet batter on the toothpick means the layers need more time.
4. Cool the cake
Leave the cakes in their pans for 10 minutes. Loosen the edges, invert the layers onto racks and cool completely.
Warm layers soften the custard and frosting, so wait until the centers hold no warmth.
5. Start the custard
While the cakes bake, warm the milk, cream, salt and vanilla over medium heat until simmering. In a heatproof bowl, whisk the sugar and cornstarch, then blend in the yolks. Slowly whisk in about one third of the hot milk mixture.
Pour gradually while whisking to temper the yolks instead of scrambling them.
6. Thicken the custard
Pour the yolk mixture into the pot and whisk constantly over medium heat. Once it thickens, trade the whisk for a spatula and keep stirring for about 3-4 minutes, until big, fat bubbles break through the middle.
Those slow, large bubbles show the cornstarch has fully thickened the filling.
7. Finish and chill the custard
Off the heat, stir in the cold butter until melted and remove the vanilla pod if used. Strain into a heatproof bowl, cover the surface directly with plastic wrap, cool to room temperature, then chill at least 2 hours.
Spreading the custard over a larger surface cools it faster; keep the wrap touching the top.
8. Make the buttercream
Whip the butter, vanilla and salt on high for 5-7 minutes, scraping the bowl, until ivory, glossy and frosting-like. Pour in the condensed milk gradually, in five or six portions, beating on high and scraping the bowl between them. Mix in the freshly melted, slightly warm white chocolate on medium until combined and slightly thickened.
Spoon about one third into a piping bag fitted with a ½-inch / 1 cm tip for the borders.
9. Fill the layers
Level each layer with a serrated knife. Secure the first to a 9-inch / 23 cm cardboard round on a turntable. Pipe a frosting border around its edge, add about half the custard and spread it level. Top with another layer, press gently and repeat, then add the final layer.
Keep the custard inside the piped rim.
10. Crumb coat, chill and frost
Patch gaps at the edges with frosting and spread a thin crumb coat between layers and over the sides. Chill 15-30 minutes to firm up, then cover with the remaining frosting. Serve right away or refrigerate up to 24 hours.
A firm crumb coat lets the final frosting go on without lifting crumbs.
Doneness
How to Tell When It’s Done
The layers are ready when a toothpick in the center comes out clean or with a few moist crumbs after 30-34 minutes, and the tops look set rather than glossy.
Before stacking, the layers should be completely cool and the custard chilled at least 2 hours.
Tips & common mistakes
Tips and Common Mistakes
A few small details make the long process more manageable and help the layers stack cleanly.
- Scrape the bowl as you mix. Butter and flour cling to the sides and bottom. Scraping after additions prevents streaky batter.
- Add the egg whites gradually. Small portions give the creamed mixture time to absorb them instead of looking broken.
- Whisk the custard constantly. Keep the mixture moving over medium heat so it thickens evenly and does not catch on the bottom of the pot.
- Cover the custard surface. Press plastic wrap directly onto the filling before cooling. This prevents a skin from forming as it chills.
- Do not skip the crumb coat. The thin first layer traps loose crumbs, giving you a cleaner surface for the final frosting.
Make it your way
Substitutions and Variations
The cake is designed around vanilla, custard and white chocolate, but a few ingredient choices can be adjusted.
- Vanilla extract: Use vanilla extract wherever vanilla bean paste is offered. You will lose the visible bean flecks, but keep the vanilla flavor.
- Vanilla bean: A halved, scraped vanilla bean can replace the paste in the custard or buttercream. Remove the pod from the custard before straining.
- Almond extract: For a purely vanilla flavor, omit the almond extract. The cake will lose its subtle almond note but remain flavorful.
- Different filling: A thick pastry cream can replace the custard if it is firm enough to hold between layers. A loose pudding may squeeze out when cut.
- Decorative finish: Use the reserved frosting for borders and the rest to smooth the sides or add simple piping.
Serving
What to Serve with Perfect Vanilla Layer Cake
Serve slices on their own, or pair them with fresh berries to balance the sweet white chocolate frosting. Unsweetened tea or coffee also makes a good counterpoint.
For a celebration spread, add a bowl of strawberries or raspberries so guests can garnish their own slices.
Storage
Make-Ahead, Storage and Reheating
Make ahead: The custard can be chilled for 2 hours and up to 2 days with plastic wrap pressed on its surface. Bake and cool the layers ahead too, and assemble once everything is cool.
Storage: Keep the assembled cake covered in the refrigerator for up to 24 hours. Refrigerate leftover custard covered and use it within 2 days.
Freezing: Freezing is not recommended for the assembled cake because the custard and frosting can change texture as they thaw.
Reheating: This cake is served chilled or at room temperature, not reheated. Wipe the knife between cuts for neater slices.
Questions
Perfect Vanilla Layer Cake FAQs
Can I make the custard ahead of time?
Yes. Chill it for at least 2 hours, and it can be held for up to 2 days with plastic wrap pressed onto the surface.
Why did my custard turn lumpy?
Lumps form if the yolk mixture is not whisked smooth or the custard is not stirred constantly. Straining before chilling removes small lumps.
Can I assemble the cake the day before?
Yes, but assemble it no more than 24 hours before serving and keep it refrigerated. The cake layers and custard must be cool before stacking.
Can I use three pans that are not 9 inches?
The method is written for three 9-inch / 23 cm pans. Other sizes change layer thickness and baking time, so the stated bake window may not apply.
How do I keep the custard from squeezing out?
Pipe a continuous frosting border around each cake layer before adding the custard, and spread the filling level without taking it over the rim.
How many servings does this cake make?
It makes one three-layer 9-inch cake. No serving count is given, so the number of slices depends on how large you cut them.
Recipe Card

Perfect Vanilla Layer Cake
Ingredients
Method
- Preheat the oven to 350°F / 170°C with the rack in the center, then grease three 9 inch / 23 cm pans, line the bases with parchment, and grease again.
- Whisk the flour, baking powder and salt together. Cream the butter and sugar until light and fluffy, 4-5 minutes.
- Mix in the vanilla and almond extracts about 1 minute, then add the egg whites gradually in about four additions on medium, scraping well after each.
- Whisk the milk and oil together, then alternate adding the dry mixture and the liquid in thirds on low speed, scraping between additions, until smooth.
- Divide the batter evenly among the pans, level, and bake 30-34 minutes until a toothpick comes out clean or with a few moist crumbs.
- Cool in the pans 10 minutes, loosen the edges, then invert onto racks to cool completely.
- While the cakes bake and cool, heat the milk, cream, salt and vanilla over medium heat until simmering.
- Whisk the sugar and cornstarch in a heatproof bowl, add the egg yolks and mix until smooth, then whisk in about one third of the hot milk mixture.
- Return everything to the pot and cook over medium heat, whisking constantly, then switch to a spatula and stir until large fat bubbles rise from the center, about 3-4 minutes.
- Off the heat, stir in the cold butter until melted; remove the vanilla pod if used.
- Strain the custard into a heatproof bowl, press plastic wrap on the surface, cool to room temperature, then chill at least 2 hours.
- Whip the butter, vanilla and salt on high 5-7 minutes until ivory, glossy and frosting-like, and scrape the bowl.
- Add the sweetened condensed milk in about five or six additions, whipping on high and scraping as you go.
- With freshly melted, slightly warm white chocolate, mix it in on medium until combined and slightly thickened. Reserve about one third of the frosting in a piping bag fitted with a ½ inch / 1 cm tip.
- Level each cake with a serrated knife and secure the first layer to a 9 inch / 23 cm cardboard round on a turntable.
- Pipe a border of frosting around the layer edge, spoon in about half the custard, and spread level; top with another layer and press gently.
- Repeat the layering, patch gaps at the outer edge with frosting, and apply a thin crumb coat between layers and over the sides.
- Chill 15-30 minutes to firm up, then frost with the remaining frosting; serve right away or refrigerate up to 24 hours.