seven layer cookies recipe
|

Seven layer cookies recipe (magic cookie bars that hold together, cut clean, and don’t burn at the edges)

This seven layer cookies recipe is one of the easiest things you can bake in December. Press a graham crust into a pan, pour on a can of sweetened condensed milk, scatter chips, coconut, and nuts on top, and bake. No mixer and no dough to chill. So why do so many pans come out with burnt, rock-hard edges, a crust that crumbles the second you lift a piece, or bars that are stuck to the pan for good? It’s almost never the recipe. It’s the pan prep, where the milk goes, and cutting them too soon.

The recipe comes first below. After that you’ll find the parts nobody else tells you: lining the pan so the whole slab lifts out in one piece, getting the milk all the way into the corners so the edges stay chewy, how to tell they’re done in a metal or glass pan, and how to cool and cut them so you get clean squares instead of a pile of crumbs. Then there’s storing, freezing, packing them for cookie trays, and easy swaps if someone at your table hates butterscotch or can’t have nuts.

Quick note on the name: in most of the US, “seven layer cookies” means these bars, also called magic cookie bars, seven layer bars, or Hello Dolly bars. If you were looking for the Italian rainbow cookies with almond sponge layers and jam, that’s a different (and much longer) project. This post is the bar.

Seven layer cookies recipe: the ingredients (and what each layer does)

seven layer cookies recipe

This seven layer cookies recipe makes one 9×13-inch pan, which cuts into 24 generous bars or 36 small squares for a cookie tray. Hands-on time is about 15 minutes. Bake time is 25 to 30 minutes, and then they need about 3 hours to cool and set before you cut them. Don’t skip that part. It’s the difference between neat bars and a mess.

Ingredients

  • 1 1/2 cups (about 150g) graham cracker crumbs, about 11 full sheets, crushed fine
  • 1/2 cup (113g / 1 stick) butter, melted, plus a little extra for the pan
  • 1 tablespoon granulated sugar (optional, for a crisper crust)
  • A pinch of salt, about 1/8 teaspoon
  • 1 can (14 ounces / 397g) sweetened condensed milk
  • 1 cup (170g) semisweet chocolate chips
  • 1 cup (170g) butterscotch chips
  • 1 1/3 cups (about 100g) sweetened flaked coconut
  • 1 cup (about 115g) chopped pecans or walnuts

Equipment

  • A 9×13-inch baking pan, metal if you have one
  • Parchment paper
  • A measuring cup or flat-bottomed glass for pressing the crust
  • An offset spatula or the back of a spoon
  • A large, sharp chef’s knife for cutting

What each layer is doing

Count them and you get seven: crust, condensed milk, chocolate chips, butterscotch chips, coconut, nuts, and then the crust’s butter acting as glue. (Some people count the butter as its own layer. Some count the graham crumbs and the butter together and call it six. Nobody’s checking.) What matters is the job each one does:

  • The graham crust is the base that holds everything up. If it’s loose, the bars fall apart no matter what else you do.
  • The sweetened condensed milk is the real binder. In the oven it bubbles, thickens, and turns into a chewy caramel that grabs every chip and flake of coconut. Wherever the milk doesn’t reach, the toppings sit loose and the edges dry out.
  • The chips melt into soft pockets. Semisweet keeps the whole thing from tasting like pure sugar.
  • The coconut toasts on top and gives you that chewy, golden finish. It’s also your doneness signal, which we’ll get to.
  • The nuts add crunch and a little bitterness to balance all that sweetness.

The salt is a small addition you won’t find on the can, but it makes the caramel taste like caramel instead of just sweet.

How to make seven layer bars that come out of the pan in one piece

Sweetened condensed milk poured over a pressed graham cracker crust in a parchment-lined pan, spread toward the edges with a spatula

Here’s the method for this seven layer cookies recipe. Most of the recipes out there skip steps 1, 3, and 5, and those are exactly the ones that fix the common problems.

1. Line the pan with a parchment sling

Heat the oven to 350°F (175°C) for a metal pan, or 325°F (165°C) for glass. Lightly butter the pan, then lay in a piece of parchment wide enough to cover the bottom and hang over both long sides by a couple of inches. The butter underneath keeps the paper from sliding around. Those overhanging “handles” let you lift the whole cooled slab out onto a cutting board later.

Why not just grease the pan? The condensed milk caramelizes right where it touches metal, and caramel glues itself to pans. A greased pan works fine until you try to get the corner pieces out. Foil works too, but caramel sticks to it more than it sticks to parchment, so if you use foil, grease it well.

2. Make the crust and press it hard

In a bowl, stir the graham crumbs, melted butter, sugar (if using), and salt with a fork until every crumb looks damp, like wet sand. Dump it into the pan, spread it out, and then press it down firmly with the bottom of a measuring cup. Really lean on it, and get into the corners and along the edges. A loosely packed crust is the number one reason seven layer bars crumble when you cut them.

Some old recipes have you melt the butter right in the pan and sprinkle the crumbs on top. It saves a bowl, but you end up with greasy patches and dry patches. Mixing in a bowl takes 30 seconds and gives you an even crust.

Optional but worth it: bake the crust alone for 8 minutes before you add anything else. It firms up, and the finished bars hold together noticeably better, especially if you’re cutting small squares for a tray.

3. Pour the condensed milk all the way to the edges

Pour the sweetened condensed milk over the crust in a slow zigzag. Then use an offset spatula or the back of a spoon to nudge it all the way into the corners and right up against the parchment on every side. Tilt the pan if that helps. Scrape the can, because there’s a good spoonful stuck to the sides.

This step is the whole trick for chewy edges. Anywhere the milk doesn’t reach, you get bare crumbs and toppings with nothing to hold them, and those spots bake dry and dark. Hold back about 2 tablespoons of milk in the can if you like. You’ll use it in step 5.

4. Add the toppings in order

Scatter the chocolate chips evenly over the milk, then the butterscotch chips, then the coconut, and finally the nuts. Go edge to edge, not in a mound in the middle.

Pressing chocolate chips, butterscotch chips, coconut, and pecans into the condensed milk layer with a fork

5. Press everything down (and drizzle the rest of the milk)

Use a fork or your palm to press the toppings gently down into the milk. You’re not mashing it. You just want everything touching the milk so it bakes into one piece instead of a crust with loose stuff on top. If you saved a little milk, drizzle it over the coconut and nuts now. That top drizzle glues the coconut down so it doesn’t shed every time someone picks up a bar.

6. Bake

Bake for 25 to 30 minutes in a metal pan at 350°F, or about 28 to 33 minutes in glass at 325°F, until the coconut is light golden and the edges are bubbling and caramel-colored. Turn the pan halfway through if your oven has a hot spot. The next section covers exactly what “done” looks like.

7. Cool completely, then chill, then cut

Set the pan on a rack and leave it alone for at least 2 hours, until it’s at room temperature all the way through. Then refrigerate it for about an hour before cutting. More on that below. It’s the step everyone wants to skip.

Metal vs glass pan, 9×13 vs 8×8, and how to tell they’re done

Baked seven layer bars cooling on a rack with golden toasted coconut and caramel bubbling at the edges

Burnt edges are the most common complaint with seven layer bars, and the pan is usually to blame.

Metal or glass?

A light-colored metal pan is best. Metal heats up and cools down fast, so the edges caramelize without scorching, and the bars stop baking soon after they come out of the oven. Bake at 350°F.

Glass and ceramic work, but lower the heat to 325°F. Glass is slow to heat, but once it’s hot it holds that heat and keeps blasting the edges and bottom. At 350°F, the edges in a glass dish often go dark brown and hard before the middle is set. At 325°F, you’ll need a few extra minutes, but the edges stay chewy.

Dark nonstick metal pans run hot too. Bake at 350°F but start checking at 20 minutes, or drop to 325°F. If you’re shopping for pans anyway, our best baking sheet guide explains why lighter metal browns more evenly. The same logic applies to bar pans.

Pan sizes

  • 9×13 inch: the standard. This seven layer cookies recipe is written for it.
  • 8×8 or 9×9 inch: make a half batch. That’s 3/4 cup graham crumbs, 1/4 cup butter, about 2/3 cup condensed milk (half the can), and half of each topping. Bake 22 to 28 minutes. Use the leftover milk for a quick batch of sweetened condensed milk fudge, or stir it into coffee.
  • Full batch in an 8×8: don’t. The layers get too thick, the middle stays gooey long after the edges are done, and the bars won’t hold a shape.
  • Half sheet pan (18×13): double the recipe for thin, crisp bars that are great for big cookie trays. Start checking at 18 minutes.

How to tell they’re done

There’s no toothpick test for these, because the middle is supposed to be soft and gooey when it comes out. Look for these signs instead:

  • The coconut on top is light golden, with the tips toasted. If it’s still white, give it a few more minutes.
  • The edges are golden caramel and bubbling, not dark brown.
  • The center is bubbling a little too, not just the edges. If only the edges bubble, the milk in the middle hasn’t thickened yet.

Pull them at golden, not brown. The caramel keeps cooking from the pan’s heat for a few minutes after they come out, and it firms up a lot as it cools. If you wait until the edges look deep brown in the oven, they’ll be hard and bitter once they cool.

Cooling and cutting seven layer bars so they don’t fall apart

Cutting cooled seven layer bars into squares on a cutting board after lifting them out with a parchment sling

This is where most pans of seven layer bars go wrong. Warm condensed milk is basically hot caramel sauce. Cut into it and the bars slump, the toppings slide, and the crust breaks off in chunks. Once it’s fully cool and cold, the caramel sets firm and everything holds together.

The timeline

  1. 10 minutes out of the oven: run a thin knife along the two short sides of the pan (the ones without parchment) so the caramel doesn’t set onto the metal.
  2. 2 hours on a rack: let it cool to room temperature, all the way through. Feel the bottom of the pan. If it’s still warm, wait.
  3. 1 hour in the fridge (or 20 to 30 minutes in the freezer if you’re short on time): this sets the caramel firm enough to cut clean.
  4. Lift and cut: grab the parchment handles, lift the whole slab onto a cutting board, and cut.

How to cut clean squares

Use your largest, sharpest chef’s knife and press straight down. Don’t saw back and forth, because that drags the toppings around. Wipe the blade with a hot, damp towel between cuts so caramel doesn’t build up on it. Trim a thin strip off each edge first if you want perfect squares for gifting. The trimmed edges are the cook’s share.

For a 9×13, cut 4 rows by 6 for 24 bars, or 6 by 6 for 36 smaller squares. These are rich, so small squares go further on a tray than you’d think. Let the cut bars sit at room temperature for 15 minutes before serving so the caramel softens back to chewy.

If your bars still crumble at this point, it’s almost always one of two things: the crust wasn’t pressed hard enough, or they were cut before they were cold. The pre-baked crust in step 2 helps with both.

Storing, freezing, and packing seven layer bars for cookie trays

Seven layer bars packed in a holiday cookie tin with parchment, next to a tray of Christmas cookies

Seven layer bars are one of the best make-ahead holiday bakes, because they keep well and they’re sturdy enough to travel. They’re a natural for the bar slot on a tray next to Christmas shortbread cookies and peanut butter blossoms.

How long they keep

  • At room temperature: in an airtight container with parchment or wax paper between the layers, they stay good for up to about 5 days. Keep them somewhere cool, away from the stove or a sunny window, or the caramel gets sticky.
  • In the fridge: about 2 weeks, airtight. They get firmer and chewier. Let them sit out for 15 minutes before serving.
  • In the freezer: up to 3 months. Freeze the cut bars in a single layer until they’re firm, then stack them with parchment in a freezer bag or container. Thaw at room temperature, still wrapped, for about an hour so condensation doesn’t make the tops soggy.

These times are for quality. After that, the coconut goes stale and the crust softens.

Packing them for trays, tins, and shipping

Cut the bars smaller than you’d serve them at home, about 1 1/2 inches square, so they sit neatly next to cookies. Put them in mini paper cupcake liners if they’re sharing a tin with crisp cookies. Their moisture can soften shortbread or spritz if they touch. Layer with parchment and pack the tin snugly so nothing slides.

They ship well too. Chill them first, pack them tightly in a tin, and send them early in the week so they’re not sitting in a warm warehouse over a weekend. If you’re putting together a whole holiday baking plan, our easy Christmas cookies ideas post has a make-ahead schedule that slots these right in.

And if your pan is headed to a school bake sale or a charity cookie table, our Support Our Charities T-shirt is a comfortable, sturdy one to bake (and sell) them in.

Eat Cafe Support Our Charities Donor Membership T-Shirt

A shirt for bake sale season

The Eat Cafe Support Our Charities tee is a comfortable, sturdy black Gildan cotton shirt with a small logo over the heart and a big one on the back. It shrugs off graham crumbs and coconut flakes, and it looks right at home behind a bake sale table full of seven layer bars.

Easy swaps: no butterscotch, nut-free, dark chocolate, and other crusts

Three magic cookie bar variations: white chocolate and cranberry, dark chocolate chunk, and chocolate cookie crust

Once you’ve made this seven layer cookies recipe once, the toppings are flexible. Keep the crust and the condensed milk the same, and swap the rest by the cup.

If you don’t like butterscotch

Lots of people don’t. Replace it one for one with more semisweet chips, white chocolate chips, peanut butter chips, or chopped toffee bits. White chocolate with dried cranberries makes a pretty Christmas version. If you skip the butterscotch completely without adding anything else, the bars will be a little thinner, which is totally fine.

Nut-free

Leave the nuts out and add 1/2 cup more chips, or use 1 cup of crushed pretzels for crunch with a salty edge. Crispy rice cereal also works. Watch out for toffee bits, though, since many brands contain almonds. If you’re baking for someone with a nut allergy, read every label, including the chips and the graham crackers, for “may contain” or shared-equipment warnings.

Dark chocolate or less sweet

Use bittersweet or dark chocolate chips in place of semisweet, swap the butterscotch for more dark chocolate, and use unsweetened shredded coconut. That version is noticeably less sweet. Unsweetened coconut toasts faster, so check at 20 minutes.

Different crusts

  • Chocolate cookie crust: about 24 chocolate sandwich cookies, crushed whole (filling and all), plus 4 tablespoons melted butter. The filling already adds fat, so you need less butter.
  • Biscoff crust: 1 1/2 cups crushed speculoos cookies and 5 tablespoons melted butter. Warm and spiced, and great with white chocolate.
  • Vanilla wafer or shortbread crust: same amounts as graham. A little more buttery.

Whatever crust you use, press it just as firmly, and pre-bake it if you can. Our guide to making a graham cracker crust that holds together covers the crumb-to-butter ratio in more detail. It’s the same idea in a pie plate.

Gluten-free or dairy-free

For gluten-free bars, use gluten-free graham-style crackers and check that your chips are labeled gluten-free. For dairy-free bars, there’s sweetened condensed coconut milk, which you can find near the regular cans in most stores. Pair it with dairy-free chips and plant butter. It bakes up a little softer and tastes more like coconut, which suits this recipe anyway. Keep in mind that butterscotch chips usually contain milk, so swap those out too.

Allergen note

The classic version contains milk, wheat, tree nuts, coconut, and usually soy (from the chips). Tell people what’s in them when you bring them to a party or put them in a gift tin.

Seven layer cookies recipe FAQ

Why are my seven layer bars crumbly?

Usually it’s a crust that wasn’t pressed firmly enough, or bars that were cut while they were still warm. Press the crust hard with the bottom of a measuring cup, pre-bake it for 8 minutes, make sure the milk covers it all the way to the edges, and cool fully and then chill before cutting. Too little butter can do it too. The crumbs should look like wet sand, not dry crumbs.

Why did the edges burn?

Either the condensed milk didn’t reach the edges, so bare crust and toppings scorched, or the pan ran hot. Glass and dark metal pans both brown the edges fast, so bake glass at 325°F and start checking dark pans at 20 minutes. Pull the bars when the coconut is light golden, not brown.

Can I use evaporated milk instead of sweetened condensed milk?

No. They’re very different products, even though the cans look alike. Evaporated milk is unsweetened and thin, so it won’t thicken into caramel or bind the layers, and you’ll end up with a soggy pan of loose toppings. Sweetened condensed milk has a lot of sugar cooked into it, and that’s what makes the chewy caramel. If you’re out of it, it’s worth a trip to the store.

Do you put the condensed milk on first or last?

Both methods are out there. Pouring it over the crust first (the original way) gives you a distinct gooey caramel layer. Pouring it over the toppings last soaks everything and glues the top down better, but the coconut doesn’t toast as nicely. This recipe uses most of the milk first, plus a small drizzle on top, which gets you both.

Why are my bars too gooey in the middle?

Either they’re underbaked (the center wasn’t bubbling yet) or they haven’t cooled long enough. Give them the full 2 hours plus an hour in the fridge before you decide. If they’re still runny after chilling, bake the next batch a few minutes longer, or check that you’re not using a pan smaller than 9×13 for a full batch.

How far ahead can I make them for Christmas?

You can bake this seven layer cookies recipe up to 5 days ahead at room temperature, about 2 weeks in the fridge, or up to 3 months in the freezer. For a cookie exchange, bake them up to a week before and keep them in the fridge. They’re a good make-ahead partner for no-bake rum balls, since neither one takes up oven time on the busy days.

Are seven layer cookies the same as Hello Dolly bars?

Yes, for the most part. Hello Dolly bars, magic cookie bars, seven layer bars, and seven layer cookies are all names for the same graham-crust, condensed-milk bar. Some families leave out the butterscotch and call them five or six layer bars. Italian rainbow cookies, sometimes also called seven layer cookies, are a completely different almond cake dessert.

The short version

Line a 9×13 pan with a parchment sling. Mix the graham crumbs with melted butter and a pinch of salt, press it hard, and pre-bake for 8 minutes if you can. Pour the condensed milk all the way to the edges, layer on the chips, coconut, and nuts, and press it all down. Bake at 350°F in metal or 325°F in glass until the coconut is light golden and the middle is bubbling. Then let it cool completely, chill it for an hour, lift it out, and cut it with a big knife wiped clean between cuts. That’s the whole seven layer cookies recipe, and the parchment and the patience take care of everything else.

Make a pan this week, and you’ve got the easiest bar on the holiday tray, ready days ahead. If you need something with jam for the tray, thumbprint cookies are a nice contrast. And if the baker in your life is the one who always shows up with the cookie tin, our gifts for bakers guide has a few ideas for them.

Similar Posts

Leave a Reply