How to make pastry cream
Pastry cream, also called crème pâtissière, is a classic thick custard used to fill éclairs, cream puffs, fruit tarts, layer cakes, and pastries.
This guide explains how to make pastry cream with a smooth texture, rich vanilla flavor, and the stability needed for professional-looking desserts.
The method is simple, but timing and temperature matter.
A few small technique choices determine whether you get a silky custard or a lumpy one.
What pastry cream is and why it works
Pastry cream is a stovetop custard made from milk, egg yolks, sugar, starch, and flavoring.
Egg yolks provide richness and structure, while cornstarch or flour thickens the mixture enough to hold its shape after chilling.
Unlike pourable custards such as crème anglaise, pastry cream is designed to be firm enough for piping and layering.
That texture makes it a foundational component in French patisserie and a practical filling for home baking.
Ingredients you need
Most pastry cream recipes use pantry staples, but each ingredient plays a specific role.
- Milk: Whole milk gives the best balance of flavor and body.
- Egg yolks: Add color, richness, and emulsification.
- Sugar: Sweetens the custard and helps protect the yolks from curdling.
- Cornstarch: Thickens the custard quickly and gives it a clean set.
- Butter: Stirred in at the end for gloss and a smoother mouthfeel.
- Vanilla: Vanilla bean, vanilla bean paste, or pure vanilla extract adds the classic flavor.
- Salt: Small amounts sharpen sweetness and depth.
Some bakers use a blend of cornstarch and flour.
Cornstarch gives a lighter, more stable finish, while flour can create a slightly heavier texture.
For a classic vanilla pastry cream, cornstarch is the more common choice.
How to make pastry cream step by step
1. Heat the milk
Warm the milk in a saucepan until it is steaming and just below a simmer.
If using a vanilla bean, split it, scrape out the seeds, and add both the seeds and pod to the milk while it heats.
Steeping the vanilla in warm milk builds a deeper, rounder flavor.
2. Whisk the yolks, sugar, and starch
In a separate bowl, whisk the egg yolks, sugar, cornstarch, and salt until the mixture looks smooth and slightly pale.
This step helps disperse the starch evenly and reduces the risk of lumps later.
3. Temper the eggs
Slowly pour a small amount of hot milk into the yolk mixture while whisking constantly.
This tempers the eggs, raising their temperature gradually so they do not scramble.
Once the bowl is warmed through, whisk in the remaining milk.
4. Cook until thickened
Return the mixture to the saucepan and cook over medium heat, whisking constantly.
The pastry cream will thicken as it heats and begin to bubble.
Keep cooking for about 30 to 60 seconds after it starts bubbling so the starch fully activates and the custard loses any raw starch taste.
5. Finish with butter and vanilla
Remove the saucepan from the heat.
If using extract or vanilla paste, stir it in now.
Add the butter while the custard is still hot and whisk until smooth and glossy.
6. Strain and chill
For the smoothest result, press the pastry cream through a fine-mesh sieve into a clean bowl.
Cover the surface directly with plastic wrap to prevent a skin from forming, then chill until cold and set.
Texture, thickness, and doneness cues
One of the most important parts of learning how to make pastry cream is recognizing the right texture at the stove.
It should go from thin to pudding-like in a matter of seconds once it reaches full heat.
- Too thin: It has not cooked long enough for the starch to fully hydrate.
- Perfectly thick: It mounds on a whisk and leaves a trail in the pan when stirred.
- Too thick or grainy: It may have overcooked or heated too aggressively.
A properly made pastry cream should look smooth, hold its shape, and feel creamy rather than gelatinous.
It will continue to firm up as it cools in the refrigerator.
Common mistakes to avoid
Pastry cream is forgiving once you understand the process, but several common errors can affect the final result.
- Overheating the milk: Boiling milk can make tempering more difficult and may slightly dull the flavor.
- Skipping tempering: Dumping hot milk straight into the yolks can scramble the eggs.
- Underwhisking: Uneven whisking leads to lumps and scorched starch.
- Stopping too early: If the custard never reaches a bubble, the starch may not fully activate.
- Cooling uncovered: Air exposure creates a skin that affects texture when you stir it later.
How to fix pastry cream if it goes wrong
Even experienced bakers occasionally need a rescue plan.
A few problems can usually be corrected quickly.
It is lumpy
Pass it through a fine-mesh sieve while it is still warm.
If the lumps are small and caused by starch, this often solves the issue completely.
It is too thin
Return it to the stove and cook for a little longer, whisking constantly.
If it never thickened, the starch ratio may have been too low.
It tastes eggy
This can happen if the custard was overcooked or the eggs were heated too quickly.
Vanilla, butter, and proper straining help improve the flavor, but prevention is best.
It has a skin on top
Stir the cream until smooth or press it through a sieve.
To prevent this, always cover pastry cream directly with plastic wrap during chilling.
Flavor variations and uses
Once you know how to make pastry cream, you can adapt it for many desserts.
The base recipe is a versatile canvas for different flavorings and applications.
- Chocolate pastry cream: Whisk in chopped chocolate while the custard is hot.
- Coffee pastry cream: Steep espresso powder or instant coffee in the milk.
- Citrus pastry cream: Add orange or lemon zest to the milk and strain before tempering.
- Rum or liqueur pastry cream: Stir in a small amount after cooking for a more adult dessert filling.
Use pastry cream in fruit tarts, mille-feuille, profiteroles, Boston cream pie, and cake fillings.
It also pairs well with fresh berries, shortcrust pastry, choux pastry, and sponge cake.
Storage and food safety
Because pastry cream contains dairy and eggs, proper cooling and refrigeration matter.
Chill it quickly after cooking and store it in an airtight container in the refrigerator.
- Refrigerator life: Usually up to 3 days for best quality.
- Freezing: Not ideal, since freezing can break the texture.
- Before use: Whisk or stir chilled pastry cream to restore smoothness.
If you are making pastry cream ahead for assembly, prepare it the day before and keep it cold until needed.
For piping, let it soften slightly at room temperature only long enough to become workable.
Why pastry cream remains a bakery essential
Pastry cream remains one of the most useful custards in baking because it combines flavor, structure, and adaptability.
Mastering the basics gives you a reliable filling for classic French pastries and a base you can flavor in countless ways.
With a few careful steps—temper the eggs, whisk constantly, cook until bubbling, and chill properly—you can make pastry cream that is smooth, stable, and ready for almost any dessert.