I love recreating bakery-style treats at home, and these Starbucks-inspired lime frosted coconut bars are one of my favorites. They have a soft, buttery coconut base topped with a smooth, tangy lime frosting that perfectly balances sweetness with citrus brightness. Every bite reminds me of a coffee shop treat, but I get to enjoy them fresh from my own kitchen.
Why You’ll Love This Recipe
I love how easy these bars are to make with simple pantry ingredients. The coconut base turns out moist and tender every time, while the lime frosting adds a refreshing zing that keeps them from being overly sweet. I also appreciate that I can prepare them ahead of time for gatherings, and they slice beautifully for serving. The flavor combination of coconut and lime always feels bright, tropical, and comforting all at once.
Ingredients
(Here’s a tip: Check out the full list of ingredients and measurements in the recipe card below.)
For the coconut base: 1 cup unsalted butter, softened 1 1/2 cups granulated sugar 3 large eggs 1 tablespoon lime zest 2 tablespoons fresh lime juice 1 teaspoon vanilla extract 2 cups all-purpose flour 1 teaspoon baking powder 1/2 teaspoon salt 1 cup sweetened shredded coconut
For the lime frosting: 1/2 cup unsalted butter, softened 3 cups powdered sugar 2 tablespoons fresh lime juice 1 teaspoon lime zest 1–2 tablespoons milk, as needed for consistency
Directions
I start by preheating my oven to 350°F (175°C) and lining a 9×13-inch baking pan with parchment paper.
In a large bowl, I cream together the softened butter and granulated sugar until light and fluffy. I add the eggs one at a time, mixing well after each addition. Then I stir in the lime zest, lime juice, and vanilla extract.
In a separate bowl, I whisk together the flour, baking powder, and salt. I gradually add the dry ingredients into the wet mixture, mixing just until combined. I fold in the shredded coconut until evenly distributed.
I spread the batter evenly into the prepared pan and bake for 22–25 minutes, or until the edges are lightly golden and a toothpick inserted in the center comes out clean. I let the bars cool completely in the pan before frosting.
For the frosting, I beat the softened butter until smooth. I gradually mix in the powdered sugar, then add the lime juice and zest. I add milk a little at a time until I reach a smooth, spreadable consistency. I spread the frosting evenly over the cooled bars, then chill them slightly to help the frosting set before slicing.
Servings and timing
I usually cut these into 16 bars.
Prep time: 20 minutes Bake time: 22–25 minutes Cooling and frosting time: 45 minutes Total time: About 1 hour 30 minutes
Variations
I sometimes add extra lime zest to the frosting when I want a stronger citrus flavor. If I prefer a more intense coconut taste, I toast the shredded coconut lightly before folding it into the batter. For a more tropical twist, I occasionally add a thin layer of lime curd between the base and the frosting. If I want a slightly lighter version, I reduce the sugar in the frosting and add a pinch of salt to balance the sweetness.
storage/reheating
I store these bars in an airtight container in the refrigerator for up to 5 days. I like to let them sit at room temperature for about 15 minutes before serving so the frosting softens slightly. If I want to freeze them, I place the sliced bars in a single layer, freeze until firm, then transfer them to a freezer-safe container for up to 2 months. I thaw them overnight in the refrigerator before serving.
FAQs
Can I use bottled lime juice instead of fresh lime juice?
I prefer using fresh lime juice because it gives a brighter and more natural flavor, but bottled lime juice works in a pinch.
Can I make these bars gluten-free?
I can substitute a good-quality 1:1 gluten-free flour blend for the all-purpose flour, and they still turn out delicious.
How do I know when the bars are done baking?
I check for lightly golden edges and insert a toothpick into the center. If it comes out clean or with a few moist crumbs, they are ready.
Can I make the bars ahead of time?
I often make them a day in advance and store them in the refrigerator. I find that the flavor develops even more after chilling.
Can I double this recipe?
I can double the recipe and bake it in two 9×13-inch pans. I make sure not to overcrowd the oven so they bake evenly.
Conclusion
I enjoy making these Starbucks lime frosted coconut bars at home because they deliver that bakery-style flavor without leaving my kitchen. The soft coconut base and tangy lime frosting create a perfect balance that I always crave. Whenever I serve them, they disappear quickly, and I love knowing I can whip up another batch whenever I want.
Soft and buttery coconut bars topped with a smooth, tangy lime frosting that perfectly balances sweetness with bright citrus flavor, just like the Starbucks bakery favorite.
Ingredients
1 cup unsalted butter, softened
1 1/2 cups granulated sugar
3 large eggs
1 tablespoon lime zest
2 tablespoons fresh lime juice
1 teaspoon vanilla extract
2 cups all-purpose flour
1 teaspoon baking powder
1/2 teaspoon salt
1 cup sweetened shredded coconut
1/2 cup unsalted butter, softened (for frosting)
3 cups powdered sugar
2 tablespoons fresh lime juice (for frosting)
1 teaspoon lime zest (for frosting)
1–2 tablespoons milk, as needed for consistency
Instructions
Preheat oven to 350°F (175°C) and line a 9×13-inch baking pan with parchment paper.
Cream together the softened butter and granulated sugar until light and fluffy.
Add the eggs one at a time, mixing well after each addition.
Stir in the lime zest, lime juice, and vanilla extract.
In a separate bowl, whisk together the flour, baking powder, and salt.
Gradually add the dry ingredients to the wet mixture, mixing just until combined.
Fold in the shredded coconut until evenly distributed.
Spread the batter evenly into the prepared pan.
Bake for 22–25 minutes, or until the edges are lightly golden and a toothpick inserted in the center comes out clean.
Allow the bars to cool completely in the pan.
For the frosting, beat the softened butter until smooth.
Gradually mix in the powdered sugar.
Add the lime juice and zest, then mix until combined.
Add milk a little at a time until a smooth, spreadable consistency is reached.
Spread the frosting evenly over the cooled bars and chill slightly to set before slicing.
Notes
Use fresh lime juice for the brightest flavor.
Toast the shredded coconut for a deeper coconut flavor.
Chill before slicing for cleaner cuts.
Store in an airtight container in the refrigerator for up to 5 days.
Freeze sliced bars for up to 2 months and thaw overnight in the refrigerator.