Skip to content

7-Layer Bars (Magic Cookie Bars)

7-layer bars (aka magic cookie bars) have a butter graham cracker crust that’s loaded with gooey layers chocolate and butterscotch chips, pecans, and coconut. They really are seven layers of magic!

More dessert bar recipes we love include scotcheroos, Twix bars and blondies!

7 layer bars on the counter.
This post may contain affiliate links. Read disclosure policy.

We’ve been making this classic treat every Christmas since I was a little girl. They’re one of my mom’s specialties and are one of the top holiday desserts requested by family and friends along with Christmas crack and gingerbread bars.

Pure chocolate and coconut heaven. Yes, please!

These are also known as magic cookie bars or hello dolly bars and are loaded with layers of graham cracker crumbs, chocolate and butterscotch chips, pecans, and coconut. Sweetened condensed milk blankets them with perfect gooey texture!

7 Layers of Ingredients

Each layer comes together with a sweet and salty taste! Start with the base layer and work your way up to the top!

Find the full printable recipe with specific measurements below.

  • Crust: The base of the dessert is a delicious graham cracker crust made of graham cracker crumbs and butter.
  • Chocolate chips: Feel free to use milk chocolate, semi-sweet, or dark chocolate chips depending on preference.
  • White chocolate chips: Because one type of chocolate is definitely not enough!
  • Butterscotch chips: I love adding these in to create more variety and depth of flavor.
  • Pecans: Use raw pecans, chopped into pieces.
  • Sweetened condensed milk: This helps makes the bars super gooey and delicious.
  • Coconut: Make sure to use sweetened shredded coconut. You can always leave this off if you’re not a coconut fan.

TIP: Feel free to get creative with your seven-layer bars! Swap pecans for chopped walnuts or peanuts, or use peanut butter chips instead of butterscotch. You could even use Christmas M&M’s in place of chocolate chips for a fun boost of color.

How to Make 7-Layer Bars

There are 7 layers but only three steps to make these amazing bars! Make these when you need a quick and easy dessert to share with friends and family. Layers of deliciousness!

Showing how to make 7 layer bars.
  1. Crust. Melt butter and combine with graham crumbs in a medium bowl with a fork. Then press the crumbs into a lined baking dish.
  2. Assemble. Next layer magic bars with the semi-sweet chocolate chips, white chips, butterscotch chips, and nuts.
  3. Pour. Then pour the condensed milk evenly over top. Sprinkle with coconut.
  4. Bake. Place in the oven at 350°F for 20 to 25 mins, until the top is lightly browned. Let cool then transfer to a cutting board to cut into squares.

Cutting: If you’re wondering how to cut them into diamonds, simply use a sharp knife and make horizontal cuts across the pan about an inch and a half apart. Next, make diagonal cuts across the pan about an inch and a half apart. Then gently lift out of the pan and serve. I find using a plastic knife works best.

Baking Tips + Variations

7 layer dessert bars are perfect just the way they are! If you need to substitute or perfect these layers in any way, follow these helpful tips and ideas to still keep the layers delicious.

  • DIY graham cracker crumbs. Place graham crackers in a food processor and pulse until fine crumbs. Alternatively, you can add them to a zip-top bag and crush them with a rolling pin. To make 1 cup of graham cracker crumbs, it takes about 7 to 8 graham crackers. So to make the 1 1/2 cups for this recipe, use about 10 graham crackers.
  • Crust. You could also use a salty crushed pretzel crust, similar to the crust in my raspberry jello pretzel salad. Or a gingersnap crust would also taste delicious.
  • Line your pan. Make sure to line your pan with parchment paper or foil so that the bars don’t stick to the bottom of the pan. I like to leave enough parchment over the edges so that I can easily grab it and remove the bars from the pan.
  • Let set. As tempting as it is, let the bars cool completely before serving. The condensed milk needs time to set or else the bars may be runny. You can stick the pan in the fridge to speed up the cooling process.
Stack of 7 layer bars.

Recipe FAQs

Why are they called hello dolly bars?

The Broadway musical “Hello Dolly” from the mid-1960s was around the time 7 layer bars were created.

How do you keep dessert bars fresh?

Making these bars are super easy but do take 7 layers of ingredients and storing these is very important so they stay fresh the longest. Make sure the bars are completely cooled before storing. See below all the tips and ways to store the 7-layer dessert bars.

Can you make 7-layer bars without coconut?

Yes! You can absolutely make this magic cookie bars recipe without coconut if preferred. If you’d still like to add a 7th layer, try adding pretzel pieces, mini marshmallows, or more nuts on top.

Why are they called 7-layer bars?

The 7-layer bars come from 7 layers of flavor to them. It starts with butter, cookie crust, chocolate chips, butterscotch chips, nuts, and coconut, then drizzled overtop is sweetened condensed milk.

5 star review

Sooo gooey and delish AND super easy (which may be my favorite part!). Perfect to make to accompany all the labor intensive cookies on a cookie tray for gifts because this one will save you time. :)

– Jenna
Close up of magic bar.

Storing and Freezing

These dessert bars are perfect for storing, making ahead, and even freezing to share later on. The layers can store in an airtight container and even stack using parchment paper. When ready to enjoy, set out at room temperature.

  • To store: This dessert will last about 3-4 days if stored at room temperature in an airtight container or bag. If stored in the fridge, they will keep for a few more days.
  • To freeze: Wait until the pan has cooled completely, then cut into squares or diamonds. Then add to a freezer container or bag and store in the freezer for up to 2 months. Thaw overnight in the fridge, or on the counter for a few hours until no longer frozen.

Are you looking for more easy desserts?! These sugar cookies, chocolate chip cookies, popcorn balls and peanut butter bars recipe are favorites!

More Desserts You’ll Love

HUNGRY FOR MORE? Subscribe to my newsletter and follow on Facebook, Pinterest and Instagram for all the newest recipes!

Stack of 7 layer bars.

7-Layer Bars

5 from 64 votes
↑ Click stars to rate now!
Author: Jamielyn Nye
7-layer bars (aka magic cookie bars) loaded with gooey layers of graham cracker crumbs, chocolate and butterscotch chips, pecans and coconut. They really are seven layers of magic! 
Prep Time: 5 minutes
Cook Time: 25 minutes
Total Time: 30 minutes
Servings: 24

Video

Ingredients 

  • 1 ½ cups graham cracker crumbs (I prefer Keebler)
  • 10 Tablespoons salted butter , melted
  • 1 cup chocolate chips
  • ½ cup white chocolate chips
  • ½ cup butterscotch chips
  • ½ cup chopped pecans , plus more if desired
  • 1 (14-ounce) can sweetened condensed milk
  • 1 cup sweetened, shredded coconut

Instructions

  • Preheat the oven to 350°F. Line a 9×13-inch baking dish with parchment paper or foil. Lightly grease with nonstick cokking spray. 
  • In a medium bowl, combine graham cracker crumbs and butter with a fork. Press crumb mixture into baking dish.
  • Spread even layers of chocolate chips, white chocolate chips, butterscotch chips, and pecans over the crumb mixture. Pour the condensed milk evenly over the top. Sprinkle with coconut.
  • Bake 20 to 25 minutes, or until the top is lightly browned. Let cool completely befote cutting into bars or diamonds. 

Notes

Variations: You can omit coconut if preferred or replace with chopped pretzels, mini marshmallows, or more nuts. 
Diamond shape: To cut into diamonds, make horizontal cuts across the pan about 1 1/2 inches apart. Next, make diagonal cuts across the pan about 1 1/2 inches apart. Gently lift out of baking dish and serve. I find using a plastic knife works best.
Storage: This dessert will last about 3 to 4 days if stored at room temperature in an airtight container or bag. If stored in the fridge, they will keep for a few more days.
Freeze: Wait until the baking dish has cooled completely, then cut into squares or diamonds. Then add to a freezer container or bag and store in the freezer up to 2 months. Thaw overnight in the fridge, or on the counter for a few hours until no longer frozen.

Nutrition

Calories: 223kcal | Carbohydrates: 26g | Protein: 3g | Fat: 13g | Saturated Fat: 7g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 3g | Trans Fat: 0.2g | Cholesterol: 20mg | Sodium: 125mg | Potassium: 105mg | Fiber: 1g | Sugar: 22g | Vitamin A: 213IU | Vitamin C: 1mg | Calcium: 71mg | Iron: 0.5mg

Nutrition provided is an estimate. It will vary based on specific ingredients used.

Course: Dessert
Cuisine: American

Did you make this recipe? Don’t forget to give it a star rating below!

Let’s connect

Join our community of over 5 million!

Featured on

  • Taste of Home
  • Martha Stewart
  • Country Living
  • BuzzFeed
  • Yahoo
  • Food Network
  • Today