This post may contain affiliate links. Please read our disclosure policy.

These easy Magic Cookie Bars, also known as Seven Layer Bars or Hello Dolly Bars, have a buttery graham cracker crust layered with sweetened condensed milk, chocolate and butterscotch chips, coconut and walnuts. They take just minutes to assemble before baking into gooey, chewy bars with crisp, golden edges. They’re an easy make-ahead dessert for holidays, parties, potlucks or whenever you need something sweet without a lot of work.

Three magic cookie bars are stacked on top of one another on a white plate.

Kellie’s Note
Seven Layers of Bliss

I’ve been making Magic Cookie Bars for longer than I can even remember. It’s one of my favorite cookies for the holidays but I love making them all year long because they satisfy my sweet craving with just one bite.

You most likely had a Magic Cookie Bar (or several) at a holiday cookie exchange. They also go by the name Hello Dolly Bars and Seven Layer Bars. While they’re a notable cookie exchange recipe, there’s nothing exceptionally Christmas-y about these bars. They’re impossible not to crave on a very random Tuesday. They’re one of my all-time favorite recipes.

Don’t care for coconut? Leave it out. Not a fan of nuts? Leave them out. If you like white chocolate, you can add that in or substitute it for semisweet chips. The sky’s the limit with this easy Magic Bar recipe! Simply layer the ingredients of your choice, bake for about half an hour, and enjoy.

  • So easy. There’s no mixer, cookie dough or complicated technique. Just make the crust, layer and bake.
  • Only 7 ingredients. Everything is easy to find and you may already have most of it in your pantry.
  • Loaded with texture. Buttery graham cracker crust, melty chocolate, chewy coconut and crunchy nuts all in one bite.
  • Easy to customize. Swap the chocolate, nuts or coconut to make them your own.
  • Perfect for making ahead. They store and freeze beautifully, so they’re great for parties, cookie trays and bake sales.

Why Are They Called Seven Layer Bars?

Magic Cookie Bars are also known as Seven Layer Bars or Hello Dolly Bars. The name comes from the seven classic ingredients that make up the recipe:

  1. Graham cracker crumbs
  2. Butter
  3. Sweetened condensed milk
  4. Chocolate chips
  5. Butterscotch chips
  6. Coconut
  7. Nuts

Technically, the butter and graham crackers are mixed together to make the crust, but they’re traditionally counted separately to create those famous seven layers.

Whatever you call them, they’re the same easy, gooey cookie bars I’ve been making for years.

You only need seven simple ingredients. Exact measurements are in the recipe card below.

  • Graham cracker crumbs – Store-bought crumbs make this extra easy, or pulse whole graham crackers in a food processor. Gluten-free graham cracker crumbs work, too.
  • Butter – Melted butter holds the crust together. I use salted butter, but unsalted works just as well.
  • Sweetened condensed milk – The magic ingredient that makes the layers rich, gooey and holds everything together. Don’t substitute evaporated milk.
  • Semisweet chocolate chips – My favorite for balancing the sweetness. Milk chocolate, dark chocolate or white chocolate chips also work.
  • Butterscotch chips – The classic choice, but peanut butter chips are a really good swap.
  • Coconut – I use sweetened flaked coconut. Unsweetened coconut works if you prefer the bars a little less sweet.
  • Nuts – Walnuts are my go-to, but pecans are equally delicious.

Sweetened Condensed Milk vs. Evaporated Milk

Make sure you grab sweetened condensed milk, not evaporated milk. The cans look similar, but they’re completely different ingredients.

Sweetened condensed milk is thick, rich and sweet, and it helps hold all those Magic Cookie Bar layers together as they bake. Evaporated milk is much thinner and won’t give you the same gooey, chewy result.

The ingredients for magic cookie bars are placed on a marble surface.
  1. Prep the pan. Preheat the oven to 350°F and line a 9×13-inch baking pan with parchment paper, leaving a little overhang.
  2. Make the crust. Stir the graham cracker crumbs and melted butter together until evenly moistened. Press firmly into an even layer in the bottom of the pan.
  3. Add the condensed milk. Pour the sweetened condensed milk evenly over the crust.
  4. Layer the toppings. Sprinkle with the chocolate chips, butterscotch chips, coconut and nuts.
  5. Bake. Bake for 25–30 minutes, until the top is lightly golden.
  6. Cool completely. Let the bars cool completely before lifting them from the pan and slicing.
  • Line the pan with parchment. Leave enough overhang to lift the cooled bars right out of the pan.
  • Pack the crust firmly. I use the bottom of a measuring cup or drinking glass to press it into an even layer.
  • Spread everything evenly. You want chocolate, butterscotch, coconut and nuts in every bite.
  • Watch the color. The bars are ready when the top is lightly golden and the coconut begins to toast.
  • Don’t slice them warm. This is the hardest part, but it’s worth the wait. Let the bars cool completely so the layers set and you get clean slices.
  • For extra-clean cuts, chill first. Once cooled, refrigerate the pan briefly before slicing if the bars still feel especially gooey.
A baking dish is filled with slices bars.

This is one of those recipes that’s really easy to make your own.

  • Make them gluten-free. Use your favorite gluten-free graham cracker crumbs.
  • Change the chocolate. Try dark chocolate, milk chocolate or white chocolate chips.
  • Swap the butterscotch. Peanut butter chips are one of my favorite alternatives.
  • Change the nuts. Pecans, walnuts or even macadamia nuts work.
  • Skip the nuts. Leave them out entirely for a nut-free version.
  • Skip the coconut. Not a coconut fan? Just leave it out.
  • Make them less sweet. Use unsweetened coconut and dark chocolate.

How to Store, Freeze and Make Ahead

  • Room temperature: Store Magic Cookie Bars in an airtight container for 3–4 days.
  • Refrigerator: Keep them refrigerated in an airtight container for up to one week. I actually love the texture when they’re chilled.
  • Make ahead: These bars are a great make-ahead dessert. Bake and cool them completely, then store them tightly covered until you’re ready to serve.
  • Freezer: Once completely cooled, transfer the bars to an airtight freezer-safe container. Freeze for up to 3 months and thaw overnight in the refrigerator before serving.
Several magic bars are stacked on top of one another on a serving plate.

Serving Ideas

Magic Cookie Bars are rich, so I like to cut them into smaller squares. They’re perfect for holiday cookie trays, potlucks, bake sales, parties or packing up to share with friends.

They’re also fantastic straight from the fridge if you like your bars a little firmer and extra chewy.

More Easy Dessert Bars

For more easy cookie recipes, follow us on Instagram and Facebook!

Magic Cookie Bars Recipe

5 from 1 vote
Prep: 15 minutes
Cook: 30 minutes
Total: 45 minutes
Servings: 12
Easy Magic Cookie Bars, also known as Seven Layer Bars or Hello Dolly Bars, are made with a buttery graham cracker crust layered with sweetened condensed milk, chocolate, butterscotch, coconut and nuts.

Equipment

  • 1 13 x 9 baking pan

Ingredients 

  • 1 1/2 cups graham cracker crumbs
  • 1/2 cup butter, melted
  • 1 14 ounce can sweetened condensed milk
  • 2 cups semisweet chocolate chips
  • 2/3 cup butterscotch chips
  • 1 1/3 cups sweetened flaked coconut
  • 1 cup chopped nuts, I used walnuts

Instructions 

  • Preheat the oven to 350°F. Line a 9×13-inch baking pan with parchment paper.
  • Stir together the graham cracker crumbs and melted butter until evenly moistened.
  • Press the graham cracker mixture firmly into an even layer in the bottom of the pan.
  • Pour the sweetened condensed milk evenly over the crust.
  • Sprinkle the chocolate chips and butterscotch chips evenly over the condensed milk.
  • Top with the coconut and chopped nuts.
  • Bake for 25–30 minutes, or until the top is lightly golden and the coconut begins to toast.
  • Cool completely before slicing. Store in an airtight container.

Video

Notes

  • Substitutions: Swap semisweet chocolate chips for milk, dark or white chocolate. Peanut butter chips can replace the butterscotch chips. Pecans can be substituted for walnuts. Unsweetened coconut and gluten-free graham cracker crumbs also work.
  • Important: Use sweetened condensed milk, not evaporated milk.
  • Storage: Store in an airtight container for 3–4 days at room temperature or up to 1 week in the refrigerator.
  • Freezing: Freeze completely cooled bars in an airtight freezer-safe container for up to 3 months. Thaw in the refrigerator before serving.
  • For clean slices: Cool the bars completely before cutting. If they’re still very soft, chill them before slicing.

Nutrition

Calories: 563kcal, Carbohydrates: 55g, Protein: 8g, Fat: 36g, Saturated Fat: 20g, Polyunsaturated Fat: 6g, Monounsaturated Fat: 8g, Trans Fat: 0.3g, Cholesterol: 35mg, Sodium: 219mg, Potassium: 417mg, Fiber: 5g, Sugar: 41g, Vitamin A: 357IU, Vitamin C: 1mg, Calcium: 142mg, Iron: 3mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Like this recipe?Leave a comment below!

Are Magic Cookie Bars the same as Seven Layer Bars?

Yes. Magic Cookie Bars, Seven Layer Bars and Hello Dolly Bars are different names for the same classic layered dessert made with a graham cracker crust, sweetened condensed milk, chocolate, butterscotch, coconut and nuts.

What are the seven layers in Seven Layer Bars?

The traditional seven ingredients are graham cracker crumbs, butter, sweetened condensed milk, chocolate chips, butterscotch chips, coconut and nuts.

Can I use evaporated milk instead of sweetened condensed milk?

No. Sweetened condensed milk is thick and sweet and helps hold the layers together. Evaporated milk is thinner and isn’t a good substitute.

Absolutely. Just leave the coconut out. The bars will still bake and hold together.

Yes. You can leave the nuts out completely or replace them with a little more chocolate or coconut.

What can I substitute for butterscotch chips?

Peanut butter chips, white chocolate chips or additional chocolate chips all work well.

They’re probably still too warm. Magic Cookie Bars are very soft and gooey right out of the oven. Let them cool completely before slicing so the layers have time to set.

Bake them for about 25–30 minutes, until the top is lightly golden and the coconut begins to toast. Don’t wait for the center to become hard—the bars will continue to set as they cool.

Let them cool completely first. Lift the bars from the pan using the parchment paper and slice them on a cutting board. If they’re still very soft, refrigerate them briefly before cutting.

That clean-slicing advice fills a meaningful competitor gap; Simply Recipes specifically recommends parchment plus chilling when gooey bars are difficult to cut. 

Yes. They’re an excellent make-ahead dessert. Once completely cooled, store them in an airtight container at room temperature for 3–4 days or refrigerate them for up to a week.

 Yes. Cool them completely, place them in an airtight freezer-safe container and freeze for up to 3 months. Thaw in the refrigerator before serving.

No. Magic Cookie Bars are delicious at room temperature or chilled. If they’ve been refrigerated, you can let them sit at room temperature before serving if you prefer a softer texture.

Yes, but for the most consistent results, make the doubled recipe in two 9×13-inch pans rather than trying to fit twice the ingredients into one deeper pan.

This recipe is designed for a conventional oven and a 9×13-inch baking pan. For the most reliable texture, browning and set, I recommend baking them in the oven as written.

They’re rich enough to serve completely on their own. Cut them into small squares for cookie trays, dessert boards, bake sales, potlucks and parties.

Free email guide

Your “Healthy-ish” Meal Plan
Healthy meals don’t have to be difficult. Let me show you.

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating:




This site uses Akismet to reduce spam. Learn how your comment data is processed.

12 Comments

  1. Gary Morrison says:

    I just made these Magic Cookie Bars and they are awesome. I have never been a huge fan of butterscotch, but I love these things. So does my family. Very easy to make…and easy to eat. I keep saying I am going t0 freeze the rest, but I hate to put them away! They are still on the counter and disappearing. Thank you Kellie!

    1. Kellie says:

      Thank you so much!

  2. Lavender says:

    What size pan would you use for a double batch ?

    1. Kellie says:

      I would just use two 9×13 pans or a half sheet pan would work, too!

  3. Jo Peterstn says:

    I hate graham crackers. Could I use vanilla wafers or something else?

    1. Kellie says:

      Vanilla wafers would work very well….as would the chocolate wafers, if you’re a chocolate lover they would be fantastic!

  4. sweetaddict says:

    I never make those because they are so fabulous that I’m afraid that I’ll eat the whole pan…yum!

    1. TheSuburbanSoapbox says:

      Exactly why I only make them for the holidays and then quickly evict them from my house!

  5. Katie says:

    Wow, I haven’t had these in years. Your photos look incredible!

    1. TheSuburbanSoapbox says:

      Thanks, Katie! My pictures are definitely improving, it’s definitely a new challenge for me.

  6. Ben Gaiarin says:

    I swear my mom used to make bars just like these when I was little (although, I technically still am)! Thanks for the recipe and for reminding me of this treat!

    1. TheSuburbanSoapbox says:

      These remind me of when I was little too, but I’m definitely not little anymore.