Vanilla custard cake filling is a thick, creamy pastry cream made with milk, egg yolks, sugar, and cornstarch. This version is specifically formulated for layer cakes, so it has enough body to stay between the layers while still remaining smooth and creamy.
I also keep it less sweet than a traditional pastry cream because once you add cake, buttercream, and perhaps simple syrup, you really don’t need an overly sweet filling. Use it between cake layers, in trifles, tarts, or anywhere you need a rich vanilla custard filling.

I’ve made a lot of filled layer cakes over the years, and one thing you learn very quickly is that not every delicious custard makes a good cake filling. It needs to be creamy, of course, but it also needs enough structure to stay between the cake layers without squeezing out the sides.
That’s what I like about this vanilla custard. It’s rich and creamy without being overly sweet, and once chilled, it has the consistency I want for filling a layer cake. I usually pipe a buttercream dam around the edge before adding the custard, especially when I’m stacking several layers.
Vanilla is also incredibly versatile. I’ve paired this custard with vanilla and chocolate cakes, as well as fruit fillings and fresh berries. It’s one of those basic cake fillings worth having in your recipe collection because you can take it in so many different directions.
My tips for using custard between cake layers
Custard filling works especially well with light cakes such as sponge cake or genoise, where it creates a beautifully soft, moist center. Pipe a buttercream dam around the edge before adding the custard, then gently press the next cake layer down so a little of the custard soaks into the cake. Once filled and frosted, let the cake rest before serving — a few hours is good, but overnight is even better for the flavors and textures to come together.
What makes this custard filling good for cakes?
This vanilla custard cake filling is thicker and more stable than regular pastry cream, so it holds well between cake layers without making the cake soggy. The combination of egg yolks, cornstarch, milk and cream creates a smooth, creamy filling with enough body for layered cakes. For best results, chill it completely before filling the cake and use a buttercream dam around the edge.

Ingredients and substitutes
- Milk – I recommend full-fat milk for the richest, creamiest custard. Lower-fat milk will work, but the filling won’t have quite the same richness or mouthfeel.
- Egg yolks – We do need good quality, large egg yolks here. It’s what gives the pastry cream its richness. The egg yolks also contribute to the color of the final product. So, I prefer to use organic eggs with a light orange color. Again this is optional, the regular egg yolks work just fine.
- Vanilla – You also must use good quality vanilla for this pastry cream. It does make a huge difference. I use a vanilla bean but you can also use 1 tsp vanilla bean paste or 2 tsp vanilla extract.
- Cornstarch/cornflour – In addition to the egg, this cornstarch will help thicken the pastry cream even more. You can add more or less depending on the consistency of pastry cream you need. You can also use custard powder instead of corn starch.

Step-by-step: Vanilla custard cake filling
Heat the milk and cream – Heat in a saucepan until steaming and just beginning to simmer; do not boil.

Whisk the yolks – Whisk the egg yolks, sugar, and cornstarch until smooth and lump-free.
Temper the eggs – Slowly add some of the hot milk mixture while whisking constantly.

Cook the custard – Return everything to the saucepan and cook over medium heat, whisking constantly, until thick and bubbling.
Finish – Remove from the heat and stir in the butter and vanilla until smooth.
Cover and chill – Cover the surface directly with plastic wrap and chill completely before using.
For cake filling: Use the custard completely cold. It thickens as it chills, making it much easier to fill and stack cake layers.

The Right Method to Fill Cakes
1. Level and prepare the cake layers – Make sure the cake layers are completely cool and level before you start filling.
2. Pipe a buttercream dam – Pipe a thick ring of buttercream or frosting around the outer edge of the cake layer. The dam needs to be firm enough to hold the filling in place.
3. Add the filling – Spoon the vanilla custard cake filling into the center and spread it evenly, keeping it inside the buttercream dam. The same method works for softer fillings such as strawberry filling, blueberry filling, and other cake filling recipes.
4. Add the next cake layer – Place the next cake layer on top and press it down gently. You want the layers to settle without forcing the filling out through the sides.
5. Chill the filled cake – Let the cake rest in the refrigerator so the filling and buttercream dam can firm up before frosting.
6. Frost and decorate – Once the cake is stable, frost it as usual. You can keep it simple or cover it with fondant and decorate further.

Make Ahead and Storage
- Make ahead – You can make the custard filling up to 2 days ahead. Cover the surface directly with plastic wrap and refrigerate until needed.
- Before using – Once completely chilled, give the custard a good whisk to bring it back to a smooth, creamy consistency before filling the cake.
- Filled cakes – Once filled with custard, the cake must be refrigerated. For the best texture, I actually prefer filling the cake the day before and letting it rest overnight.
- Storage – Keep leftover custard in an airtight container in the refrigerator for up to 3 days.
- Freezing – I don’t recommend freezing this custard. It can separate and become watery or grainy once thawed.


Vanilla Custard Cake Filling
A vanilla custard cake filling can be an absolute treat hidden between two layers of cake. That creamy sweet goodness made from cooking eggs, milk, and sugar. Try it as a cake filling, in layered trifles or just pour it alongside a delicious warm Brownie. It’s a luxury in all forms.
Video
Ingredients
- 1 cup (240 ml) Milk (full-fat)
- 1 cup (240 ml) Whipping cream (32 to 38% fat)
- 4 large Egg yolks
- ½ cup (100 g) Sugar
- 4 tbsp Cornstarch (or 2 tbsp flour)
- 1 tsp Vanilla bean scrapings (or 1 tsp vanilla bean paste)
- 2 tbsp (30 g) Butter (room temperature, unsalted)
- ¼ tsp Salt (optional)
Method
- Heat the milk and cream – Heat until steaming and just beginning to simmer; do not boil.1 cup Milk , 1 cup Whipping cream
- Whisk the yolks – Whisk the egg yolks, sugar, salt, and cornstarch until smooth and lump-free.4 large Egg yolks, ½ cup Sugar, 4 tbsp Cornstarch, ¼ tsp Salt
- Temper the eggs – Slowly add some of the hot milk mixture while whisking constantly.
- Cook the custard – Return everything to the saucepan and cook over medium heat, whisking constantly, until thick and bubbling.1 tsp Vanilla bean scrapings , 2 tbsp Butter
- Finish – Remove from the heat and stir in the butter and vanilla until smooth.
- Cover and chill – Cover the surface directly with plastic wrap and chill completely before using.
- For cake filling: Use the custard completely cold. It thickens as it chills, making it much easier to fill and stack cake layers.
Notes
- Temper slowly: Add the hot milk to the yolks gradually while whisking to prevent curdling.
- Cook until thick: Whisk constantly and cook until the custard is thick and bubbling.
- Strain: Pass the cooked custard through a fine-mesh sieve for the smoothest texture.
- Chill completely: Cover the surface with plastic wrap and refrigerate before using as a cake filling.
- For layer cakes: Use a firm buttercream dam around the edge to keep the custard securely between the layers.
Equipment you will need
Nutrition
Tried this recipe?
Mention @veenaazmanov_kitchen or tag #veenaazmanovkitchen!Tips for the Best Custard Cake Filling
- Use full-fat dairy for the richest, creamiest custard.
- Temper the eggs slowly while whisking so they don’t scramble.
- Keep whisking as it cooks to prevent lumps and scorching on the bottom.
- Don’t stop cooking too soon – the custard should be thick and bubbling before you remove it from the heat.
- Chill completely before using – the custard thickens further as it cools and will hold much better between cake layers.
Troubleshooting Custard Filling
| Problem | Why it happens & how to fix it |
|---|---|
| Custard is too thin | It may not have cooked long enough. Cook until thick and bubbling, then remember it will thicken further as it chills. |
| Custard is too thick | It may have cooked too long or contain too much starch. Whisk in a little milk or cream until you reach the consistency you want. |
| Custard is lumpy | The heat may have been too high or the custard wasn’t whisked constantly. Remove from the heat, whisk vigorously, then strain through a fine-mesh sieve. |
| Custard curdled | The eggs probably became too hot too quickly. Temper them gradually and cook over moderate heat. Straining can rescue small bits of cooked egg. |
| Filling oozes out of the cake | Make sure the custard is completely chilled and use a firm buttercream dam around the edge before filling. |
What is pastry cream (creme patisserie) used for?
- Very commonly used in classic profiteroles, mille-feuille, and chocolate eclairs.
- Use pastry cream as a cake filling for a layered cake.
- Add some strawberry puree and whipped cream to creme patisserie make a quick strawberry mousse.
- And, add some melted chocolate and whipped cream to pastry cream to make a quick chocolate mousse.
- Spread creme patisserie evenly in a pre-baked tart shell topped with your favorite fruits and you have a fruit tart.
- Also, you find it often used in most bakeries and restaurants as a filling for cakes and pastries.
- In addition, one of the easiest desserts you can create is a custard pie such as fruit tart with vanilla pastry cream as a base topped with fresh fruits as I did in my Blueberry Tart or Fresh Strawberry Tart.
More ways to use pastry cream
- Cream Puffs, Cheesecake Cream Puffs
- Profiteroles with Vanilla Pastry Cream
- Danish Pastry – Dough, filling, and shaping
- Creme Caramel, Parisian Flan French Custard Tart
- Strawberry Panna Cotta, Blackberry Panna Cotta
- Bavarian Cream (Creme Bavaria ~ Creme Bavarois)
- Strawberry Pudding from Scratch
Frequently asked questions
Yes. A thick, well-chilled custard makes an excellent cake filling. For layer cakes, use a buttercream dam around the edge to keep the custard securely in place.
Pipe a firm buttercream dam around the edge of the cake layer, then spread the chilled custard inside the dam. Add the next layer and press it down gently before chilling the cake.
The custard may not have cooked long enough or reached a high enough temperature to activate the cornstarch. Keep cooking over medium heat while whisking until it becomes thick and begins to bubble.
Sure you can! I know that sounds weird because I just told you vanilla custard is made with egg yolks. But over the years we have found that we can make a version that’s eggless. I have already shared with you my Eggless Vanilla Pastry Cream recipe and you can use that if you thicken it to the right consistency. So it’s thick and delicious. This is my eggless recipe for the BEST Eggless Vanilla Cake Recipe. It’s soft moist and delicious.
Yes. Make it up to 2 days ahead, cover the surface directly with plastic wrap, and refrigerate. Whisk it smooth before filling the cake.
Vanilla sponge, genoise, chocolate cake, and light butter cakes all work well. Custard is also delicious paired with strawberries, raspberries, blueberries, or other fruit fillings.
Don’t lose this recipe! Save it for Later!
📌 Save this Recipe for later on Pinterest so you can easily find it again.
⭐ Add Veena Azmanov Kitchen to your Google Preferred Sources.
It helps Google show you more of our recipes.
📧 Subscribe for new recipes delivered to your inbox.
🎥 Follow us for more recipes


Hi, I’m Veena
I’m the recipe developer, baker, and food photographer behind Veena Azmanov Kitchen.
I’ve spent years developing and testing recipes, from everyday meals and homemade breads to cakes and desserts.
I share the practical tips and little details I’ve learned along the way so you can get great results in your own kitchen.

























Absolutely delicious. I highly recommend this recipe! Very grateful… thank you!
Thank you, Jules
Week 2, Day 3 Done.
Can’t wait to try this recipe! Is this enough custard filling between 3 layers of 8″ cakes? Or will I have to double this recipe?
Yes, this should be enough to fill 3 x 8-inch cakes layers
I made this and it tastes really good! However, I think I took it off the heat to soon. It thickened and I thought it’d get even thicker when it cooled, but it’s still too thin to put between cake layers. Can I put it back on the stove and cook it more to further thicken it?
Hey Aaron. If it is chilled then it won’t thicken any further on reheating. It is best to start with a fresh batch.
I hope you’ll still answer questions on this! Want to make this for a layer cake, but i have a few guests that can not have dairy. You state you can replace the “milk” with substitutes, but the cream as well? So would I use 2 cups of almond milk to substitute both the milk & cream in the recipe? PLEASE HELP!
Yes, Jessica. You can use almond milk. I like to use coconut cream because it is thicker. If you use all almond milk I suggest add a tablespoon more of cornstarch. Thanks
Hi
Can we swiss meringue buttercream to create the dam for the filling.? Or does it have to be American buttercream
You can use any buttercream for a dam. Thank you.
Hi Veena! Can’t wait to try this out. I just had a question. For a 4 layer, 6 inch round cake how many servings of your 1x recipe would you recommend making? Thanks!
This one batch should be enough! You don’t need to fill the cake too much otherwise it will come out from the sides. See my tutorial – how to level,torte, and fill cakes
Would this make enough to fill a 13×9 inch cake? It says 10 servings (100g per serving) but what does that equate to volume wise?
Hey Megan. This makes about 2 1/2 cups – Which I think should be just enough to make one filling in between two layers of 13 x 9 inch cake. I hope that helps.
The ingredient list calls for 2 Tbsp butter but there is no indication when the butter is added. I did not use the butter and it came out perfectly. Thank you! Karen
Hey Karen. Actually, it is mentioned just before the last image in the post. Sorry. I often tend to forget the butter as it does come out wonderfully velvety. Thanks for coming back to write this feedback.
For cake filling with oreo cookies in,should i lighten the cream with folded whipped cream?or it will be too soft for cake?i will use a butter cream dam.thanks
You can add whipped cream in your pastry cream to make it lighter Demi. But that makes the filling very light. Which means you need to complement it with a light sponge cake that’s not too heavy or the weight of the layers will push the dam out anyways. Thanks
Tried to make this tonight but unfortunately didn’t work for me. I followed the instructions exactly as written. I stirred for well over 30 minutes and even added more corn starch towards the end, but it just stayed pretty thin. I chilled it anyway and whipped but nothing changed.
Any ideas on what I did wrong? It tasted amazing though.
Ah, Asia. Sounds like you didn’t have enough heat to cook the custard.
There are two videos in the post a quick and a long video as well as progress pictures.
You can see that the mixture is cooking and thickening with the heat.
Did you feel like the mixture was cooking? It usually does not take too long. May be 15 mins approximately. 30 minutes is a lot.
And if you added more cornstarch and it still didn’t thicken definitely means not enough heat.
Can you put it back on the stove and cook it some more? You do want the mixture to become thick as you see in the video. (if you added cornstarch it will be thicker)
The problem with cornstarch is that if you do not cook the cornstarch it will not taste so good (floury taste)
Sorry, I hope this reply comes in time for you. Let me know how it goes.