Classic Canadian Nanaimo bars are no-bake dessert bars with three layers: a chocolate, coconut, and graham crumb base, a pale custard buttercream filling, and a thin chocolate topping. To make them at home, cook the base mixture over simmering water, press it into an 8-inch pan, and chill it. Beat butter, cream, custard powder, and powdered sugar into a fluffy filling and spread it on top. Melt semi-sweet chocolate with butter, let it cool slightly, and pour it over the filling. Chill about two hours, then cut into 16 even squares. Refrigerate the bars and eat them within five days.
Nanaimo bars need about 35 minutes of hands-on work and no oven. You cook a cocoa base on the stovetop, beat a buttery custard filling in a bowl, and let the refrigerator set each layer. The result is a rich square with a crunchy chocolate-coconut bottom, a soft vanilla middle, and a snappy chocolate top.
These bars take their name from Nanaimo, British Columbia. The earliest confirmed printed recipe under the name "Nanaimo bars" appears in a 1953 edition of Edith Adams' Prize Cookbook. In the mid-1980s, the city held a contest to find the definitive version, and local resident Joyce Hardcastle won. The City of Nanaimo now shares her recipe as its official Nanaimo bar recipe. The ratios below follow that recipe, converted to U.S. measurements, with extra steps and notes for American home cooks.
🍫 What's in This Guide
Nanaimo Bar Recipe at a Glance
Ingredients for Classic Nanaimo Bars
This recipe fills one 8 x 8-inch pan. Measure everything before you start, because the egg and the chocolate both need your full attention.
Layer 1: Chocolate Coconut Base
- 1/2 cup (1 stick) unsalted butter
- 1/4 cup granulated sugar
- 5 tablespoons unsweetened cocoa powder, such as Fry's Premium Cocoa
- 1 large egg, beaten
- 1 3/4 cups graham cracker crumbs, such as Christie Honey Maid Graham Wafer Crumbs
- 1/2 cup finely chopped almonds
- 1 cup shredded coconut, sweetened or unsweetened
Layer 2: Custard Filling
- 1/2 cup (1 stick) unsalted butter, softened
- 2 tablespoons plus 2 teaspoons heavy cream
- 2 tablespoons Bird's Custard Powder
- 2 cups powdered sugar, sifted
- 1/2 teaspoon pure vanilla extract, such as Club House Pure Vanilla Extract (optional)
Layer 3: Chocolate Topping
- 4 ounces semi-sweet chocolate (four 1-ounce squares), such as half of a Kraft Baker's 100% Pure Semi-Sweet Chocolate Baking Bar
- 2 tablespoons unsalted butter
- Optional garnish: Nestlé After Eight Orange Mint Dark Mint Thins, one per bar (see the orange-mint variation below)

Canadian-to-American Ingredient Guide
Canadian recipes use a few terms that confuse American shoppers. This table translates them.
| Canadian term | American equivalent | What to know |
|---|---|---|
| Graham wafer crumbs | Graham cracker crumbs | The same crumbs under a different name. Pre-crushed bags save you a step. |
| Icing sugar | Powdered sugar (confectioners' sugar) | Sift it before you measure so the filling stays smooth. |
| Custard powder | Custard powder | A corn starch powder with vanilla flavor. It is not the same as pudding mix. |
| Cream | Heavy cream | The filling needs only a few teaspoons. |
| Semi-sweet chocolate squares | Semi-sweet baking chocolate, 1 ounce each | Chop it small so it melts evenly. |
| Coconut | Shredded coconut | Sweetened and unsweetened both work. |
Equipment You Need
- 8 x 8-inch baking pan
- Parchment paper
- Saucepan and a heatproof bowl that sits on top without touching the water
- Whisk and rubber spatula
- Hand mixer or stand mixer
- Instant-read food thermometer
- Offset spatula or the back of a spoon
- Sharp chef's knife and a tall glass of hot water
Line the pan with parchment and leave an overhang on two sides. The official recipe leaves the pan ungreased, and the paper handles let you lift the finished slab out for clean cuts.
How to Make Nanaimo Bars Step by Step
Step 1: Cook and Press the Chocolate Coconut Base
- Pour about an inch of water into a saucepan and bring it to a gentle simmer. Set the heatproof bowl on top, with the bottom of the bowl above the water.
- Add the butter, granulated sugar, and cocoa powder to the bowl. Stir until the butter melts and the mixture looks smooth and glossy.
- Beat the egg in a small bowl. Stir in a spoonful of the hot cocoa mixture to warm the egg gently, then pour the egg into the bowl while you whisk constantly. This keeps the egg from scrambling.
- Keep stirring over the simmering water until the mixture thickens and looks like thin custard. Check it with a thermometer and tilt the bowl so the tip sits fully in the mixture. Federal food safety guidance lists 160°F as the safe minimum temperature for egg dishes, and this step is what cooks the egg in your bars.
- Remove the bowl from the heat. Stir in the graham cracker crumbs, coconut, and almonds until no dry crumbs remain.
- Press the mixture firmly into the lined pan. Use the bottom of a flat glass to pack it tightly, especially along the edges and corners.
- Refrigerate the base while you make the filling.
For a deeper nutty taste, toast the almonds in a dry skillet until fragrant and let them cool before you chop them.
Step 2: Beat the Custard Filling
- In a large bowl, beat the softened butter, heavy cream, and custard powder with a mixer on medium speed until smooth.
- Add the sifted powdered sugar about half a cup at a time. Add the vanilla if you are using it. Beat on medium-high speed for a couple of minutes, until the filling looks pale, light, and fluffy.
- Take the pan from the refrigerator. Spread the filling over the base with an offset spatula, pushing it into the corners before you smooth the top.
- Refrigerate for about 30 minutes, until the filling feels firm when you touch it lightly.
Step 3: Pour the Chocolate Topping
- Chop the chocolate into small pieces. Place it in a clean heatproof bowl with the butter and set the bowl over simmering water. Stir until the mixture turns smooth. You can also melt it in the microwave at half power in short bursts, stirring between each one.
- Remove the chocolate from the heat. Let it cool for several minutes, stirring now and then, until it feels barely warm but still flows. Hot chocolate melts the filling and muddies the layers, while cold chocolate turns thick and hard to spread.
- Pour the chocolate over the chilled filling. Tilt the pan, or use the offset spatula, to carry the chocolate to the edges quickly.
- Refrigerate for 20 to 30 minutes, until the topping turns semi-firm. Score the surface as described below, then chill for about 1 more hour.
How to Cut Clean Nanaimo Bars
The chocolate layer cracks if it sets too hard before you cut it. Scoring early solves most of the problem.
- When the topping is semi-firm, use a sharp knife to score the chocolate only, not the layers underneath. Mark a 4 x 4 grid to make 16 squares.
- Chill the pan until the chocolate is fully set.
- Lift the slab out of the pan with the parchment handles and set it on a cutting board.
- Dip the knife in hot water, dry the blade, and cut along your score lines. Wipe the blade clean between cuts.
The bars are rich, so cut smaller squares if you are building a party tray. A 5 x 5 grid makes 25 bites.
Troubleshooting Common Nanaimo Bar Problems
| Problem | Likely cause | Fix |
|---|---|---|
| The chocolate cracks when you cut | The topping set too hard and cold | Score it while semi-firm and cut with a warm, dry knife. |
| The layers blend together | A layer was not chilled, or the chocolate was too hot | Chill after each layer and cool the melted chocolate before you pour. |
| The filling feels grainy | Lumpy powdered sugar or too little mixing | Sift the sugar and beat the filling for a couple more minutes. |
| The filling looks runny | The butter was too warm | Chill the bowl for 10 minutes, then beat the filling again. |
| The base crumbles | The mixture was not packed firmly, or the egg did not thicken | Press hard with a flat glass and make sure the cocoa mixture thickens before you add crumbs. |
| The chocolate looks dull or streaky | It went into the refrigerator while still warm | The bars are safe to eat. Cool the chocolate before pouring next time. |

Ingredient Notes and Smart Swaps
Custard Powder
Custard powder gives the middle layer its vanilla taste and pale yellow color. Bird's is the traditional brand for Nanaimo bars. The product page for Bird's Custard Powder lists corn starch, salt, flavors, and added colors, and it describes the powder as dairy-free and egg-free. The powder goes into the filling dry, so you never cook it for this recipe. One 340 g pack holds far more than the 2 tablespoons a batch needs, and you can use the rest to make warm or chilled custard with the package directions.
Some U.S. recipes swap in instant vanilla pudding mix. The two products differ, and cooks disagree about whether pudding mix tastes right in the filling. Use it only if you cannot find custard powder.
Cocoa Powder
The base calls for unsweetened cocoa, not hot chocolate mix. Fry's Premium Cocoa is Dutch-processed, which means the cocoa is alkali-treated. The product page says that gives it a milder taste and helps it mix into recipes. This recipe has no baking soda or baking powder, so Dutch-processed and natural cocoa both work. A 227 g container covers several batches.
Graham Cracker Crumbs
Canadians call graham crackers "graham wafers." Christie Honey Maid Graham Wafer Crumbs arrive already crushed, so you can skip the food processor, and the product page describes them as honey-flavored. The label lists 15 grams per 2 tablespoons, which works out to roughly 3 1/3 cups in the 400 g bag. That covers one batch with some left over. If you crush your own crackers, measure the crumbs after crushing. The Christie crumbs contain wheat and soy.
Semi-Sweet Chocolate
The official recipe calls for four 1-ounce squares. The Kraft Baker's 100% Pure Semi-Sweet Chocolate Baking Bar weighs 8 ounces and breaks into individual squares, so one bar covers two batches of topping. Semi-sweet chocolate chips also work. Use about 2/3 cup.
Vanilla Extract
The official recipe has no vanilla extract, because the custard powder already supplies vanilla flavor. A half teaspoon of pure vanilla rounds out the filling if you like a stronger taste. The Club House Pure Vanilla Extract page describes a pure extract made with Madagascar vanilla beans.
Butter, Coconut, and Almonds
The official recipe uses European-style cultured unsalted butter in the base. Any good unsalted butter works across all three layers. Salted butter also works, but skip any flaky salt on top if you use it.
Shredded coconut works in either sweetened or unsweetened form. Unsweetened keeps the bars less sweet. Walnuts or pecans can replace the almonds.
Nanaimo Bar Variations
Orange-Mint Nanaimo Bars with After Eight Thins
This version keeps the classic base and filling and changes only the finish. Nestlé After Eight Orange Mint Dark Mint Thins are thin dark chocolate pieces with an orange- and mint-flavored fondant center, so one thin adds both dark chocolate and a mint-orange center to each bar.
- Make the bars as written, but skip the vanilla extract.
- For a stronger mint note, beat 1/4 teaspoon of peppermint extract into the filling. Add more a drop at a time, because peppermint extract is strong.
- For an orange accent, beat 1/2 teaspoon of finely grated orange zest into the filling.
- Pour the chocolate topping and chill it for about 10 minutes, until the surface starts to set but still feels slightly soft.
- Press one thin onto each scored square, or press half a thin onto each square for a smaller garnish. Check how many pieces your box holds. You need 16 for one thin per bar.
- Chill until the topping sets, then cut along the score lines.
If you prefer plain mint, the same approach works with Nestlé After Eight Mint Thins, Dark Chocolate.
Nut-Free Base
Leave out the almonds and add an extra 1/4 cup of graham cracker crumbs or coconut so the base still packs firmly. Check the label on every ingredient for nut warnings before you serve the bars to anyone with a nut allergy.
Gluten-Free Base
Replace the graham cracker crumbs with gluten-free graham-style cookie crumbs. The Christie crumbs contain wheat, so they do not work for this version. Check the labels on the custard powder, cocoa, and chocolate as well.
More Easy Changes
- Use a dark chocolate topping and a pinch of flaky sea salt for a less sweet bar. Use unsalted butter if you add the salt.
- Replace the almonds with pecans, walnuts, or hazelnuts.
- Use digestive biscuit crumbs in place of graham cracker crumbs.

How to Store, Freeze, and Serve Nanaimo Bars
Refrigerator: Keep the bars in an airtight container in the refrigerator, with parchment paper between layers. Plan to eat them within 5 days. Some recipes stretch that to a week, but the bars taste best sooner. The base contains cooked egg and the filling contains butter and cream, so cold storage matters.
Freezer: Wrap the cut bars in plastic wrap, then place them in a zip-top freezer bag or an airtight container with parchment between layers. They keep for up to 3 months. Thaw them overnight in the refrigerator.
Make ahead: The bars cut more cleanly after a full chill, so they suit a day-ahead schedule. Make the pan the day before a party and cut it just before serving.
Serving: Serve the bars chilled or after a short rest at room temperature. USDA food safety guidance says perishable food should not sit out for more than two hours, so keep party trays on ice or return them to the refrigerator.
A Shortcut: Nanaimo Bar Baking Mix
If you want a head start, TheCanadaFoods.com carries President's Choice Nanaimo Bar Baking Mix in a 740 g box. The product page describes a chocolate-coconut base, a custard-flavored filling, and a chocolate topping, and it says the package makes about 25 squares. The ingredient list includes wheat, and the page says the mix may contain milk. The page does not spell out which extra ingredients the box needs, so read the package directions before you shop for butter and cream.
Where to Find the Canadian Ingredients for Nanaimo Bars in the U.S.
Butter, heavy cream, powdered sugar, coconut, and almonds are easy to find at most U.S. grocery stores. The Canadian items can be harder to track down, depending on your store. Custard powder and pre-crushed graham wafer crumbs are the two to look for first.
TheCanadaFoods.com carries Bird's Custard Powder, Christie Honey Maid Graham Wafer Crumbs, Fry's Premium Cocoa, the Kraft Baker's semi-sweet baking bar, and Club House Pure Vanilla Extract, so you can order the Canadian pantry items for this recipe together. Browse the Pantry & Cooking and Cookies & Bakery collections for baking staples, or look through the Candy & Chocolate collection for mint thins and other chocolate.
Baking more Canadian desserts? Try the Maple Butter Tart Squares recipe for another bar-style classic, or read Exploring Canadian Comfort Foods: From Poutine to Butter Tarts for more Canadian favorites.
Yes. Make the pan a day or two ahead, keep it cold, and cut it just before serving. You can also freeze cut bars for up to 3 months.
Frequently Asked Questions
Wondering how things work around here? Our FAQ has you covered.
Yes, but the bars will taste different. Custard powder provides the classic vanilla flavor and pale color. Some cooks use instant vanilla pudding mix instead, while others say it does not taste the same. If you try a substitute, make a small test batch of filling first.
No. You cook the egg with the butter, sugar, and cocoa over simmering water until the mixture thickens. Use a thermometer to confirm it reaches 160°F before you take it off the heat.
Lumpy powdered sugar or too little mixing causes a grainy filling. Sift the sugar, add it gradually, and beat the filling until it looks pale and fluffy.
Yes. The official recipe specifies unsalted butter, so you control the salt, but salted butter still works. Skip any extra salt on top if you use it.
Not as written. Graham cracker crumbs contain wheat. Use gluten-free graham-style crumbs and check the other labels to make a gluten-free version.
Yes. Make the pan a day or two ahead, keep it cold, and cut it just before serving. You can also freeze cut bars for up to 3 months.
