If you have ever wondered “what are Nanaimo bars,” they are one of Canada’s most beloved no-bake desserts. Named after the city of Nanaimo in British Columbia, these iconic three-layer bars combine a chewy chocolate, coconut, and graham cracker base with a sweet custard-flavored buttercream middle and a crisp, glossy chocolate ganache topping.
This classic Nanaimo bars recipe is a staple on holiday cookie trays, potluck tables, and dessert platters because it delivers bakery-level richness without ever turning on the oven. Every bite gives you the contrast of crunchy nuts and coconut, silky vanilla custard frosting, and snappy dark or semi-sweet chocolate.

Why This Nanaimo Bars Recipe Works
- No-bake convenience: Everything comes together on the stovetop and in a mixing bowl, freeing up your oven for holiday mains and baked cookies.
- Authentic custard flavor: Using vanilla custard powder (like Bird’s) gives the middle layer its signature pale yellow color and distinct, rich flavor that plain vanilla extract cannot replicate.
- Clean, sliceable layers: Chilling each layer before adding the next keeps the custard buttercream from melting into the chocolate topping and gives you sharp, bakery-style edges when sliced.
- Make-ahead friendly: These bars actually taste better after chilling, making them ideal for prepping days or even weeks in advance.
Special Equipment / Tools Needed
- 8×8-inch square baking pan
- Parchment paper (for easy lifting and clean slicing)
- Heatproof bowl and saucepan (for a double boiler)
- Hand mixer or stand mixer
- Offset spatula (for smoothing the custard and chocolate layers)
- Sharp chef’s knife
Ingredients
Bottom Layer (Chocolate Crumb Base)
- 1/2 cup (1 stick) unsalted butter
- 1/4 cup granulated sugar
- 5 tablespoons unsweetened cocoa powder
- 1 large egg, lightly beaten
- 1 3/4 cups graham cracker crumbs
- 1 cup sweetened shredded coconut
- 1/2 cup finely chopped walnuts or pecans
Middle Layer (Custard Buttercream)
- 1/2 cup (1 stick) unsalted butter, softened to room temperature
- 2 to 3 tablespoons heavy cream or whole milk
- 2 tablespoons vanilla custard powder (such as Bird’s)
- 2 cups powdered sugar
- 1/2 teaspoon pure vanilla extract
- Pinch of salt
Top Layer (Chocolate Topping)
- 4 ounces semi-sweet chocolate, finely chopped (or chocolate chips)
- 2 tablespoons unsalted butter

How to Make Nanaimo Bars
- Prep the pan: Line an 8×8-inch square baking pan with parchment paper, leaving a 2-inch overhang on two opposite sides for easy removal.
- Make the chocolate base: Set a heatproof bowl over a saucepan of simmering water (double boiler). Add the butter, granulated sugar, and cocoa powder. Stir until the butter is melted and the mixture is smooth.
- Cook the egg: Slowly whisk in the beaten egg, stirring constantly for 2 to 3 minutes until the mixture thickens and coats the back of a spoon.
- Add the dry mix-ins: Remove the bowl from the heat. Stir in the graham cracker crumbs, shredded coconut, and finely chopped nuts until evenly coated.
- Press and chill: Press the mixture firmly and evenly into the bottom of the prepared pan. Refrigerate for 20 to 30 minutes until firm.
- Beat the custard layer: In a medium bowl, beat the softened butter, heavy cream (start with 2 tablespoons), custard powder, powdered sugar, vanilla extract, and salt with a hand mixer until smooth, light, and spreadable. Add the third tablespoon of cream if needed.
- Spread and chill: Spread the custard buttercream evenly over the chilled base using an offset spatula. Refrigerate for at least 30 minutes until firm to the touch.
- Melt the chocolate topping: In a small microwave-safe bowl, combine the chopped semi-sweet chocolate and 2 tablespoons butter. Microwave in 20-second intervals, stirring between each, until completely smooth. Let cool for 5 minutes so it is warm, not hot.
- Top and set: Pour the melted chocolate over the chilled custard layer and tilt the pan or use an offset spatula to spread it into an even layer. Refrigerate for at least 1 hour (or until the chocolate is completely set) before slicing.

Recipe Tips and Tricks
- Food Safety Tip: Because the bottom layer uses a raw egg, do not skip cooking it over the double boiler. Stirring constantly for 2 to 3 minutes ensures the egg reaches a safe temperature (160°F) without scrambling. You can check safe egg handling and temperature guidelines on FoodSafety.gov.
- Use a hot knife for clean cuts: Cold chocolate cracks easily. Run a sharp chef’s knife under hot water, wipe it completely dry with a clean towel, and press straight down through the bars. Wipe and reheat the knife between cuts.
- Do not pour hot chocolate onto the buttercream: Let the melted chocolate cool slightly before spreading, or it will melt the custard layer underneath and create swirls.
Variations and Substitutions
- Nut-free Nanaimo bars: Omit the walnuts or pecans and add an extra 1/4 cup of graham cracker crumbs or shredded coconut to maintain the structure.
- No custard powder? Substitute 2 tablespoons of instant vanilla pudding mix (dry). Note that pudding mix is slightly sweeter, so you may want to reduce the powdered sugar by 2 tablespoons.
- Mint Nanaimo bars: Add 1/2 teaspoon peppermint extract to the custard buttercream layer and a drop of green food coloring for a festive holiday twist.
- Peanut butter Nanaimo bars: Swirl 1/4 cup creamy peanut butter into the middle layer.

What to Serve With nanaimo bars
- Hot brewed coffee, espresso, or a latte (the bitterness balances the sweet custard layer)
- Cold milk or hot cocoa
- Alongside other holiday tray favorites like shortbread, sugar cookies, and fudge
Storage and Leftovers
- Refrigerator: Store sliced Nanaimo bars in an airtight container for up to 1 week. Place parchment paper between layers so the chocolate tops do not stick.
- Freezer: Wrap individual bars or the uncut slab tightly in plastic wrap, then place in a freezer-safe container or zip-top bag. Freeze for up to 3 months. Thaw in the refrigerator overnight before serving.

FAQs
Do Nanaimo bars need to be refrigerated?
Yes. Because the base contains a cooked egg and the middle layer is a buttercream frosting, Nanaimo bars should be stored in the refrigerator for both food safety and texture. Keeping them chilled also prevents the chocolate topping from softening.
Can you freeze Nanaimo bars?
Yes, Nanaimo bars freeze exceptionally well. Store them in an airtight container with parchment paper between layers for up to 3 months, then thaw overnight in the fridge.
Why did my chocolate layer crack when I sliced the bars?
If the chocolate is too cold and hard, it will snap under pressure. Let the chilled pan sit at room temperature for 10 minutes before slicing, and use a sharp knife warmed under hot water and wiped dry.
More Recipes You’ll Love
- Easy Sticky Toffee Pudding Cupcakes with Salted Caramel Buttercream
- Kitchen Sink Christmas Cookies
- Easy Apple Crumble Recipe
- Gingerbread Sweet Rolls with Cream Cheese Frosting

Nanaimo Bars Recipe
Ingredients
Bottom Layer:
- 1/2 cup unsalted butter
- 1/4 cup granulated sugar
- 5 tablespoons unsweetened cocoa powder
- 1 large egg , lightly beaten
- 1 3/4 cups graham cracker crumbs
- 1 cup sweetened shredded coconut
- 1/2 cup finely chopped walnuts or pecans
Middle Layer:
- 1/2 cup unsalted butter , softened
- 2 to 3 tablespoons heavy cream or whole milk
- 2 tablespoons instant vanilla pudding , not cook and serve
- 2 cups powdered sugar
- 1/2 teaspoon pure vanilla extract
- Pinch of salt
Top Layer:
- 4 ounces semi-sweet chocolate , finely chopped
- 2 tablespoons unsalted butter
Instructions
- Line an 8×8-inch square pan with parchment paper, leaving a 2-inch overhang.
- In a heatproof bowl over simmering water, melt 1/2 cup butter with sugar and cocoa powder until smooth.
- Whisk in the beaten egg and cook, stirring constantly, for 2 to 3 minutes until thickened.
- Remove from heat and stir in graham cracker crumbs, coconut, and chopped nuts. Press firmly into the pan and chill for 20 to 30 minutes.
- Beat softened butter, 2 tablespoons cream, custard powder, powdered sugar, vanilla, and salt until smooth, adding the third tablespoon of cream if needed.
- Spread evenly over the chilled base and refrigerate for 30 minutes.
- Melt chopped chocolate and 2 tablespoons butter in 20-second microwave bursts, stirring until smooth. Let cool for 5 minutes.
- Pour over the custard layer, spread evenly, and chill for at least 1 hour until set.
- Slice with a hot, dry knife and serve chilled.
Notes
- Store sliced Nanaimo bars in an airtight container in the refrigerator for up to 1 week, placing parchment paper between layers so the chocolate topping does not stick.
- To freeze, wrap individual bars or the uncut slab tightly in plastic wrap and place in a freezer-safe container or zip-top bag for up to 3 months; thaw overnight in the refrigerator before serving.
- Because the base contains an egg, cook it gently over a double boiler while stirring constantly until thickened so it reaches a safe temperature (160°F) without scrambling.
- For clean cuts without cracking the chocolate top, let the chilled bars sit for about 10 minutes, dip a sharp knife in hot water, wipe it completely dry, and slice straight through, reheating and wiping the blade between cuts.
- Let the melted chocolate topping cool for about 5 minutes before pouring it over the chilled custard layer so it spreads smoothly without melting the frosting underneath.
- For a nut-free batch, omit the chopped walnuts or pecans and add an extra 1/4 cup of graham cracker crumbs or shredded coconut.
- If substituting 2 tablespoons of dry instant vanilla pudding mix for vanilla custard powder, consider reducing the powdered sugar in the middle layer by 2 tablespoons since pudding mix is pre-sweetened.