Vanilla Pastry Cream, or crème pâtissière, is the creamy custard filling that you find in many pastries and desserts. It is a staple recipe that every baker should have in their repertoire, and I'm about to show you how to master it!

If you've ever asked yourself "What was that delicious, creamy filling inside the dessert I just ate?", there is a good chance it was some kind of pastry cream! Crème pâtissière is a classic recipe that many pastry chefs will learn on the first day of pastry school because it is such an important component in so many French pastries and desserts.
Some people are intimidated by the idea of making their own pastry cream, but it's actually a fairly easy recipe as long as you know the technique, and I'm about to show you step-by-step how to make it flawlessly so it works every time!
Some of the most popular recipes on this site include pastry cream. It's the filling inside my delicious Custard Donuts, and it is used in my Vanilla Custard Cake as both a cake filling and to flavor the custard buttercream.
Jump to:
Why You'll Love This Recipe
- It's the perfect filling for so many desserts
- Easy to make with ingredients you already have
- Super versatile and can be used in so many ways
Ingredients
Pastry Cream is made with basic household ingredients you probably already have in your fridge.
- Milk - You need to use full-fat milk (whole milk) for pastry cream for both the flavor and texture to be right.
- Sugar - Use regular white sugar.
- Egg Yolks - Just the yolks, not whole eggs. The egg yolks are what give custard that wonderful, rich flavor. Use large eggs if you can.
- Vanilla - You can use vanilla extract or vanilla bean paste for convenience, or for a more authentic crème pâtissière, just a whole vanilla bean pod. Avoid using vanilla essence as it doesn't give the same real vanilla flavor as a vanilla pod or high-quality extract or will.
- Cornstarch - This helps to thicken the mixture to make a nice thick custard, rather than a runny sauce.
- Unsalted Butter - This is optional to make an enriched pastry cream, you can leave it out if you prefer.
See the recipe card for quantities and full recipe.
How to Make Pastry Cream
Egg Mixture
Whisk the egg yolks together with the sugar and cornstarch until light and thick.
Heat the Milk
Pour the milk and vanilla into a medium saucepan and slowly warm over medium heat until it is scalding hot.
This means that you can see steam rising and tiny bubbles appearing on the surface.
Do not let it boil.
Temper the Eggs
Drizzle a small amount of the hot milk into the egg yolk mixture and mix to combine, keep drizzling the remaining milk in a slow, steady stream and mixing it in until all the milk has been added.
Add Back to the Pan
Pour the entire mixture back into the saucepan and continue the cooking process.
Cook Until Thick
Keep heating the mixture, whisking constantly until it reaches boiling point. Boil for 1-2 minutes or until you see thick bubbles bursting on the surface and the pastry cream has thickened.
You don't need to whisk vigorously, just keep the pastry cream moving so it doesn't burn on the bottom of the pan.
Test
Once the pastry cream is ready, it should be thick enough that it can coat the back of a spoon and you can draw a line in it without it filling back in.
Strain
Remove the pastry cream from the heat and pass it through a fine-mesh sieve to remove any lumps.
Enrich
If you want an enriched pastry cream, add the optional butter chunks to the hot pastry cream, stirring until they have completely melted into the custard.
This step is optional.
If you are adding any additional ingredients such as chocolate or nut butter, add them now.
Let Cool
Pour the custard into a medium bowl and cover with plastic wrap. Make sure that the middle piece of plastic wrap is touching the surface of the pastry cream, this is to prevent a skin from forming.
Once it reaches room temperature you and transfer it to the refrigerator.
Tip
For best results, I always recommend weighing your ingredients with a kitchen scale rather than using cup measures - this is much more accurate and will give you more consistent results.
Video
This video tutorial walks you through exactly how to make this vanilla pastry cream recipe, step by step.
For more recipe videos - subscribe to my Youtube channel.
How to Thicken Pastry Cream
This creme patisserie recipe is a standard thickness and a creamy texture, which is perfect for filling fruit tarts, donuts, choux buns etc.
You can adjust the consistency of this custard recipe by altering how much cornstarch is added. For a thicker pastry cream, add a little more cornstarch, or for a looser pastry cream, add less. I wouldn't adjust by more than 2 teaspoon either way.
Different Kinds of Custard Filling
Creme Patissiere - This recipe is for classic creme patisserie, it is thick, pipeable and creamy, often used as a filling for pastries, I use it for my Custard Donuts.
Creme Anglaise - Literal translation = 'English Cream', this is the thin, pourable custard that is often poured over desserts in the UK, it is made by leaving out the cornstarch and flour. I use it in my Floating Island Dessert recipe.
Crème Mousseline - Creme Mousseline is pastry cream folded with whipped butter to create a thick, stable end result that is often used in entremets and layer cakes. I use it in my Fraisier Cake.
Creme Diplomat - This is pastry cream folded into whipped cream to make a lighter, thicker filling. It is often used as a cake filling for gateaux. It is also the filling for these delicious cream-filled donuts.
Custard Buttercream - Kind of a form of creme mousseline, German Buttercream is basically pastry cream mixed into whipped butter with added sweetener. I use it in my Custard Cake.
How to Use Pastry Cream
Here are just some of the ways you can use homemade pastry cream in some of your favorite desserts:
Tarts - A very popular base for fruit tarts, pipe it into a pastry shell and top with fresh fruit and a glaze, just like my Strawberry Custard Tarts.
Cakes - Use as a filling or in the frosting for layer cakes. It also makes a great custard cupcake filling.
Pies - Perfect for cream pies like banana cream pie
Donuts - Use as the filling for Boston Cream Donuts or mix with whipped cream for Bavarian cream donuts.
Pastries - Use this for all kinds of pastries such as profiteroles, cream puffs, eclairs, or anything made with pastry!
How to Flavor Pastry Cream
One of the best things about pastry cream is how versatile it is. Classic vanilla pastry cream is amazing on its own, but you can really add any flavor you like to crème pâtissière to make endless flavor combinations!
Here are a few ideas:
Pistachio Pastry Cream - Stir in some pistachio paste to make Pistachio Pastry Cream.
Chocolate Pastry Cream - Add some finely chopped chocolate at the same time as the butter for a chocolate version.
Lemon Pastry Cream - Add some lemon zest (or any citrus zest) into the milk as it is warming up for a zesty cream.
Coffee Pastry Cream - Dissolve some espresso powder in a dash of hot water and add at the same time as the vanilla.
Spices - Add spices such as cinnamon or ginger to your pastry cream for a warm, fall-time version.
To Add Liquids
It's best to add liquids such as alcohol, purees etc into the hot milk mixture as you are warming it.
To Add Dry Ingredients
For dry ingredients, you can usually add them along with the sugar and egg yolks, in small quantities. For something like chocolate, chop it finely and add at the end, along with the butter.
To Add Pastes
To add anything with a paste-like texture such as peanut butter, add it at the very end, as the pastry cream is cooling.
Storage
Store your pastry cream in the refrigerator, covered in plastic wrap (touching the surface of the pastry cream). It will be good like this for up to 5 days.
I actually like to make my pastry cream 24 hours ahead of time as the vanilla flavor develops overnight and becomes richer.
FAQs
You can use heavy cream to make pastry cream, it will make a thicker custard - it is often used if custard is going to be baked like in a custard pie or creme brulee.
The butter is optional, but I like to add it as it adds some richness and extra flavor to the pastry cream. You can leave it out entirely according to your personal taste.
No, it isn't, pastry cream is a custard that is made with egg. Pudding is typically made without egg.
The pastry cream is passed through a fine mesh strainer just in case there are any little lumps of egg that may have gotten stuck to the bottom of the pan while the custard was cooking. This ensures your end result is perfectly smooth and free of lumps.
Yes and no. Pastry cream is a type of custard. A custard is basically defined as 'a cooked mixture made of eggs and milk or cream and usually having a thick, creamy consistency.
But not all custards are pastry cream, for example, technically a baked cheesecake is also custard.
Creme Patissiere - This recipe is for classic creme patisserie, it is thick, pipeable and creamy, often used as a filling for pastries, I use it for my Custard Donuts.
Creme Anglaise - Literal translation = 'English Cream', this is the thin, pourable custard that is often poured over desserts in the UK, it is made by leaving out the cornstarch and flour. I use it in my Floating Island Dessert recipe.
Crème Mousseline - Creme Mousseline is pastry cream folded with whipped butter to create a thick, stable end result that is often used in entremets and layer cakes. I use it in my Fraisier Cake.
Creme Diplomat - This is pastry cream folded into whipped cream to make a lighter, thicker filling. It is often used as a cake filling for gateaux.
Custard Buttercream - Kind of a form of creme mousseline, German Buttercream is basically pastry cream mixed into whipped butter with added sweetener. I use it in my Custard Cake.
Pastry Cream Recipes
Here are some of my dessert recipes that use pastry cream.
Recipe
Creme Patissiere (Pastry Cream)
Ingredients
- 2 cups Whole Milk 495g / 480ml
- ¾ stick Unsalted Butter 85g
- 2 teaspoon Vanilla Bean Paste or vanilla extract
- ½ cup Granulated Sugar 100g
- 5 Large Egg Yolks
- ¼ cup Cornstarch 30g
Instructions
- Whisk the egg yolks together with the sugar and cornstarch.½ cup Granulated Sugar, 5 Large Egg Yolks, ¼ cup Cornstarch
- Heat the milk and vanilla in a saucepan over medium heat until it is scalding hot.This means that there is steam rising from it and you can see tiny bubbles starting to appear on the surface. Do not let it boil.2 cups Whole Milk, 2 teaspoon Vanilla Bean Paste
- When it begins to get warm, drizzle a small amount of hot milk into the egg yolk mixture and whisk, then add a little more, repeat until everything is together in the bowl, then pour the whole mixture back into the saucepan. It's important to do this slowly and gradually so you don't scramble the eggs.
- Keep heating the mixture, whisking constantly until it begins to boil. Boil for 1-2 minutes until you see thick bubbles bursting on the surface. It should be thick enough that you can draw a line in it on the back of a spoon - if it isn't, keep boiling until you reach that stage. Remove from the heat.
- Pass the pastry cream through a sieve into a bowl to make sure there are no lumps.
- Whisk in the butter one small piece at a time, making sure it melts into the mixture completely before adding the next piece.¾ stick Unsalted Butter
- Cover with plastic wrap (make sure the plastic wrap is touching the surface of the pastry cream to prevent a skin from forming) and refrigerate for at least two hours. I like to make this the day before and let it sit overnight, but it can be used after 2 hours.
VIDEO
Notes
It really helps and I love hearing all your feedback!
Vicky
Hello,
I really want to make your custard cake for my dad's birthday, but it conflicts with one of my exams. I was wondering how far in advance the custard can be made and kept in the fridge? Please let me know. Thanks!
ROSEANN P FOX
I'm making a sheet cake with the custard between the top and bottom layer of the cake, will 1 batch of the cream be enough? how many batches do you suggest for a sheet cake?
Diana
Hi
I'm a bit confused with the sugar contents. It say to add 2 tablespoon of sugar to the flour mixture but then underneath it listed as 1/2 a cup. How much sugar goes into the flour mixture and how much goes to the milk mixture? Thanks
Kaylee
The custard was tasty until I added all the butter in. I feel like the butter ruined it unfortunately.
Rachael Inzer
Very easy recipe to follow. I let the custard sit over night and just tasted it, ommmmmmg it’s amazing. Will definitely make again.
Colton
I'm going down the rabbit hole of making perfect doughnuts at home at the moment. I was just looking for a custard recipe, came across yours, and realized your instructions are the only ones I've seen online to include the amount of ingredients used in each step. Seriously it does not make any sense whatsoever that this isn't common practice on cooking websites I'll check out your recipes more from now on!
LavDev
Oh thank you for this recipe. I made this for my daughter's 6th birthday as she loves a good Vanilla pudding and she wanted a vanilla cake. If only I could share the pic. She and her friends LOVED the cake and the pastry inside. So a million thanks!
Kelly
We are in Canada, by corn flour do you mean corn starch the thickening agent?
Jules
Hi Kelly, Yes! Sorry, someone pointed out to me recently that a lot of North Americans are confused when I write 'corn flour' so I'm trying to write corn starch from now on and slowly changing my older recipes!
Lucy
I left the custard in refrigerator over night and the top part hardened but the rest is still liquid. I followed the directions and used the right ingredients, don't know what happened.