This classic no-bake Nanaimo bars recipe layers a rich chocolate, coconut, and graham cracker base with a creamy vanilla custard buttercream and a smooth semi-sweet chocolate topping. Ready with zero oven time, these iconic Canadian dessert bars slice cleanly and are perfect for holiday cookie trays and make-ahead entertaining.
Line an 8x8-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.