This white chocolate Nanaimo bars recipe makes about 24 beautifully layered treats in a 9 x 9-inch square pan. The classic no-bake Canadian bar features a cocoa, graham cracker, coconut, and nut base, a creamy vanilla custard center enriched with white chocolate, and a smooth white chocolate topping.
Every bite offers contrasting textures and flavors: a lightly chewy, nutty chocolate foundation, a rich and buttery custard filling, and a sweet vanilla-like white chocolate finish. Although the total elapsed time is about 3 hours, the active preparation is only 30–35 minutes, making these bars an excellent make-ahead dessert for holidays, parties, cookie trays, and afternoon coffee.
Jump to RecipeWhy You’ll Love This Recipe

These white chocolate Nanaimo bars retain everything people love about the original Canadian confection while giving the center and topping a softer, sweeter profile. The contrast between the cocoa base and creamy white chocolate layers keeps the bars from tasting one-dimensional.
The recipe is also wonderfully practical. There is no oven required, the bottom layer cooks in one saucepan, and the bars can be prepared several hours before serving. Their distinct layers make them look special on a dessert platter, even though the method is straightforward.
If you enjoy rich layered desserts, you may also like these classic pecan pie bars, which offer another satisfying combination of a sturdy base and indulgent filling.
Ingredients You’ll Need

The bottom layer begins with butter, sugar, cocoa powder, and egg. Graham-cracker crumbs provide structure, while sweetened coconut and finely chopped almonds or walnuts add chewiness and texture. Vanilla brings the flavors together without overpowering the chocolate.
The middle layer uses softened butter, cream or milk, vanilla custard powder, sifted icing sugar, vanilla extract, and 4 ounces of melted white chocolate. Custard powder is the classic choice for the pale, softly vanilla-flavored Nanaimo center; instant vanilla pudding powder can be used in some versions, but it may create a softer and sweeter filling.
For the final layer, you need 6 ounces of white chocolate and 1 tablespoon of unsalted butter or vegetable shortening. The added fat helps the topping spread smoothly and gives it a less brittle bite once chilled.
- Use good-quality white chocolate for a smooth finish and balanced sweetness.
- Sift the icing sugar to keep the custard layer creamy rather than grainy.
- Have the parchment-lined pan ready before beginning the cooked base.
- Choose almonds or walnuts according to your preferred flavor and texture.
How to Make It Step-by-Step

Step 1: Line a 9 x 9-inch square pan with parchment paper, leaving an overhang on two sides. This simple preparation makes it much easier to lift the chilled slab from the pan without disturbing the layers.
Step 2: Melt the unsalted butter in a saucepan over low heat, then whisk in the granulated sugar and cocoa powder. Add the lightly beaten egg and cook for about 3–5 minutes, stirring constantly, until the mixture thickens slightly; do not let it boil.
Step 3: Remove the saucepan from the heat and stir in the vanilla extract, graham-cracker crumbs, shredded coconut, and chopped almonds or walnuts. Mix until every crumb is coated, then press the mixture firmly and evenly into the prepared pan.
Step 4: Chill the bottom layer for 20–30 minutes while you prepare the filling. The base should be cool and firm enough to support the custard, but it does not need to be frozen.
Step 5: Beat the softened butter until smooth, then add the heavy cream or milk, vanilla custard powder, sifted icing sugar, and vanilla extract. Continue beating until the mixture becomes light and creamy, then blend in the 4 ounces of melted white chocolate after it has cooled slightly.
Step 6: Spread the white custard mixture evenly over the chilled base. Use a small offset spatula or the back of a spoon to reach the corners, then refrigerate the pan for at least 30 minutes, until the filling is firm.
Step 7: Prepare the topping by melting the 6 ounces of white chocolate with the butter or shortening. Use short microwave intervals and stir between each one, or use a heatproof bowl set over barely simmering water.
Step 8: Spread the topping over the firm custard layer, working gently so the chocolate does not pull up the filling. Refrigerate for 1–2 hours, until the surface is completely set.
Step 9: Let the bars stand at room temperature for 10–15 minutes before slicing. Warm a sharp knife under hot water, wipe it dry, make one cut, and repeat the warming and drying process between cuts for cleaner edges.
For another dessert with a rich chocolate profile, take a look at this chocolate pecan bar recipe. It is especially appealing when you want a slightly deeper cocoa flavor and a nut-filled finish.
Pro Tips for Smooth, Clean Layers

The cooked base deserves careful attention. Keep the heat low and stir constantly after adding the egg, because overheating can scramble it and create a grainy texture. The mixture only needs to thicken slightly; boiling is not necessary.
White chocolate is more sensitive to heat than dark chocolate. Melt it slowly, and stop heating while a few small pieces remain because residual heat will finish the job as you stir.
Temperature is important when assembling the layers. Let the melted white chocolate cool slightly before adding it to the butter mixture, and chill each layer until firm but not frozen before spreading on the next.
If the top layer tends to crack, score it lightly after about 10 minutes of chilling. The shallow lines will guide the knife later, helping you create tidy portions without shattering the surface.
For a celebration dessert table, pair these bars with cranberry cookies with white chocolate. The tart cranberry flavor gives guests a bright contrast to these rich, creamy squares.
Storage, Slicing, and Serving

Store the finished Nanaimo bars in a covered container in the refrigerator so the custard and topping remain firm. Place parchment between layers if stacking them, and keep the bars chilled until shortly before serving.
Allowing the slab to stand at room temperature for 10–15 minutes makes the base easier to bite and the topping less brittle. For the cleanest presentation, use a hot, dry knife and wipe it between every cut.
- Cut the slab into approximately 24 bars for classic small portions.
- Serve with coffee, tea, or a glass of cold milk.
- Keep the bars chilled when transporting them.
- Do not leave the finished dessert in a warm room for extended periods.
These bars are rich, so smaller squares are often just right. A few flakes of coconut or a light scattering of finely chopped nuts can be used as a simple garnish, though the glossy white topping is attractive on its own.
Serving Ideas and Variations

The traditional recipe includes nuts in the base, but you can omit them and replace them with additional graham-cracker crumbs if needed. Almonds provide a delicate crunch, while walnuts contribute a deeper, earthier flavor.
White chocolate makes this version sweeter and creamier than a bar topped with semisweet chocolate. If you are serving a mixed dessert platter, place these beside a slice of chocolate cake with mocha mascarpone frosting for a pleasing mix of creamy, coffee, and cocoa flavors.
Although Nanaimo bars are most often served as dessert, they also work beautifully for bake sales, holiday cookie exchanges, bridal showers, and afternoon tea. Make them the day before so the layers have plenty of time to chill and set.
For a savory make-ahead option to serve before dessert, consider this creamy portobella chicken slow cooker dish. It can anchor a casual meal while the bars wait in the refrigerator for their turn.

White Chocolate Nanaimo Bars
Ingredients
Method
- Line a 9 x 9-inch square pan with parchment paper, leaving enough overhang on two sides to lift out the finished bars.
- Melt the butter in a saucepan over low heat. Whisk in the sugar and cocoa powder, then add the lightly beaten egg and cook for 3–5 minutes, stirring constantly, until slightly thickened without allowing the mixture to boil.
- Remove the saucepan from the heat and stir in the vanilla, graham-cracker crumbs, coconut, and chopped nuts. Press the mixture firmly and evenly into the lined pan, then chill for 20–30 minutes.
- Beat the softened butter until smooth for the custard layer. Add the cream or milk, custard powder, sifted icing sugar, and vanilla, beat until light and creamy, then blend in the melted white chocolate.
- Spread the white custard mixture over the chilled base, taking it all the way to the corners. Refrigerate for at least 30 minutes, or until the center feels firm.
- Melt the topping chocolate and butter together in short microwave intervals, stirring between each interval, or melt them in a heatproof bowl over barely simmering water. Spread the mixture over the firm custard layer.
- Chill the bars for 1–2 hours, until the topping is completely set. Let them stand at room temperature for 10–15 minutes before cutting, then use a sharp knife warmed under hot water and wiped dry between cuts.
Notes
Final Thoughts
This white chocolate Nanaimo bars recipe is a deliciously creamy interpretation of a Canadian classic. The cocoa, coconut, and nut base gives each square substance, while the white chocolate custard and topping add a smooth, sweet finish that feels festive without requiring complicated baking skills.
Follow the gentle heating instructions, chill the layers properly, and use a warmed knife for neat slices. With about 24 bars from one 9 x 9-inch pan, this make-ahead dessert is ready to share at gatherings or keep chilled for a special treat whenever a rich, layered sweet is calling.