Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Chocolate Custard Layer Cake Recipe: Rich, Smooth & Decadent

This chocolate custard layer cake features two layers of moist chocolate cake sandwiched around a luscious, smooth chocolate custard filling and finished with a glossy chocolate ganache. The custard adds a creamy, rich depth that sets it apart from standard buttercream-frosted cakes, while the ganache gives it a professional, restaurant-quality finish. It’s perfect for celebrations—rich enough to feel special but balanced so it’s not overly sweet.

Ingredients

  • 1 ¾ cups (220 g) all-purpose flour
  • ¾ cup (75 g) unsweetened cocoa powder (natural or Dutch-process)
  • 1 ½ tsp baking powder
  • 1 tsp baking soda
  • ½ tsp salt
  • 1 cup (200 g) granulated sugar
  • ½ cup (100 g) packed light brown sugar
  • ½ cup (120 ml) vegetable oil
  • 2 large eggs, room temperature
  • 1 tsp pure vanilla extract
  • ½ cup (120 ml) buttermilk, room temperature
  • ½ cup (120 ml) hot strong brewed coffee (or hot water)
  • For the custard filling: 2 cups (480 ml) whole milk
  • ⅔ cup (135 g) granulated sugar
  • 4 large egg yolks
  • 3 tbsp (25 g) cornstarch
  • 2 tbsp (15 g) unsweetened cocoa powder
  • ¼ tsp salt
  • 4 oz (115 g) semi-sweet chocolate, finely chopped
  • 2 tbsp (28 g) unsalted butter, softened
  • For the ganache: 6 oz (170 g) semi-sweet chocolate, finely chopped
  • ½ cup (120 ml) heavy cream
  • 1 tbsp (14 g) unsalted butter (optional, for shine)

Instructions

  1. Prep and preheat: Position oven racks in the center and upper third of the oven. Preheat to 350°F (175°C). Grease and line two 8-inch round cake pans with parchment paper, then lightly flour the sides.
  2. Make the cake batter: In a medium bowl, whisk together flour, cocoa powder, baking powder, baking soda, and salt. In a large bowl, whisk granulated sugar, brown sugar, oil, eggs, and vanilla until well combined and slightly lighter in color, about 2 minutes. Add buttermilk and mix until just incorporated. Gradually whisk in the dry ingredients until no dry streaks remain—do not overmix. Finally, stir in the hot coffee; the batter will be thin, which is correct.
  3. Bake the cakes: Divide batter evenly between prepared pans and smooth the tops. Bake for 28–32 minutes, rotating pans halfway through, until a toothpick inserted into the center comes out clean. Cool in pans for 15 minutes, then invert onto wire racks, peel off parchment, and cool completely before assembling.
  4. Prepare the custard filling: In a medium saucepan, heat milk over medium heat until steaming but not boiling. In a separate bowl, whisk egg yolks, sugar, cornstarch, cocoa powder, and salt until thick and pale, about 2 minutes. Slowly pour about ½ cup of the hot milk into the yolk mixture, whisking constantly to temper. Pour the tempered mixture back into the saucepan with remaining milk. Cook over medium heat, whisking constantly, until the mixture thickens and comes to a gentle boil (about 5–7 minutes). Continue boiling and whisking for 1 minute to fully cook the cornstarch. Remove from heat and stir in chopped chocolate and butter until smooth. Transfer to a clean bowl, press plastic wrap directly onto the surface to prevent skin, and cool to room temperature, then refrigerate until set (at least 2 hours).
  5. Make the ganache: Place chopped chocolate in a heatproof bowl. Heat heavy cream in a small saucepan until just simmering, then pour over chocolate. Let sit for 3 minutes, then whisk gently until smooth. Stir in butter (if using) until fully incorporated. Let cool at room temperature for 30–45 minutes, until slightly thickened but still pourable.
  6. Assemble the cake: Level cooled cake layers if needed. Spread half the cooled custard evenly over one layer, then top with the second layer. Pour ganache onto the center of the top layer and use an offset spatula to spread it over the top, allowing it to naturally drip down the sides. For a clean finish, pipe a ring of custard around the top edge before adding ganache to contain it. Chill for 30 minutes to set the ganache before slicing.

Tips

  • Tempering custard safely: Always add hot liquid gradually to egg yolks to prevent scrambling. If the custard curdles, blend it briefly with an immersion blender or strain through a fine-mesh sieve.
  • Substitutions: Buttermilk can be replaced with ½ cup milk plus 1½ tbsp lemon juice or vinegar, rested for 5 minutes. For dairy-free, use full-fat coconut milk for the custard and cream, and ensure chocolate is dairy-free.
  • Prevent dry cake: Do not overbake—the thin batter looks underdone but sets as it cools. Use an oven thermometer to verify accuracy.
  • Smooth custard: Whisk constantly during cooking; scrape the bottom and corners to avoid scorching. A silicone spatula helps.

Serving Suggestions

Serve chilled or at cool room temperature. Pair with a glass of cold milk, espresso, or a bold red wine like Cabernet Sauvignon. For a festive touch, garnish with chocolate shavings, sea salt flakes, or fresh raspberries. Slice with a warm, clean knife for clean edges—dip in hot water, wipe dry, and repeat between cuts.

Variations

  • Espresso Custard: Add 1 tsp instant espresso powder to the custard milk while heating for deeper chocolate flavor.
  • Orange Zest: Add 1 tbsp orange zest to the cake batter and replace 1 tbsp of custard sugar with orange marmalade for a subtle citrus note.
  • Coconut Custard: Replace 1 cup of milk with full-fat coconut milk in the custard and top with toasted coconut flakes.
  • Filled Layers: Pipe custard into a centered ring around the cake layer using a piping bag with a large round tip for a decorative border before adding the center filling.

Storage and Reheating

Store covered in the refrigerator for up to 5 days. The cake is best eaten within 3 days for optimal texture—the custard may soften the cake slightly over time. For longer storage, wrap unfrosted cake layers tightly in plastic and freeze for up to 2 months; thaw overnight in the fridge before assembling. Do not reheat the assembled cake; bring slices to room temperature for 20–30 minutes before serving to enhance flavor and texture. If ganache firms up too much in the fridge, let the cake sit at room temperature for 20 minutes before slicing.

Frequently Asked Questions

Can I use a different pan size?

Yes, but adjust baking time and custard quantities. For 9-inch pans, reduce bake time to 22–26 minutes and increase custard by 50% (multiply all custard ingredients by 1.5). For a 13x9-inch sheet cake, bake 25–30 minutes and use the full custard recipe for one filling layer.

Why did my custard curdle?

Curdling usually happens if the custard gets too hot too quickly or isn’t whisked enough. Ensure the milk is only simmering (not boiling vigorously) and whisk constantly, especially near the end. If it does curdle, blend it with an immersion blender or pass through a fine-mesh sieve—most times it will still be usable.

Can I make this cake ahead?

Absolutely. Bake the cake layers up to 2 days ahead and store wrapped at room temperature. Make the custard up to 3 days ahead and refrigerate. Assemble the cake the day before serving and keep refrigerated. Add ganache just before serving if you want the cleanest finish, or prepare ganache ahead and reheat gently (microwave in 10-second bursts) before using.

What if I don’t have buttermilk?

Make a quick substitute: add 1½ tbsp lemon juice or white vinegar to ½ cup milk and let it sit for 5 minutes until slightly curdled. This adds acidity needed for leavening and tenderizes the crumb. Do not skip the acid—regular milk alone will result in a less tender cake and reduced rise.

Can I use dark chocolate instead of semi-sweet?

Yes, but adjust sugar. For every 4 oz of dark chocolate (70% or higher), reduce the sugar in the cake by 1 tbsp and in the custard by 1 tsp. Dark chocolate adds intensity but can make the cake bitter if not balanced. Milk chocolate is not recommended—it’s too sweet and soft, which affects structure.

How do I know when the custard is thick enough?

The custard is done when it coats the back of a spoon and leaves a clear path when you run a finger through it. It should reach 170°F (77°C) on an instant-read thermometer—this ensures pasteurization without curdling. After boiling for 1 minute, it will thicken more as it cools.

Read next