This post may contain affiliate links, which means I may earn a small commission at no extra cost to you. I only recommend products I truly use and love. You can read my full disclosure here.
If you love coconut and classic millionaire bars, this recipe is about to become a favorite. These bars start with a buttery coconut shortbread crust and are topped with creamy coconut custard, homemade caramel, and a smooth chocolate ganache. There’s something special about coconut that automatically becomes a crowds favorite. When you pair it with caramel and a smooth chocolate ganache that brings a velvety rich texture to the coconut shreds, you have something that will leave you speechless.
Why You’ll Love This Recipe
- Buttery Coconut Shortbread: A stable buttery coconut crust that is soft in texture and is baked til golden perfection.
- Coconut Custard Filling: This filling SHOULD be a dessert by itself. It’s full of rich coconut flaky with texture of coconut shreds that is to die for.
- Homemade Caramel: The ultimate twist in the traditional version Millionaire’s Bar. The caramel brings a hint of warmth and gooeyness that complements the coconut and chocolate so well.
- Velvety Chocolate Ganache: Who doesn’t love chocolate? Each bite you get the balance of crunch, gooeyness, sticky, and flavorful treat.
Homemade Caramel Troubleshooting Tips!
My sugar crystallized. What went wrong?
This usually happens if the sugar is stirred too much while melting. Once it begins to liquefy, stop stirring and gently swirl the pan instead.
My caramel seized or became grainy.
If the butter or cream was too cold, the caramel can harden suddenly. Keep both slightly warm before adding. If it seizes, return to low heat and whisk until smooth again.
My caramel is too thick / too thin.
Stir in 1–2 tablespoons of warm heavy cream over low heat until it loosens to a pourable consistency. If your caramel is too thin, let it simmer for another 1–2 minutes. It will also thicken as it cools and sets in the refrigerator.
My caramel tastes burnt.
If the sugar gets too dark (nearly black), it will be bitter. The perfect caramel color is deep amber — once it reaches that shade, remove it from the heat immediately.
My caramel layer slid into the custard.
Make sure the coconut custard is fully chilled and set before adding the caramel so you get clean, defined layers.
Let’s Start Baking!
Delicious Coconut (Millionaire’s) Shortbread Bars
Ingredients
Coconut Shortbread:
- 2 cups all purpose flour, scooped and leveled (240 g)
- 1 cup white granulated sugar (200 g)
- 1 tsp salt
- 1 egg, room temperature
- 12 tbsp unsalted butter, softened (170 g)
- 2 tbsp coconut oil, room temperature
- 1 tsp vanilla extract
Coconut Custard:
- ½ cup granulated sugar, (100 g)
- ¼ cup cornstarch
- 1 cup coconut milk, (240 ml)
- 1 cup milk whole, (240 ml)
- 2 eggs, beaten and room temperature
- 3 tbsp butter, cubed (43 g)
- 1 1/2 cup sweetened flaked coconuts
- 2 tsp vanilla extract
Homemade Caramel Sauce:
- 1 cup white granulated sugar, (200 g)
- 6 tbsp unsalted butter, cubed and room temperature (66 g)
- ⅓ cup heavy cream (80 ml)
- ½ tsp salt
Chocolate Ganache:
- 1 cup semi sweet or milk chocolate, ( 8 ounces)
- 1 cup heavy cream, cold (240 ml)
Instructions
Coconut Shortbread:
- Preheat oven to 375°F (190°C). Lightly spray a 9×9-inch baking pan with nonstick cooking spray then line with parchment paper, leaving overhang on the sides for easy removal.
- Using a stand mixer with the paddle attachment, cream together the softened butter, coconut oil, and granulated sugar until light and fluffy, about 2–3 minutes. Add the egg and vanilla extract, mixing until fully incorporated.
- Gradually mix in the all purpose flour and salt until a soft dough forms. Press the shortbread dough evenly into the prepared pan, you can apply a light dusting of flour on your fingertips if the dough is sticking too much.
- Bake for 18–22 minutes, or until the edges are lightly golden and the center looks set. Remove from the oven and allow to cool slightly while preparing the coconut custard layer.
Coconut Custard:
- In a medium heatproof bowl, beat your two eggs and set aside.
- In a medium saucepan, whisk together the granulated sugar and cornstarch. Over medium heat, slowly pour in the coconut milk and whole milk, whisking constantly until smooth. Continue cooking over medium heat until the mixture thickens and starts to bubble. (about 5-8 minutes).
- Once thickened, remove from heat. Take a ladle and spoon the thicken mixture into the beaten eggs, whisking continuously to prevent the eggs from scrambling. Repeat this 2 more times for a total of 3 spoonfuls. Once fully combined, place your egg mixture back to the saucepan and return to medium heat.
- Add in the cubed butter, shredded coconut, and vanilla extract and continue to cook, stirring continuously, for an additional 5 minutes.
- Pour the warm coconut custard over the slightly cooled shortbread crust and spread evenly with a spatula. Refrigerate for at least 1 hour, or until the coconut layer is set.
Homemade Caramel Sauce:
- About 40 minutes into the coconut custard layer chilling, start on the homemade caramel sauce.
- In a medium saucepan, heat the granulated sugar over medium heat, stirring constantly until it melts and turns a deep amber color.
- Carefully add the cubed butter and whisk until fully melted. Slowly pour in the heavy cream while whisking. Stir in the salt and cook for another 1–2 minutes until smooth and glossy. Remove from heat and let cool for 10–15 minutes.
- Once slightly thickened, pour the caramel over the chilled coconut custard layer and spread evenly. Return to the refrigerator for 30–40 minutes to allow the caramel to firm up.
Chocolate Ganache:
- In a medium heatproof bowl, microwave heavy cream for about 1 minute until simmering. Remove from microwave and place chocolate chips in heavy cream, let sit for 2–3 minutes, then stir until smooth and silky.
- Pour the ganache over the caramel layer and gently spread to the edges. Refrigerate for at least 2 hours (can be overnight), or until fully set before slicing.
Notes
- The chill time on this dessert can be as quick or as long as you want. Once the chocolate ganache is poured on top, it can be refrigerated covered overnight or ready in 2 hours.
- If you don’t want to take on the task of making homemade caramel sauce, I recommend using Ghirardelli’s Caramel Sauce, using about 1 1/4 cups for a replacement.
Did you make these?
If you tested out this recipe make sure to leave a comment below letting me know what you think! And as always, make sure you tag me on Instagram @bakedby_brittney

Hey! Amazing textures and amazing taste! Gave some to my friends and family and everybody loved it!!!
I had trouble with the slicing part, everything is shifting and they look a little rough 😂 any advice ? Thank you
Hi! I am so glad you loved the dessert. My only suggestion would be to let it chill a little longer and when you’re slicing, run the knife under hot water in between cuts. Hope this helps 🙂
Hey! Amazing textures and amazing taste! Gave some to my friends and family and everybody loved it!!!
I had trouble with the slicing part, everything is shifting and they look a little rough 😂 any advice ? Thank you
Oh my goodness, I made this recipe for an early Galentine’s Day and it was a hit! Thank you so much for sharing this. They turned out fantastic.
Galentine’s day, love this! I am so happy you enjoyed the recipe!