The Feast

Home cooking recipes for everyday dinners and easy entertaining

Coconut Custard Bars: Easy Recipe

· 5 min read · Baking and Desserts

These coconut custard bars combine a buttery shortbread crust with a silky, coconut-packed custard topping for a dessert that's both elegant and easy. The contrast of textures—crisp base, smooth filling, and toasted coconut finish—makes them a crowd-pleaser for potlucks, holidays, or a simple weekend treat. With basic pantry ingredients and straightforward steps, this recipe delivers bakery-quality bars at home.

Ingredients

  • For the crust:
  • 1 ½ cups (190g) all-purpose flour
  • ½ cup (100g) granulated sugar
  • ¼ teaspoon salt
  • ½ cup (1 stick / 113g) cold unsalted butter, cut into small cubes
  • 1 large egg yolk
  • 1 teaspoon vanilla extract
  • For the custard filling:
  • 3 large eggs
  • ¾ cup (150g) granulated sugar
  • ¼ cup (30g) all-purpose flour
  • 1 cup (240ml) full-fat coconut milk (from a can, not light)
  • ½ cup (120ml) heavy cream
  • 1 teaspoon vanilla extract
  • ¼ teaspoon salt
  • 1 ½ cups (120g) sweetened shredded coconut
  • For topping (optional):
  • ½ cup (40g) sweetened shredded coconut, toasted

Instructions

  1. Preheat and prep: Preheat your oven to 350°F (175°C). Line a 9x9-inch baking pan with parchment paper, leaving overhang on two opposite sides for easy lifting.
  2. Make the crust: In a medium bowl, whisk together flour, sugar, and salt. Cut in the cold butter using a pastry blender or your fingertips until the mixture resembles coarse meal with some pea-sized butter bits. Add the egg yolk and vanilla; stir with a fork until the dough starts to clump. Press the dough evenly into the bottom of the prepared pan. Prick with a fork a few times.
  3. Blind bake: Bake the crust for 15-18 minutes, until lightly golden around the edges. Remove from oven and let cool slightly while you prepare the filling. (Keep the oven on.)
  4. Make the custard: In a large bowl, whisk the eggs and sugar until smooth. Add the flour and whisk until no lumps remain. Pour in the coconut milk, heavy cream, vanilla, and salt; whisk until fully combined. Stir in the 1 ½ cups shredded coconut.
  5. Assemble and bake: Pour the custard over the warm crust. Return to the oven and bake for 30-35 minutes, until the edges are set and the center jiggles slightly when shaken. The internal temperature should read 160°F (71°C) on an instant-read thermometer inserted into the center.
  6. Cool completely: Transfer the pan to a wire rack and cool to room temperature, about 1 hour. Then refrigerate for at least 2 hours (or overnight) to fully set before cutting.
  7. Cut and serve: Using the parchment overhang, lift the bars out of the pan. Cut into squares with a sharp knife, wiping the blade clean between cuts. If desired, sprinkle with toasted coconut before serving.

Tips

  • Blind baking is essential: Don't skip pre-baking the crust—this prevents a soggy bottom. If the crust puffs up during baking, gently press it down with the back of a spoon while still warm.
  • Use full-fat coconut milk: Light coconut milk has too much water and will result in a thinner custard that doesn't set properly. Shake the can well before measuring.
  • Check doneness by temperature: The custard should reach 160°F (71°C) for food safety, but it will still look slightly jiggly in the center—that's normal. Overbaking causes cracks; if cracks appear, they'll settle as it cools.
  • Chill before cutting: Bars cut cleanly only after thorough chilling. If they stick to the knife, run it under hot water and dry it before each slice.

Serving Suggestions

Serve these bars chilled or at room temperature. They're delicious on their own, but a dollop of whipped cream or a drizzle of caramel sauce elevates them. For a tropical twist, pair with fresh mango slices or a scoop of coconut ice cream. These bars also hold up well on a dessert table—no forks needed.

Variations

  • Lime coconut bars: Add 1 tablespoon of lime zest and 2 tablespoons of lime juice to the custard for a citrusy kick.
  • Chocolate coconut: Sprinkle ½ cup of mini chocolate chips over the custard before baking, or drizzle melted dark chocolate over the cooled bars.
  • Gluten-free: Substitute the all-purpose flour in both crust and filling with a 1:1 gluten-free flour blend that contains xanthan gum.
  • Nutty crunch: Add ½ cup of toasted chopped macadamia nuts or almonds to the crust mixture for extra texture.

Storage and Reheating

Store leftover bars in an airtight container in the refrigerator for up to 4 days. They can also be frozen for up to 2 months—wrap each bar individually in plastic wrap, then place in a freezer-safe bag. Thaw overnight in the refrigerator before serving. These bars are best served cold or at room temperature; no reheating is needed. If you prefer a warm dessert, microwave a single bar for 10-15 seconds, but note the crust may soften.

Frequently Asked Questions

Why did my custard curdle or separate?

Curdling usually happens if the oven temperature is too high or if the custard is overbaked. Make sure your oven is accurate (use an oven thermometer) and pull the bars when the center reaches 160°F, even if it looks a bit jiggly. Also, whisk the eggs and sugar thoroughly before adding liquids to ensure a smooth emulsion.

Can I use cream of coconut instead of coconut milk?

No—cream of coconut is heavily sweetened and much thicker, which will make the bars overly sweet and dense. Stick with unsweetened coconut milk. If you want a more intense coconut flavor, use coconut cream (not cream of coconut) and reduce the heavy cream to ¼ cup.

Can I make these bars dairy-free?

Yes. Replace the butter in the crust with a plant-based butter (like Earth Balance) and use full-fat coconut cream in place of the heavy cream. The texture will be slightly different but still delicious. Ensure your plant-based butter is cold and solid for the crust.

How do I know when the bars are done?

Use an instant-read thermometer—it should read 160°F (71°C) in the center. The edges will look set and slightly puffed, while the center will still wobble. If you don't have a thermometer, insert a knife near the center; if it comes out mostly clean with a few moist crumbs, they're done.

Why are my bars too runny after baking?

Runny bars usually mean they were underbaked or the ratio of liquid to flour was off. Always measure flour correctly (spoon and level, don't scoop). Also, ensure you chill the bars for at least 2 hours—they continue to set as they cool. If they're still runny after chilling, they likely need more bake time next time.

Can I use fresh coconut instead of shredded?

Yes, but fresh coconut is less sweet and drier. Use about 1 ½ cups of finely grated fresh coconut, and increase the sugar in the custard by 2 tablespoons to compensate. Toast it lightly before adding to the custard for better flavor.

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