Vanilla Bean Pastry Cream




Pastry cream, or crème pâtissière, is a rich, custard-like filling ideal for tarts, éclairs, and cupcakes. It thickens through the combined action of starch and egg proteins, with cornstarch ensuring a smooth, stable texture. Egg yolks contribute a delicate umami flavor and a vibrant yellow hue but must be cooked gently to prevent graininess.
As pastry cream cooks, a few key transformations occur. Starch granules absorb water and swell, thickening the mixture as they gelatinize between 144–194°F (62–90°C). Meanwhile, egg yolk proteins gradually unfold and coagulate, adding structure without scrambling—provided the heat is controlled. One crucial consideration is alpha-amylase, an enzyme in egg yolks that can break down starch, causing the cream to thin if not properly deactivated. The mixture must be heated past 176°F (80°C) to prevent this, ensuring enzyme inactivation and full starch gelatinization for a stable, smooth consistency.
You don’t need a thermometer to properly make a stable pastry cream; just follow the visual cues in my recipe below.
Step by step:
{Coming soon!}
Video
Read this before you begin
Measure by weight, if possible.
Measuring by weight is the best way for you to replicate my recipes. I develop recipes using ingredients (even liquids) measured in grams, which is why you see them listed first in the recipe cards. For measurements under 5 grams, I will typically only list the volumetric measurements (teaspoons, etc.), as most home scales are not precise for such small weights.
In most cases, I have converted grams to volumetric measurements (aka US customary units) for bakers who prefer this method. However, the measurements are not as precise and may have awkward proportions. The recipes should still work, but for the ultimate precision, try to use weight.
This is the OXO scale I use daily. I also purchased this budget version of a good scale, which I keep at my Mom’s house for baking. If you’re interested in other tools I use for my baking, I’ve compiled a list here.
Use room temperature ingredients.
All my ingredients should be used at room temperature, or 65-75 °F/18-24 °C. I will always indicate if you need something outside this range. If no details are given, room temperature is the default.
Pay attention to the ingredient descriptions.
I try not to be brand-specific, but I will always note an interesting result from a type of ingredient, be it negative or positive.
A specific note regarding salt: I use Diamond Crystal Kosher salt for everything on this site except for frostings. In frostings, you want the salt to dissolve more easily, and kosher salt tends to leave granules behind. If you substitute table salt (more finely granulated) for recipes that list kosher salt, you must use half the volume indicated in my recipes.
Substitutions are hard.
That’s not to say they’re impossible, though. For instance, in many cases, substituting reduced fat for whole milk (and thus reducing fat by less than 2%) will probably be fine. Using applesauce for oil or even Greek yogurt when sour cream is listed will definitely alter the fat content and adversely affect the crumb texture and density of the cake.
I experiment for hours to get these recipes to work for us. First, try to make them as written or use one of my tested substitutions, which I often dedicate a section to. Then, if necessary, you can make modifications afterward. Even then I would be pretty cautious, as substitutions are one of the hardest things to investigate in recipe development.
Read all the recipe instructions before beginning.
I’m in the “Pre-read the Chapter before Class Lecture” club... and I invite you to join! Baking new recipes can be intimidating, so let’s set you up for success. I want you to think about timeframes. Most fillings and frostings can be made ahead of time, and give you an extra day for mental space. Also, as you become a more proficient baker, you can anticipate and recognize steps. (“Oh, this has a meringue step, so I’ll need an extra clean bowl…” etc.) Ensure you go down the ingredient list and have everything at the right temperature.
Vanilla Bean Pastry Cream




- 120 g (6 large) egg yolks
- 28 g (3 tablespoons) cornstarch
- 100 g (½ cup) white sugar
- 484 g (2 cups) whole milk
- 42 g (3 tablespoons) unsalted butter
- 10 g (2 teaspoons) vanilla bean paste (or extract)
- pinch of salt
- 120 g (6 large) egg yolks
- 28 g (3 tablespoons) cornstarch
- 100 g (½ cup) white sugar
- 484 g (2 cups) whole milk
- 42 g (3 tablespoons) unsalted butter
- 10 g (2 teaspoons) vanilla bean paste (or extract)
- pinch of salt
- Set up your workspace.
Prepare a timer and set it for 2 minutes. Get a container for the finished pastry cream. Use a shallow dish (e.g., a sheet tray or pie plate) for faster cooling. Set aside a strainer if you plan on straining your pastry cream (for a super velvety texture). - Combine the egg yolks + cornstarch.
Place a large bowl on a towel to prevent slipping. Whisk together egg yolks and cornstarch until smooth. - Heat milk + sugar.
In a medium saucepan, whisk together sugar and milk. Heat over medium-low until bubbles form at the edges; watch carefully and do not boil. - Temper the egg yolks.
Once the milk is heated, pour a splash into the egg yolk bowl, whisking the mixture the entire time. This gradually increases the eggs' temperature and prevents the eggs from getting lumpy. Add another larger splash, whisking, and repeat this a few more times before adding all the heated milk. Whisk until everything is combined, then pour the mixture into the saucepan. - Heat pastry cream until thick.
Heat over medium-low, whisking constantly (especially the corners) until the pastry cream has thickened. Once you see the first steam bubble pop, start your timer and whisk for two more minutes.
Remove from heat and whisk in butter, vanilla, and salt. - Cool the pastry cream.
Strain the pastry cream using a spatula for extra smoothness, or scrape directly into your shallow dish.
Cover with plastic wrap lightly misted with cooking oil spray by pressing it onto the surface; this prevents a skin from forming. Let cool to room temperature or refrigerate for later.
Before using, you can whisk (either by hand or with a hand blender) until the pastry cream is smooth.
