Food

Cream Filling Recipe for Cakes, Pies and Donuts

By Hayride Live · Updated

Total time
2 hr 20 min
Prep
10 min
Cook
10 min
Serves
8

Jump to recipe

This cream filling is a smooth, vanilla-scented pastry cream that works for layer cakes, cream pies, donuts and éclairs. It sets firm enough to slice but stays soft and spoonable, and it suits a weekend baking project or a make-ahead dessert because it needs a full chill. Serve it between cake layers, under fresh fruit, or piped into split pastries.

What Cream Filling Is

Cream filling in most American baking is pastry cream: milk thickened with egg yolks, sugar and starch, then finished with butter and vanilla. The starch is what makes it sliceable; the yolks give it richness and a pale yellow color. Cornstarch is the standard thickener because it sets clear and firm, while flour makes a softer, slightly cloudy cream.

This recipe makes about 2½ cups (600 ml), enough to fill a 9-inch (23 cm) two-layer cake, a 9-inch (23 cm) pie, or about 12 donuts. It must be cooked to a boil so the starch fully hydrates, then cooled quickly and chilled for at least 2 hours before use.

Ingredients

  • 2 cups (480 ml) whole milk
  • ½ cup (100 g) granulated sugar
  • ¼ cup (30 g) cornstarch
  • ¼ tsp (1.5 g) fine salt
  • 4 large egg yolks
  • 2 tbsp (28 g) unsalted butter, cut into pieces
  • 1½ tsp (7.5 ml) vanilla extract

Substitutions

  • Milk: 2% milk works but gives a slightly thinner cream; use 2½ tbsp (22 g) cornstarch instead of ¼ cup. Do not use skim milk.
  • Cornstarch: ⅓ cup (40 g) all-purpose flour can replace the cornstarch; the cream will be softer and slightly less glossy.
  • Butter: salted butter works; omit the added salt.
  • Vanilla: swap in 1 tsp (5 ml) almond extract or the seeds of half a vanilla bean.

Instructions

  1. Whisk the sugar, cornstarch and salt in a medium saucepan. Add the milk in a slow stream, whisking constantly, until smooth.
  2. Cook over medium heat, whisking constantly, for 5–7 minutes, until the mixture thickens and just begins to bubble at the edges. Reduce the heat to low.
  3. Whisk the egg yolks in a small bowl. Ladle about ½ cup (120 ml) of the hot milk mixture into the yolks while whisking, then pour the yolk mixture back into the saucepan.
  4. Cook over medium-low heat, whisking constantly, for 2–3 minutes, until the cream is thick and one large bubble breaks on the surface. It should coat the back of a spoon.
  5. Remove from the heat and whisk in the butter and vanilla until smooth.
  6. Pour into a shallow dish and press plastic wrap directly onto the surface. Cool at room temperature for 20 minutes, then refrigerate for at least 2 hours, until cold and set.

Getting the Texture Right

If the cream looks lumpy after chilling, push it through a fine-mesh sieve before using. If it is too thin to hold a pipe, whisk in 1 tbsp (8 g) cornstarch dissolved in 1 tbsp (15 ml) cold milk and cook for 1 minute more, then chill again.

For a lighter filling, fold ½ cup (120 ml) whipped heavy cream into the chilled pastry cream just before using; use it the same day. A stand mixer with the paddle attachment or a hand whisk both work; a balloon whisk is the tool that matters most for keeping the cream smooth.

Storing Cream Filling

Keep the filling covered and refrigerated for up to 3 days. Do not freeze it; cornstarch-thickened cream weep when thawed. Any dessert made with the filling, including cream pies and filled cakes, should be refrigerated within 2 hours of assembly and eaten within 3 days. Discard filling that has been left out more than 2 hours (1 hour above 90°F/32°C).

Because the filling contains egg yolks, it is cooked to a boil in step 4; do not shorten that step. Pregnant people, young children, older adults and anyone with a weakened immune system should avoid uncooked egg mixtures, and this filling is fully cooked when it reaches a thick boil.

Spotted a mistake? Tell us and we will correct it. How we write and check articles.