Coconut Cream Pie Bars

Featured in: Baking & Sweet Treats

Buttery shortbread crust forms the base of these bars, layered with a smooth coconut custard enriched with coconut milk, sweetened shredded coconut, and a hint of vanilla. After chilling, the bars are topped with fluffy whipped cream and a generous sprinkle of toasted coconut for a beautiful finish. Sliced into easy-to-serve bars, they offer all the flavors of a classic coconut cream dessert in a handheld treat, ideal for gatherings or a sweet ending to any meal.

Updated on Wed, 01 Oct 2025 14:28:57 GMT
Golden, toasted coconut tops these decadent Coconut Cream Pie Bars, a perfect dessert treat. Save
Golden, toasted coconut tops these decadent Coconut Cream Pie Bars, a perfect dessert treat. | bakozy.com

This luscious coconut cream pie transformed into convenient, portable bars brings all the classic flavors you love without needing forks or plates. The buttery shortbread base provides the perfect foundation for the silky coconut custard and billowy whipped cream topping, creating a dessert that disappears quickly at any gathering.

I first made these bars for my sister's baby shower when I needed something elegant yet easy to serve to a crowd. The guests were fighting over the last pieces, and now they've become my most requested dessert for family gatherings.

Ingredients

  • Unsalted butter: provides the rich foundation for both the crust and filling. Look for European style butter with higher fat content for the most luxurious results
  • Granulated sugar: balances the coconut flavor without overwhelming it. Use pure cane sugar for best results
  • All purpose flour: creates the perfect tender yet sturdy shortbread base. Measure by weight if possible for accuracy
  • Cornstarch: is crucial for thickening the custard to the perfect sliceable consistency. Always mix with sugar before adding liquids to prevent lumps
  • Whole milk and coconut milk: work together to create the perfect creamy texture with authentic coconut flavor. Use full fat versions of both for the richest results
  • Egg yolks: enrich the custard and create that signature golden color. Room temperature eggs incorporate more easily
  • Vanilla extract: enhances the coconut flavor. Use pure extract rather than imitation for the best taste
  • Sweetened shredded coconut: provides texture and flavor throughout the filling. Toast some for garnish to add depth and visual appeal
  • Heavy whipping cream: creates a billowy cloud like topping. Make sure it's very cold for the best whipping results

Instructions

Prepare the pan:
Line your baking pan with parchment paper extending over the sides to create handles that will make removing the finished bars effortless. This step is absolutely crucial for clean slicing later.
Create the shortbread base:
Cream together butter and sugar until light and fluffy, about 3 minutes with an electric mixer. This incorporates air for a tender crust. Add flour and salt, mixing just until combined to avoid developing gluten which would make the crust tough. Press evenly into the prepared pan, using the bottom of a measuring cup to create a smooth surface.
Bake the crust:
Bake at 350°F for exactly 18 to 20 minutes until the edges just begin to turn golden. The center may still look slightly underdone but will continue cooking as it cools. This partial baking ensures the crust won't become soggy when the filling is added.
Prepare the coconut filling:
Whisk sugar, cornstarch, and salt thoroughly in a medium saucepan before adding any liquid. This prevents cornstarch lumps from forming. Gradually add both milks while whisking constantly to create a smooth mixture. Cook over medium heat, whisking continuously to prevent scorching. The mixture will suddenly thicken around the 5 minute mark. Continue cooking for 1 to 2 minutes more to fully activate the cornstarch.
Temper the egg yolks:
This critical step prevents scrambled eggs in your custard. Slowly pour about half a cup of the hot milk mixture into the beaten egg yolks while whisking vigorously. This gradually raises the temperature of the eggs before adding them back to the hot mixture.
Finish the custard:
Return the tempered egg mixture to the saucepan, whisking constantly. Cook for exactly 2 more minutes to ensure the eggs are fully cooked and safe to eat. Remove from heat and immediately stir in butter, vanilla, and coconut. The residual heat will melt the butter and bloom the vanilla flavor.
Assemble and chill:
Pour the warm filling over the cooled crust, using an offset spatula to create a perfectly smooth surface. Allow to cool at room temperature for 30 minutes before refrigerating for at least 1 hour. This gradual cooling prevents condensation from forming on the surface.
Create the topping:
Whip very cold cream with powdered sugar and vanilla until stiff peaks form. Spread evenly over the chilled custard layer. Sprinkle with toasted coconut just before serving for maximum crunch and visual appeal.
Smooth, creamy Coconut Cream Pie Bars are shown, ideal for sharing at your next gathering. Save
Smooth, creamy Coconut Cream Pie Bars are shown, ideal for sharing at your next gathering. | bakozy.com

Making your own coconut cream pie bars connects you to a long tradition of American desserts. My grandmother always said the secret to her coconut cream pie was patience during the custard cooking process. She taught me to watch for the moment when the whisk leaves a clear trail through the mixture that holds its shape for a few seconds. That visual cue ensures perfect thickness every time.

Make Ahead and Storage

These bars actually improve with an overnight rest in the refrigerator, making them perfect for advance preparation. The flavors meld together and the custard sets to the perfect consistency. Store covered in the refrigerator for up to 3 days, though the crust will gradually soften over time. For longer storage, you can freeze the bars without the whipped cream topping for up to 1 month. Wrap individual portions tightly in plastic wrap and place in an airtight container. Thaw overnight in the refrigerator and add fresh whipped cream before serving.

Troubleshooting Tips

If your custard seems lumpy at any point, pass it through a fine mesh strainer before adding the coconut. This will remove any cooked egg pieces and create a perfectly smooth filling. If your whipped cream becomes too soft in warm weather, stabilize it by dissolving 1 teaspoon of unflavored gelatin in 1 tablespoon of cold water, then heating until dissolved and cooling slightly before adding to the cream during whipping. For a clean cut, dip your knife in hot water and wipe dry between each slice. This prevents the filling from sticking to the knife and creates restaurant quality presentation.

Flavor Variations

Chocolate Coconut Bars Sprinkle 1/2 cup mini chocolate chips over the shortbread base before adding the coconut filling. The heat of the filling will slightly melt the chocolate, creating a delicious surprise layer. Lime Coconut Bars Add 1 tablespoon of lime zest and 2 tablespoons of lime juice to the coconut filling for a tropical twist. Garnish with additional lime zest on top of the whipped cream. Almond Joy Inspired Use almond extract instead of vanilla in the filling and sprinkle toasted sliced almonds along with the coconut on top for a candy bar inspired treat.

Serving Suggestions

For an elegant presentation, cut these bars into small squares and serve on a tiered dessert stand at brunch or afternoon tea. The contrast of the creamy filling against the crisp crust makes them visually appealing. Create a dessert bar featuring these coconut cream pie bars alongside chocolate and fruit based options. The creamy coconut flavor provides a perfect contrast to richer chocolate desserts. For summer gatherings, serve slightly frozen alongside fresh berries for a refreshing treat that holds up well in warm weather.

A close-up view of rich Coconut Cream Pie Bars with coconut flakes, so tempting and delicious. Save
A close-up view of rich Coconut Cream Pie Bars with coconut flakes, so tempting and delicious. | bakozy.com

I've been making these coconut cream pie bars for over a decade now, and they never fail to impress. The combination of buttery shortbread, creamy coconut filling, and cloud-like whipped cream creates a dessert that's both nostalgic and elegant. Whether you're serving them at a fancy gathering or enjoying them as a weeknight treat, these bars bring a touch of tropical indulgence to any occasion.

Recipe FAQ

Can I use sweetened coconut milk instead of unsweetened?

Using sweetened coconut milk will make the bars noticeably sweeter. Unsweetened is recommended for balanced flavor, but if you use sweetened, reduce the added sugar in the filling as needed.

How do I prevent the custard layer from becoming runny?

Ensure the filling thickens fully on the stovetop and chill the bars until the custard is completely set before cutting. Using cornstarch and properly tempering the eggs also helps achieve a firm consistency.

Is it necessary to toast the coconut for topping?

Toasting the coconut adds a deeper flavor and crunchy texture, enhancing the bars' overall taste and appearance. While optional, it's highly recommended for best results.

Can these bars be made gluten-free?

Yes, substitute the all-purpose flour in the shortbread crust with a gluten-free flour blend to accommodate gluten-free diets.

How long do these bars keep in the refrigerator?

Stored covered, the bars stay fresh for up to 3 days. For optimal texture, enjoy within 24–48 hours of preparation.

Can I make the bars in advance for an event?

Absolutely! Prepare and chill them the day before, then add the whipped cream topping and toasted coconut just before serving for best presentation.

Coconut Cream Pie Bars

Luscious coconut custard bars with buttery crust, topped with whipped cream and toasted coconut.

Prep duration
25 min
Heat time
35 min
Complete duration
60 min
Created by Natalie Harris


Complexity Medium

Heritage American

Output 16 Portions

Nutrition specifications Meat-free

Components

Shortbread Crust

01 1 cup (225 g) unsalted butter, softened
02 1/2 cup (100 g) granulated sugar
03 2 cups (250 g) all-purpose flour
04 1/4 teaspoon salt

Coconut Cream Filling

01 1/2 cup (100 g) granulated sugar
02 1/4 cup (30 g) cornstarch
03 1/4 teaspoon salt
04 2 cups (480 ml) whole milk
05 3 large egg yolks
06 1 cup (240 ml) full-fat canned coconut milk, well-shaken
07 2 tablespoons unsalted butter
08 1 1/2 teaspoons pure vanilla extract
09 1 1/2 cups (120 g) sweetened shredded coconut

Whipped Cream Topping

01 1 cup (240 ml) heavy whipping cream, cold
02 2 tablespoons powdered sugar
03 1/2 teaspoon vanilla extract

Garnish

01 1/2 cup (40 g) sweetened shredded coconut, toasted

Directions

Phase 01

Preheat Oven and Prepare Pan: Preheat your oven to 350°F (175°C). Line a 9x13-inch (23x33 cm) baking pan with parchment paper, ensuring there's an overhang for easy removal.

Phase 02

Create Shortbread Crust: Cream the softened butter and granulated sugar in a mixing bowl until light and fluffy. Incorporate the all-purpose flour and salt until just combined. Press the dough evenly into the prepared baking pan. Bake for 18–20 minutes, or until the edges are lightly golden. Allow to cool slightly.

Phase 03

Form Coconut Cream Filling Base: In a saucepan, whisk together granulated sugar, cornstarch, and salt. Gradually whisk in the whole milk and coconut milk until a smooth mixture forms. Cook over medium heat, whisking constantly, until the mixture thickens and comes to a boil, approximately 5–7 minutes.

Phase 04

Temper Egg Yolks for Filling: In a separate bowl, whisk the egg yolks. Slowly pour about 1/2 cup of the hot milk mixture into the yolks while whisking constantly to temper them. Return the tempered egg mixture to the saucepan, continuing to whisk vigorously. Cook for an additional 2 minutes, then remove from heat.

Phase 05

Finish Filling and Chill: Stir in the butter, vanilla extract, and shredded coconut into the warm filling. Pour the filling over the cooled shortbread crust and smooth the surface. Allow to cool at room temperature for 30 minutes, then refrigerate for at least 1 hour, until adequately set.

Phase 06

Whip Cream Topping: In a chilled mixing bowl, beat the cold heavy whipping cream, powdered sugar, and vanilla extract until stiff peaks form. Spread this whipped cream mixture evenly over the chilled coconut custard.

Phase 07

Garnish and Serve: Garnish the bars with the toasted shredded coconut. Cut into desired bar portions and serve chilled.

Tools needed

  • 9x13-inch baking pan
  • Mixing bowls
  • Electric mixer or whisk
  • Saucepan
  • Whisk
  • Parchment paper
  • Offset spatula (optional)

Allergy details

Review each component for potential allergens and if uncertain, we recommend consulting with a healthcare provider.
  • Contains: dairy (butter, milk, cream), eggs, gluten (wheat), coconut.
  • Always review ingredient labels for potential cross-contamination if managing severe allergies.

Nutrient breakdown (per portion)

These values are estimates only and shouldn't replace professional medical guidance.
  • Energy: 320
  • Fats: 21 g
  • Carbohydrates: 32 g
  • Proteins: 3 g