Techniques & tips

How to make vanilla pastry cream

Make smooth vanilla pastry cream with egg yolks and cornstarch. Learn to temper, cook and cool it so it holds as a filling.

  1. Measure and prepare the vanilla

    Split vanilla pod, knife and bowls of yolks, sugar and starch.

    Weigh the milk, egg yolks, sugar and cornstarch according to the recipe. Split the vanilla pod lengthwise and scrape out the seeds.

  2. Heat the milk

    Saucepan with a vanilla pod in the milk and steam above it.

    Heat the milk with the vanilla seeds and pod until it just starts to simmer. Remove the pod before tempering.

  3. Whisk the yolk mixture

    Whisk in a bowl of yolks as sugar and starch are added.

    Mix the sugar and cornstarch. Immediately whisk them into the yolks until smooth, reaching the edges of the bowl.

  4. Temper with hot milk

    A thin stream of hot milk goes into the yolk mixture as it is whisked.

    Slowly whisk a little of the hot milk into the yolk mixture in a thin stream. Pour it all back into the saucepan.

  5. Bring to a boil while whisking

    The whisk reaches the base of the pan as bubbles break the surface of the custard.

    Cook over medium heat, whisking constantly across the base and into the corners. Once thick bubbles break the surface, boil briefly as directed by the recipe to cook the cornstarch.

    Tip: Use a heavy-based pan and lower the heat if the cream thickens unevenly.

  6. Cool promptly

    A shallow container of pastry cream sits in an ice bath.

    Transfer the custard immediately to a clean, shallow container. Cool it over an ice bath, then cover the surface directly with food-safe wrap. Refrigerate at about 4°C (39°F) as soon as it has cooled.

  7. Whisk smooth before using

    A whisk lifts a smooth, thick ribbon of chilled pastry cream.

    Briefly whisk the thoroughly chilled pastry cream by hand until smooth enough to spread or pipe. Keep it refrigerated until needed.

Why pastry cream needs to boil

Starch gives pastry cream its body as it heats in the milk. Keep whisking through the first bubbles and follow the cooking time in the pastry cream formula. An egg custard sauce without starch is heated gently until it coats the back of a spoon.

If the cream is uneven

Whisk along the base and into the corners as the cream thickens. Strain it while warm if it has small lumps. If the bottom scorches, pour off the unburnt cream without scraping the pan. If the chilled cream is too loose, check the amount of starch and the cooking time.

Choose a filling cream

Use pastry cream as it is for tartlets. Fold in whipped cream following the crème légère formula for a softer, airier layer.

Foundation recipes

Here you'll find classic base recipes for this topic. They are intended as a starting point and can be adapted to suit different tastes, uses and desired results.

Firm vanilla pastry creamThis is Bagargänget’s starch-thickened base in a small batch. It holds its shape better than crème anglaise.

Firm vanilla pastry cream

About 390–410 g

Ingredients

  • 250 g whole milk
  • 60 g egg yolks
  • 60 g caster sugar
  • 25 g cornflour (cornstarch)
  • ¼ vanilla pod
  • 15 g unsalted butter

Method

  1. Heat the milk with the split pod and seeds. Whisk the yolks, sugar and cornflour until lump-free. Take out the pod.
  2. Whisk about half the milk into the egg mixture and return it to the pan. Bring to a boil while whisking firmly along the base. Let it bubble gently for about a minute while whisking.
  3. Take off the heat and stir in the butter. Spread in a shallow container and cover in contact with the surface. Cool promptly. Beat briefly until smooth once cold.

Temperature: Bring the cream to a clear boil so the starch can thicken.

Texture to look for: Glossy and pipeable when cold. It should hold a soft peak without flowing.

Safety and storage: Cool promptly, cover and refrigerate at about 4°C. Best within two days.

What can you use it for?

In custard buns and Danish pastries
The starch helps the cream stay in the well while baking. Follow the pastry recipe’s assembly steps.
In princess cake and crisp shells
Cold cream can be piped or spread in an even, stable layer. Fill crisp shells close to serving.
For diplomat or mousseline
Fold in cream for lightness or whip in butter for a richer, firmer cream. Anglaise works better as a pouring sauce.

Variations

  • Steep a strip of orange zest with the vanilla and remove before boiling.
  • Replace some vanilla with a little cardamom and strain the milk before tempering.
Chocolate pastry creamStarch-thickened chocolate custard for éclairs, cake and tart shells.

Chocolate pastry cream

About 450 g

Ingredients

  • 300 g whole milk
  • 55 g egg yolks
  • 45 g caster sugar
  • 24 g cornstarch
  • 65 g dark chocolate, 64–70%

Method

  1. Whisk yolks, sugar and starch. Gradually whisk in hot milk.
  2. Return to the pan and let the cream bubble gently for about a minute while whisking. Pour over chopped chocolate and stir until glossy.
  3. Cool quickly in a shallow dish with wrap against the surface. Stir smooth before use.

Temperature: Cook the starch before adding chocolate.

Texture to look for: Firm but spreadable when cold.

Safety and storage: Cool promptly. Cover, chill at about 4°C and use within 2 days for best quality.

What can you use it for?

Éclairs
Pipe chilled cream into cooled, dry shells.
Cake filling
Layer between chocolate sponges. It is denser than mousse.

Variations

  • Omit chocolate and infuse the milk with citrus zest or coffee for a softer custard. Strain before cooking.
Crème légèreLight pastry cream with whipped cream, best for same-day desserts.

Crème légère

About 400 g

Ingredients

  • 250 g cold, firm pastry cream
  • 150 g heavy cream, 35–40% fat

Method

  1. Whisk chilled pastry cream smooth. Whip the cream to soft, stable peaks.
  2. Stir a third of the cream into the custard to lighten it, then gently fold in the rest.

Temperature: Use both components chilled.

Texture to look for: Airy and spoonable, with less stability than diplomat cream.

Safety and storage: Cool promptly. Cover, chill at about 4°C and use within 2 days for best quality.

What can you use it for?

Dessert glasses
Layer with strawberries and crumbs shortly before serving.
Pastries
Fill low pastries for same-day service. Use diplomat cream for tall, sliceable cakes.

Try it with

Back to baking school

Foundation recipe

Buy us a fika

Enjoy what we do? Treat us to a fika!

Curious about our other projects?

We build more than recipes. Discover what we’re working on at Lightball Labs.

Explore Lightball Labs (opens in a new tab)