Nanaimo Bars: Canada’s Secret Dessert You’ll Wish You Tried Sooner
A sticky note on my fridge says “Tea, breathe, bar later” — a silly little reminder that grew out of the kinds of afternoons when comfort matters more than speed. I made my first Nanaimo bars on a gray weekend when the oven felt like too much commitment; the kitchen smelled like chocolate and coconut, and something about the tidy layers calmed me.
They didn’t just taste like dessert — they tasted like a plan: a base you can trust, a middle that holds things together, and a top that makes everything feel finished. This is my version of that recipe, written like a sticky note stretched into a full, friendly roadmap for making perfect Nanaimo bars.

What Is A Nanaimo Bar?
Nanaimo bars are a Canadian no-bake square with three unmistakable layers: a crunchy, cocoa-kissed base of crumbs, coconut and nuts; a sweet, buttery custard middle; and a glossy chocolate top. Named for the city of Nanaimo on Vancouver Island, they’re dense, rich, and unapologetically decadent — the kind of dessert you slice small and enjoy slowly.
Because they set in the fridge, they’re forgiving for home cooks: patience matters more than precision, and a good one-page plan (and a tidy kit) makes assembly easy.
Why This Recipe Works
- Layer Priority: Each layer has a role — texture for the base, palate balance for the middle, and snap for the top.
- No Oven Required: Great when you want something special without heating the house.
- Make-Ahead Friendly: Flourishes of flavor deepen in the fridge; the bars actually taste better after an overnight rest.
- Flexible: Swap nuts, try a dairy-free filling, or dress the top with a drizzle. I’ll show options.
Ingredients (Makes 16 Bars)
| Ingredient | Amount (U.S.) | Amount (Metric) |
|---|---|---|
| Unsalted Butter (total) | 1 1/8 cups | 254 g |
| Granulated Sugar (base) | 1/4 cup | 50 g |
| Unsweetened Cocoa Powder (base) | 2 tbsp | 10 g |
| Graham Cracker Crumbs | 2 cups | 200 g |
| Shredded Unsweetened Coconut | 1 cup | 80 g |
| Chopped Walnuts (or almonds) | 1/2 cup | 60 g |
| Powdered (Confectioners’) Sugar (filling) | 1 3/4 cups | 220 g |
| Custard Powder (or instant vanilla pudding mix) | 2 tbsp | 16 g |
| Whole Milk | 3 tbsp | 45 ml |
| Semi-Sweet Chocolate | 8 oz | 226 g |
| Salt | Pinch | Pinch |
| Vanilla Extract | 2 tsp | 10 ml |
Notes: I list butter in one line for total quantity since the recipe uses it in multiple layers. If you prefer to measure separately, use: 1/2 cup for the base, 1/2 cup for the filling, and 2 tbsp for the topping.
Nutrition Facts (Approximate Per Serving — 1 Of 16 Bars)
| Nutrition | Per Bar (approx.) |
|---|---|
| Calories | 368 kcal |
| Total Fat | 25 g |
| Carbohydrates | 38 g |
| Protein | 2.8 g |
| Sugar | ~24 g |
| Fiber | ~1.5 g |
| Sodium | Variable (depends on butter & salt) |
These are estimates based on common ingredient values and a 16-bar yield. If precise nutrition matters to you, plug your exact brands into a nutrition calculator.
Equipment And Prep
- 8×8-inch (20×20 cm) square pan, lined with parchment (leave an overhang for easy lift-out).
- Medium saucepan.
- Heatproof bowl for chocolate (or microwave-safe bowl).
- Mixing bowls and spatula.
- Measuring cups & spoons and a kitchen scale (recommended).
- Refrigerator space (preferably flat and undisturbed for a few hours).
Prep steps:
- Line the pan and set it where it will sit undisturbed in the fridge.
- Measure the dry crumbs, coconut, and nuts into one bowl; powdered sugar and custard powder into another.
- Keep a spare spoon and a chilled bowl nearby for the chocolate topping.
Step-By-Step Method
1. Make The Base
- In a small saucepan over low heat, melt 1/2 cup (113 g) of butter with 1/4 cup (50 g) granulated sugar and 2 tbsp (10 g) cocoa powder, stirring until cohesive and smooth. Watch it; you want warm and glossy, not boiling.
- Remove from heat and stir in 1 tsp vanilla.
- Immediately fold the melted butter mixture into 2 cups (200 g) graham cracker crumbs, 1 cup (80 g) shredded coconut, and 1/2 cup (60 g) chopped walnuts until evenly moistened.
- Press the mixture firmly and evenly into the bottom of your lined pan. Use the bottom of a measuring cup or a small flat jar to compact the base; the denser, the better. Chill for 20–30 minutes while you make the filling.
Why Press Firmly: A compact base keeps the bars from crumbling when you slice them. If the base is loose, the filling can cause the bars to fall apart.
2. Whip The Custard Filling
- In a bowl, beat 1/2 cup (113 g) softened butter until fluffy.
- Add 1 3/4 cups (220 g) powdered sugar gradually and beat until smooth.
- Add 2 tbsp (16 g) custard powder and 1 tsp vanilla, then beat again. The mixture will become thick and slightly grainy from the custard powder.
- Add 3 tbsp (45 ml) whole milk — just enough to loosen the filling to a pipeable/spreadable consistency. You want it soft but firm.
- Spread the filling evenly over the chilled base. Don’t press hard; a light, level spread keeps the top layer from cracking. Return to fridge for 20–30 minutes to firm.
Custard Powder Tip: Custard powder gives that classic flavor and yellow color. If you can’t find it, a high-quality instant vanilla pudding mix or 1½ tbsp cornstarch with an extra vanilla splash can work in a pinch.
3. Add The Chocolate Top
- Melt 8 oz (226 g) semi-sweet chocolate with 2 tbsp (28 g) butter in a heatproof bowl over simmering water (double-boiler) or in short bursts in the microwave (stir every 20 seconds).
- Stir until silky and glossy. Let the mixture cool slightly (so it’s not piping hot), then pour gently over the chilled filling. Use an offset spatula to smooth into an even layer.
- Refrigerate for at least 2 hours, preferably overnight. This helps the layers set and the flavors meld.
Why Cooling Matters: If the chocolate is too hot it will melt the filling and blur your layers; too cold and it won’t level. Aim for warm, glossy, pourable chocolate.
Tips For Success
- Room Temperature Butter: For the filling, butter should be soft but not oily. Too cold = clumpy filling; too warm = runny.
- Even Layers: Use an offset spatula or an angled knife to level each layer; take your time. The satisfaction of neat layers is part of the charm.
- Chill Between Layers: Don’t skip the fridge. Chilling prevents mixing and gives cleaner slices.
- Cut With A Warm Knife: Dip a sharp knife in hot water, wipe dry, cut one slice, and rewarm if needed. This makes the chocolate top cut cleanly.
- Make It Ahead: Bars are better after at least 12 hours in the fridge. They’ll keep 4–5 days refrigerated in an airtight container, or up to one month in the freezer.

Variations To Try
- Nut Swap: Use almonds or pecans instead of walnuts for a different bite.
- Coconut Free: Omit coconut and add an extra ½ cup (50 g) crushed graham crumbs.
- Chocolate Variation: Use milk chocolate for a sweeter top, or dark chocolate for more contrast.
- Mint Nanaimo Bars: Add ½ tsp peppermint extract to the filling and use dark chocolate for the top.
- Vegan Option: Replace butter with a solid coconut oil or vegan butter alternative, use vegan chocolate, and swap milk with almond or oat milk. Note: texture will vary.
Troubleshooting Guide
- Top Is Cracked After Cutting: Warm the knife before each cut. If cracks persist, let the bars sit at room temperature for 5–10 minutes before slicing.
- Filling Too Runny: Add another tablespoon of powdered sugar and chill longer.
- Base Falls Apart: Press it more firmly next time and ensure the base has enough melted butter to bind the crumbs. A tiny splash of honey or corn syrup can help adhesion (start with 1 tsp).
- Chocolate Seizes: If chocolate gets water in it, it will seize and become grainy. If this happens, stir in 1–2 tsp of warm oil or extra butter to smooth it out.
How To Slice And Serve
- Lift the set slab from the pan using the parchment overhang.
- Place on a cutting board and let sit 5 minutes at room temperature (this eases cutting).
- Use a sharp chef’s knife; for perfect edges, wipe the blade between cuts and rewarm it in hot water occasionally.
- Cut into 16 even squares, or make smaller pieces for parties (24 mini pieces).
- Serve chilled or slightly cool — a cold bar is firmer and bites neatly; a slightly warmer one is softer and melts on the tongue.
Make-Ahead, Storage, And Freezing
- Refrigerator: Store in a single layer or separated by parchment in an airtight container for 4–5 days.
- Freezer: Flash-freeze on a tray until firm, then stack with parchment between layers in a freezer bag for up to 1 month. Thaw in the fridge overnight.
- Transport: Keep chilled in a cooler for potlucks or road trips.
Flavor Boosters And Garnishes
- Sprinkle a few toasted coconut flakes or chopped nuts on the chocolate before it fully sets for texture.
- Drizzle white chocolate or salted caramel in a thin zigzag for a bakery look.
- A pinch of flaky sea salt on the chocolate right before it sets elevates the sweetness.
Why The Custard Middle Matters
That custard center is the personality of a Nanaimo bar. It balances the crunchy base and the rich chocolate top with a creamy, buttery note that cuts through sweetness.
Custard powder (or a pudding mix) gives a characteristic vanilla-custard flavor and a slightly yellow tint that many people expect. If you’re aiming for authenticity, use custard powder; if you just want a soft, sweet middle, powdered sugar and vanilla will do the trick.
Frequently Asked Questions
Can I Make Nanaimo Bars Without Graham Crackers?
Yes. Substitute crushed shortbread, digestive biscuits, or even crushed vanilla wafers. Expect slight differences in sweetness and texture.
What Is Custard Powder? Can I Substitute It?
Custard powder is a vanilla-flavored, cornstarch-based mix used widely in British and Commonwealth baking. If you can’t find it, use instant vanilla pudding mix (reduce powdered sugar slightly) or 1½ tablespoons cornstarch with a little extra vanilla — but the flavor will be a touch different.
Are Nanaimo Bars Gluten Free?
Not as written (graham crackers contain gluten). To make gluten-free bars, use certified gluten-free graham crumbs or crushed gluten-free cookies.
How Long Do They Last?
Refrigerated: 4–5 days. Frozen: up to 1 month. They soften at room temperature, so keep them chilled until serving.
Can I Use Unsweetened Chocolate?
Yes, but balance the bitterness by adding a tablespoon of sugar to the melted chocolate or using a sweeter filling.
Why Is My Filling Grainy?
If powdered sugar or custard powder isn’t fully beaten into the butter, the filling can feel grainy. Beat well, and make sure butter is soft enough. If the filling is still grainy, push it through a coarse sieve or beat longer on medium speed.
Can I Bake These?
No — traditional Nanaimo bars are a no-bake layered treat. You could bake adaptations of the base or filling, but then they aren’t true Nanaimo bars.
Presentation Ideas
- Tea Plate: Serve a small square with a cup of strong black tea for a classic pairing.
- Dessert Flight: Offer a trio — original Nanaimo bar, mint version, and dark-chocolate sea salt — labeled with simple cards.
- Gift Packs: Wrap 4–6 squares in parchment, tie with twine, and write a tiny note with the best-by date.
Scaling The Recipe
- Double: Use a 9×13-inch (23×33 cm) pan; bake time is irrelevant, but chilling time may increase. Expect longer firming for the center.
- Half: Use a 7×7-inch pan. Chill time remains the same, but work with smaller dollops and a smaller spatula for even layers.
Dietary Swaps (Quick Guide)
- Lower Sugar: Reduce powdered sugar by 25% in the filling and choose higher-cocoa topping for balance. Bars will be firmer.
- Dairy-Free/Vegan: Use vegan butter and vegan chocolate. Replace milk with oat or almond milk. Texture will vary; chill longer.
- Nut-Free: Omit nuts and add extra graham crumbs or toasted seeds for crunch.
Common Mistakes And How To Fix Them
- Base Too Oily: Cool the melted butter slightly before combining with crumbs; press firmly to compact.
- Filling Too Dry: Add a teaspoon of milk at a time until spreadable.
- Top Won’t Set: Chocolate needs some fat to set glossy; if climate is warm, add an extra tablespoon of butter to the melted chocolate to help it firm.
Serving Notes And Pairings
- Beverages: Black tea, coffee, or a light dessert wine are classic matches. Milk is a nostalgic, lovely pairing for kids and adults alike.
- Sides: A small dollop of whipped cream or a few fresh berries can cut sweetness and add brightness.
- Timing: Best after 12 hours of chilling; serve chilled or slightly cool (5–10 minutes at room temp).
Final Checklist (Before You Start)
- Pan lined and ready.
- All ingredients measured and within reach.
- Butter at the right temp (soft for filling, melted for base).
- Knife warmed for clean slicing.
- A cool, flat space in the fridge for setting.
Closing Thoughts
Nanaimo bars are a celebration of texture and balance: a compact base that gives, a creamy middle that cushions, and a chocolate top that declares “dessert.” They’re the sort of recipe that rewards planning — a make-ahead gem you can keep on hand for unexpected guests, a long tea, or a week that needs a little sweetness.
Treat the steps like a familiar routine, and you’ll get neat layers and reliable comfort every time. If anything goes wrong, the kitchen is forgiving: taste, adjust, and learn for the next batch. Make one pan, write yourself a sticky note, and start building your version of the perfect Nanaimo bar.
