Pastry cream, also known as crème pâtissière, is one of the most versatile fillings in baking. From cream puffs and éclairs to tarts, cakes, and layered desserts, a smooth pastry cream instantly elevates homemade treats. Once you master the basic technique, creating different flavors becomes easy and fun.
In this guide, you’ll learn how to make six popular pastry cream variations: vanilla, chocolate, lemon, coconut, coffee, and pistachio. Each recipe starts with the same simple method and uses everyday ingredients, making them perfect for both beginner and experienced bakers.
These creamy fillings can be used for cupcakes, donuts, pastries, trifles, and even spooned straight into dessert cups.
Vanilla Pastry Cream
Vanilla pastry cream is the classic base used in countless desserts. It’s rich, smooth, and lightly sweet, making it perfect for cakes, cream puffs, fruit tarts, and mille-feuille.
Ingredients
- 2 cups whole milk
- 1/2 cup granulated sugar
- 4 egg yolks
- 3 tablespoons cornstarch
- 2 tablespoons unsalted butter
- 1 tablespoon vanilla extract
Instructions
Heat milk in a saucepan until steaming but not boiling. In a bowl, whisk sugar, egg yolks, and cornstarch until smooth. Slowly pour the hot milk into the egg mixture while whisking constantly. Return everything to the saucepan and cook over medium heat, stirring continuously until thickened. Remove from heat and stir in butter and vanilla. Cover with plastic wrap directly on the surface and chill before using.
Chocolate Pastry Cream
Chocolate pastry cream adds deep cocoa flavor and a silky texture that pairs beautifully with éclairs, cakes, and layered desserts.
Ingredients
- 2 cups whole milk
- 1/2 cup sugar
- 3 tablespoons cornstarch
- 4 egg yolks
- 1 cup dark chocolate, chopped
- 2 tablespoons cocoa powder
Instructions
Heat milk in a saucepan. Whisk sugar, cocoa powder, egg yolks, and cornstarch in a bowl until smooth. Gradually whisk in hot milk, then return to saucepan. Cook while stirring until thick. Remove from heat and stir in chopped chocolate until melted and smooth. Cover and refrigerate until set.
Lemon Pastry Cream
Bright and refreshing, lemon pastry cream adds citrus freshness to tarts, cakes, and dessert cups.
Ingredients
- 2 cups milk
- 1/2 cup sugar
- 3 tablespoons cornstarch
- 4 egg yolks
- 1/4 cup fresh lemon juice
- 1 tablespoon lemon zest
- 2 tablespoons butter
Instructions
Heat milk in a saucepan. In a bowl, whisk sugar, egg yolks, and cornstarch. Slowly add hot milk while whisking. Return mixture to saucepan and cook until thickened. Remove from heat and stir in lemon juice, zest, and butter. Chill before using.
Coconut Pastry Cream
This tropical variation is rich and lightly sweet, perfect for coconut cakes, cream pies, or layered desserts.
Ingredients
- 1 1/2 cups coconut milk
- 1/2 cup regular milk
- 1/2 cup sugar
- 4 egg yolks
- 3 tablespoons cornstarch
Instructions
Heat coconut milk and regular milk together. Whisk sugar, egg yolks, and cornstarch until smooth. Slowly combine with hot milk, then return to saucepan. Cook while stirring until thick. Chill completely before filling desserts.
Coffee Pastry Cream
Coffee pastry cream is smooth and aromatic, ideal for tiramisu-style desserts, cakes, and pastries.
Ingredients
- 2 cups whole milk
- 1/2 cup strong brewed coffee
- 1/2 cup sugar
- 4 egg yolks
- 3 tablespoons cornstarch
Instructions
Heat milk and coffee together. Whisk sugar, egg yolks, and cornstarch in a bowl. Slowly whisk in hot liquid, then return to saucepan. Cook until thickened. Cover and refrigerate until cold.
Pistachio Pastry Cream
Nutty and elegant, pistachio pastry cream brings color and flavor to luxury desserts like tarts and layered cakes.
Ingredients
- 2 cups milk
- 1/2 cup sugar
- 3 tablespoons cornstarch
- 4 egg yolks
- 3 tablespoons pistachio paste
Instructions
Heat milk in a saucepan. Whisk sugar, egg yolks, and cornstarch until smooth. Slowly add hot milk while whisking. Return mixture to saucepan and cook until thick. Remove from heat and stir in pistachio paste. Chill before using.
Helpful Tips for Perfect Pastry Cream
Always whisk constantly while cooking to prevent lumps. Use medium heat and be patient. For extra smooth pastry cream, strain through a fine sieve before chilling. Press plastic wrap directly onto the surface to avoid forming a skin. Pastry cream thickens more as it cools, so don’t overcook.
Storage
Store pastry cream in an airtight container in the refrigerator for up to three days. Stir gently before using.
Final Thoughts
These six pastry cream recipes give you endless dessert possibilities. From classic vanilla to rich chocolate and vibrant lemon, each variation offers a unique flavor profile while keeping the same simple preparation method. Once you master these basics, you’ll be able to fill cakes, pastries, donuts, and tarts with confidence.
Homemade pastry cream tastes fresher than store-bought fillings and lets you control sweetness and texture. Whether you’re baking for special occasions or everyday treats, these creamy fillings will instantly elevate your desserts.