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.

























What cake flavor pairs best with this custard filling?
Lauren, Custard filling can go with so many cakes from simple vanilla to coconut, chocolate as well as fruit-flavored cakes. I do not pair them with caramel or butterscotch cakes because they tend to be too rich but nothing wrong with rich either. Hope this helps.
I made it and came out wonderful and tasty and velvety 🙂 I have some left over can I freeze it or how long in the fridge it will last please? Thanks
Happy you enjoyed this Patricia. Thanks for the feedback. Yes, you can freeze it for a month. It will stay in the fridge for up to 3 days. Thanks
Hi Veena!
What percentage cream should I use?
Hey Jenna. I use 32 to 38 percent cream for my desserts. Thanks
What is cream ? is it heavy whipping cream?? or like half and half? nothing at the store says “cream”…sorry newbie to baking! and I want to use this for my daughter bday cake
Yes it is whipping cream – 38 to 40% fat is best. No-problem at all Nicole. Feel free to ask any questions you have. Happy to help.
Good simple recipe, came out super smooth. Just requires patience and care to not heat to quickly. Nice vanilla flavor. Will use again.
Thank you, Corina. So happy you enjoyed this recipe so much. Thanks for coming back to write this feedback.
I recommend changing your ingredients list to say egg yolks instead of eggs. You also indicated to add the vanilla in two different places. I’m not sure if that’s a mistake or if you are supposed to add it in separate parts. I had already added it to the liquid before I saw it was listed in both. It is a good recipe overall. Tasty and simple. I’ll use it again. I’m using it to fill a white cake.
Hey Rachel. Thank you so much for bringing it to my attention. I have changed it to read vanilla just once. Glad you enjoyed this recipe. Thanks for coming back to write this feedback. Appreciate it very much.
My grandmother loves vanilla custard so I made this cake filling for her birthday. So happy I found this recipe. The last one made a big mess and everything was all over the place. This was thicker so stayed in and cute well too. Thanks for sharing.
Thank you, Charles. So happy you had success with this recipe and your grandmother enjoyed it too. Yes, classic vanilla pastry cream is too soft between layers. Thanks for coming back to write this comment. Appreciate feedback. Have a great day.
Made this last weekend and it was so good. Thanks for the video. Was very helpful.
Thank you, Antionio. So happy to hear you had success with this recipe and that you enjoyed it. Thank you for coming back to write this feedback. Have a wonderful weekend.
My custard started leaking an oily looking liquid – i would have thought it was butter, but obviously not. Any thoughts?
Sorry to hear that Tanya. What do you mean by leaking an oily liquid? Did it scramble? Or was it later when you kept it in the fridge? There is not oil in there or butter so don’t think it’s oil obviously. Did you follow the instructions as I showed in the post? Did you encounter any problem, something different? Just trying to troubleshoot. I will be uploading a video soon, so hopefully, you will be able to see how I make it too.
Thank you for this recipe. I use it today for my cake and everyone loves it. Was very delicious.
Thank you Essie. So happy to here you enjoyed this recipe. Thank you for coming back to write this feedback. Always happy to here from those who try my recipes. Please do tag me on Instagram @veenaazmanov when you share so I can see it. Or you can share it with me on my Facebook Page.
I used this recipe last weekend and it was perfect. Thank you so much. Love your blog
Thank you Grose. So happy to here you enjoyed this recipe. Thank you for coming back to write this feedback. Always happy to here from those who try my recipes. Please do tag me on Instagram @veenaazmanov when you share so I can see it. Or you can share it with me on my Facebook Page.
Could I use 100% whole milk instead of cream? I don’t have any on hand.
You can use milk but it will be very liquid. Perhaps you can use more cornstarch as well.
I made this I believe exactly as instructed and it’s not stiff enough to hold a second layer of cake on top. It came out the consistency of pudding. There is no way I could layer a cake with it, it would all just run out. what am I doing wrong?
Sounds like you didn’t cook until it comes out thick. Most people do the mistake because they make it like pudding. You have to continue to thicken it until it’s really thick. If needed add a tbsp more flour/cornstarch to help.
how long should I cook it? I cooked it, stirring constantly, for an extra 5 min AFTER it was the consistency of pudding. I also added an extra T of cornstarch. it never got any thicker. does it thicken up after you put it in the fridge or does it do all its thickening while cooking?
Well you cook it until it thickens considerable much more than five minutes dear. Depending on the heat it can take up to 15 minutes too and yes you do have to put it in the fridge – chilling makes it a lot thicker. Then whip it up again and it should be like whipped cream, you can add more whipped cream to lighten it up. Then use as a filing
so you whip it after you cook it and cool it? I love how thick it is now.
Yes, not just cool it but really chill it well then whip it.