Nanaimo bars are a no-bake Canadian dessert with three distinct layers: a chocolate-graham-crumb base, a sweet vanilla custard center, and a firm chocolate top. The base’s graham crumbs and coconut give it a crumbly texture, while the custard layer is smooth and thick, and the top snaps when cut. This version uses the classic proportions that keep the layers stable at room temperature for serving.
Ingredients
- For the base:
- 1/2 cup (115 g) unsalted butter, melted
- 1/4 cup (50 g) granulated sugar
- 3 tbsp (45 ml) unsweetened cocoa powder
- 1 large egg, lightly beaten
- 1 3/4 cups (210 g) graham cracker crumbs
- 1 cup (85 g) sweetened shredded coconut
- 1/2 cup (60 g) finely chopped walnuts or pecans (optional)
- For the middle layer:
- 1/2 cup (115 g) unsalted butter, softened
- 2 cups (240 g) powdered sugar
- 2 tbsp (30 ml) milk
- 2 tbsp (30 ml) vanilla custard powder (such as Bird’s Custard Powder) or instant vanilla pudding mix
- For the top layer:
- 4 oz (115 g) semi-sweet or bittersweet chocolate, chopped
- 2 tbsp (30 g) unsalted butter
Instructions
Prepare the Base
- Line an 8-inch (20 cm) square baking pan with parchment paper, leaving overhang on two sides.
- In a medium saucepan over low heat, melt 1/2 cup (115 g) butter. Stir in sugar and cocoa powder until smooth.
- Remove from heat. Gradually whisk in the beaten egg, then return to low heat and cook, stirring constantly, for 2–3 minutes, until the mixture thickens slightly (do not let it boil). The egg is cooked to 160°F (71°C) safe minimum; if you have a thermometer, check it now.
- Stir in graham crumbs, coconut, and nuts if using. Press the mixture firmly and evenly into the prepared pan. Refrigerate while making the middle layer.
Make the Custard Layer
- In a medium bowl, beat the softened 1/2 cup (115 g) butter until creamy.
- Add powdered sugar, milk, and custard powder. Beat on low until combined, then on medium-high for 2–3 minutes, until light and fluffy.
- Spread the mixture evenly over the chilled base. Smooth the top with an offset spatula. Refrigerate for 30 minutes, until firm.
Top with Chocolate
- In a small microwave-safe bowl, combine chocolate and 2 tbsp (30 g) butter. Microwave in 30-second bursts, stirring each time, until melted and smooth. Or melt in a double boiler over simmering water.
- Pour the melted chocolate over the custard layer. Tilt the pan to spread evenly, or use a spatula. Refrigerate until the chocolate is set, about 1 hour.
Cutting and Serving
Lift the whole slab out of the pan using the parchment overhang. Place on a cutting board. Use a sharp chef’s knife to cut into 16 squares (4 by 4). For clean cuts, wipe the knife between cuts and let the bars sit at room temperature for 5 minutes if the chocolate is too hard. Serve cold or at room temperature; they hold their shape well at a potluck or picnic for up to 2 hours.
Variations
Peanut Butter Nanaimo Bars
Replace the custard powder with 1/4 cup (65 g) creamy peanut butter and reduce the butter in the middle layer to 1/4 cup (60 g). Omit the coconut if you prefer, or keep it for texture. The middle layer will be slightly denser and nutty.
Mint Nanaimo Bars
Add 1/2 teaspoon mint extract to the middle layer along with the milk. Use dark chocolate for the top to contrast with the mint. The custard layer will taste like mint-chocolate.
Storage and Shelf Life
Keep Nanaimo bars in an airtight container in the refrigerator for up to 1 week. They also freeze well: wrap the uncut slab in plastic wrap, then foil, and freeze for up to 3 months. Thaw in the refrigerator overnight before cutting. Do not leave them at room temperature for more than 2 hours (1 hour if above 90°F/32°C), as the custard layer contains butter and milk.
Why the Layers Set Firm
The base sets because the butter and cocoa mixture hardens when chilled, and the graham crumbs absorb moisture. The middle layer firms because the butter and powdered sugar create a stiff emulsion; the custard powder thickens it further. The top layer sets because chocolate hardens as it cools. If your bars are too soft, the middle layer likely had too much milk or the base wasn’t pressed firmly enough. Press the base with the back of a measuring cup to compact it.
Common Layer Problems
Base crumbles when cutting
Press the base more firmly into the pan, and make sure the butter-egg mixture is fully incorporated. If it still crumbles, add 1–2 tablespoons more melted butter to the base mixture.
Chocolate cracks or separates
Melt the chocolate gently; overheating makes it seize. If the top layer cracks when cutting, let the bars sit at room temperature for 10 minutes before slicing, and use a serrated knife with a sawing motion.
Custard layer too runny
Beat the middle layer longer to incorporate more air, and chill it for at least 30 minutes before adding the chocolate. If it is still runny, add an extra tablespoon of powdered sugar.
Make-Ahead and Transport
Nanaimo bars are ideal for making a day ahead; they keep their texture overnight in the fridge. To transport, keep them chilled in a cooler with an ice pack for up to 2 hours, or place the pan on a cold pack. For a picnic, cut them just before leaving and keep them in a sealed container in a cooler. They are a standard dessert for Canadian holiday tables, potlucks, and bake sales.
Related
- All About Poke in La Canada
- Frozen Pie Crust Canada: How to Use, Bake, and Store
- Gluten Free Cake Bars Recipe
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).