Coconut Haupia Cake: Easy Hawaiian Layer Cake Recipe

Updated November 26, 2026

Total time
4 hr 35 min
prep 35 min · cook 35 min
Serves
12
portions as written

Jump to recipe

Haupia cake is a beloved Hawaiian dessert that layers a light, airy white cake with a silky coconut pudding made from coconut milk and cornstarch. This version uses a from-scratch cake base and a stovetop haupia filling that sets into a firm, sliceable layer, all finished with a toasted coconut topping. It strikes the perfect balance between tender crumb and rich, creamy coconut flavor, making it a crowd-pleaser for potlucks, birthdays, or any day you need a taste of the islands.

Ingredients

  • For the cake:
  • 2 ½ cups (300 g) cake flour (or all-purpose flour, see Tips)
  • 2 ½ tsp baking powder
  • ½ tsp salt
  • ¾ cup (170 g) unsalted butter, softened
  • 1 ½ cups (300 g) granulated sugar
  • 3 large eggs, room temperature
  • 1 tsp vanilla extract
  • 1 cup (240 ml) whole milk, room temperature
  • For the haupia layer:
  • 1 cup (240 ml) coconut milk (full-fat, canned)
  • 1 cup (240 ml) whole milk
  • ¾ cup (150 g) granulated sugar
  • ½ cup (60 g) cornstarch
  • ¼ tsp salt
  • 1 tsp vanilla extract
  • For the topping:
  • 1 cup (240 ml) heavy cream
  • 2 tbsp (15 g) powdered sugar
  • ½ cup (40 g) sweetened shredded coconut, toasted

Instructions

  1. Make the haupia layer (do this first): In a medium saucepan, whisk together the coconut milk, whole milk, sugar, cornstarch, and salt until smooth. Place over medium heat and cook, stirring constantly with a whisk, until the mixture thickens and begins to bubble, about 8–10 minutes. Once it bubbles, cook for 1 more minute, then remove from heat and stir in the vanilla. Pour the haupia into a 9-inch round cake pan lined with plastic wrap. Smooth the top and refrigerate until fully set, at least 3 hours or overnight.
  2. Preheat and prepare pans: When the haupia is nearly set, 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 cake flour, baking powder, and salt. In a large bowl, beat the softened butter and sugar with an electric mixer until light and fluffy, about 3 minutes. Add the eggs one at a time, beating well after each addition, then beat in the vanilla. With the mixer on low, 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 22–25 minutes, or until a toothpick inserted into the center comes out clean. Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely.
  5. Assemble the cake: Once the cakes are completely cool, place one layer on a serving plate. Remove the haupia from the fridge and lift it out of the pan using the plastic wrap. Peel off the wrap and place the haupia disc on top of the bottom cake layer. Top with the second cake layer.
  6. Whip the cream: In a chilled bowl, beat the heavy cream and powdered sugar until stiff peaks form. Spread the whipped cream over the top and sides of the cake. Sprinkle the toasted coconut over the top.
  7. Chill before serving: Refrigerate the assembled cake for at least 1 hour before slicing to allow the haupia to firm up and the flavors to meld. Slice with a sharp knife, wiping it clean between cuts.

Tips

  • Use full-fat coconut milk: Light coconut milk will make the haupia too thin and won’t set properly. Stick with full-fat for the best texture.
  • Cake flour vs. all-purpose: Cake flour gives a lighter crumb, but you can substitute all-purpose flour by using 2 cups (240 g) all-purpose plus 2 tablespoons (16 g) cornstarch. Sift together before measuring.
  • Don’t rush the haupia: The haupia must be fully chilled and set before assembling, or it will squish out of the sides. Give it at least 3 hours, or overnight.
  • Room-temperature ingredients: For the cake, make sure the butter, eggs, and milk are at room temperature so the batter emulsifies properly and bakes evenly.

Serving Suggestions

Serve this cake chilled or at room temperature—both are delicious. It pairs beautifully with a cup of hot coffee or tea. For a more decadent dessert, drizzle each slice with a little extra coconut milk or serve with a scoop of vanilla ice cream. It’s also a fantastic centerpiece for a luau-themed party or a summer barbecue.

Variations

  • Chocolate haupia cake: Add ½ cup (50 g) unsweetened cocoa powder to the cake flour for a chocolate twist.
  • Pineapple haupia cake: Spread a thin layer of crushed pineapple (drained) over the haupia before adding the top cake layer.
  • Gluten-free: Substitute the cake flour with a 1:1 gluten-free baking flour blend. The texture will be slightly denser but still delicious.
  • Layered trifle: Instead of a layer cake, cube the cake and layer it with haupia and whipped cream in a glass trifle dish.

Storage and Reheating

Store the cake in the refrigerator, covered, for up to 4 days. The haupia will soften slightly over time, but it will still hold its shape. This cake is best served cold or at room temperature, so there’s no need to reheat. If you’ve made the cake ahead, you can assemble it up to 24 hours in advance and keep it refrigerated. The whipped cream may start to weep after a day, so if you’re making it more than a day ahead, consider adding the whipped cream and coconut topping just before serving.

Frequently Asked Questions

Can I use store-bought haupia mix? Yes, you can, but the texture will be slightly different. Follow the package directions, but reduce the liquid by ¼ cup to make a firmer layer that holds up in the cake.

Why did my haupia turn out lumpy? Lumps usually happen if you add the cornstarch directly to hot liquid or if you stop stirring. Whisk the cornstarch into the cold milk until completely smooth before heating, and stir constantly as it cooks.

Can I make this cake dairy-free? Absolutely. Use a plant-based butter and substitute the whole milk with almond, oat, or soy milk. For the haupia, use full-fat coconut milk and a dairy-free milk alternative. The whipped cream can be replaced with coconut whipped cream (chilled coconut cream whipped with a little sugar).

How long does haupia cake last? It will keep in the refrigerator for up to 4 days. After that, the cake may dry out and the haupia may begin to separate. Freeze unfrosted cake layers and haupia separately for up to 2 months; thaw overnight in the fridge before assembling.

Can I freeze the assembled cake? It’s not recommended, as the whipped cream and haupia can become watery when thawed. If you must freeze, do it before adding the whipped cream and coconut topping.

Why is my cake dense? Overmixing the batter develops gluten, which makes the cake tough and dense. Mix just until the flour is incorporated, and use cake flour for a lighter texture.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).