Zimt

Chocolate Pie Filling with Cocoa Powder – Simple Recipe

· 4 min read · Pastry and Pies

In this article
  1. Ingredients
  2. Instructions
  3. Serving Suggestions
  4. Ingredient Swaps
  5. Doneness Cues
  6. Storage Guidelines
  7. Food Safety Notes

Chocolate pie filling made with cocoa powder creates a smooth, rich layer perfect for a classic chocolate cream pie.

Serves 8 · Prep 15 min · Cook 20 min · Total 2 hr 45 min

Ingredients

  • 1 ½ cups (300 g) granulated sugar
  • ½ cup (65 g) unsweetened cocoa powder
  • ¼ cup (30 g) all‑purpose flour
  • ¼ tsp salt
  • 2 ¼ cups (540 ml) whole milk
  • 4 large egg yolks (use pasteurised eggs for safety)
  • 2 tbsp (30 g) unsalted butter, cut into pieces
  • 1 tsp (5 ml) vanilla extract

The sugar, cocoa, flour and salt form the dry base that will thicken the filling, while the milk and egg yolks provide richness and body. Butter and vanilla are added at the end to give a glossy finish and a subtle depth of flavor.

Instructions

All steps are grouped into three clear phases so you can focus on one task at a time and avoid a rushed mess. Gather and measure every ingredient before you start; this makes the tempering of the egg yolks smooth and prevents curdling. The filling cooks on the stovetop, so keep a heat‑proof spatula handy for constant stirring.

Preparation Phase

In a medium bowl whisk together the sugar, cocoa powder, flour and salt until the mixture is uniform and free of lumps. In a separate bowl whisk the egg yolks lightly, then set both bowls aside. Measure the milk and have the butter pieces ready so they can be incorporated without delay once the mixture thickens.

Cooking Phase

Combine the dry mixture with the milk in a saucepan and place over medium heat. Gradually whisk in the egg yolks, tempering them by adding a small amount of the hot milk mixture first, then the rest, to raise their temperature without scrambling. Continue stirring constantly; the mixture will begin to bubble and thicken after about 8‑10 minutes.

Finishing Phase

When the filling coats the back of a spoon and reaches a temperature of at least 160°F (71°C) – the USDA FSIS safe minimum for egg dishes – remove the pan from the heat. Stir in the butter pieces and vanilla extract until fully melted and incorporated, giving the filling a glossy sheen. Pour the hot filling into a pre‑baked 9‑inch pie crust, smooth the top, and let it cool at room temperature for 30 minutes before refrigerating.

  1. Whisk dry ingredients together (sugar, cocoa, flour, salt).
  2. Whisk egg yolks in a separate bowl.
  3. Heat milk in a saucepan over medium heat.
  4. Gradually add dry mixture to the milk, whisking continuously.
  5. Temper egg yolks by adding a ladle of the hot mixture, then stir yolks back into the pan.
  6. Cook, stirring, until the mixture bubbles and thickens (about 15‑20 min), reaching 160°F (71°C).
  7. Remove from heat; stir in butter and vanilla until smooth.
  8. Transfer filling to a baked pie crust, cool 30 min, then chill 2 hr before serving.

Serving Suggestions

Serve the pie chilled for the best texture; the filling will set firmly but remain silky. Top each slice with a dollop of whipped cream or a scoop of vanilla ice cream for contrast.

If you prefer a decorative touch, sprinkle a light dusting of cocoa powder or shave a few squares of dark chocolate over the surface just before serving. The chilled filling also works well as a dip for fresh fruit like strawberries or banana slices.

Ingredient Swaps

If you lack cocoa powder, substitute 2 oz (56 g) of melted semisweet chocolate for every 2 tbsp of cocoa; reduce the sugar by 1‑2 tbsp to balance sweetness. Using dark chocolate will give a more intense flavor, while milk chocolate creates a milder, sweeter profile.

For a dairy‑free version, replace whole milk with an equal amount of unsweetened almond or oat milk and use a plant‑based butter substitute. The texture remains creamy, though the flavor will shift slightly toward the chosen milk.

Doneness Cues

The filling is done when it consistently coats the back of a spoon and forms a slow ribbon as the spoon is lifted. A reliable temperature check is 160°F (71°C) measured with a food thermometer; this ensures the egg yolks are safely cooked.

Visually, the mixture will transition from a thin, glossy liquid to a thick, glossy custard that no longer looks watery. If the filling looks grainy, continue cooking a minute longer while stirring to dissolve any remaining flour particles.

Storage Guidelines

Cool the pie filling to room temperature within 2 hours of cooking, then cover it tightly with plastic wrap and refrigerate. It will keep safely for 3‑4 days, maintaining its flavor and texture.

For longer storage, place the cooled filling in an airtight container and freeze for up to 2 months. Thaw it in the refrigerator overnight before using; give it a quick stir to restore smoothness.

Food Safety Notes

Because the recipe uses raw egg yolks, choose pasteurised eggs or heat‑treat the yolks by bringing them to 160°F (71°C) during cooking, which this method does. Pregnant people, young children, elderly or immunocompromised individuals should ensure the eggs are fully pasteurised.

Do not leave the filling out at room temperature for more than 2 hours; bacteria can multiply quickly in dairy‑rich mixtures. Always refrigerate leftovers promptly and reheat any leftover pie to at least 165°F (74°C) before serving again.