Zimt

Kelly's Coconut Custard Cake Recipe

· 6 min read · Cakes

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions

This coconut custard cake is a moist, tender layer cake with a rich coconut custard filling and a fluffy coconut buttercream frosting. It’s a crowd-pleasing dessert that combines the best of a classic yellow cake with the tropical flavor of coconut, and it’s surprisingly simple to make from scratch. The custard is cooked on the stovetop, then chilled, so it sets perfectly between the cake layers.

Ingredients

  • For the cake: 2 ½ cups (310g) all-purpose flour
  • For the cake: 2 ½ teaspoons baking powder
  • For the cake: ½ teaspoon salt
  • For the cake: ¾ cup (170g) unsalted butter, softened
  • For the cake: 1 ¾ cups (350g) granulated sugar
  • For the cake: 3 large eggs, at room temperature
  • For the cake: 1 teaspoon vanilla extract
  • For the cake: 1 cup (240ml) whole milk, at room temperature
  • For the custard: 2 cups (480ml) whole milk
  • For the custard: ½ cup (100g) granulated sugar
  • For the custard: 3 tablespoons cornstarch
  • For the custard: 4 large egg yolks
  • For the custard: 1 cup (85g) sweetened shredded coconut
  • For the custard: 1 teaspoon vanilla extract
  • For the frosting: 1 cup (226g) unsalted butter, softened
  • For the frosting: 4 cups (480g) powdered sugar
  • For the frosting: ¼ cup (60ml) coconut milk (from a can, well stirred)
  • For the frosting: 1 teaspoon coconut extract (optional)
  • For the frosting: 1 cup (85g) sweetened shredded coconut, for garnish

Instructions

  1. Make the custard: In a medium saucepan, whisk together the sugar and cornstarch. Add the egg yolks and whisk until smooth. Gradually whisk in the milk. Place over medium heat and cook, stirring constantly with a whisk or spatula, until the mixture thickens and comes to a gentle boil (about 8–10 minutes). Boil for 1 minute, then remove from heat. Stir in the shredded coconut and vanilla. Transfer to a bowl, cover with plastic wrap directly on the surface, and refrigerate until completely chilled (at least 2 hours, or overnight).
  2. Preheat the oven: Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line the bottoms with parchment paper.
  3. Make the cake batter: In a medium bowl, whisk together the flour, baking powder, and salt. In a large bowl, beat the butter and sugar with an electric mixer on medium speed until light and fluffy (about 3 minutes). Add the eggs one at a time, beating well after each addition. Beat in the vanilla. Reduce speed to low and add the flour mixture in three additions, alternating with the milk, starting and ending with the flour. Mix just until combined—do not overmix.
  4. Bake the cakes: Divide the batter evenly between the prepared pans. Bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean. Let cool in the pans for 10 minutes, then turn out onto a wire rack to cool completely.
  5. Make the frosting: In a large bowl, beat the butter on medium speed until smooth and creamy. Gradually add the powdered sugar, beating on low speed, then add the coconut milk and coconut extract (if using). Increase speed to medium-high and beat for 2–3 minutes until light and fluffy.
  6. Assemble the cake: Place one cake layer on a serving plate. Spread the chilled custard evenly over the top, leaving a ½-inch border around the edge. Place the second cake layer on top. Frost the top and sides of the cake with the coconut buttercream. Press shredded coconut onto the sides and top of the cake, if desired.
  7. Chill and serve: Refrigerate the assembled cake for at least 30 minutes before slicing to help the custard set. Serve chilled or at room temperature.

Tips

  • Room temperature ingredients: For the best cake texture, bring the butter, eggs, and milk to room temperature before mixing. Cold ingredients can cause the batter to curdle or bake unevenly.
  • Don’t overcook the custard: The custard will thicken as it cools, so stop cooking as soon as it reaches a gentle boil and thickens enough to coat the back of a spoon. Overcooking can make it grainy.
  • Chill the custard fully: Make the custard a day ahead if possible. It needs to be completely cold before spreading, or it will soak into the cake layers and make them soggy.
  • Substitutions: You can use unsweetened coconut and add extra sugar to taste, or swap the coconut milk in the frosting for regular milk and add ½ teaspoon coconut extract for flavor.

Serving Suggestions

Serve this cake chilled or at room temperature with a cup of coffee or tea. It’s also lovely with a scoop of vanilla ice cream or a drizzle of warm caramel sauce. For a more tropical presentation, top each slice with a few toasted coconut flakes or a slice of fresh mango.

Variations

  • Chocolate coconut: Add ¼ cup cocoa powder to the cake batter (reduce flour by 2 tablespoons) and use chocolate frosting instead of coconut buttercream.
  • Lemon coconut: Add 1 tablespoon lemon zest to the cake batter and replace the vanilla in the custard with 1 teaspoon lemon extract.
  • Pineapple coconut: Spread a thin layer of crushed pineapple (drained well) over the custard before adding the top layer.
  • Cupcakes: Bake the cake batter in cupcake liners for 18–20 minutes, then fill with custard using a piping tip and frost as usual.

Storage and Reheating

Store the assembled cake in an airtight container in the refrigerator for up to 4 days. Because of the custard, it must stay refrigerated. Let slices sit at room temperature for 15–20 minutes before serving for the best flavor. You can also freeze unfrosted cake layers (wrapped tightly in plastic wrap and foil) for up to 3 months; thaw overnight in the refrigerator before assembling. The custard can be made up to 2 days ahead and stored in the fridge.

Frequently Asked Questions

Can I use canned coconut milk in the cake batter?

Yes, you can substitute the whole milk in the cake with canned coconut milk (full-fat, well stirred). This will make the cake even more coconut-flavored, but the texture may be slightly denser due to the higher fat content.

Why did my custard turn out lumpy?

Lumps usually happen if the cornstarch isn’t fully dissolved before heating, or if you stop stirring for too long. Always whisk the sugar, cornstarch, and egg yolks together until completely smooth, and stir constantly while cooking. If lumps form, you can strain the custard through a fine-mesh sieve after cooking.

Can I make this cake without eggs?

This recipe relies on eggs for structure and richness, so we don’t recommend an egg substitute. If you need an egg-free version, look for a vegan coconut custard cake recipe instead.

How do I keep the custard from making the cake soggy?

Make sure the custard is very cold and thick before spreading. Also, don’t overfill—leave a small border so it doesn’t spill out. Chilling the assembled cake before serving helps the layers set.

Can I use a store-bought custard or pudding mix?

Yes, you can use a high-quality instant coconut pudding mix prepared with milk, but homemade custard has a richer flavor and is worth the extra step.

Do I need to refrigerate the cake?

Yes, because the custard contains eggs and milk, the cake must be kept refrigerated. Remove individual slices from the fridge and let them sit for a few minutes before serving.