Cream Filled Yellow Cake Recipe
In this article
This yellow cake is a buttery, vanilla-scented sponge layered with a thick, smooth vanilla pastry cream. It is a classic dessert that works well for birthday parties, family gatherings, or a weekend treat.
Serves 12 · Prep 45 min · Cook 35 min · Total 5 hr 20 min
Ingredients
For the Yellow Cake
- 2 1/4 cups (280 g) all-purpose flour
- 1 1/2 cups (300 g) granulated sugar
- 3 1/2 tsp (17 g) baking powder
- 1 tsp (5 g) salt
- 1 cup (225 g) unsalted butter, softened to room temperature
- 1 cup (240 ml) whole milk, room temperature
- 1 tsp (5 ml) vanilla extract
- 4 large eggs, room temperature
For the Pastry Cream Filling
- 2 cups (480 ml) whole milk
- 1/2 cup (100 g) granulated sugar
- 1/4 cup (30 g) cornstarch
- 1/4 tsp (1 g) salt
- 4 large egg yolks, room temperature
- 2 tbsp (28 g) unsalted butter
- 1 1/2 tsp (7.5 ml) vanilla extract
For the Buttercream Frosting
- 1 cup (225 g) unsalted butter, softened
- 3 to 4 cups (360 to 480 g) powdered sugar
- 2 tbsp (30 ml) heavy cream
- 1 tsp (5 ml) vanilla extract
- Pinch of salt
Baking the Yellow Cake
- Preheat your oven to 350°F (175°C). Grease and flour two 9-inch (23 cm) round cake pans, or line the bottoms with parchment paper to ensure the layers release easily.
- In a large bowl, whisk together the flour, sugar, baking powder, and salt. Mix until combined.
- Add the softened butter to the dry ingredients. Use a hand mixer or stand mixer on low speed until the mixture looks like coarse crumbs.
- Stir in the milk and vanilla extract. Increase the mixer speed to medium and beat for about 1 minute until the batter is smooth.
- Add the eggs one at a time, beating well after each addition. Ensure the batter is fully emulsified and no streaks of egg remain.
- Divide the batter evenly between the two prepared pans. Bake at 350°F (175°C) for 30-35 minutes. The cake is done when a toothpick inserted into the center comes out clean or with a few moist crumbs.
- Remove the pans from the oven and cool them on a wire rack for 10 minutes before inverting the cakes onto the rack to cool completely. The cake must be cold before filling to prevent the cream from melting.
Making the Pastry Cream
- In a medium saucepan, whisk together the sugar, cornstarch, and salt. Gradually whisk in the milk until smooth.
- Place the pan over medium heat. Stir constantly with a whisk or wooden spoon to prevent the bottom from scorching. Bring the mixture to a gentle simmer.
- While the milk heats, whisk the 4 egg yolks in a small bowl until smooth.
- Temper the eggs by slowly pouring about 1/2 cup (120 ml) of the hot milk mixture into the yolks, whisking rapidly. This prevents the eggs from scrambling.
- Pour the tempered egg mixture back into the saucepan with the remaining milk.
- Continue cooking over medium heat, whisking constantly, until the cream thickens and begins to bubble. Once it reaches a boil, cook for an additional 1 minute while whisking to ensure the cornstarch is fully activated.
- Remove from heat. Stir in the 2 tbsp (28 g) of butter and vanilla extract until the butter is melted and the cream is glossy.
- Transfer the cream to a shallow bowl. Press a piece of plastic wrap directly onto the surface of the cream to prevent a skin from forming.
- Refrigerate for at least 3 hours, or until completely chilled and set.
Preparing the Buttercream
- Beat the softened butter with a mixer on medium-high speed for about 3 minutes until it is pale and fluffy.
- Add the powdered sugar one cup at a time, beating on low speed initially to avoid a sugar cloud, then increasing to medium.
- Stir in the heavy cream, vanilla extract, and salt.
- Beat on high speed for another 2 minutes until the frosting is light and airy. If it is too soft, add more powdered sugar; if it is too stiff, add a teaspoon of cream.
Assembling the Layer Cake
- If the cooled cake layers have domed tops, use a serrated knife to slice off the top 1/2 inch (1.3 cm) to create flat surfaces.
- Place one cake layer on a serving plate.
- Pipe a ring of buttercream frosting around the outer edge of the cake layer, about 1/2 inch (1.3 cm) thick. This creates a dam that keeps the pastry cream from leaking out the sides.
- Spoon the chilled pastry cream into the center of the buttercream ring. Spread it evenly with an offset spatula, leaving a tiny gap from the frosting ring.
- Place the second cake layer on top and press down gently.
- Cover the top and sides of the cake with the remaining buttercream frosting. Use a spatula to smooth the edges.
Cake Texture and Troubleshooting
The texture of a yellow cake depends heavily on the temperature of the ingredients. Using cold eggs or cold milk can cause the batter to break or curdle, resulting in a dense cake with uneven holes. Ensure all dairy and eggs are at room temperature to create a stable emulsion that traps air during mixing. If the cake sinks in the middle, it may be due to over-mixing the flour or opening the oven door too early, which lets out heat and causes the structure to collapse.
For the pastry cream, the most common issue is lumps. This happens if the cornstarch is not whisked thoroughly into the milk or if the egg yolks are added too quickly without tempering. If lumps appear, you can press the cream through a fine-mesh sieve while it is still warm to smooth it out. If the cream is too runny, it likely did not reach a full boil; you can return it to the heat and whisk until it thickens.
When filling the cake, the buttercream dam is essential. Without it, the weight of the top layer will push the pastry cream toward the edges, causing the cake to slide or the filling to ooze out. Always ensure the pastry cream is completely chilled, as warm cream will soak into the cake and make it soggy.
Pairing and Serving Ideas
This cake is rich and sweet, so it pairs well with items that provide acidity or a bitter contrast. Fresh berries, such as raspberries or sliced strawberries, can be placed on top of the cake or served on the side to cut through the richness of the butter and cream. A side of fresh whipped cream with a hint of lemon zest also complements the vanilla flavors.
For drinks, a cup of black coffee or a strong Earl Grey tea balances the sweetness. For a cold beverage, a glass of cold milk or a sparkling raspberry lemonade provides a refreshing contrast. If serving at a party, slice the cake into thin wedges to make the layers of cream more visible and the portions more manageable.
Storing the Cake
Because this cake contains a dairy-based pastry cream, it must be refrigerated. Perishable fillings like pastry cream cannot sit at room temperature for more than 2 hours (1 hour if the temperature is above 90°F/32°C). Store the assembled cake in an airtight cake carrier or a large container in the refrigerator.
The cake will typically keep for 3 to 4 days in the refrigerator. To prevent the cake from drying out, ensure it is tightly sealed. When serving, you can leave the cake at room temperature for about 30 minutes before slicing to soften the buttercream, but it should be returned to the fridge immediately after.
To freeze the cake, it is best to freeze the cake layers separately before filling. Wrap the cooled layers tightly in plastic wrap and then aluminum foil. They will keep for about 3 months. Thaw the layers in the refrigerator overnight before filling and frosting. Do not freeze the cake once it has been filled with pastry cream, as the texture of the cream can become grainy upon thawing.
When reheating any cake slices that have been refrigerated, do not use a microwave for more than 5-10 seconds, as the buttercream and pastry cream will melt quickly. It is generally best served chilled or slightly cooled. If you are reheating a piece of cake that contains meat or savory elements (though not applicable here), the USDA FSIS safe minimum internal temperature for reheating leftovers is 165°F (74°C).