How To Make Pastry Cream

updated Aug 27, 2023
How To Make Pastry Cream

You don't have to be a pro baker to make pastry cream from scratch. This recipe comes together quickly and can be used as a filling in so many desserts.

Makes2 1/2 cups

Jump to Recipe
We independently select these products—if you buy from one of our links, we may earn a commission. All prices were accurate at the time of publishing.
pastry cream in a bowl with a whisk
Credit: Photo: Alex Lepe; Food Styling: Rachel Perlmutter

As a professional baker turned recipe developer, I’ve made many batches of pastry cream — one of the most important (and versatile) components in a baker’s kitchen. While this rich and creamy custard can be eaten by itself with a spoon, pastry cream is typically used as a filling in a wide array of desserts. Here, I’ll walk you through how to make your own batch of pastry cream at home with ease. 

What Is Pastry Cream?

Pastry cream is a thick and creamy custard that comes together on the stovetop. It’s typically made by whisking warmed milk into a mixture containing egg yolks, sugar, salt, and a starch like flour or cornstarch, and cooking it on the stove until thickened. 

Traditionally flavored with vanilla or chocolate, pastry cream has many uses. It can be piped into cream puffs and éclairs, or used as a filling in donuts (hello, Boston cream donuts!), tarts, and cakes (like Boston cream pie). You can even use pastry cream as a base for other spin-off fillings, such as crème légère, which is made by combining it with fluffy whipped cream, or crème mousseline, an ultra-rich frosting made from whipping softened butter with pastry cream. 

Credit: Photo: Alex Lepe; Food Styling: Rachel Perlmutter

How to Make Pastry Cream

  • Whisk all of the ingredients together in a pot. Most recipes for pastry cream call for slowly whisking hot milk into an egg-sugar mixture to prevent curdling, which is a process known as tempering. Because this recipe doesn’t require you to infuse the milk first with vanilla to extract its flavor, you can simply whisk the eggs with the dry ingredients until a smooth paste forms, then add in the cold milk. 
  • Cook the mixture on the stove. Set the pot over medium heat and whisk the mixture until it begins to thicken. As soon as it begins to bubble, whisk for a full minute, then remove from the heat. Add butter and vanilla, and whisk until smooth. 
  • Strain and chill the pastry cream. To ensure that your pastry cream is silky-smooth, push it through a fine-mesh strainer into a bowl. Immediately press a sheet of plastic wrap directly onto its surface to prevent a skin from forming, and refrigerate until chilled. When it’s ready to use, whisk until smooth. 

If You’re Making Pastry Cream, a Few Tips 

  • Play around with adding flavors. The sky’s the limit when it comes to flavoring pastry cream. To do this, you can either infuse the ingredient of your choice with the milk first and let it cool completely (if you don’t want to wait for it to cool, you can temper the milk into the egg mixture), or whisk it in off-heat into the thickened pastry cream. Spices, teas, coffee, chopped chocolate, peanut butter, Nutella, citrus zest and juice, and herbs are all great options.  
  • Don’t stop whisking when it’s on the stove. While it may be tempting to pause every now and then, continuous whisking will prevent a pastry cream that’s lumpy or unevenly cooked on the bottom. 

How To Make Pastry Cream

You don't have to be a pro baker to make pastry cream from scratch. This recipe comes together quickly and can be used as a filling in so many desserts.

Makes 2 1/2 cups

Nutritional Info

Ingredients

  • 2 tablespoons

    unsalted butter

  • 4

    large egg yolks

  • 1/2 cup

    granulated sugar

  • 3 tablespoons

    cornstarch

  • 1/4 teaspoon

    kosher salt

  • 1 3/4 cups

    whole milk

  • 2 teaspoons

    vanilla extract, or 1 teaspoon vanilla bean paste

Instructions

  1. Place a fine-mesh strainer over a medium bowl. Cut 2 tablespoons unsalted butter into small cubes.

  2. Place 4 large egg yolks, 1/2 cup granulated sugar, 3 tablespoons cornstarch, and 1/4 teaspoon kosher salt in a medium saucepan. Whisk until no dry bits remain and the mixture is well combined. Add 1 3/4 cups whole milk and whisk to combine.

  3. Cook over medium heat, whisking constantly, until the mixture begins to thicken, about 8 minutes. Once it thickens, continue to whisk, pausing every few seconds to check for bubbles. As soon as it begins to bubble, continue to whisk constantly for 1 minute. Remove the saucepan from the heat.

  4. Add the butter and 2 teaspoons vanilla extract or 1 teaspoon vanilla bean paste. Whisk until the butter is melted. Scrape into the strainer and push through the strainer with a flexible spatula. Scrape the pastry cream on the underside of the strainer into the bowl. Discard the contents of the strainer.

  5. Press a sheet of plastic wrap directly onto the surface of the pastry cream to prevent a skin from forming. Refrigerate until cold, at least 3 hours and up to 3 days.