This vanilla pastry cream (crème pâtissière) recipe is the silky custard used so many classic French pastries. It’s a versatile filling that’s perfect for eclairs, cream puffs, tarts, and layer cakes.
I’m including step-by-step photos tips I learned in pastry school and a video in this guide, so it turns out smooth every time!

Would you like to save this?
We had a whole class on pastry cream when I was a student at Le Cordon Bleu. We then made it in many other lessons. We practiced it so many times until it became second nature.
What is pastry cream?
Pastry cream is a foundational French custard. It’s delicious as is and is a delicious part of many desserts.
It comes together in minutes and uses simple ingredients: milk, egg yolks, sugar, cornstarch, flour and vanilla. You cook it on the stovetop then chill it before using.
How to use pastry cream
You can use pastry cream as the filling for eclairs or cream puffs using my choux pastry recipe! It’s also delicious in tarts, cakes, cupcakes (use it to fill these Boston cream pie cupcakes) and more.
Pastry cream is the base for other classic fillings. Add gelatin and whipped cream for diplomat cream, add butter for crème mousseline, or add Italian meringue for crème chiboust.
We’re making classic vanilla pastry cream today. It’s also easy to customize with other flavors like chocolate, coffee, or citrus.
For another bakery-style recipe I learned in pastry school, be sure to try my apple tart recipe!
Jump to:
- What is pastry cream?
- How to use pastry cream
- Why You’ll Love This Recipe
- Ingredient Notes
- Substitutions and Variations
- How to make pastry cream (step by Step by Step Instructions)
- Why is my pastry cream lumpy
- Expert Tips for Perfect Pastry Cream
- Where to use pastry cream
- Recipe FAQs
- More Recipes You’ll Love
- Pastry Cream Recipe
Why You’ll Love This Recipe
- Simple ingredients: You only need milk, egg yolks, sugar, cornstarch, flour, and vanilla.
- So versatile: Fill eclairs, cream puffs, tarts, and cakes, or use it as the base for other fillings.
- Silky smooth: It’s thick, luscious and delicious.
- Easy to customize: Make classic vanilla, or stir in chocolate, citrus or lots of other flavors.

Ingredient Notes
Here are some useful notes about the ingredients. You likely already have most of the ingredients!
- Whole milk gives the best flavor and texture.
- Egg yolks add richness and help thicken the cream. Save the whites for meringues or macarons.
- Granulated sugar: You can modify the amount of sugar you add depending on your preference or depending on what you’re using the pastry cream for.
- All-purpose flour and cornstarch work together to thicken the cream. Cook it until it bubbles so that you activate both and cook out any starchy flavor.
- Vanilla: You can use half a vanilla bean, vanilla bean paste or vanilla extract. If you’re using vanilla bean, add it with the milk in the beginning to infuse the flavor.
See recipe card below for a full list of ingredients and measurements.
Substitutions and Variations
- Don’t have a vanilla bean? Add some vanilla bean paste or pure vanilla extract at the end off the heat.
- Want to make gluten free pastry cream? Swap in extra corn starch in place of the flour.
- Out of whole milk? Whole milk gives the best rich, creamy pastry cream, but you can swap in 2%. It won’t be as rich, but it’ll work. I don’t recommend using skim milk.
- Want to make a boozy version? Stir in a splash of rum, Grand Marnier, or Kirsch at the end.
- Add a pinch of salt to balance the sweetness.
How to make pastry cream (step by Step by Step Instructions)

Step 1: Bring milk to a simmer over medium heat. If using a vanilla bean, scrape out the seeds of half a bean. Add the seeds and the scraped pod to the the milk.
Step 2: While the milk heats up, whisk together the sugar and yolks.
Step 3: Whisk in the cornstarch until the cornstarch has dissolved. Whisk in the flour.
Step 4: Temper the yolks. Once the milk is steaming and small bubbles form around the edge of the pan, whisk about 1/3 of the hot milk into the yolk mixture. Whisk for about 20 seconds, then whisk in another 1/3.

Step 5: Whisk the milk and yolk mixture into the saucepan with the rest of the milk. Scrape the bowl with a spatula.
Step 6: Return the saucepan to medium heat. Whisk nonstop, including the sides and corners of the pan. Once it starts to thicken and bubble, whisk vigorously for another minute so the flour and cornstarch cook through.
Once thickened, remove from heat. Remove vanilla bean pod or whisk in vanilla extract or vanilla bean paste if using.
Step 7: Pour pastry cream into a large heat proof bowl or a clean baking sheet. Press plastic wrap directly on the surface. Refrigerate for at least 45 minutes or until cooled completely.
Step 8: Whisk before using. If cooled on a baking sheet, use a scraper or spatula to scrape the cream out and into a bowl. Whisk pastry cream for about 20-30 seconds before using.
Why is my pastry cream lumpy
Lumpy pastry cream usually comes from clumps of flour and cornstarch or from eggs that cook too fast. The good news is that it’s easy to prevent. Follow these tips for a smooth cream:
- Mix the flour and cornstarch into the yolks and sugar until smooth before adding any milk.
- Pour the warm milk in slowly while whisking the yolks. This tempers the eggs gently so they don’t scramble.
- Cook over medium heat. Higher heat can make the eggs set too quickly.
- Whisk constantly, especially along the sides and corners of the pan, where the cream can stick and cook faster.
- Boil for 1 minute once it thickens so the flour and cornstarch fully cook.
Expert Tips for Perfect Pastry Cream
- Measure out all your ingredients before beginning– you want the yolk mixture ready to be tempered when your milk reaches a simmer.
- Read over the recipe before you start-pastry cream moves fast once the milk comes to a simmer, so you’ll want to know what comes next before you begin.
- Take out all your equipment before starting-that way you won’t need to stop and search for something when you’re in the middle of making the recipe.
- Whisk the sugar into the yolks as soon as you add it-don’t leave the sugar sitting on the yolks because it can cook the yolks.
- Press plastic wrap directly onto the surface. This stops a skin from forming and keeps condensation from dripping back in. Extra moisture can water down the cream and help bacteria grow, so cool it quickly and refrigerate.
Where to use pastry cream
Pastry cream goes with so many desserts. If you just made a batch or have leftovers, here are my favorite ways to use it:
- Éclairs: Pastry cream is a classic filling for choux pastry. Pipe about 3 tablespoons (45 g) into each baked 4-inch éclair. One batch fills about 14.
- Cream puffs: Fill each baked 2-inch puff with about 1 1/2 tablespoons (25 g) of pastry cream, then top with chantilly if you like. One batch fills about 28.
- Fruit tarts: Spoon it into a baked tart shell and top with fresh fruit. You can also use it in place of the mascarpone cream in my mascarpone blueberry tart.
- Cakes: Spread it between cake layers as a filling. Pipe a ring of buttercream around the edge first to hold it in.
- Cupcakes and donuts: Use it as a filling. Pipe it into the center of cupcakes or donuts with a piping bag and a small round tip.
Turn Pastry Cream Into Other Fillings
Once you’ve mastered pastry cream, you can use it as the base for other classic fillings:
- Diplomat cream: Fold in whipped cream for a lighter, fluffier filling.
- Crème mousseline: Whip in butter for a richer, silkier cream.
- Crème chiboust: Fold in Italian meringue for a filling that holds its shape.
Recipe FAQs
Pastry cream is a type of custard since it’s a mix of milk/cream, sugar and egg.
Yes. Swap the egg yolks for the same weight of whole egg. For 80 g of yolks, lightly whisk 2 large eggs and weigh out 80 g. Then make the recipe as written. Whole eggs make a slightly lighter, less rich cream, so for the silkiest texture I stick with yolks.
Lumps usually come from clumped flour and cornstarch or eggs cooking too fast. Whisk constantly over medium heat, and boil for 30 seconds to 1 minute once it thickens. If you still have a few lumps, press the cream through a fine mesh sieve. See my tips above for more ways to prevent lumps.
There are many ways you can flavor pastry cream. You can infuse the milk with tea, coffee or spices. You can also make chocolate pastry cream by adding some cocoa powder to the starch/egg mixture (adjust the ratios since you’d be adding extra dry). Add extracts, alcohol or zests after taking off the heat and before cooling.
No. Pastry cream can’t be left out. It is made with egg yolks and milk. It will go bad if it’s left out at room temperature.
Yes. Pastry cream can be made in advance. Store it in the refrigerator. Whisk it until smooth before using.
Store pastry cream in an airtight container with plastic wrap pressed against the surface in the refrigerator for up to 3 days. Pastry cream doesn’t freeze well.

More Recipes You’ll Love
Did you try this recipe or any other recipe on my website? Please leave a 🌟star rating below and let me know how you enjoyed it in the 📝 comments below.
Don’t forget to tag me on Instagram, Facebook, and Pinterest!

Pastry Cream Recipe
Ingredients
- 2 cups (488 g) whole milk
- ½ (2 g) vanilla bean or 1½ teaspoon pure vanilla extract (7 g) or vanilla paste (9 g) add at the end of cooking
- 4 (80 g) large egg yolks
- ½ cup (100 g) sugar
- 3 tablespoons (24 g) cornstarch spooned and leveled or use a scale
- 1½ tablespoons (11 g) all-purpose flour spooned and leveled or use a scale
Instructions
- If using a vanilla bean: slice it in half lengthwise. Scrape out the seeds with the tip of your knife, then add the seeds and the scraped pod to a medium saucepan with the milk into a saucepan. Save the other half of the vanilla bean for another recipe. If you're using vanilla extract or vanilla bean paste: stir it in after you take the pastry cream off the heat.
- Heat the milk over medium heat and bring it to a simmer.
- While the milk heats up, whisk the egg yolks in a large heatproof bowl until smooth. Add the sugar to the egg yolks and immediately whisk well (for about 30 seconds) until the mixture is smooth and has thickened and lightened in color. (Important: do not leave the sugar and egg yolks in a bowl without whisking them immediately.)
- Whisk the cornstarch into the yolks for about 20 seconds until the corn starch has dissolved. Whisk in the flour for another 20 seconds until completely incorporated.
- Once the milk is steaming and small bubbles form around the edge of the pan, slowly pour about 1/3 of the hot milk into the yolk mixture, whisking constantly as you pour. Whisk for about 20 seconds, then slowly pour in another 1/3, whisking constantly.
- Next, slowly pour the yolk mixture into the saucepan with the remaining milk, whisking constantly as you pour. Use a spatula to scrape out the bowl.
- Return the saucepan to medium heat. Whisk constantly, including the sides and corners of the pan. Once it thickens and bubbles, whisk vigorously for another 30 seconds to 1 minute so the flour and cornstarch cook through. If it starts to stick or lump, lower the heat slightly. Remove from heat. Remove the vanilla bean or stir in vanilla bean paste or vanilla extract if using.
- Use a clean spatula to pour the pastry cream into a clean baking sheet or large heat proof mixing bowl. Immediately press plastic wrap on contact with the surface of the pastry cream. Place it in the fridge for a couple of hours to cool completely.
- Once cooled, whisk the pastry cream for about 30 seconds until smooth again then use as needed!
Notes
Nutrition
Please note that nutritional values are created by an online calculator and should only be used as an estimate.






Leave a Reply