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.

























Call me crazy but I can’t see anywhere when to add the butter??
Just when you take it off the stove before you strain through a sieve. Ellen. Thanks
Can you use an electric mixer with the whisk attachment on low to combine egg yolks, sugar, salt and cornstarch?
easy to follow instructions, came out delicious!!
this custard was absolutely amazing. so creamy, not overly sweet and so yummy!! thank you for sharing such a great cake filler.
Amazing instructions and video for this first timer. Thank you!
how much vanilla essence would I use instead of the vanilla paste ? and when would add it ?
thank you
You can add 1/4 tsp and add at the end after you take it off the heat.
Hello! I’m looking to make this recipe for a filling for a birthday cake. I plan on making the cake on Saturday morning, but do you think I could make the custard sooner and refrigerate it until then?
Thanks!
Yes, you can make the custard a day ahead of time, Abbey.
Hi Veena. I’m looking to flavor this pastry cream raspberry. I already have a raspberry coulis made. is there anything I need to do or not do to make this successful? please respond as soon as possible. I’m getting ready to crack my eggs. keeping the whites for a SMBC but using the yolks for the pastry cream. Thanks Veena
Hey Tammie, Raspberry pastry cream sounds delicious. Works beautifully all the time. Enjoy!
Veena thanks for replying so quickly. i decided to wait to make the pastry cream until today hoping that’ll give you some time to reply. Can you please tell me when I should put the coulis into the pastry cream? I’ve seen it put in after the pastry cream was completely made but I’m not sure if that would work with your recipe. I also watched a video yesterday where it was put in during the milk heating process. I can’t follow that recipe as it’s no longer available on that person’s website ?. I’ve made yours before many times so I thought I’d use it again but ask for some help on when to add a fruit flavor. Please respond as soon as possible. I will be cracking those eggs in a few hrs. Thanks Veena
Hey Tammie – I prefer to put it in as soon as it is taken out of the stove. I even strain it with the fruit puree to remove any seeds or pulp
I do not add it to the milk because sometimes the acid in the fruit can cause the milk to curdle.
XX
Made this recipe several times.
It is a delicious custard. My customers love it. This time when making it I noticed online only had heavy cream was listed in the ingredients.
The printed out copy I have from previous uses used the heavy cream and full fat milk.
I used half a cup of heavy whipping cream and 1/2 cup of whole milk.
I believe I could have used one full cup of whole milk and one full cup of the heavy cream.
Maybe an error online if it was revised. As I mentioned my printed copy has both.
The recipe is very good. Like I previously stated I have made this several times. Check out the ingredients as I said because someone new making will not know.
Thank you Donna, Happy you enjoyed this recipe.
I’m, not sure what the question is. The recipe still has half milk and half heavy cream.
Hi there, I’m wanting to try this recipe for a cake; however, I need it to be diary free. Would full fat coconut milk work to replace the milk and cream? Thank you!
Yes, Lilly, coconut milk or almond milk is a great substitute in this recipe. Coconut cream works great in place of heavy cream.
I am seeing the same thing.
The recipe directions in step 2 say to add the whipping cream, milk, and vanilla into the pot but there is no milk listed in the ingredients. I am on step 2 and now unsure how to proceed as far as how much milk is needed
I added the ingredients at the respective steps in the recipe card. I hope that helps. Thanks
Ok now I’m embarrassed! I finally see the milk. It is strangely appearing above an ad and not easily seen. Not your fault at all of course. Glad I finally saw 🙂
Hi Veena, can I freeze this custard? Thanks!
Custards don’t freeze well. They tend to become quite grainy when you thaw them. Sorry