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.

























Well written recipes! I love the set up/style, ingredient weights and in the instructions, notes, beginner friendly methods, and different variations!
Delicious result as well!
Hello! I am going to use this custard between yellow rum cake layers and add sliced strawberries. I’d like to add rum to this custard, but not thin it out. Do you have a suggestion on how best to add rum to the custard?
Hey Karen, I cook the custard in a thicker consistency than needed. Then, add the alcohol once you take it out of the heat. Give it a good stir and let it cool completely before using. Hope this helps.