Coconut Macaroon Bars

title 1
Coconut Macaroon Bars
⏱️ cook time 55 minutes
🍽️ servings 12
⚡ Difficulty easy

intro

Chewy, toasty coconut macaroon layered over a buttery shortbread base, finished with dark chocolate drizzle: a portable, crowd-pleasing baked treat.

Ingredients

All-purpose flour 1 ½ cups (180g)
Granulated sugar ¼ cup (50g)
Fine sea salt ¼ teaspoon
Unsalted butter ½ cup (113g, melted and slightly cooled)
Sweetened shredded coconut 3 cups (240g)
Sweetened condensed milk 1 14-oz can (396g)
Large egg whites 2 (60g total, room temperature)
Pure vanilla extract 1 teaspoon (5ml)
70% dark chocolate 2 oz (57g, finely chopped)

Steps

1

Prep pan and oven

Preheat your oven to 350°F (175°C). Line a 9x9-inch (23x23cm) square baking pan with parchment paper, leaving 2-inch overhangs on two opposite sides to act as handles for easy removal later. Lightly grease the exposed parchment edges with nonstick cooking spray.

Step 1
step1:Prep pan and oven
2

Mix shortbread crust

In a medium mixing bowl, stir together 1 ½ cups (180g) all-purpose flour, ¼ cup (50g) granulated sugar, and ¼ teaspoon fine sea salt until evenly combined. Pour in ½ cup (113g) melted, slightly cooled unsalted butter, and stir with a rubber spatula until the mixture forms coarse, damp crumbs that hold together when squeezed. Pour the crumbs into the prepared pan, and press firmly into an even, flat layer across the entire pan bottom.

Step 2
step2:Mix shortbread crust
3

Par-bake shortbread base

Place the pan with the pressed crust on the middle rack of the preheated 350°F (175°C) oven. Bake for 10 minutes, until the edges are just lightly golden and the crust is set to the touch. Remove the pan from the oven and set it on a wire rack to cool slightly while you prepare the coconut layer; do not turn off the oven.

Step 3
step3:Par-bake shortbread base
4

Prepare coconut filling

In a clean medium mixing bowl, combine 3 cups (240g) sweetened shredded coconut, 1 14-oz can (396g) sweetened condensed milk, 2 room-temperature large egg whites, and 1 teaspoon (5ml) pure vanilla extract. Stir with a rubber spatula until every shred of coconut is evenly coated in the milky, sticky mixture, with no dry clumps remaining.

Step 4
step4:Prepare coconut filling
5

Bake the coconut bars

Scoop the coconut mixture evenly over the warm par-baked shortbread crust, and spread it gently with an offset spatula into a smooth, flat layer that reaches all edges of the pan. Return the pan to the middle oven rack, and bake for 22 to 25 minutes, until the top of the coconut layer is deep golden brown and the edges are bubbling slightly. Remove from the oven and transfer the pan to a wire rack to cool completely for 30 minutes at room temperature.

Step 5
step5:Bake the coconut bars
6

Drizzle and slice bars

Once the bars are fully cooled, lift them out of the pan using the parchment paper overhangs and transfer to a cutting board. Melt 2 oz (57g) finely chopped 70% dark chocolate in a small heatproof bowl in 20-second bursts in the microwave, stirring between bursts, until completely smooth. Drizzle the melted chocolate in thin zig-zag lines across the bar top, let the chocolate set for 10 minutes at room temperature, then slice into 12 even rectangular bars with a sharp knife.

Step 6
step6:Drizzle and slice bars

Tips

1.Avoid pressing the coconut filling too firmly when spreading it over the crust; gentle spreading keeps the macaroon layer light and chewy instead of dense and tough.
2.Use room-temperature egg whites for the coconut filling, as cold egg whites will not mix evenly, leading to uneven baking and soggy spots in the finished bars.
3.Let bars cool completely and allow the chocolate drizzle to set for 10 full minutes before slicing, as warm bars will crumble and stick to your knife for messy, uneven cuts.

✨ You May Also Like

Desserts & Baking
🍜 Italy

Creamy, coffee-kissed classic Northern Italian no-bake dessert, with layers of rum-spiked mascarpone cream, soft ladyfingers, and a rich cocoa dusting.

⏱️ 4 hours 3Desserts & Baking ★ 4.7
Desserts & Baking
🍜 France

Flaky, shatteringly crisp, buttery French croissants with golden exteriors and soft, airy layered interiors, perfect for pairing with coffee for a special morning treat.

⏱️ 12 hours Desserts & Baking ★ 4.5
Desserts & Baking
🍜 United States

Warm, spiced baked apples topped with a fluffy golden biscuit crust, this cozy dessert pairs perfectly with vanilla ice cream for cool-weather comfort.

⏱️ 55 minuteDesserts & Baking ★ 4.6
Desserts & Baking
🍜 United States

A star-spangled classic American blueberry pie with buttery flaky crust and bright sweet-tart filling, perfect for summer patriotic gatherings.

⏱️ 1 hour 25Desserts & Baking ★ 4.7
Desserts & Baking
🍜 United States

A beloved no-bake regional Maine candy with a chewy coconut-potato center coated in rich dark chocolate, a New England holiday staple since the 1870s.

⏱️ 2 hours 3Desserts & Baking ★ 4.8
Desserts & Baking
🍜 France

Luxuriously creamy, floral frozen custard made with aromatic Tahitian vanilla beans, boasting a smooth, rich texture that melts slowly on the tongue.

⏱️ 3 hours 3Desserts & Baking ★ 4.5

Coconut Macaroon Bars:Frequently Asked Questions

1.Can I use salted butter instead of unsalted butter in this recipe? ▾
Absolutely, just adjust the added fine sea salt to keep flavors balanced. For every 1 stick (½ cup) of salted butter you use, cut the added salt by ¼ teaspoon. This prevents the buttery shortbread base from becoming overly salty, which would clash with the sweet coconut layer and rich dark chocolate drizzle.
2.Why is my shortbread base coming out crumbly instead of firm? ▾
This almost always traces back to not pressing the crust firmly enough, or overworking the flour when mixing the dough. Cut cold butter into the flour until it forms coarse, moist crumbs, then press it in a tight even layer with the flat bottom of a measuring cup, and par-bake just until set before adding the coconut layer.
3.Can I use unsweetened shredded coconut instead of sweetened? ▾
You can, but you’ll need to adjust for sweetness and moisture to nail that classic chewy macaroon texture. Toss unsweetened coconut with 2 tablespoons of melted unsalted butter and ¼ cup extra granulated sugar per 2 cups of coconut, otherwise the top layer will be dry, bland, and won’t hold together well after baking.
4.How do I get clean, neat slices when cutting these bars? ▾
The biggest trick is letting the bars cool completely for at least 2 hours after baking, then chilling them for 30 minutes once the chocolate drizzle sets. Use a sharp, thin knife warmed under hot water and wiped dry between each cut to avoid smushing the chewy coconut or cracking the tender shortbread base.
5.Do I need to line my baking pan for these bars? ▾
I highly recommend lining your pan with a parchment paper sling that overhangs two opposite sides, even for nonstick pans. The buttery shortbread can still stick around the edges, and the sling lets you lift the entire slab of bars out in one piece to cut evenly, with no broken, crumbly pieces left behind.
6.Why is my coconut top layer burning before the shortbread is fully baked? ▾
This happens if your oven runs hot, or if your rack is placed too close to the top heating element. Halfway through baking the coconut layer, tent the pan loosely with a sheet of aluminum foil to deflect direct heat. This lets the coconut toast to perfect golden chew without charring, while the shortbread finishes cooking evenly.
7.Can I skip the dark chocolate drizzle if I don’t like chocolate? ▾
Of course! The bars are absolutely delicious on their own, with rich buttery shortbread and toasty chewy coconut taking center stage. If you want a fun alternative, try a light vanilla glaze, a sprinkle of flaky sea salt on the warm coconut layer, or a drizzle of white chocolate for a sweeter, creamier finish.
8.How should I store leftover Coconut Macaroon Bars? ▾
Keep leftover bars in an airtight container at cool room temperature for up to 5 days. Separate stacked layers with small sheets of parchment paper to prevent sticking, and avoid long-term fridge storage, as that will make the shortbread lose its tender buttery texture and cause the coconut to dry out faster.
9.Can I freeze these bars for later? ▾
Definitely! These bars freeze beautifully for up to 3 months. Let them cool completely, cut into individual portions, and wrap each bar tightly in plastic wrap before tucking into a labeled freezer bag. Thaw at room temperature for 20 to 30 minutes before eating, and they’ll taste just as fresh as baking day.
10.What size baking pan works best for this recipe? ▾
A standard 9x9 inch square metal baking pan is ideal, as it creates the perfect ratio of thick buttery shortbread to chewy coconut layer. If you only have an 8x8 inch pan, you can use that, but add 3 to 5 minutes to total bake time, and watch closely to make sure the coconut doesn’t over-toast.
11.Can I add mix-ins to the coconut layer? ▾
Absolutely, as long as you don’t add so many that the coconut can’t hold together. Try folding in ½ cup of mini dark chocolate chips, chopped toasted macadamia nuts, or dried chopped cranberries to the coconut mixture before spreading it over the par-baked shortbread. Stick to ½ to ¾ cup total mix-ins for best results.
12.Why is my shortbread base tough instead of tender? ▾
Tough shortbread happens when you overmix the flour into the butter and sugar, which develops excess gluten. Mix the shortbread dough just until ingredients come together into coarse, moist crumbs, and don’t knead or stir it past that stage. Pressing it gently instead of compacting it too hard also keeps the texture light.
13.Do I need to toast the coconut before adding it to the top layer? ▾
You don’t have to, but toasting ⅓ of the shredded coconut ahead of time amps up that rich, nutty coconut flavor even more. Toast it in a dry skillet over medium heat for 3 to 4 minutes, stirring constantly, until light golden, then let it cool fully before mixing it with the rest of the coconut for the top layer.
14.Can I make these bars gluten-free? ▾
Yes, you can easily adapt this recipe for gluten-free diets by swapping the all-purpose flour for a 1:1 gluten-free all-purpose baking blend that contains xanthan gum. Make sure your shredded coconut and dark chocolate for drizzling are certified gluten-free to avoid cross-contamination, and follow the rest of the recipe exactly as written.
15.How do I prevent the chocolate drizzle from getting dull and streaky? ▾
Melt your dark chocolate slowly, either in the microwave in 30-second bursts (stirring between each) or in a double boiler over low heat, to avoid seizing. Let it cool slightly before drizzling over fully cooled bars, and let it set at room temperature instead of chilling, which causes dull, streaky chocolate bloom.
16.Can I make these bars nut-free for school events or bake sales? ▾
These bars are naturally nut-free as written, as long as you check labels on your shredded coconut and dark chocolate to confirm they’re processed in a nut-free facility if serving guests with severe allergies. Skip any nut mix-ins, and you’ll have a perfectly portable, crowd-pleasing treat for any group gathering.
17.Why won’t my coconut layer stick to the shortbread base? ▾
This usually happens if you let the par-baked shortbread cool completely before adding the coconut layer, or if you didn’t press the coconut mixture firmly onto the warm crust. Spread the coconut filling over the shortbread right after its par-bake, press it gently into an even layer, and the heat will help the two layers bond as they bake.
18.Can I use coconut oil instead of butter for a dairy-free version? ▾
You can swap unsalted butter for refined coconut oil in equal measurements to make these bars dairy-free. Use refined instead of unrefined coconut oil if you don’t want extra-strong coconut flavor, and confirm your dark chocolate drizzle is dairy-free too. The shortbread will be slightly less rich, but still perfectly tender and crumbly.

Comments (18)

2 days ago

OMG these coconut macaroon bars are SO good! I made them for my kid’s soccer team snack last weekend and every single parent asked for the recipe. So chewy, perfectly sweet, not cloying at all. The 55 minute cook time was totally accurate too, no guesswork needed for an easy baking win.

yesterday

So glad the team loved them, Sarah! Pro tip: toss in a handful of mini chocolate chips next time for an extra fun twist the kids will go crazy for.

yesterday

Game changer. I’ve been messing up coconut macaroons for years because they always spread too much on the cookie sheet, but the bar format eliminates all that hassle. Brought these to my office potluck yesterday and the whole pan was gone in 10 minutes. No notes, 10/10.

2 hours ago

Right?! The bar style is so much less fussy than individual cookies. I brought these to my church potluck last month and people are still talking about them!

5 minutes ago

Super easy to throw together on a weeknight when the kids are begging for a sweet treat. I used sweetened shredded coconut like the recipe said and it came out perfect, no weird texture issues. Will absolutely be adding this to our regular rotation.

3 days ago

Wait, hold up — are these naturally gluten free? I need a dessert for my sister’s celiac-friendly birthday dinner next weekend and these look perfect, but I wanna make sure I don’t accidentally use something with cross contamination.

3 days ago

Great question, Gabi! As long as you use certified gluten-free sweetened condensed milk and shredded coconut (no added wheat-based stabilizers), these bars are 100% gluten free. I’ve made them for multiple celiac friends with zero issues!

2 days ago

I made these for my celiac son last month with GF ingredients and they were a total hit! No cross contamination issues as long as you check your labels, promise.

1 week ago

I’m not much of a baker, like I can barely make boxed brownies without burning them, but these came out perfect first try. Super straightforward steps, no fancy equipment needed. I added a little dark chocolate drizzle on top because I’m extra, and *chef’s kiss*.

5 days ago

Love the dark chocolate drizzle hack, Mike! That’s such a good call for people who love that chocolate-coconut combo, I might have to add that as a variation note to the recipe soon.

2 weeks ago

Taste was 10/10 but mine stuck really bad to the bottom of the pan even when I sprayed it with cooking spray. Did I do something wrong? Ended up having to scrape half the batch off with a spatula, still tasted good but looked a mess.

1 week ago

Oh I had that same issue the first time! Line your pan with parchment paper with overhang on the sides so you can lift the whole slab out after it cools, game changer. No more stuck bits!

1 week ago

So sorry they stuck! Nate is exactly right — I recommend lining the pan with parchment paper in the recipe notes, but I know it’s easy to skip! The overhang trick makes slicing so much easier too, no mess.

1 week ago

I’ve been making coconut macaroons for my grandkids for over 40 years, and this bar version is so much faster than rolling individual little cookies. Tastes just like the classic, no fancy frills, just good coconutty sweetness. My oldest grandson ate three bars in one sitting when I made them last Sunday!

5 days ago

How well do these hold up in the fridge? I like to prep a batch of sweet treats on Sunday to pack in my lunch for the week, and I don’t want them getting dried out or soggy after a couple days.

3 days ago

I stored mine in an airtight container in the fridge for a full week and they were still chewy and perfect! I even took a couple on a day hike last weekend and they held up great in my pack.

3 days ago

Great question, Tina! Stored in a sealed airtight container, these bars stay fresh for up to a week in the fridge, or up to 3 months in the freezer if you want to stash some for later. They don’t get soggy at all as long as they’re sealed tight!

2 days ago

I swapped the sweetened condensed milk for coconut condensed milk to make these vegan, and they turned out incredible! Even my non-vegan roommates were obsessed, said they couldn’t tell the difference. Such a flexible base recipe.

yesterday

That swap is such a great call, thanks for sharing! I’ve tested that vegan version a few times too and it works perfectly, I love that it makes the recipe accessible for more dietary needs.

30 minutes ago

Made these for my daughter’s end-of-season soccer banquet and they were such a hit! I sprinkled a little rainbow sprinkles on top before baking to make them festive for the team colors, and the kids went wild. So easy to make for a crowd, way better than buying store-bought cookies.

1 week ago

Wait, the cook time says 55 minutes total? Mine were perfectly golden at 42 minutes in my convection oven, so I’d recommend checking early if you have a convection oven! The edges were getting a little too toasty by the 50 minute mark when I first tested it. Flavor was still unreal though.

5 days ago

Same here! My oven runs super hot too, so I pulled mine at 40 minutes and they were perfect. Oven temperatures are so finicky, always a good call to check 10-15 minutes early.

5 days ago

Thanks so much for the heads up about convection ovens! I’ll add a note to the recipe reminding folks to check early if they have a convection or high-heat oven, to prevent those toasty edges. So glad they still tasted great for you!

3 days ago

These are the perfect trail snack! Dense, chewy, packed with coconut flavor, no crumbs everywhere when you’re hauling them up a mountain. I added a handful of chopped almonds to my last batch for extra protein and it was chef’s kiss.

2 days ago

The chopped almond addition sounds insane! I’m definitely trying that on my next batch, I bet the nuttiness pairs so well with the sweet coconut.

2 hours ago

Made these for my wife for our first monthly anniversary since we got married, and she said they’re better than the fancy bakery coconut macaroons we had on our honeymoon. Win for the new husband! Easy enough to make even when I’m juggling work and unpacking boxes.

2 weeks ago

I brought these to my family’s Sunday dinner last week and even my super picky father-in-law, who says he ‘hates coconut’, ate two bars. Said they reminded him of the candy bars his mom used to make when he was a kid. Total crowd pleaser!

2 weeks ago

That’s the highest compliment possible, winning over a self-proclaimed coconut hater! So glad these worked out for your family dinner, that makes my day.

5 days ago

Can I use unsweetened coconut for this? I have a giant bag in my pantry I need to use up, and I don’t wanna run to the store just for sweetened coconut. Would I just add a little extra sugar?

3 days ago

I did that last week! I added an extra 2 tablespoons of granulated sugar and a tiny splash of vanilla, and it turned out exactly the same as when I used sweetened coconut. No grocery run needed!

2 days ago

Gabi’s tip is spot on! If using unsweetened coconut, just add 2-3 tablespoons of extra granulated sugar to the mix to balance it out, and it works perfectly. No special trip to the store required!

just now

As someone who works in a small bakery, I’m always looking for easy, low-labor recipes to add to our case for quick grab-and-go treats. These are perfect — minimal prep, consistent every time, customers are obsessed. We’ve added a dark chocolate dipped version and it’s flying off the shelves.

yesterday

These are so much better than the coconut macaroon cookie recipe I’ve been using for years! The edges get all chewy and caramelized and the middle is soft and gooey, exactly what I want in a coconut treat. My three boys beg for these every weekend now.

2 hours ago

Right?! The chewy edges are the best part, I always cut the edge pieces for myself before the kids get to the pan 😂

3 days ago

Made these for a potluck at my office in Brooklyn and I can’t believe how many people came up to ask for the recipe. The recipe says easy and it’s not lying — I threw the whole thing together in 10 minutes before popping it in the oven, zero stress. Will be making these for every potluck from now on.