Desserts
This haupia cake recipe delivers layers of silky coconut custard and tender sponge, creating a dessert that feels both nostalgic and refined. The traditional Hawaiian treat combines the creamy texture of haupia (coconut pudding) with fluffy cake layers, all bound together by a delicate glaze.
What makes this version special is its balance—authentic flavors with a modern baking approach that ensures success in any kitchen.
The cake begins with a light coconut-infused sponge, baked to a perfect golden finish, while the haupia filling transforms simple coconut milk and sugar into a velvety, jiggly texture. Assembly is where the magic happens: alternating layers of cake and haupia, then chilling until set.
The result is a dessert that’s rich yet not overly sweet, with each bite offering a harmonious blend of textures and flavors.
What you’ll achieve is a showstopping dessert that’s perfect for celebrations or quiet indulgences. The haupia custard stays lusciously smooth, the cake remains tender, and the presentation—often adorned with toasted coconut flakes—makes it feel like a restaurant-quality creation.
This recipe respects tradition while making it accessible, so even home bakers can recreate the magic.
Serve chilled with a sprinkle of toasted coconut or fresh berries for contrast. The layers hold beautifully, making it ideal for gatherings or as a special treat. Let’s bring this tropical classic to life with a foolproof method that delivers every time.
Ingredients for haupia cake
Authentic Hawaiian flavors meet modern baking in this tropical dessert masterpiece.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 2 cups | Divided for cake and haupia |
| Coconut Milk (Full-Fat) 🥥 | 13 ½ oz | Canned, unsweetened preferred |
| Large Eggs 🥚 | 6 whole | Room temperature for best mixing |
| Unsalted Butter 🧈 | 1 cup | Softened, not melted |
| Baking Powder 🧂 | 2 tsp | Aluminum-free preferred |
| Vanilla Extract 🍯 | 2 tsp | Pure, high-quality preferred |
| Toasted Coconut Flakes 🥥 | 1 cup | For garnish and texture |
| Cornstarch 🌾 | ½ cup | For haupia thickening |
| Salt 🧂 | ½ tsp | Fine sea salt preferred |
| Lemon Juice 🍋 | 1 tbsp | Freshly squeezed |
| Powdered Sugar 🍚 | ½ cup | For glaze |
| Milk (Whole) 🥛 | ½ cup | For cake batter consistency |
The coconut milk is the soul of this cake. Look for full-fat, unsweetened cans—brands like Goya or Thai Kitchen work perfectly. The difference between sweetened and unsweetened is huge: sweetened will make your haupia cloyingly sugary. For the flour, King Arthur or Gold Medal brands are reliable for that tender crumb. Toast your own coconut flakes in a dry pan over medium heat until golden—about 3-4 minutes—then cool completely before using. The cornstarch needs to be arrowroot-free for proper thickening of the haupia.
No full-fat coconut milk? Substitute with a mix of light coconut milk and 2 tbsp melted butter—it won't be identical but works in a pinch. Running short on eggs? Use aquafaba (chickpea brine) at 3 tbsp per egg, but your cake will be slightly denser. The vanilla extract is non-negotiable—imitation extracts will ruin the flavor profile. For the glaze, if you can't find powdered sugar, blend granulated sugar in a food processor for 30 seconds to create a similar texture. The lemon juice adds brightness—bottled works, but fresh is ideal if you've got it.
Store the assembled cake in an airtight container in the refrigerator for up to 5 days. The haupia layer stays silky when properly chilled, but bring it to room temperature for 30 minutes before serving for the best texture. For make-ahead convenience, bake the cake layers and prepare the haupia separately, then assemble within 24 hours of serving. The toasted coconut flakes can be made a week ahead and stored in an airtight container at room temperature.
Why You'll Love This Recipe
- One-Bowl Wonder: I swear by this recipe—just toss the dry ingredients (flour, sugar, eggs) in one bowl, then fold in the creamy coconut milk and melted butter. No extra mixing, no extra bowls, and no stress. The eggs bind everything perfectly while the coconut milk gives it that signature silky texture without fuss.
- Coconut Cream Dream: Between us, this cake is ridiculously good—like biting into a cloud of coconut custard with a tender crumb. The full-fat coconut milk makes it rich but not heavy, and the sugar caramelizes just enough to give every slice a hint of buttery sweetness. Honestly, it’s the kind of dessert that makes you close your eyes and sigh.
- Birthday Party Ready: This cake is my go-to for celebrations because it’s easy to dress up. Layer it with fresh mango or pineapple for a tropical vibe, or keep it simple with a dusting of powdered sugar. It feeds a crowd (I’ve made it for 12 with leftovers) and looks impressive without requiring a bakery. Plus, it’s always a hit with kids—no one turns down coconut.
- Budget-Friendly Luxury: Here’s what sold me—the ingredients are cheap but feel special. Coconut milk and butter add richness without breaking the bank, and you can even use store-brand sugar and flour. A single batch stretches for days: slice it for breakfast toast, pack it in lunches, or save it for a midweek treat. It’s dessert that doesn’t guilt-trip you.
Step-by-step instructions for haupia cake
The secret to this tropical masterpiece lies in balancing the cake's delicate crumb with the rich haupia filling.
Prepare the Cake Batter
Preheat your oven to 350°F and grease two 8-inch round pans with the 1 cup unsalted butter, reserving 2 tablespoons for brushing later. In a large mixing bowl, sift together the 2.5 cups all-purpose flour and 2 teaspoons baking powder. Set aside.
In a separate bowl, cream the remaining 1 cup unsalted butter with 1 cup granulated sugar from the total 2 cups until light and fluffy, about 3-4 minutes. Add the 6 whole large eggs one at a time, mixing well after each addition. Stir in the 2 teaspoons vanilla extract and 0.5 teaspoon salt. Gradually mix in the dry ingredients until just combined.
Incorporate the 0.5 cup whole milk and 1 tablespoon lemon juice, mixing until smooth. The batter should be thick but pourable. Divide evenly between the prepared pans and bake for 25-30 minutes, until a toothpick inserted comes out clean. Let cool completely before assembling.
Make the Haupia Filling
In a medium saucepan, combine the remaining 1 cup granulated sugar with 0.5 cup cornstarch and whisk to eliminate lumps. Slowly pour in the 13.5 oz full-fat coconut milk, whisking constantly to prevent clumping. Cook over medium heat, stirring frequently, until the mixture thickens to a pudding-like consistency, about 10-12 minutes. This should coat the back of a spoon and hold its shape when chilled.
Remove from heat and stir in the 1 tablespoon lemon juice. Pour the warm mixture into a shallow dish and refrigerate for at least 2 hours, or until completely set. The haupia should have a smooth, jelly-like texture with a slight sheen on top.
Assemble the Cake
Once both cake layers and haupia are fully cooled, place one cake layer on a serving plate. Spread a generous layer of the haupia filling, leaving a ½-inch border around the edges. Top with the second cake layer and gently press down to create a sealed sandwich.
Melt the reserved 2 tablespoons butter and brush it evenly over the top and sides of the cake. Dust with 0.5 cup powdered sugar and sprinkle 1 cup toasted coconut flakes over the top. Chill in the refrigerator for at least 1 hour before serving to allow the flavors to meld.
Pro Tips For Making Haupia Cake
- Whisk Eggs Like Mad: Beat those eggs until they’re pale, thick, and ribbon-like—no streaks, no lumps. I used to rush this, and the cake turned out dense instead of light. Five minutes with a hand mixer makes all the difference for that fluffy haupia texture.
- Chill the Batter: Let the batter sit for 10 minutes before baking—yes, even if you’re eager. Coconut milk separates when warm, and a rested batter bakes more evenly. (I know, I know, but trust the process.)
- Don’t Overmix the Flour: Fold the flour into the wet ingredients just until combined—overmixing means a tough cake. Use a spatula and cut through the batter a few times; you’re not making pancakes here.
- Use Cold Butter: Cut that unsalted butter straight from the fridge and mix it into the sugar until it’s crumbly, not greasy. Warm butter melts into the coconut milk, and you’ll end up with a greasy mess instead of a tender crumb.
Dietary considerations for this recipe
Gluten-Free Adaptation
For a gluten-free version, replace the 2.5 cups all-purpose flour with a 1:1 gluten-free baking flour blend like King Arthur Measure for Measure or Bob's Red Mill 1-to-1. Add 1 extra teaspoon xanthan gum to help bind the cake layers.
The haupia filling remains unchanged since it’s naturally gluten-free. I’ve tested this adaptation and found the texture stays tender when using a blend with fine ground brown rice flour. 🌾
Dairy-Free Version
To make this dessert dairy-free, substitute the 1 cup unsalted butter with 1 cup dairy-free butter alternative like Miyoko’s Creamery or Earth Balance. Replace the 13.5 oz full-fat coconut milk with 1 can full-fat coconut cream (no substitution needed here—it’s already dairy-free).
For the cake batter, use ½ cup unsweetened almond milk instead of whole milk. The haupia will still set beautifully, though the cake may be slightly denser. 🥥
Lower Sugar Options
Reduce the 2 cups granulated sugar to 1.5 cups for a lighter version, or use ½ cup coconut sugar for a less refined option.
The haupia filling can be sweetened with ½ cup monk fruit sweetener (like Lakanto) mixed with ½ cup granulated sugar to cut calories while keeping the texture intact. Taste the haupia before chilling—it may need a pinch more sweetener after cooling. 🍚
Nut-Free Considerations
This recipe is naturally nut-free, but always double-check your coconut milk and toasted coconut flakes for cross-contamination warnings.
If you’re avoiding coconut entirely (for allergies), replace the haupia filling with a coconut-free custard made from ½ cup evaporated milk, ½ cup powdered sugar, and 2 tbsp cornstarch, cooked the same way. The flavor will shift to a vanilla-forward profile, but the texture remains luscious. 🌱
Vegan Adaptation
For a vegan haupia cake, swap the 6 eggs for 6 flax eggs (6 tbsp ground flaxseed + 18 tbsp water, mixed and rested for 5 minutes). Use ½ cup applesauce to replace the ½ cup whole milk in the batter.
The haupia stays vegan as-is, but add 1 tsp agar-agar powder to the cornstarch mixture to ensure proper setting. Chill the filling for 3-4 hours to firm up completely. 💚
Nutrition facts
Frequently asked questions
What makes haupia cake different from regular coconut cake?
Haupia cake stands out because of its signature coconut custard filling made from thickened coconut milk and sugar, creating a jelly-like texture between the layers. Unlike regular coconut cake, it combines a light sponge with this silky haupia, giving it a unique balance of soft cake and creamy custard. The toasted coconut topping adds an extra tropical crunch!
Can I make haupia cake without coconut milk?
While traditional haupia requires coconut milk, you can substitute with full-fat coconut cream for a richer texture. For a non-coconut version, try a vanilla custard made with evaporated milk, powdered sugar, and cornstarch cooked until thick. The flavor will shift but still create a luscious filling. Always toast your coconut flakes separately for garnish!
Why did my haupia filling turn grainy?
Graininess usually happens when the mixture isn't stirred constantly while cooking or if lumps form during the cornstarch-sugar combination. Always whisk vigorously over medium heat until smooth, then strain through a fine-mesh sieve if needed. Chill the haupia completely before assembling to prevent separation.
How long can I store haupia cake before serving?
Store the assembled cake in an airtight container in the refrigerator for up to 5 days. For best texture, let it sit at room temperature for 30 minutes before serving. The haupia stays silky when properly chilled, but the cake layers may dry out if left too long. Freezing isn't recommended as it alters the haupia's texture.
Can I bake haupia cake in a different pan size?
Yes, but adjust baking times accordingly. For 9-inch pans, reduce time by 5-7 minutes (check at 20 minutes). For 7-inch pans, increase time by 5 minutes. The key is to bake until a toothpick comes out clean. Let the cake cool completely before assembling to prevent crumbling.
