Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Pastry Cream Recipe: Silky, Stable, Foolproof

Pastry cream, or crème pâtissière, is the thick vanilla custard that fills éclairs, tarts, and cream puffs. This version works because it balances enough starch to set reliably with enough yolk and butter to stay silky, and it uses a full boil to eliminate the raw-flour taste that plagues rushed recipes. Follow the temperatures and timings and you get a glossy cream that pipes cleanly and holds its shape.

Ingredients

  • 480 ml (2 cups) whole milk
  • 1 vanilla bean, split and scraped, or 2 teaspoons vanilla extract
  • 100 g (½ cup) granulated sugar
  • 25 g (3 tablespoons) cornstarch
  • 4 large egg yolks (about 72 g)
  • ¼ teaspoon fine salt
  • 28 g (2 tablespoons) unsalted butter, cold, cut into pieces

Instructions

  1. Infuse the milk. In a medium saucepan over medium heat, warm the milk with the vanilla bean seeds and pod (or vanilla extract added later). Heat until small bubbles ring the edge and steam rises, about 3–4 minutes; do not let it boil hard. Remove from heat and let sit 5 minutes if using a bean.
  2. Whisk the dry ingredients. In a medium bowl, whisk the sugar, cornstarch, and salt together until no lumps remain. This step prevents the starch from clumping when it meets the yolks.
  3. Add the yolks. Whisk the egg yolks into the sugar mixture until smooth and slightly pale, about 30 seconds. The mixture will be thick.
  4. Temper the yolks. While whisking constantly, slowly pour about 120 ml (½ cup) of the hot milk into the yolk mixture. Add another 120 ml in the same way. This raises the temperature gradually so the yolks do not scramble.
  5. Combine and cook. Pour the tempered yolk mixture back into the saucepan with the remaining milk. Cook over medium heat, whisking constantly and scraping the bottom and corners, until the mixture thickens and comes to a full boil. It should bubble steadily for 60–90 seconds; this cooks out the starch. Total cooking time is usually 5–7 minutes from the moment it goes back on the heat.
  6. Finish. Remove from heat and whisk in the cold butter until melted and glossy. If using vanilla extract, stir it in now. The cream should coat the back of a spoon and hold a line drawn through it.
  7. Cool and store. Pour the pastry cream into a shallow container, press plastic wrap directly onto the surface to prevent a skin, and refrigerate until cold, at least 2 hours. It will thicken further as it cools.

Tips

  • Weigh your cornstarch. A packed tablespoon can add several grams, making the cream gluey. Use a scale or spoon it lightly into the measuring spoon and level it.
  • Do not stop whisking during the boil. The mixture scorches easily at the bottom. Use a whisk with a flat edge or a silicone spatula to reach the corners of the pan.
  • If you see lumps, strain. Pour the hot cream through a fine-mesh sieve before chilling. This removes any cooked egg bits and ensures a smooth texture.
  • Cool quickly. Spread the cream in a shallow dish rather than leaving it in the saucepan; it cools faster and spends less time in the temperature danger zone (4–60°C / 40–140°F).

Serving Suggestions

Use chilled pastry cream to fill éclairs, cream puffs, or tart shells. Pipe it into split pastries just before serving so they stay crisp. It also makes a fine layer in trifles or a topping for fresh fruit. For a lighter texture, fold in an equal volume of softly whipped cream just before using; this is called crème légère and is best used the same day.

Variations

  • Chocolate pastry cream: After removing from heat, whisk in 85 g (3 oz) finely chopped dark chocolate (60–70% cocoa) until melted. Increase sugar to 120 g (⅔ cup) if you like a sweeter cream.
  • Coffee: Steep 2 tablespoons coarsely crushed coffee beans in the hot milk for 10 minutes, then strain before tempering the yolks.
  • Citrus: Add 1 tablespoon finely grated lemon or orange zest to the milk during infusion.
  • Alcohol: Stir in 1 tablespoon rum, kirsch, or Grand Marnier after cooking; do not add before boiling or the alcohol will cook off.

Storage and Reheating

Store pastry cream in an airtight container with plastic wrap pressed directly on the surface. It keeps in the refrigerator for up to 3 days. Do not freeze it; the cornstarch breaks down and the cream becomes watery. Pastry cream is served cold and should not be reheated. If you must loosen chilled cream for piping, stir it vigorously with a spatula or give it a few seconds with an electric mixer; do not warm it over heat. Discard any cream that has been left at room temperature for more than 2 hours.

Frequently Asked Questions

Why did my pastry cream turn lumpy?

The yolks were added to the hot milk too quickly or the heat was too high. If lumps appear, strain the hot cream through a fine-mesh sieve immediately. To prevent it, add the hot milk to the yolks in a slow stream while whisking constantly, and keep the heat at medium.

Can I use cornstarch instead of flour?

Yes, this recipe uses cornstarch because it gives a glossy, stable set. If you substitute flour, use 30 g (3½ tablespoons) and cook for an extra minute; the texture will be slightly less silky.

How do I know when it is cooked enough?

The cream must come to a full boil and bubble steadily for 60–90 seconds. If you pull it off the heat as soon as it thickens, it will taste starchy and may thin out after chilling.

Can I make pastry cream ahead of time?

Yes. Make it up to 3 days ahead and keep it refrigerated with a film of plastic wrap on the surface. Stir before using. Do not freeze.

Why is my pastry cream grainy?

Graininess usually means the yolks scrambled from heat. Strain the cream to remove cooked egg bits; the result will be smoother but slightly less rich. Next time, temper the yolks more slowly and keep the heat moderate.

Is it safe to eat raw pastry cream?

No. This recipe contains egg yolks and must be cooked to a full boil and then chilled. Do not taste the mixture before it has boiled, and do not eat raw dough or batter made with raw flour or eggs.

Read next