Custard Cake Recipe
Introduction
This Custard Cake features a rich vanilla pastry cream layered between moist, tender vanilla cake with a silky custard buttercream frosting. It’s a perfect dessert for celebrations or a special treat, combining creamy custard and classic cake textures for a truly indulgent experience.

Ingredients
- For the Vanilla Pastry Cream:
- 3 cups Whole Milk (710g / 720ml)
- 1 tablespoon Vanilla Extract
- 7 Egg Yolks
- ¾ cup Granulated Sugar (150g)
- 6 tablespoons Cornstarch
- 1 ½ sticks Unsalted Butter (170g)
- For the Vanilla Cake:
- 1.25 cups Whole Milk (300g / 300ml)
- ⅓ cup Vegetable Oil (66g / 80ml)
- 3 Large Eggs
- 2 ¾ cups Cake Flour (312g)
- 1 ¾ cups Granulated Sugar (350g)
- 1 tablespoon Baking Powder
- ½ teaspoon Salt
- 1 teaspoon Vanilla Extract
- 2 sticks Unsalted Butter (227g)
- For the Custard Buttercream:
- ⅔ batch Vanilla Pastry Cream (prepared for the filling)
- 4 sticks Unsalted Butter (454g)
- ⅓ cup Powdered Sugar (38g)
- 1 teaspoon Vanilla Extract
- ¼ teaspoon Salt
Instructions
- Make the Pastry Cream (Custard):
Make the pastry cream 2 to 24 hours ahead to allow it to cool and thicken. Whisk together egg yolks, sugar, and cornstarch in a bowl until pale and thick. In a saucepan, heat milk and vanilla over medium heat until steaming with tiny bubbles (do not boil). Gradually whisk a small amount of hot milk into the egg mixture to temper it, then combine all and return to the saucepan. Heat, whisking constantly, until it boils and thickens—about 1 to 2 minutes—then remove from heat. Pass through a sieve if lumps form. Whisk in butter piece by piece until smooth. Cover with plastic wrap directly on the surface and refrigerate for at least two hours or overnight. - Make the Vanilla Cake:
Preheat oven to 350°F (180°C; 160°C fan-assisted). Grease two 8-inch cake pans. Bring butter, eggs, and milk to room temperature. Divide the milk into two portions: ½ cup and ¾ cup. Mix ½ cup milk with vegetable oil and set aside. Whisk together the remaining milk, eggs, and vanilla. In a mixer bowl, combine flour, sugar, baking powder, and salt. Add butter in small pieces and mix on low until resembling coarse crumbs. Gradually add the milk-oil mixture and beat on medium for two minutes. Scrape bowl, then add milk-egg mixture slowly and mix on low until just combined. Divide batter into pans and bake 30–40 minutes or until a toothpick comes out clean. Cool in pans for at least 30 minutes before removing. - Make the Custard Buttercream:
About an hour before assembling, move ⅓ of the pastry cream to a bowl, cover, and refrigerate. Leave the remaining ⅔ covered at room temperature. Also, bring butter to room temperature. Using a mixer, beat the butter on high until pale and fluffy (3–5 minutes). Add room-temperature pastry cream one tablespoon at a time, whipping between additions until fully incorporated. Mix in vanilla and salt. Taste the buttercream and add powdered sugar slowly, whipping after each addition, until the desired sweetness is achieved. The buttercream should be smooth; if curdled, check that ingredients are at the same temperature. - Assemble the Cake:
Once cakes are completely cooled, slice each horizontally to create four layers. Start layering: place a cake layer, spread custard buttercream evenly, then add the second cake layer with a thinner layer of buttercream. Pipe a buttercream border around the edge of this layer and fill the center with half of the cold reserved pastry cream. Add the third cake layer on top, followed by another generous buttercream layer, then the final cake layer. Decorate as desired with rosettes of buttercream around the top edge. Pour the remaining cold custard into the center of the cake within the rosettes.
Tips & Variations
- Make the pastry cream a day ahead for best flavor and ease of assembly.
- If the buttercream curdles, try warming the bowl slightly or mixing gently until smooth again.
- For a lighter cake, substitute half the butter with Greek yogurt or sour cream in the cake batter.
- Use a cake leveler or a serrated knife for even, clean slices of cake layers.
Storage
Store the assembled cake covered in the refrigerator for up to 3 days to keep the custard fresh. Let the cake sit at room temperature for 15-20 minutes before serving for the best texture. Leftover cake can be frozen wrapped tightly for up to one month; thaw overnight in the fridge before serving.
How to Serve

Serve this delicious recipe with your favorite sides.
FAQs
Can I make the pastry cream without cornstarch?
Cornstarch is essential for thickening the pastry cream properly. Without it, the custard may remain too runny. If unavailable, you can try using flour, but the texture and clarity might differ.
How do I prevent the custard from curdling when mixing the buttercream?
Ensure all ingredients—pastry cream and butter—are at the same room temperature before mixing. Adding the cream slowly and beating well also helps maintain a smooth, stable buttercream.
PrintCustard Cake Recipe
This Custard Cake recipe features a rich and creamy vanilla pastry cream layered between moist vanilla sponge cake layers and finished with a silky custard buttercream frosting. The combination of pastry cream and buttercream creates a luscious, multi-textured dessert that’s perfect for special occasions or indulgent gatherings.
- Prep Time: 40 minutes
- Cook Time: 40 minutes
- Total Time: 3 hours 20 minutes (including chilling time)
- Yield: 12 servings 1x
- Category: Dessert
- Method: Baking
- Cuisine: American
Ingredients
Vanilla Pastry Cream
- 3 cups Whole Milk (710g / 720ml)
- 1 tablespoon Vanilla Extract
- 7 Egg Yolks
- ¾ cup Granulated Sugar (150g)
- 6 tablespoon Cornstarch
- 1 ½ sticks Unsalted Butter (170g)
Vanilla Cake
- 1.25 cup Whole Milk (300g / 300ml)
- ⅓ cup Vegetable Oil (66g / 80ml)
- 3 Large Eggs
- 2 ¾ cups Cake Flour (312g)
- 1 ¾ cups Granulated Sugar (350g)
- 1 tablespoon Baking Powder
- ½ teaspoon Salt
- 1 teaspoon Vanilla Extract
- 2 sticks Unsalted Butter (227g)
Custard Buttercream
- Vanilla Pastry Cream (⅔ of the pastry cream prepared for the filling)
- 4 sticks Unsalted Butter (454g)
- ⅓ cup Powdered Sugar (38g)
- 1 teaspoon Vanilla Extract
- ¼ teaspoon Salt
Instructions
- Make the Pastry Cream (Custard): Whisk together the egg yolks, sugar, and cornstarch in a bowl until pale and thick. Heat the milk and vanilla in a saucepan over medium heat until scalding (steam and tiny bubbles appear, but do not boil). Slowly temper the egg yolk mixture by gradually whisking in hot milk to prevent scrambling. Pour the combined mixture back into the saucepan and cook over medium heat, whisking constantly until it boils and thickens (about 1-2 minutes). Strain through a fine sieve if lumps form. Whisk in butter one piece at a time until fully incorporated. Cover with plastic wrap touching the surface and refrigerate for at least two hours or overnight.
- Make the Vanilla Cake: Preheat oven to 350°F (180°C). Grease two 8-inch cake pans. Separate the milk into two parts: ½ cup for mixing with vegetable oil, and ¾ cup for mixing with eggs and vanilla. In the mixer bowl, combine flour, sugar, baking powder, and salt. Slowly add chunks of butter and mix until the texture resembles chunky breadcrumbs. Add the milk/oil mixture and beat on medium speed for 2 minutes. Scrape bowl, then add the milk/egg/vanilla mixture slowly, mixing on low until just combined. Divide batter equally into pans and bake for 30-40 minutes or until a toothpick comes out clean. Cool in pans for 30 minutes before removing.
- Make the Custard Buttercream: Remove approximately ⅓ of the pastry cream, cover, and refrigerate. Let the remaining ⅔ pastry cream and 4 sticks of butter come to room temperature. Beat the butter in a stand mixer with a whisk attachment on high speed for 3-5 minutes until pale and fluffy. Add room temperature pastry cream one tablespoon at a time, whipping between additions until fully incorporated. Mix in vanilla and salt. Gradually add powdered sugar to taste, whipping after each addition, until desired sweetness and consistency are achieved. The buttercream should be smooth; if it curdles, adjust ingredient temperatures as needed.
- Assemble the Cake: Once cakes are completely cooled, level each by slicing in half horizontally to create four thin layers. Place one cake layer on a serving plate, spread a generous layer of custard buttercream and smooth it. Add a second cake layer, then spread a thinner layer of buttercream over it. Pipe a buttercream border around the edge and fill the center with half of the reserved cold pastry cream. Add the third cake layer on top, then spread another generous layer of buttercream. Place the final cake layer on top and frost the entire cake as desired—smooth, semi-naked, or naked style. Pipe rosettes around the top edge and pour remaining cold pastry cream in the center of the cake inside the rosettes.
Notes
- Make the pastry cream 2 to 24 hours ahead of time to allow it to cool and thicken properly.
- Ensure butter, eggs, and milk are at room temperature before beginning the cake batter to promote even mixing and texture.
- If the buttercream curdles, it’s typically due to temperature issues—make sure ingredients are at the same temperature and beat well; chilling briefly and re-whipping can help.
- Use plastic wrap touching the surface of the pastry cream to prevent a skin from forming.
- The cake layers can be leveled with a serrated knife if a cake leveler is unavailable.
Keywords: custard cake, vanilla cake, pastry cream, buttercream frosting, layered cake, homemade cake, creamy frosting, classic dessert

