The Feast

Home cooking recipes for everyday dinners and easy entertaining

Pastry Cream Recipe: Step-by-Step Guide

· 5 min read · Dinners

Pastry cream (crème pâtissière) is the silky, vanilla-scented custard that fills éclairs, fruit tarts, cream puffs, and layer cakes. Making it from scratch takes about 15 minutes of active time and requires only basic ingredients. This guide walks you through the classic stovetop method, with troubleshooting and tips to ensure a lump-free, thick, and stable cream every time.

What You'll Need

  • 2 cups (480 ml) whole milk
  • 1 vanilla bean (or 2 teaspoons vanilla extract)
  • 5 large egg yolks
  • 1/2 cup (100 g) granulated sugar
  • 1/4 cup (30 g) cornstarch
  • 2 tablespoons (30 g) unsalted butter, cut into small pieces
  • Pinch of salt
  • Medium saucepan
  • Whisk
  • Rubber spatula
  • Fine-mesh strainer (optional but helpful)
  • Heatproof bowl
  • Plastic wrap or parchment paper

Step-by-Step

  1. Prepare the milk: Pour the milk into a medium saucepan. If using a vanilla bean, split it lengthwise and scrape the seeds into the milk, then add the pod. If using vanilla extract, wait until the end. Heat the milk over medium heat until it just begins to steam and small bubbles form around the edges—do not let it boil.
  2. Whisk the yolks, sugar, and cornstarch: In a separate heatproof bowl, whisk the egg yolks and sugar together until pale and slightly thickened, about 1 minute. Add the cornstarch and a pinch of salt, and whisk until smooth and no dry lumps remain.
  3. Temper the egg mixture: Slowly pour about one-third of the hot milk into the yolk mixture while whisking constantly. This gradually raises the temperature of the eggs without scrambling them. Then pour the tempered mixture back into the saucepan with the remaining milk, whisking to combine.
  4. Cook the custard: Place the saucepan over medium heat and cook, whisking constantly, until the mixture thickens and comes to a gentle boil. This usually takes 2–4 minutes. Once it bubbles, continue whisking for exactly 1 minute to ensure the cornstarch is fully cooked and the cream is thick enough to hold its shape.
  5. Finish with butter and vanilla: Remove the saucepan from heat. If you used a vanilla bean, fish out the pod (rinse and dry it for another use). Add the butter and vanilla extract (if using) and whisk until the butter is melted and the cream is smooth.
  6. Strain (optional): For an ultra-smooth texture, pour the hot pastry cream through a fine-mesh strainer into a clean bowl. This removes any tiny lumps or bits of cooked egg.
  7. Chill quickly: Press a piece of plastic wrap directly onto the surface of the cream to prevent a skin from forming. Refrigerate for at least 2 hours, or until completely cold. The cream will thicken further as it chills.

Common Mistakes

  • Lumpy cream: Usually caused by adding hot milk too quickly to the yolks, or not whisking constantly while cooking. Temper slowly and keep the whisk moving.
  • Too thin: Not cooking long enough. The cream must reach a boil and stay there for about 1 minute to activate the cornstarch. Also, measure cornstarch correctly—level off the measuring cup.
  • Scrambled eggs: Happens when the milk is too hot or added too fast. Always temper gradually and whisk vigorously.
  • Skin on top: Forgetting to press plastic wrap onto the surface. The skin is harmless but changes texture.
  • Bland flavor: Not enough vanilla or salt. Use a good-quality vanilla and don't skip the salt—it brightens the custard.

Tips

  • Use whole milk for the richest texture; lower-fat milk will produce a thinner cream.
  • If you don't have a vanilla bean, use 2 teaspoons of pure vanilla extract added after cooking—heat can dull its flavor.
  • For a lighter pastry cream, fold in whipped cream after it has chilled. This creates a crème légère, perfect for mousses and layered desserts.
  • Pastry cream can be made up to 3 days ahead. Store in the refrigerator with the plastic wrap pressed on the surface.
  • To re-use a vanilla bean pod, rinse, dry, and bury it in a jar of sugar to make vanilla sugar.
  • If the cream becomes too thick after chilling, whisk in a tablespoon or two of milk to loosen it before using.

Troubleshooting

  • It's lumpy: If lumps appear during cooking, immediately strain the cream through a fine-mesh sieve. If it's already chilled, whisk vigorously or blend briefly with an immersion blender—though this may thin it slightly.
  • It's too thin after chilling: Return the cream to a saucepan over low heat, whisk in a slurry of 1 tablespoon cornstarch mixed with 2 tablespoons cold milk, and cook until thickened again. Cool and re-chill.
  • It tastes like scrambled eggs: Unfortunately, this can't be fixed. The cream is overcooked. Start over, but this time temper more slowly and remove from heat as soon as it boils.
  • It has a skin: Whisk the cream vigorously to reincorporate the skin, or strain it out. For future batches, always press plastic wrap directly on the surface.
  • It's too sweet: Balance with a pinch of salt or a squeeze of lemon juice. You can also reduce the sugar to 1/3 cup next time.

Frequently Asked Questions

Can I use cornstarch instead of flour?

Yes, this recipe uses cornstarch, which gives a cleaner, more stable set and is naturally gluten-free. If you prefer all-purpose flour, use 1/3 cup (45 g) and cook for 2 extra minutes to remove the raw flour taste.

How long does pastry cream last in the fridge?

Properly stored in an airtight container with plastic wrap on the surface, it stays good for up to 3 days. After that, the texture and flavor decline.

Can I freeze pastry cream?

Yes, but the texture may become slightly grainy after thawing. If you freeze it, thaw in the refrigerator overnight and whisk vigorously before use. It's best used in cooked or baked applications after freezing.

What's the difference between pastry cream and custard?

Pastry cream is a specific type of custard that uses cornstarch as a thickener, making it stable enough to hold its shape in pastries. Traditional custard (like crème anglaise) is thinner and often served as a sauce.

Can I make it dairy-free?

Yes, substitute the whole milk with full-fat oat milk or coconut milk. Keep in mind the flavor and set may vary slightly. Use the same amount and follow the same steps.

Why does my pastry cream curdle?

Curdling happens when the eggs get too hot too quickly. Always temper by adding hot milk slowly to the yolks while whisking, and never let the mixture boil aggressively. If it curdles, strain immediately—it may still be usable if the texture is only slightly off.

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions