Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Pastry Cream From Scratch: Classic Recipe

Pastry cream is a thick cooked custard of milk, egg yolks, sugar, starch and butter, used to fill tarts, éclairs, cream puffs and cakes. This version makes about 2 cups (480 ml), enough to fill a 9-inch tart shell or about 12 éclairs. Read the whole method before you start, because the stirring never stops once the milk hits the heat.

Pastry Cream Ingredients

  • 2 cups (480 ml) whole milk
  • 1/2 cup (100 g) granulated sugar
  • 1/4 cup (30 g) cornstarch
  • 4 large egg yolks (about 70 g)
  • 1/4 tsp fine salt
  • 2 tbsp (28 g) unsalted butter, softened
  • 1 tsp vanilla extract, or the seeds of 1/2 vanilla bean

Whole milk gives the richest body; 2% works but sets a little softer. Cornstarch is the thickener here, so do not cut it. If you want a firmer cream for a standing tart, add 1 extra tablespoon of cornstarch and expect a slightly stiffer set.

Cook the Custard Base

Prep the yolk mixture

  1. Whisk the sugar, cornstarch and salt together in a medium bowl until no lumps remain, about 30 seconds.
  2. Add the egg yolks and whisk to a smooth, pale paste, about 1 minute. It should look like thick honey. Set aside near the stove.
  3. Pour the milk into a medium saucepan. If using a vanilla bean, split it, scrape the seeds into the milk and drop in the pod. Warm over medium heat until small bubbles ring the edge and steam rises, 4 to 6 minutes. Do not let it boil hard.

Temper and thicken

  1. Slowly ladle about 1/2 cup (120 ml) of the hot milk into the yolk mixture while whisking constantly. This warms the yolks so they do not scramble. Add a second ladleful the same way.
  2. Pour the warmed yolk mixture back into the saucepan and switch to a spatula or wooden spoon.
  3. Cook over medium-low heat, stirring constantly and scraping the bottom and corners, for 3 to 5 minutes. The cream is done when it thickens to the consistency of pudding, large bubbles plop slowly at the surface, and a finger drawn across the back of the spoon leaves a clean line that holds. If you use a thermometer, aim for 170F to 180F (77C to 82C); egg dishes should reach 160F (71C) for safety.
  4. Pull the pan off the heat and stir in the butter and vanilla extract (discard the vanilla pod). Stir until the butter melts, about 1 minute.

If you see any cooked egg specks, push the cream through a fine-mesh sieve into a shallow bowl. Do this while it is still hot.

Cool and Set the Cream

  1. Pour the hot cream into a wide, shallow dish so it cools fast. Press a piece of plastic wrap directly onto the surface to stop a skin forming.
  2. Let it sit at room temperature for 10 minutes, then refrigerate until cold and firm, at least 2 hours and up to 3 days.
  3. Before using, stir with a spatula until smooth. If it looks grainy or stiff, whisk in 1 to 2 tablespoons of cold milk or a spoonful of softly whipped cream to loosen it.

Pastry cream thickens further as it chills. Fill tarts and éclairs while it is cold but still spreadable, and keep filled pastries refrigerated.

Swaps and Flavor Changes

SwapRatioWhat changes
Cornstarch to flourUse 1/3 cup (40 g) all-purpose flour for the 1/4 cup cornstarchSofter set, faint flour taste; cook 1 to 2 minutes longer
Whole milk to half-and-halfSame volumeRicher and thicker; reduce butter to 1 tbsp
Dairy-free milkSame volumeOat and soy set closest to dairy; nut milks set looser
Vanilla to citrus1 tbsp grated zest steeped in the milkAdds bright flavor; strain before tempering
Vanilla to chocolate2 oz (56 g) chopped dark chocolate stirred in off heatDarker, firmer cream; reduce sugar to 1/3 cup

Do not swap in whole eggs for the yolks; the cream turns pale, thin and less rich. Raw eggs and raw flour carry a risk of foodborne illness, so cook the cream fully and do not taste the uncooked yolk mixture.

Storage and Safety

  • Refrigerate in a sealed container with plastic pressed to the surface: up to 3 days.
  • Freeze in a sealed container for up to 1 month; thaw overnight in the fridge and stir well, as it may weep slightly.
  • Do not leave pastry cream or filled pastries at room temperature longer than 2 hours (1 hour above 90F/32C).
  • If the cream smells sour, looks watery or has separated after storage, throw it out rather than tasting it.

Filled tarts and éclairs keep in the fridge for about 1 to 2 days before the pastry softens. Add fruit or whipped cream at serving time so it does not water down the cream.

Pastry Cream for Tarts and Cakes

For a 9-inch tart shell, spoon in about 1 1/2 cups of cold cream and smooth the top with an offset spatula. For éclairs, pipe through a small tip into the cooled shell from the end, or split and fill with a spoon. A layer of melted chocolate brushed inside the tart shell before filling helps keep the crust crisp for a day. If the cream is too loose to hold a swirl, chill it another 30 minutes rather than adding more starch.

For a lighter filling, fold 1/2 cup (120 ml) softly whipped cream into 1 cup of cold pastry cream just before using; use it the same day. For a larger batch, double the recipe and cook in a wider pan so it still thickens evenly, stirring for 5 to 7 minutes.

Read next