Classic Nanaimo Bars Recipe
If you’re looking for a dessert that brings together rich chocolate, buttery custard, and a delightfully crunchy base, you absolutely have to try these Classic Nanaimo Bars. This Canadian favorite is a no-bake wonder featuring three irresistible layers: a chocolatey coconut crust, a smooth custard filling, and a glossy chocolate ganache topping. Every bite offers the perfect balance of textures and flavors, making it a beloved treat that’s surprisingly easy to prepare and perfect for any occasion.

Ingredients You’ll Need
Gathering the ingredients for Classic Nanaimo Bars is a breeze, and each one plays a vital role in creating that iconic taste and texture. The combination of crunchy graham crackers and pecans builds a sturdy base, while the custard powder lends that signature creamy filling. Lastly, the chocolate, butter, and cream come together to make a rich and silky ganache topping you’ll adore.
- Graham crackers (1 ½ cups): Crushed to create the crunchy foundation that holds all the layers together.
- Pecans (½ cup): Adds subtle nuttiness and texture to the base.
- Sweetened coconut flakes (¾ cup): Brings a lovely chewiness and a touch of sweetness.
- Unsalted butter (½ cup + ½ cup + 2 tablespoons): Ensures richness in the crust, filling, and ganache—don’t skimp on the quality!
- Kosher salt (¼ teaspoon): Enhances all the flavors without overpowering.
- Unsweetened cocoa powder (6 tablespoons): Gives the base its decadent chocolate punch.
- Granulated sugar (¼ cup): Balances the cocoa with sweetness in the crust.
- Large egg (1, lightly beaten): Binds the base and helps it set.
- Powdered sugar (2 cups): Provides smooth sweetness in the custard filling.
- Custard powder (3 tablespoons): Creates that classic creamy custard layer that defines these bars.
- Vanilla extract (½ teaspoon): Adds warm aromatic notes to the filling.
- Heavy cream (5 tablespoons total): Makes both the custard filling and ganache silky and luscious.
- Semi-sweet chocolate (6 ounces): Melts into a glossy ganache that perfectly crowns the bars.
How to Make Classic Nanaimo Bars
Step 1: Prepare the Cocoa Coconut Base
Start by lining a 9-inch square pan with parchment paper, allowing the sides to hang over for easy removal later. For the base, blend graham crackers, pecans, and coconut flakes in a food processor until fine crumbs form. Melt butter with cocoa powder, sugar, and salt over simmering water in a double boiler, whisking steadily until smooth. Temper in the beaten egg carefully by whisking constantly — this step takes a bit of attention to ensure a smooth, thick base. Remove from heat and fold your crumb mixture into the chocolate blend. Press this mixture firmly into the pan to form the sturdy, chocolatey bottom layer, then chill in the fridge while you get the filling ready.
Step 2: Whip Up the Custard Filling
For the luscious custard layer, beat butter with powdered sugar, custard powder, vanilla, and heavy cream in a mixer until wonderfully fluffy and creamy. Once your base has chilled, spread the filling evenly over it. This smooth, velvety middle is what makes Classic Nanaimo Bars truly unforgettable. Pop the pan back into the fridge for 30 minutes to help everything set nicely — it makes all the difference for cutting neat bars later.
Step 3: Create the Chocolate Ganache Topping
The final step is the crowning glory. Gently melt semi-sweet chocolate with butter and cream over simmering water until glossy and silky. Pour this ganache over the chilled custard layer and spread it quickly but evenly with a spatula before it firms up. Return the pan to the fridge for at least 20-30 minutes to allow the ganache to solidify to a perfect chocolate shell. For the best results when slicing, score the top lightly once set, chill again for an hour, and use a warm knife for clean cuts — no cracked chocolate here!
How to Serve Classic Nanaimo Bars

Garnishes
These bars are beautiful on their own, but a simple sprinkle of shredded coconut, chopped pecans, or a few chocolate shavings on top can add an extra pop of texture and visual appeal. If serving to a crowd, a dusting of powdered sugar or a drizzle of white chocolate makes them look even more irresistible.
Side Dishes
Classic Nanaimo Bars pair wonderfully with a scoop of vanilla ice cream, fresh berries, or a dollop of whipped cream. Their rich, sweet layers balance nicely with the freshness and creaminess, making for a balanced dessert plate everyone will love.
Creative Ways to Present
For an elegant twist, cut the bars into bite-sized squares and serve on decorative trays as party finger food. You might also layer crumbled bars onto parfait glasses with whipped cream and fruit for a decadent dessert parfait. These bars are versatile and can be dressed up or down depending on your occasion.
Make Ahead and Storage
Storing Leftovers
One of the best things about Classic Nanaimo Bars is how well they keep. Store any leftovers in an airtight container in the refrigerator for up to a week. The flavors actually deepen with a bit of resting time, so it’s a win-win if you’re making them ahead of schedule.
Freezing
If you want to save them for longer, these bars freeze beautifully. Just wrap them tightly in plastic wrap and place them in a freezer-safe bag or container. They’ll stay fresh for up to three months. Thaw them overnight in the fridge before serving for best texture.
Reheating
Since Classic Nanaimo Bars are best enjoyed chilled, reheating isn’t necessary or recommended. However, if you prefer a softer ganache, allow the bars to sit at room temperature for about 10 minutes before digging in. This will soften the chocolate without melting it completely.
FAQs
Can I substitute nuts in the base?
Absolutely! While pecans provide a classic flavor and texture, walnuts or almonds work just as well. Just chop them finely so they blend nicely with the graham crackers and coconut.
Is custard powder the same as cornstarch?
Not quite. Custard powder usually contains cornstarch along with flavorings like vanilla and turmeric for color. It’s essential to use custard powder here to get that authentic texture and flavor in the filling.
Can I make Classic Nanaimo Bars without eggs?
The egg in the base helps bind the ingredients when cooking the mixture. If you prefer to avoid eggs, look for a vegan-friendly recipe variant or try using an egg substitute like aquafaba, though texture might vary.
How do I get clean cuts without cracking the chocolate?
Score the ganache with a warm knife right after chilling, then chill again before cutting. Wiping the knife clean between cuts helps, and gently warming the knife blade can help slice smooth edges without shattering the chocolate layer.
Can these bars be made gluten-free?
Yes! Use gluten-free graham crackers and confirm that all other ingredients are gluten-free. The texture will be slightly different but still delicious.
Final Thoughts
Classic Nanaimo Bars are a shining star in the world of desserts, offering a perfect harmony of flavors and layers that are both comforting and indulgent. Whether you’re surprising your family, bringing a treat to a party, or just craving something sweet with a little wow factor, this recipe delivers every time. I hope you enjoy making and sharing these bars as much as I do — they truly are a Canadian treasure worth savoring.
