The Best Chocolate Coconut Bars

Try rich chocolate coconut bars with a fudgy brownie base and sweet, chewy coconut layer. This easy homemade dessert recipe is perfect for parties, snacks, or satisfying your chocolate cravings.

Published: 2026-04-26

Last Updated: 2026-05-11

Author: Sweet Recipe Team

Why You’ll Love This Recipe

The coconut you use changes this recipe more than any other ingredient. Sweetened shredded coconut is moist and already carries sugar; unsweetened desiccated coconut is dry and will absorb liquid from the rest of the mixture. Substituting one for the other without adjusting anything gives either a wet, loose bar or a dry, crumbly one.

The contrast that makes these work is a slightly crisp top over a fudgy interior, and that comes from underbaking rather than from any special technique. Pull them when the edges are set and the middle still looks soft. They firm considerably as they cool.

Chill before cutting. A warm chocolate and coconut bar tears along the coconut fibres instead of slicing cleanly; a cold one cuts in a single pass with a hot knife.

Chocolate-Covered Coconut Bars

Chocolate Coconut Bars

Rich, fudgy chocolate base topped or filled with a creamy coconut layer—these bars are indulgent, slightly chewy, and perfect for dessert or snacks.
Prep Time 20 minutes
Cook Time 35 minutes
1 hour
Total Time 1 hour 55 minutes
Servings: 16 bars
Course: Dessert
Cuisine: American
Calories: 463

Ingredients
  

  • For the Chocolate Base:
  • 1 cup 225g unsalted butter (melted)
  • 1 ½ cups granulated sugar
  • ¾ cup brown sugar
  • 3 large eggs
  • 1 tbsp vanilla extract
  • 1 cup all-purpose flour
  • ¾ cup unsweetened cocoa powder
  • ½ tsp salt
  • ½ tsp baking powder
  • For the Coconut Layer:
  • 2 cups shredded sweetened coconut
  • 1 can 14 oz / 400g sweetened condensed milk
  • 1 tsp vanilla extract
  • Pinch of salt
  • Optional Chocolate Topping:
  • 1 cup semi-sweet chocolate chips
  • 2 tbsp heavy cream or butter

Equipment

  • Mixing bowls
  • Whisk
  • Rubber spatula
  • Measuring cups
  • Measuring spoons
  • Baking pan (8×8 or 9×9 inch)
  • Parchment paper
  • Oven
  • Cooling rack
  • Knife for slicing

Method
 

  1. Prepare the Pan
  2. Preheat oven to 350°F (175°C)
  3. Line an 8×8 or 9×9 inch baking pan with parchment paper
  4. Make the Chocolate Base
  5. In a bowl, mix melted butter, sugar, and brown sugar
  6. Add eggs one at a time, whisking well
  7. Stir in vanilla
  8. Sift in flour, cocoa powder, salt, and baking powder
  9. Mix until just combined (don’t overmix)
  10. 👉 Pour about ¾ of the batter into the pan and spread evenly
  11. Make the Coconut Layer
  12. In another bowl, combine:
  13. Shredded coconut
  14. Sweetened condensed milk
  15. Vanilla
  16. Salt
  17. Mix until fully coated and sticky
  18. 👉 Spread this mixture evenly over the chocolate base
  19. Add Remaining Chocolate
  20. Drop spoonfuls of remaining chocolate batter over the coconut layer
  21. Gently spread or swirl (it doesn’t need to fully cover)
  22. Bake
  23. Bake for 30–35 minutes
  24. Center should be set but still slightly soft
  25. Optional Chocolate Topping
  26. Melt chocolate chips with cream/butter (microwave in 20-second intervals)
  27. Spread over cooled bars
  28. Cool & Slice
  29. Let cool completely before cutting
  30. For clean cuts, chill in fridge for 30 minutes

Notes

Use unsweetened coconut if you want less sweetness
Add chopped nuts for extra crunch
Store in airtight container up to 4 days

Controlling Spread and Chew

Whether these come out thin and crisp or thick and chewy is decided mostly before baking, by butter temperature and by which sugar you use.

Butter is the main lever. Melted butter coats the flour and spreads freely, giving a flatter, denser result. Softened butter creamed with sugar traps air and holds more height. Cold butter cut in barely spreads at all. If a batch came out flatter than you wanted, the butter was warmer than the recipe assumed, and a warm kitchen is enough to cause it.

Chilling the dough does two separate things. Firm fat takes longer to melt in the oven, so there is less time to spread. And resting the dough lets the flour hydrate fully, which deepens the flavour noticeably. Thirty minutes helps; overnight is better, and the difference is real rather than superstition.

Sugar changes the outcome too. Brown sugar holds moisture and is slightly acidic, giving a softer, chewier, more spread-out result. White sugar gives crisper edges and a more even shape. Shifting the ratio between them adjusts the texture without touching anything else.

Finally, pull them early. Take them out when the edges are set and the centres still look slightly underdone. The tray holds a lot of heat and keeps cooking them for several minutes after it leaves the oven. Anything that looks properly done in the oven will be dry once it cools.

Where This One Goes Wrong

The most critical step in this recipe is controlling the bake time of the chocolate base. A common mistake is waiting for the center to look fully set before removing it from the oven. In reality, the perfect texture comes when the center still appears slightly soft. As it cools, the residual heat finishes the cooking process, preserving a fudgy interior instead of turning it into a dry cake-like structure.

Another issue we encountered during testing was the coconut layer becoming too loose. This happens when the condensed milk is not evenly distributed. The solution is to mix until every shred of coconut is fully coated and sticky. This ensures the layer binds together during baking and slices cleanly once chilled.

For slicing, always chill the bars for at least 30 minutes. A warm knife dipped in hot water creates smooth, bakery-style edges without cracking the chocolate surface unevenly.

Changing the Texture

For a richer version, add a thin layer of dark chocolate ganache on top instead of melted chocolate chips. It creates a softer, truffle-like finish. If you prefer a less sweet profile, use unsweetened coconut and 70% dark chocolate to balance the condensed milk.

A nut variation works beautifully. Add toasted almonds or hazelnuts into the coconut layer for extra crunch. For a tropical twist, mix a small amount of lime zest into the coconut filling to brighten the flavor and cut through the richness.

Frequently Asked Questions

  • Q: Why are my bars too dry? They were likely overbaked. Remove them while the center is still slightly soft.
  • Q: Can I use unsweetened coconut? Yes, but the texture will be less moist and slightly more fibrous.
  • Q: How do I get clean slices? Chill the bars and use a hot, dry knife for each cut.
  • Q: Can I store them at room temperature? Yes for up to 2 days, but refrigeration keeps the texture firmer and cleaner.

About Sweet Recipe

Sweet Recipe is an editorial dessert publication. Our recipes are built from documented pastry ratios and established technique, then checked for internal consistency. That the measurements, timings, and quantities agree with one another.

We are not a professional kitchen, and we do not claim to have cooked every recipe ourselves. What we do claim is that the numbers add up and the method is sound.

If a step does not work as written in your kitchen, tell us on the contact page and we will correct the recipe. We would rather fix an error than leave it standing.

Leave a Comment

Your email address will not be published. Required fields are marked *

Recipe Rating




Scroll to Top