Pastry cream, also known as crème pâtissière, is one of the most versatile and essential components in baking. This smooth, velvety custard is used to fill éclairs, cream puffs, fruit tarts, mille-feuille, donuts, cakes, and countless other desserts. While the ingredient list is simple, achieving a perfectly silky pastry cream requires a few professional techniques that make all the difference.
The “secret” to exceptional pastry cream lies in balancing richness with stability. Using both cornstarch and egg yolks creates a thick, creamy texture that holds its shape while remaining luxuriously smooth. Heating the milk gently, tempering the eggs carefully, and cooking the custard until it reaches the proper consistency ensures a lump-free result every time.
Another professional trick is adding butter after cooking. This gives the cream an incredibly glossy finish and an extra layer of richness. High-quality vanilla bean or pure vanilla extract also elevates the flavor, making homemade pastry cream far superior to store-bought alternatives.
Whether you’re preparing elegant French pastries or simple homemade desserts, this foolproof pastry cream recipe delivers bakery-quality results every time.
Why You’ll Love This Recipe
Ultra smooth and creamy texture
Rich vanilla flavor
Perfect consistency for piping
Easy to prepare with simple ingredients
Great for cakes, pastries, donuts, and tarts
Can be made ahead of time
Freezes better than many custards
Ingredients
2 cups (480ml) whole milk
½ cup (100g) granulated sugar
4 large egg yolks
¼ cup (30g) cornstarch
2 tablespoons unsalted butter
2 teaspoons pure vanilla extract (or seeds from 1 vanilla bean)
Pinch of salt
Instructions
Step 1: Heat the Milk
In a medium saucepan, combine the milk and half of the sugar.
Heat over medium until steaming but not boiling.
Step 2: Whisk the Egg Mixture
In a separate bowl, whisk together:
Egg yolks
Remaining sugar
Cornstarch
Salt
Whisk until the mixture becomes pale and smooth.
Step 3: Temper the Eggs
Slowly pour the hot milk into the egg mixture while whisking constantly.
Add only a small amount at first to gradually raise the temperature of the eggs and prevent scrambling.
Step 4: Cook the Custard
Pour everything back into the saucepan.
Cook over medium heat while whisking continuously.
After several minutes, the mixture will begin to thicken.
Continue cooking for another 1–2 minutes after it reaches a boil to fully activate the cornstarch.
Step 5: Finish
Remove from the heat.
Stir in:
Butter
Vanilla extract
Whisk until completely smooth.
Step 6: Chill
Transfer the pastry cream to a clean bowl.
Press plastic wrap directly onto the surface to prevent a skin from forming.
Refrigerate for at least 3 hours before using.
The Secret Tips for Perfect Pastry Cream
1. Use Whole Milk
The higher fat content creates a richer, creamier custard.
2. Whisk Constantly
Continuous whisking prevents lumps and scorching.
3. Cook Until It Boils
Cornstarch only reaches its full thickening power after boiling briefly.
4. Add Butter Last
Butter creates a silky texture and glossy finish.
5. Strain for Extra Smoothness
For professional-quality pastry cream, pour it through a fine-mesh sieve after cooking to remove any tiny lumps.
6. Chill Completely
Cold pastry cream thickens further and becomes perfect for filling pastries.
Delicious Flavor Variations
Chocolate Pastry Cream
Stir in 4 ounces (115g) chopped dark chocolate while the cream is still hot.
Coffee Pastry Cream
Add 2 teaspoons instant espresso powder to the hot milk.
Lemon Pastry Cream
Mix in 2 teaspoons fresh lemon zest and 1 tablespoon lemon juice after cooking.
Orange Pastry Cream
Add orange zest for a bright citrus flavor.
Almond Pastry Cream
Replace the vanilla with 1 teaspoon almond extract.
Coconut Pastry Cream
Substitute half of the milk with full-fat coconut milk.
Ways to Use Pastry Cream
Éclairs
Cream puffs
Fruit tarts
Mille-feuille
Vanilla slice
Boston cream pie
Donuts
Danish pastries
Layer cakes
Cupcakes
Napoleons
Croissants
Puff pastry desserts
Trifles
Fresh fruit parfaits
Storage
Store pastry cream in an airtight container with plastic wrap touching the surface.
Refrigerator: Up to 4 days
Freezer: Up to 1 month (texture may soften slightly after thawing)
Whisk well after thawing to restore its creamy consistency.
Nutritional Information (Approximate Per Serving)
Calories: 150
Protein: 4g
Carbohydrates: 18g
Fat: 7g
Saturated Fat: 3g
Cholesterol: 95mg
Sodium: 55mg
Sugar: 13g
Frequently Asked Questions
Why did my pastry cream turn lumpy?
It was likely cooked over heat that was too high or not whisked continuously. Passing it through a fine-mesh sieve while still warm can help smooth out minor lumps.
Can I make it ahead of time?
Yes. Pastry cream is ideal for preparing 1–3 days in advance and keeps well when properly chilled.
Can I use vanilla bean instead of extract?
Absolutely. Vanilla bean seeds provide a deeper, more authentic flavor and are commonly used in professional pastry kitchens.
Why is my pastry cream too runny?
It may not have been cooked long enough after reaching a boil, or the cornstarch measurement may have been inaccurate.
Can I use it for piping?
Yes. Once thoroughly chilled, pastry cream is firm enough to pipe into éclairs, cream puffs, donuts, and other pastries.
Final Thoughts
Mastering homemade pastry cream opens the door to countless classic desserts. With its silky texture, rich vanilla flavor, and foolproof method, this recipe produces a luxurious filling that’s worthy of any bakery display. By following the simple techniques—especially tempering the eggs, boiling briefly, and chilling properly—you’ll enjoy a perfectly smooth pastry cream every single time. Whether you’re filling delicate pastries or layering elegant cakes, this versatile recipe is one you’ll come back to again and again.