Seven Layer Magic Bars Recipe

Prep Time 10 minutes
Total Time 33 minutes
Servings 36 bars

Jump to Recipe

These Seven Layer Magic Bars are made with a graham cracker crust, chocolate chips, nuts, coconut, and sweetened condensed milk—the perfect mix of gooey, crunchy, sweet and salty!

stack of five magic bars with chocolate chips around.

If you’ve never had Seven Layer Magic Cookie Bars, then get ready for your life to change.

I feel like everyone has a recipe for magic bars from their childhood. You know, those magically delicious, totally irresistible, gooey, caramel-y, chocolate-y slices of goodness?

I will admit, I don’t make Seven Layer Bars often. But when I do they’re gone within hours. Plus, they’re so easy to throw together!

Looking for more delicious bar cookies? Try my Nanaimo Bars, Millionaire Shortbread, or Homemade Brownies!

Ingredients Needed:

This recipe really couldn’t be simpler. Here’s my guide to what you’ll need, but feel free to mix up the types of nuts, baking chips, and cookie crumbs to suit your tastes!

  • Butter: you’ll use melted butter to bind the graham cracker crumbs together for the crust.
  • Graham Cracker Crumbs: you can buy these already made OR you can crush your own graham crackers in a zip-top bag with the bottom of a glass or a rolling pin.
  • Shredded Coconut: I love the added sweetness and texture of shredded coconut in this recipe, but if you aren’t a huge fan feel free to leave it out. Use any “granola”-type mix in its place if you prefer: dried fruit, rice crisp cereal, etc.
  • Nuts: hazelnuts and pecans are extra good, since they have their own sweetness, but walnuts or even chopped peanuts are certainly fine to use too.
  • Chocolate Chips: I use a mixture of white chocolate and semisweet chocolate, but feel free to use one or the other.
  • Sweetened Condensed Milk: sweetened condensed milk is the key to a sweet, chewy, gooey bar cookie. The syrupy sweetness of condensed milk is a must-have!
Want to save this recipe?
Just enter your email and get it sent to your inbox. You’ll also get new recipes and a free monthly menu plan!

How to Make Seven Layer Magic Bars

This decadent sweet treat takes a quick 10 minutes to prep! Find the full step by step recipe down in the recipe card.

  1. Make the crust: In a bowl, mix together butter and graham cracker crumbs until combined. Press the mixture evenly into the bottom of a parchment or foil-lined and greased baking dish.
  2. Layer the bars: Sprinkle the graham cracker crust evenly with coconut, nuts, chocolate chips, and white chocolate chips.
  3. Drizzle with sweetened condensed milk — no need to stir!
  4. Bake: Bake the bars at 350ºF until light golden-brown, then cool completely, slice, and serve.

Seven Layer Magic Bars FAQs

Why is it called a 7 Layer Bar?

Because they’re usually made up of 7 layers: butter, graham crackers, coconut, nuts, chocolate chips, white chocolate chips, and sweetened condensed milk. The great thing about Seven Layer Bars, though, is that you can totally customize them to your liking. Add other candy and make 8 layer bars, layer on your favorite drizzle and make 9 layer bars, leave out the nuts and make 6 layer bars, you really can’t go wrong!

How do you cut a Magic Bar?

First thing’s first, let the bars cool completely. The cooler they are, the more set they will be. If you slice into them while they’re too warm, you’ll end up with a gooey, chocolatey mess. Once they’re cooled, just use a sharp knife to cut them into squares! You can also refrigerate them to get even cleaner slices.

Do 7 Layer Bars need to be refrigerated?

Not necessarily, but they will last longer in the fridge. To store your Seven Layer Bars, place them in an airtight container with wax or parchment paper between stacks to prevent sticking. They will keep at room temperature for 4-5 days, in the fridge for up to 1 week, or in the freezer for up to 3 months.

seven layer magic bars cut and one popped up on the rest.

Tips and Notes

  • Line the pan. Make sure you line the pan with parchment paper or foil, then spray it with a thin coating of cooking spray. This makes it so much easier to get the bars out after baking.
  • Use sweetened condensed milk. Make sure the canned milk you buy is sweetened condensed milk, NOT evaporated milk. They look similar, but are not the same. The thick, syrupy texture and flavor of sweetened condensed milk is what helps the bars hold their shape.
  • Chill them first. Although this isn’t totally necessary, chilling the Seven Layer Magic Bars helps them firm up, which translates to easier cutting. Plus, they are scrumptious when cold! (P.S. they’re even pretty great out of the freezer).
overhead image of seven layer bars sliced.


  • Use another crust. Any dry, crumbly cookie will do here. Try vanilla wafers, chocolate sandwich cookie halves (you can buy them without the filling for this purpose), or even Biscoff cookies.
  • Try other candy. You can go wild here! Use chocolate chunks for a more chocolatey bar or go with smaller chips for a more evenly layered bar. You could do. butterscotch chips, mint chips, toffee bits, broken candy bars, M&Ms, tiny marshmallows, you name it.
  • Add a drizzle. These Magic Bars are delicious drizzled with hot fudge, caramel drizzle, or marshmallow sauce.
ashley avatar

Pin this recipe to save for later

Pin this recipe to your favorite board

Seven Layer Magic Bars

5 from 57 votes
These Seven Layer Magic Bars are made with a graham cracker crust, chocolate chips, nuts, coconut, and sweetened condensed milk—the perfect mix of gooey, crunchy, sweet and salty!
Prep Time 10 minutes
Cook Time 23 minutes
Total Time 33 minutes
Cuisine American
Course Dessert
Servings 36 bars
Calories 153cal


  • 1/2 cup butter melted
  • 2 cups graham cracker crumbs
  • 1 cup shredded coconut
  • 1 cup chopped nuts I used hazelnuts and pecans
  • 1 cup chocolate chips
  • 1 cup white chocolate chips
  • 1 300ml/14oz can sweetened condensed milk


  • Preheat oven to 350°F. Line a 9×13 pan with parchment or foil and grease lightly.
  • In a medium bowl, combine melted butter and graham cracker crumbs. Press evenly into the bottom of the pan.
  • Sprinkle evenly with coconut, nuts, chocolate chips and white chocolate chips, and drizzle with sweetened condensed milk.
  • Bake for 23-25 minutes until light golden brown (not too dark at the edges). Let cool completely before slicing.

Nutrition Information

Calories: 153cal | Carbohydrates: 11g | Protein: 1g | Fat: 8g | Saturated Fat: 4g | Cholesterol: 8mg | Sodium: 67mg | Potassium: 45mg | Sugar: 8g | Vitamin A: 90IU | Vitamin C: 0.1mg | Calcium: 24mg | Iron: 0.4mg
Keywords 7 layer bars, magic cookie bars, magical cookie bars

Want to save this recipe?

Create an account easily save your favorite content, so you never forget a recipe again.

Register Now

Tried this recipe?

Tag @thereciperebel or hashtag #thereciperebel —
I love to see what you’re making!

Tag @thereciperebel

{Recipe adapted from Eagle Brand Condensed Milk.}

Meet Ashley

My name is Ashley Fehr and I love creating easy meals my family loves. I also like to do things my way, which means improvising and breaking the rules when necessary. Here you will find creative twists on old favorites and some of my favorite family recipes, passed down from generations!

Read More

You May Also Like

Reader Interactions


    • The Recipe Rebel says

      Hi Eileen! I haven’t tried to ship them myself but there are a few tutorials online that can teach you how to pack baked goods to ship.

  1. Judy says

    One Christmas I substituted M&Ms for the chocolate chips, mainly for the colors. Now it’s what my family expects! LOL

  2. marcie says

    7 layer bars were my favorite sweet treat growing up — you can’t beat the classics! These look incredible Ashley and I need to make some more very soon!

  3. Teri Shaw says

    I have had these before. My aunt used to make them for Christmas. I could never eat them because I am allergic to chocolate(I know…it is terrible)Then one year she made them with only white chocolate. Oh wow! yum! I have used white chocolate with peanut butter chips and also white chocolate with butterscotch. Both came out great. This year we tried them with nilla wafer crumbs, white chocolate. and strawberry{look for flavored melts in specialty stops)

  4. Rachel @ Bakerita says

    We make soooo many batches of these at my house for Christmas – they’re so good! We use butterscotch chips instead of white, and always walnuts. Can’t deviate or everyone gets mad 🙂 these are the best!

  5. Susan L says

    Just a stray thought, these are also called Hello Dolly Bars. But whatever you call them, this is a great recipe, you can adapt in so many ways and I LOVE recipes like that.

    My Mom used to make these (I make them now) and the recipe we both used was from a Centennial Cookbook (1967 for your non-Canadian fans) that came from Elkhorn Women’s Auxiliary.

  6. ColleenB.~Texas says

    OMG. I haven’t made these in years and my husband loves these things. Oh, thanks for the memories. Old time favorite.
    My recipe I got from a small recipe booklet that was put out by Borden Eagle Brand Sweetened Condensed Milk back in 1981 which was sold for $1.00 called Delicious Desserts Made Easy. Back then you could either send in $1.00 or send in 2 labels from Eagle Brand Milk along with name, address, etc. I still have that little recipe booklet in my cookbook library.
    Instead of the graham cracker crumbs go for the chocolate crumbs or get a package of Oreo’s , grind up fine; filling and all and use as crumbs layer.
    I think my hubby would be very happy if I made these for him come this weekend.
    Enjoy your day.

    • Debbie says

      Do you have any ideas what I could substitute for the nuts (diverticulitis…dang it no nuts) Had this recipe from a long time ago, went to make at Christmas until I remembered the nuts…
      Help PLEASE ❤️

      • The Recipe Rebel says

        Hi Debbie! Maybe try crushed up pretzels. Haven’t tried it myself but it might work. If you decide to experiment, I’d love to know how it goes!

  7. Gayle @ Pumpkin 'N Spice says

    I feel like I’m the only person that has never had a magic bar, though I have seen them all over the place! I’m not a fan of coconut, which is why I stay away, but my husband would go nuts over these! I should try to make them without the coconut, sounds delicious with those layers!

Leave A Reply

Have you tried this recipe? Leave a rating