Coffee Pastry Cream: Silky Recipe & Tips
Coffee pastry cream is a rich, silky custard infused with deep coffee flavor, perfect for filling cream puffs, éclairs, tarts, and layered cakes. Unlike plain pastry cream, the coffee adds a bitter note that balances the sweetness, making it taste like a sophisticated latte in dessert form. This recipe uses a classic method with egg yolks, milk, and cornstarch, but we add freshly brewed espresso and a touch of instant coffee for an extra punch. The result is a stable, luxurious cream that pipes beautifully and holds its shape.
Ingredients
- 2 cups (480 ml) whole milk
- 2 tablespoons (30 g) instant coffee granules (or 2 shots of espresso, about 2 oz / 60 ml)
- 1/2 cup (100 g) granulated sugar
- 4 large egg yolks (about 80 g)
- 1/4 cup (30 g) cornstarch
- 1/4 teaspoon salt
- 2 tablespoons (30 g) unsalted butter, cold, cut into small pieces
- 1 teaspoon vanilla extract (optional, but recommended)
Instructions
- Prepare the coffee milk: In a medium saucepan, combine the milk and instant coffee (or espresso). If using espresso, add it now. Heat over medium heat until steaming, but do not boil. Stir occasionally to dissolve the coffee. If you used espresso, the milk will be slightly thinner; that's fine.
- Whisk the egg mixture: In a separate heatproof bowl, whisk the egg yolks, sugar, cornstarch, and salt together until pale and thick, about 1-2 minutes. The mixture should fall in a ribbon when you lift the whisk.
- Temper the eggs: Slowly pour about 1/4 of the hot milk into the egg mixture, whisking constantly. This prevents the eggs from scrambling. Then, pour the tempered egg mixture back into the saucepan with the remaining milk.
- Cook the cream: Place the saucepan over medium heat, whisking constantly. Continue to cook until the mixture thickens and just begins to bubble. This will take about 3-5 minutes. Once you see a few bubbles, cook for 30 seconds more to ensure the cornstarch is fully activated. The cream should be thick enough to coat the back of a spoon.
- Finish with butter and vanilla: Remove the pan from heat. Stir in the cold butter pieces and vanilla extract until the butter is completely melted and the cream is smooth.
- Chill quickly: Immediately pour the pastry cream through a fine-mesh strainer into a clean bowl to remove any lumps. Press a piece of plastic wrap directly onto the surface of the cream to prevent a skin from forming. Refrigerate for at least 2 hours, or until completely cold and set.
- Whisk before use: Before using, whisk the cold pastry cream briefly to loosen it. If it seems too stiff, you can fold in a little whipped cream to lighten it.
Tips
- Use fresh coffee: For the best flavor, use freshly brewed espresso or high-quality instant coffee. Avoid using leftover bitter coffee from a pot that has been sitting for hours.
- Don't stop whisking: The most common mistake is not whisking constantly while the cream cooks. This can cause lumps or scorching. Use a flat-bottomed whisk to reach the corners of the pan.
- Adjust sweetness: If you use a very dark roast coffee, you might want to reduce the sugar to 1/3 cup (65 g) to let the coffee shine. Conversely, if you use a mild coffee, keep the full amount.
- Strain always: Even if you think you have no lumps, straining the pastry cream is essential for a silky texture. It also catches any bits of cooked egg.
Serving Suggestions
This coffee pastry cream is incredibly versatile. Pipe it into choux pastry for cream puffs or éclairs, then top with a chocolate glaze. It also makes a fantastic filling for a classic Boston cream pie, or layer it in a trifle with ladyfingers and chocolate shavings. For a simple dessert, spoon it over fresh berries or into a pre-baked tart shell and dust with cocoa powder.
Variations
- Mocha Pastry Cream: Add 2 oz (60 g) of melted dark chocolate to the finished cream along with the butter. Stir until smooth.
- Vanilla Bean Coffee Cream: Split a vanilla bean and scrape the seeds into the milk before heating. Omit the vanilla extract.
- Boozy Coffee Cream: Stir in 1 tablespoon of coffee liqueur (like Kahlúa) or Irish cream after the cream has cooled slightly.
- Dairy-Free Option: Substitute the whole milk with full-fat oat milk or coconut milk (from a can, not carton). Use a dairy-free butter alternative. The texture will be slightly softer but still delicious.
Storage and Reheating
Store coffee pastry cream in an airtight container in the refrigerator for up to 3 days. Always keep the plastic wrap pressed against the surface to prevent a skin. You can also freeze it for up to 1 month in a freezer-safe container; thaw overnight in the fridge before using. To reheat, place the cream in a saucepan over low heat, stirring constantly, until it just warms through. Do not boil, or it will curdle. Alternatively, you can microwave in 15-second bursts, stirring between each. Note that reheating will thin the cream slightly; you can re-thicken it by whisking in a little cornstarch slurry (1 teaspoon cornstarch mixed with 1 tablespoon cold water) and cooking for a minute.
Frequently Asked Questions
Can I use espresso powder instead of instant coffee? Yes, absolutely. Espresso powder is more concentrated, so use about 1.5 tablespoons (22 g) instead of 2 tablespoons of instant coffee. It will give a deeper, more robust flavor.
Why is my pastry cream lumpy? Lumps usually happen when the eggs are added too quickly to the hot milk, or if you stop whisking during cooking. To fix it, you can blend the finished cream with an immersion blender for a few seconds, but be careful not to over-blend or it will become thin.
Can I make this without cornstarch? Yes, you can use all-purpose flour, but you'll need to double the amount (1/2 cup / 60 g) and cook it for an extra 2 minutes to remove the raw flour taste. The texture will be slightly less glossy.
How do I know when the pastry cream is done? The cream is done when it thickens to the consistency of a thick pudding and you see a few bubbles breaking the surface. It should coat the back of a spoon, and when you run your finger through it, the line should stay separated.
Can I use this as a cake filling? Yes, it works beautifully as a cake filling, but it may be too soft for a layer cake with heavy frosting. For a sturdier filling, fold in 1/2 cup (120 ml) of whipped heavy cream after the pastry cream has chilled.
Is it safe to eat raw coffee in pastry cream? Yes, the coffee is cooked with the milk, so there is no safety concern. However, if you are sensitive to caffeine, be aware that this dessert contains a significant amount.