The chocolate sets in a thin cap over the pale custard, and suddenly a sugar cookie has all the familiar layers of a Nanaimo bar. The cookie underneath is sturdy enough to hold the filling, but it still has a tender bite. I like that each one gives you the chocolate-and-custard combination without needing to slice a chilled pan of bars.
Graham cracker crumbs and coconut go right into the dough, so their flavor is built into every cookie instead of sitting in a separate crumb layer. The filling gets its custard flavor from custard powder, then a short chill firms it before the chocolate goes on. That pause keeps the layers distinct, and the finished cookies look as good as they taste.

Kitchen Note
I spread the custard close to the edge of each cookie before chilling it. That leaves less bare cookie showing around the chocolate cap, and gives each bite a good balance of all three layers.
Save these Nanaimo Bar Sugar Cookies for a bake when you want a tender graham-coconut cookie under custard filling and a crisp chocolate finish.
Why the Graham-Coconut Base Works Better Than a Crumb Layer
A Nanaimo bar has a distinct crumb base, but these cookies aren’t bars cut into rounds. The graham crumbs and shredded coconut are mixed into a butter cookie dough with flour and baking powder. That combination gives the cookies enough structure to carry a generous layer of custard without crumbling when you pick one up.
The dough also lets the familiar flavors reach the edges of every cookie. Graham crumbs bring a toasted, honeyed note, while coconut gives the bite a little chew. Neither has to do the work of holding a loose crust together, because the flour-and-butter dough binds the pieces into one soft cookie. Chilling the dough before baking helps it stay manageable as you shape the portions, rather than turning into a sticky mixture on the counter.
Think of the cookie as the part that makes this version different, not just a vehicle for the topping. It should taste good on its own, with the custard and chocolate adding the recognizable Nanaimo-bar finish rather than covering up a bland base.
The Ingredients That Make These Taste Like Nanaimo Bars

- Graham cracker crumbs and sweetened coconut — These give the cookie its signature base notes and a little texture. Use finely crushed graham crackers or packaged crumbs; large chunks can make the dough harder to portion evenly. Sweetened shredded coconut is a good fit here because it adds both coconut flavor and a tender chew.
- Custard powder — This is what gives the filling its classic custard taste as well as color. Bird’s is a familiar choice, and another plain custard powder works too. Instant vanilla pudding mix isn’t a like-for-like swap: it has a different balance of sugar and thickener, so the filling may come out sweeter and softer.
- Butter — Softened butter creams with the sugar for the cookie dough and makes the filling smooth and spreadable. Keep the cookie and filling portions separate as you measure; melted butter won’t cream properly and can change the cookie texture.
- Semisweet chocolate chips — Their sweetness is balanced by the buttery custard layer. Since the topping is a thin layer, use chips you enjoy eating on their own; the chocolate flavor comes through clearly in each bite.
- Coconut oil — A small amount helps the melted chocolate spread across the filling. Use coconut oil rather than swapping in water or cream, which can make melted chocolate seize or set differently.
How to Build the Cookie, Custard, and Chocolate Layers
Cream the dough, then give it time to chill
Heat the oven to 350°F and line a large baking sheet with parchment paper. Beat the cookie portion of softened butter with the granulated sugar until light and fluffy, about 2 minutes, then beat in the egg and vanilla. Whisk the flour, graham crumbs, coconut, baking powder, and salt separately; mix them into the butter mixture just until no dry streaks remain. Cover and chill the dough for 30 minutes so it’s easier to portion and shape.
Shape even cookies and watch the edges
Scoop the dough into 24 portions of about 1 1/2 tablespoons each, then flatten every portion to about 1/2 inch thick. Bake 12 at a time for 10–12 minutes. The edges should be lightly golden and the centers should look set; don’t wait for the whole cookie to turn deeply golden. Cool each batch on the baking sheet for 5 minutes, then move the cookies to a rack and let them cool completely before adding filling.
Beat and spread the custard filling
Beat the remaining butter until smooth, then add the powdered sugar and custard powder and beat again. Add the heavy cream and continue beating until the filling looks fluffy and spreadable, not dry or stiff. Spread about 1 tablespoon over each completely cooled cookie. Refrigerate the filled cookies for 20 minutes, until the top of the filling feels firm rather than soft under a light touch.
Finish with a thin chocolate cap
Put the semisweet chocolate chips and coconut oil in a microwave-safe bowl. Heat in 20-second bursts, stirring between each one, until the chocolate is smooth; the short intervals help prevent scorching. Divide it evenly over the cookies and spread it to cover the custard. Refrigerate for about 20 minutes, until the chocolate has set.
Easy Swaps That Keep the Nanaimo Bar Character
Make a gluten-free batch
Replace the all-purpose flour with a cup-for-cup gluten-free baking blend that contains xanthan gum, and use gluten-free graham cracker crumbs. The cookies may be a little more delicate, so let them cool fully on the rack before spreading the filling.
Choose a darker chocolate finish
Use bittersweet chocolate chips in place of the semisweet chips, keeping the coconut oil in the topping. The cap will taste less sweet and more cocoa-forward against the custard; the rest of the cookie stays unchanged.
Use milk chocolate for a sweeter cap
Swap in the same amount of milk chocolate chips for a milder, sweeter topping. The chocolate flavor will be gentler beside the custard, so this version tastes more like a candy-bar cookie than a bittersweet chocolate dessert.
Storage and Reheating
- Refrigerator: Keep the cookies in an airtight container for 3–4 days. The cookie base will firm up when chilled, while the custard and chocolate stay set.
- Freezer: Freeze the fully set cookies in a single layer until firm, then transfer them to an airtight container with parchment between layers. For best texture, use within 2 months and thaw in the refrigerator.
- Reheating: These are best served chilled, so skip reheating. Warmth softens the custard and chocolate and can leave the layers messy.
Questions That Come Up While Making Nanaimo Bar Sugar Cookies

Nanaimo Bar Sugar Cookies
Ingredients
Equipment
Method
- Heat the oven to 350°F.
- Line a large baking sheet with parchment paper.
- Beat 1 cup of the butter and the granulated sugar until light and fluffy, about 2 minutes.
- Beat in the egg and vanilla extract.
- Whisk together the flour, graham cracker crumbs, coconut, baking powder, and salt.
- Mix the dry ingredients into the butter mixture just until combined.
- Cover and chill the dough for 30 minutes.
- Scoop the dough into 24 portions of about 1 1/2 tablespoons and flatten each to about 1/2 inch thick.
- Bake 12 at a time for 10–12 minutes, until the edges are lightly golden and the centers look set.
- Cool each batch on the baking sheet for 5 minutes, then transfer to a rack to cool completely; let the baking sheet cool before reusing it.
- Beat the remaining 1/2 cup butter until smooth.
- Beat in the powdered sugar and custard powder.
- Add the heavy cream and beat until fluffy and spreadable.
- Spread about 1 tablespoon of filling over each cooled cookie.
- Refrigerate for 20 minutes, until the filling is firm.
- Melt the chocolate chips with the coconut oil in a microwave-safe bowl in 20-second bursts, stirring between bursts until smooth.
- Divide the melted chocolate evenly over the cookies and spread it to cover the filling.
- Refrigerate for about 20 minutes, until set.


