Easy Appetizers

Simple appetizers, snacks and home cooking answers

Pastry Cream Filler Recipe (Crème Pâtissière)

· 6 min read · Baking and Desserts

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions

Pastry cream filler, also known as crème pâtissière, is the classic thick and silky custard used in éclairs, cream puffs, fruit tarts, and layered cakes. Unlike a loose pudding, this filling is cooked with cornstarch and egg yolks to a stable, pipeable consistency that holds its shape without being heavy. It’s a fundamental French pastry skill that comes together in about 15 minutes of active work, and once you master the technique, you’ll never reach for a store-bought tub again.

Ingredients

  • 2 cups (480 ml) whole milk
  • 1/2 cup (100 g) granulated sugar, divided
  • 1/4 cup (30 g) cornstarch
  • 4 large egg yolks (about 60 g)
  • 1 teaspoon vanilla extract or 1 vanilla bean (split and scraped)
  • 2 tablespoons (30 g) unsalted butter, cold, cut into small pieces
  • 1/4 teaspoon salt

Instructions

  1. Prepare the milk: In a medium saucepan, combine the milk, half of the sugar (1/4 cup / 50 g), and the vanilla (if using a bean, add the pod and scraped seeds; if using extract, add it later). Heat over medium heat until steaming and small bubbles form around the edges—do not boil. Remove from heat and discard the vanilla bean pod if used.
  2. Mix the yolks and cornstarch: In a medium bowl, whisk the egg yolks with the remaining 1/4 cup (50 g) sugar until pale and thick, about 1 minute. Add the cornstarch and salt, and whisk until smooth and no dry lumps remain. The mixture will be thick and paste-like.
  3. Temper the yolks: Slowly pour about 1/4 cup of the hot milk into the yolk mixture while whisking constantly. Then, with the whisk still moving, pour in the remaining hot milk in a slow, steady stream. This gradually raises the egg temperature without scrambling them.
  4. Cook the custard: Pour the entire mixture back into the saucepan. Place over medium heat and whisk constantly (scraping the bottom and corners) for 3 to 5 minutes. The mixture will thin out, then suddenly thicken to a pudding-like consistency. When it reaches a gentle boil and visibly bubbles once or twice, cook for 1 more minute to activate the cornstarch and eliminate any raw flour taste. It should be thick enough to coat the back of a spoon and hold a line when you run a finger through it.
  5. Finish with butter: Remove the pan from heat. If using vanilla extract, stir it in now. Add the cold butter pieces and whisk until fully melted and incorporated. This enriches the texture and adds shine.
  6. Chill quickly: Immediately transfer the pastry cream to a shallow bowl or a baking dish. Press a piece of plastic wrap directly onto the surface to prevent a skin from forming. Refrigerate until completely cold, at least 2 hours, but ideally 4 hours or overnight. The cream will firm up further as it chills.
  7. Use or store: Once cold, whisk briefly to loosen it before piping or spreading. Use within 3 days.

Tips

  • Substitutions: For a lighter version, use 2% milk, but avoid skim—it will be less rich. Replace the butter with an equal amount of neutral oil (like canola) for a dairy-free option, but the texture will be slightly less silky. You can also swap the vanilla for 1 tablespoon of rum, brandy, or orange liqueur, added after cooking.
  • Common mistake—lumps: If you get lumps, it’s usually from not whisking enough during the tempering step or from cooking too high. To fix, press the finished cream through a fine-mesh sieve. To prevent, always whisk constantly and pour the hot milk slowly.
  • Too thin or too thick: If your cream is runny, you undercooked it—return it to the pan and cook for another minute while whisking. If it’s too stiff, you overcooked it or used too much cornstarch; whisk in 1–2 tablespoons of warm milk to loosen it.
  • Storage: Pastry cream must be kept cold. Do not leave it at room temperature for more than 2 hours total, as it contains eggs and dairy. It will keep in the fridge for up to 3 days in an airtight container with plastic wrap on the surface.

Serving Suggestions

Use pastry cream as a filling for cream puffs, éclairs, or profiteroles—pipe it directly into the cooled shells. For a classic French fruit tart, spread a layer over a baked tart shell and top with fresh berries, kiwi, or sliced peaches. It also works beautifully between sponge cake layers, as a base for Boston cream pie, or swirled into a trifle with pound cake and fruit. For a quick dessert, spoon it into small glasses and top with whipped cream and shaved chocolate.

Variations

  • Chocolate pastry cream: Add 4 ounces (115 g) of chopped dark or semi-sweet chocolate to the hot cream after you remove it from the heat. Stir until melted and smooth, then proceed with the butter.
  • Lemon or orange: Add 1 tablespoon of finely grated lemon or orange zest to the milk before heating. Remove the zest before tempering, or leave it in for a more intense flavor.
  • Coffee: Dissolve 1 tablespoon of instant espresso powder in the hot milk along with the sugar. This adds a deep, roasted flavor without extra liquid.
  • Coconut: Replace half of the milk with unsweetened coconut milk. Toast some shredded coconut and fold it in after cooking for texture.

Storage and Reheating

Store pastry cream in the refrigerator for up to 3 days. Keep it in a container with the plastic wrap pressed directly onto the surface to prevent a skin. Do not freeze—the cornstarch will break down and the texture will become watery and grainy upon thawing. To reuse cold pastry cream, whisk it vigorously for 30 seconds to restore its smoothness. If you need it warmer (for a warm tart filling), gently reheat it in a saucepan over low heat, stirring constantly, until just warm—do not boil or it will curdle. It will thicken again as it cools. Always discard any pastry cream that has been left out for more than 2 hours, or that has an off smell or discoloration.

Frequently Asked Questions

Can I use cornstarch instead of flour? Yes, this recipe uses cornstarch, which gives a clean, glossy texture and is naturally gluten-free. If you prefer flour, use 1/3 cup (40 g) all-purpose flour instead, but cook for an extra minute to avoid a raw flour taste.

Why is my pastry cream lumpy? Lumps usually form because the hot milk was added too quickly to the yolks, causing them to cook unevenly, or because you stopped whisking during cooking. To fix, strain it through a fine sieve. To avoid, whisk constantly and add the milk slowly.

Can I make it ahead of time? Absolutely. Pastry cream is actually better made a day ahead because it gives the flavors time to meld. Just keep it chilled and whisk before using.

How do I know when it’s done? The cream should thicken to a pudding-like consistency and just reach a boil. It will look glossy and hold a line when you drag a spoon through it. If it’s still thin after 5 minutes, keep cooking—it will thicken suddenly.

Can I use this in a cake that sits at room temperature? No. Because it contains eggs and dairy, it must be refrigerated. If you’re making a cake that will be out for a party, keep it chilled until serving and return leftovers to the fridge within 2 hours.

Why does my cream have a skin? That’s from evaporation. Always press plastic wrap directly onto the surface while chilling. If a skin forms, you can whisk it back in—it’s harmless but will change the texture slightly.