How to make perfectly smooth and creamy vanilla Pastry Cream Recipe at home! Today’s recipe includes a step-by-step how-to video at the bottom of the post! Learn how to make perfect pastry cream every time! Great for Cream Puffs, Eclairs, and Boston Cream Pie!
Today’s tutorial is a continuation of my “Kitchen Tips” series. Past classic staple kitchen tips include my Chocolate Ganache recipe and Whipped Cream recipe, among others!
Today we are tackling a surprisingly simple homemade Pastry Cream recipe!
Fellow from-scratch bakers (and aspiring from-scratch bakers!), how many times have you been excited to follow a recipe for “homemade” cream puffs or eclairs only to find that the recipe called for an instant pudding mix for the filling in lieu of the real deal? If you’re here today, I’m guessing box mixes just don’t cut it for you any more than they do for me, and you’re up for the challenge (it’s not much of a challenge, I promise!) of making your own pastry cream.
The thing is, real homemade pastry cream isn’t even very difficult to make! As with most homemade recipes, there is some technique that you need to know know, but the recipe itself calls for just a handful of common ingredients and takes less than half an hour to prepare (not counting the idle time spent chilling).
Today I’ll be walking you through all the tips and sharing everything you need to know to make my favorite version of this recipe. Ready?!
How to Make Pastry Cream
- Heat together cream, milk, sugar, a split vanilla bean, and salt in a saucepan. Stir frequently until the mixture comes to a simmer then remove from heat and allow to cool for at least 10 minutes.
- In a separate bowl, whisk together room temperature egg yolks and additional sugar, then add the cornstarch and whisk again until slightly thickened.
- Once your cream has cooled, slowly drizzle a small amount of the cream mixture into the egg mixture while whisking. Add the remainder of your cream mixture to the egg mixture, pouring in a slow stream while whisking, until the two mixtures are completely combined.
- Transfer your cream/egg mixture back to the saucepan and return to the stovetop. Cook over medium heat, whisking constantly, until thickened.
- Remove from heat and pour through a fine mesh strainer. Add butter, one piece at a time, whisking after each addition until butter is completely melted and incorporated. (see photos above)
- Cover with a piece of plastic wrap directly in contact with the surface of the pastry cream to prevent a skin from forming. Allow to cool to room temperature then transfer to the refrigerator and allow to chill for several hours before using.
A Word on Tempering
In step 3 above, I mention tempering, or slowly adding a small amount of the hot cream mixture to the egg mixture. This allows us to slowly increase the temperature of the eggs without cooking them.
Tempering is so important, and while it’s easy to do, so many people will make the mistake of skipping this step or failing to respect how critical it is for perfect pastry cream. To temper my eggs, I often scoop a 1/3 cup measuring cup of the cream mixture and whisk my egg mixture quickly and continuously while I add the cream in a slow stream. Once this is done, you can slowly, while still whisking, drizzle the remaining cream mixture into your egg mixture. When everything is combined, you’ll then return this mixture back to the saucepan.
It involves a bit of back and forth with your pastry cream (from the saucepan, into the bowl, back to the saucepan…), but it’s important to follow this method. Add the cream all at once or try to pour your egg mixture into your cream instead and you’ll actually end up cooking your eggs. Instead of silky smooth pastry cream, you’ll have scrambled egg soup. At this moment I can’t really think of anything less appetizing, so temper those eggs!
Are Pastry Cream and Custard the Same?
Pastry cream and custard are similar, but they are not quite the same. The main difference is that custard is actually less firm. Custard is typically thickened only with eggs (which you might recall is how we made the custard for our Creme Brulee), while pastry cream is thickened with a starch. In this recipe, we are using 3 tablespoons of cornstarch to thicken our pastry cream. Vanilla pudding is also similar and in the same family, but not quite the same thing.
How Long Can I Keep Pastry Cream?
Pastry cream will keep in the refrigerator for up to five days. Pastry cream should always be kept chilled and should be stored in an airtight container.
Enjoy!
And if you’d like to try out this pastry cream recipe but aren’t sure what to do with it, stay tuned for Wednesday’s recipe! I’ll be sharing how to make my grandmother’s choux pastry recipe and how to make the best homemade cream puffs. This recipe would also work great inside my homemade donuts or eclairs!.
Be sure to check out the Vanilla Pastry Cream video at the bottom of the recipe! If you enjoy watching, make sure to subscribe to my YouTube channel where I’ve already uploaded over 100 recipe videos that you can watch for free!

Vanilla Pastry Cream Recipe
Ingredients
- Recommended tool: Fine mesh strainer
- 1 cup milk 236ml
- 1 cup heavy cream 236ml
- 1/3 cup (67g) + 3 Tablespoons granulated sugar divided
- 1 vanilla bean¹ split in half lengthwise
- ¼ teaspoon salt
- 5 large egg yolks room temperature
- 3 Tablespoons cornstarch
- 4 Tablespoons unsalted butter softened and cut into 4 pieces
Instructions
- Combine cream, milk, 1/3 cup (67g) sugar, vanilla bean, and salt in a medium-sized heavy bottomed saucepan. Place on stovetop over medium heat. Stir frequently until sugar is dissolved and mixture comes to a simmer. Remove from heat and allow to cool for 10 minutes (stir occasionally).
- Meanwhile, in a separate large bowl, whisk together egg yolks and 3 Tablespoons of sugar. Whisk vigorously for about 15 seconds, until sugar is beginning to dissolve.
- Sprinkle cornstarch over egg/sugar mixture and whisk until combined and slightly thickened.
- Once your cream mixture has cooled, slowly drizzle about 1/3 cup of the cream mixture into the egg mixture while whisking constantly (this will temper your eggs and gradually adding the heated cream will prevent them from cooking!). Slowly, while still whisking, drizzle in the remainder of your cream mixture until the cream and egg mixture are completely combined.
- Pour mixture back into saucepan and return to stovetop over medium heat. Whisk frequently until thickened.
- Remove from heat and pour mixture through a fine mesh strainer into a heatproof bowl (vanilla bean should be caught by the strainer and should be discarded now).
- Whisk in butter, one piece at a time until completely combined. If you didn’t use a vanilla bean, stir in the vanilla extract at this point, too.
- Place a piece of plastic wrap directly in contact with the surface of the pastry cream (to prevent a skin from forming). Allow pastry cream to cool at room temperature for about 30 minutes or until pastry cream is near room temperature, then transfer to the refrigerator to chill for at least 2-4 hours before using.
Notes
Nutrition
This post contains affiliate links, which means that if you purchase anything through these links I will get a small commission at no extra cost to you. Please view the disclosure policy for more information.
Treat yourself to a FREE E-BOOK!
Mildred Douglas
Hi Sam i am enjoying your recipes , keep them coming.
Sugar Spun Run
Thank you so much, Mildred! I am happy that you are enjoying them. 🙂
Zofia
Hey Sam! Can I freeze the pastry cream?? I’m making a half portion of the Boston cream cupcakes but want to make a full portion of the cream if possible and use the rest at a later time?
Thanks!
Sam
Hi Zofia! Unfortunately freezing the pastry cream can alter it’s texture so I wouldn’t recommend it. 🙁
Katie McCarter
Hi Sam,
I found your web page a few months ago and I’ve enjoyed your recipes! You mentioned that this pastry cream would be perfect for a Boston Cream pie but I didnt see a recipe for this. Do you have a Boston cream pie recipe?
Sam
Hi Katie! Unfortunately I do not have a Boston cream pie recipe. I will put it on my list of things to make. 🙂
AJ
Hi!
Can this recipe be made in chocolate as well as vanilla? And if so, any tools as to the best way to make it?
Sam
Hi AJ! I imagine you could melt some chocolate in at the end but haven’t tried it yet myself to advise exactly.
Laxshi
Hi
Can I substitute the eggs with anything else??
Sugar Spun Run
Hi, Laxshi! Unfortunately, there is no substitute that can be used in place of the eggs. You could try my chocolate pudding recipe without the chocolate. 🙂
Pam
This is the best pastry cream ever! Easy to make! Great in cream puffs!
Susan
My pastry cream had a tannish tint to it instead of the brighter yellow. It tasted good and it wasn’t so noticeable once I piped it into the cream puff. Any thoughts?
Sugar Spun Run
Hmm…. that is the first I have heard of that Susan. Did you use whole milk? Did you use vanilla extract or vanilla bean?
Lea
I’m planning to use this for a gender reveal. What amount of food coloring would you suggest? Thanks!
Sam
Hi Lea! I would just add one drop at a time until the desired color is reached. Gel food colorings will give you a more vibrant color and you won’t have to use as much coloring. Keep in mind that if you are using blue food coloring the pastry cream will probably turn it green because it’s yellow to start, so you may need to add quite a lot of food coloring. I hope that helps!
Jane
Can I make the filling a day ahead and store in the refrigerator. Also how many cream puffs will this fill?
Lynn Fry
I would also like to know
Sugar Spun Run
Hello, Lynn! Yes, you can make the pastry cream ahead of time. If stored in an airtight container. it will last about 1 week in the refrigerator. As far as how many cream puffs this will fill is really dependant on the size of your puffs. If you use my cream puff recipe, it will fill approximately 20 puffs. I hope that helps!
Lynn Fry
Awesum thank you! I am planning to flavour the cream with Milo and thereafter fill croissants with it and drape melted Milo and dark chocolate over them to garnish.
Destiny Solis
Hey Sam 🙂 can this be used as a filling for a fruit tart?
Sam
Absolutely! I actually have a fruit tart coming up in the next few weeks that uses this exact pastry cream 🙂
Enjoy!
Destiny Solis
Ok great & that’s good to hear because I’ve yet to find an amazing fruit tart recipe. So excited lol! 😂🙂
Temple Small
Hi. Is there anything else I can use in place of the heavy cream?
Sam
Hi Temple, if you have half and half you can use that as a substitute but you’ll need to use it as a substitute for both the milk and the heavy cream.
Denise
Can it be used as a filling for a layered cake?
Sam
Hi Denise! Yes you can. I recommend using a dam though. 🙂
Kayla
Is this like a Bavarian cream for filled donuts?
Sam
Hi Kayla! It’s not exactly the same, but I think this would work well in donuts. 🙂
Nanyonjo Dorah
thanks for the recipe, can I use it on eclairs say lemon or chocolate eclairs
Sam
You’re very welcome, and absolutely it is perfect for eclairs. Enjoy! 🙂