Go Back Email Link
+ servings
coconut cake with two slices behind, roses on top, and a bowl of coconut shreds

Coconut Cake with Coconut Pastry Cream Filling and Vanilla Buttercream

Prep Time: 45 minutes
Cook Time: 35 minutes
Total Time: 1 hour 20 minutes
This Coconut Cake is moist, fluffy, perfectly sweet, seriously delicious, and extra coconut-y! There is no better cake to bake for any and all occasions. It's truly the perfect treat!


Coconut Cake

  • 2 ⅓ cups all purpose flour
  • 1 ½ cups sugar
  • 2 ⅓ teaspoons baking powder
  • ¾ teaspoon salt
  • 1 cup unsweetened shredded coconut
  • ½ cup cream of coconut
  • 1 cup milk
  • ¾ cup vegetable oil
  • 3 large eggs, separated
  • 1 ½ teaspoons vanilla

Coconut Pastry Cream

  • 6 egg yolks
  • ¼ cup cornstarch
  • ½ cup sugar
  • 2 cups milk
  • ¼ cup salted butter
  • 1 ½ cups unsweetened shredded coconut
  • 1 teaspoon vanilla

American Buttercream Frosting

  • 2 ¼ cups salted butter, room temperature
  • 6 cups powdered sugar, sifted
  • 1 ½ teaspoons vanilla extract
  • 3 Tablespoons heavy cream

To Finish

  • 2 cups sweetened shredded coconut



  • Heat oven to 325 degrees F.
  • Spray 3 8-inch round cake pans with baking spray. Set aside.
  • In a large bowl, combine flour, sugar, baking powder, salt, and coconut. Set aside.
  • In a medium bowl, whisk together cream of coconut, milk, vegetable oil, egg yolks, and vanilla. Set aside.
  • In a small bowl, beat egg whites with an electric mixer to medium peaks. Set aside.
  • Pour wet ingredients into dry ingredients and mix thoroughly.
  • Fold in egg whites.
  • Divide evenly into prepared pans.
  • Bake for 25 minutes, or until cake tests done.

Pastry Cream

  • In a medium bowl, combine egg yolks, corn starch, and sugar.
  • Stir together gently with a wooden spoon. Do NOT beat.
  • Continue stirring until mixture smooths out. Set aside.
  • Heat milk until it just starts to bubble around the edges.
  • Slowly pour milk into egg yolk mixture, stirring constantly.
  • Return mixture to pot and cook over medium low heat until it starts to thicken, about 2 minutes.
  • Remove from heat and whisk in butter.
  • Strain through a fine mesh sieve into a clean bowl.
  • Stir in coconut and vanilla.
  • Cover with a piece of plastic wrap touching the top of the custard.
  • Refrigerate until needed.


  • Beat butter until light and fluffy.
  • Gradually beat in powdered sugar.
  • Stir in vanilla and heavy cream.

Putting It Together

  • Level cake layers.
  • Place one layer on cake plate.
  • Pipe a ring of frosting around the outside of the cake layer.
  • Spoon half of custard into the center and spread evenly on top within the ring of frosting.
  • Add another cake layer and repeat topping.
  • Add last cake layer and spread with remaining frosting.
  • Sprinkle coconut on top and press around sides of cake.


  • While whipping the egg whites, be sure to not over whip! You don’t want to dry them out. You can use the whisk attachment (or even a rubber spatula) to stir the egg whites around to see if they’re properly whipped.
  • When folding the egg whites into the cake batter, be very careful not to deflate them! The whipped egg whites are what make the cake so light and airy.
  • Leveling these cakes can be a little tough because of the coconut inside the cake. So, make sure you have a sharp serrated knife and you can get on eye-level with the cake layer to make sure you’ve cut them straight. Always try to be gentle with it. Begin by cutting at the base of the dome. If it’s level after cutting that, you’re good to go! But, if it’s not, just cut small amounts until it is. Don’t be afraid of trimming it!
  • When making the pastry cream, make sure the egg yolk, corn starch, and sugar mixture is smooth and liquid-y consistency. You don't want it lumpy!
  • Make sure you whisk in the butter while the mixture is still hot! The butter needs to melt and be mixed in thoroughly.
  • Don't skip straining the pastry cream! You don't want to bite into a little bit of cooked egg.
  • When making the buttercream, the butter needs to be room temperature.
  • Make sure you sift the powdered sugar!


Serving: 1Slice | Calories: 1244kcal | Carbohydrates: 139g | Protein: 10g | Fat: 75g | Saturated Fat: 54g | Polyunsaturated Fat: 3g | Monounsaturated Fat: 14g | Trans Fat: 1g | Cholesterol: 247mg | Sodium: 642mg | Potassium: 313mg | Fiber: 5g | Sugar: 112g | Vitamin A: 1423IU | Vitamin C: 1mg | Calcium: 164mg | Iron: 3mg