Jump to recipe →

These 7-layer Magic Cookie Bars are made with seven delicious layers – crushed graham cracker crumbs, butter, sweetened condensed milk, butterscotch chips, chocolate chips, coconut, and pecans. This 7-layer cookie recipe is a classic that everyone loves any time of year!

7 layer magic cookies squared on a plate

You’re going to see why these are my favorite treats to make and share with the kids!

You will love this classic cookie recipe that is sure to take you back to your childhood. It also perfect during the Christmas season since it’s perfect for shipping and gift-giving! I like to pair them with a batch of Copycat Starbucks Cranberry Bliss Bars.

If you’re ready for a cookie recipe that is certain to hit all the sweet notes in your mouth, give this simple 7 layer Magic Cookie Bar recipe a try.

7 layer cookie step by step pictures

Ingredients Needed:

Here’s all you need to make these simple cookie bars!

  • Layer 1: graham cracker crumbs – you can buy already crumbled or add them to the food processor to pulse them yourself.
  • Layer 2: melted butter
  • Layer 3: Sweetened Condensed Milk
  • Layer 4: butterscotch chips
  • Layer 5: semi-sweet chocolate chips
  • Layer 6: flaked coconut – sweetened or unsweetened coconut could be used.
  • Layer 7: chopped nuts – pecans, walnuts, cashews, etc.
  1. Preheat the oven: Start by heating the oven to 350 degrees. Spray a 13X9-inch baking pan with nonstick cooking spray.
  2. Make the crust: Combine the graham cracker crumbs and butter and mix well. Press the crumb mixture firmly into the bottom of the prepared pan. Pour the sweetened milk evenly over the crumb mixture. Continue to layer evenly with the remaining ingredients (in the order given) and press down firmly with a fork.
  3. Bake: Bake for 20-25 minutes or until lightly browned. Loosen from the sides of the pan while still warm and cool on the wire rack. Cut into bars.

Pro Tip

For perfectly cut cookie bars, line the entire pan with foil and extend the foil over the edge of the pan. Coat lightly with non-stick cooking spray. After bars have baked and cooled, lift up by the edges of the foil to remove from the pan. Cut into individual bars at that point in time.


7 layer magic cookie close up topped with nutsTips + Variations

The great thing about this recipe is that you can alter it a bit to have it be just as you want.

  • If you don’t care for coconut, you can omit that ingredient from this recipe.
  • You can also remove the nuts or change out the nut to one that you want as well.
  • These would go perfectly with a nice dollop of whipped cream or even a scoop of ice cream also.

Seven Layer Bar FAQS

Can you make 7 layer bars without coconut?

If you don’t want to use shredded coconut, don’t. Why miss out on the other flavors of this recipe if you can easily omit that one ingredient? Just rename it six layer bars if you need to take out a layer.

You can easily add crushed peanuts, white chocolate chips, or even peanut butter chips in the place of the coconut. You can also drizzle some caramel on top, too.

Can this 7 layer cookie be made without nuts?

Sure! Just take out the nuts if you don’t want them or switch out the type of nut that you want to use. Walnuts are great with this recipe due to how soft the nut is.

Can you freeze seven layer magic bars?

Yes, you can freeze these treats. Just wrap them in saran wrap and then store them in a freezer-safe bag!

More Delicious Desserts

7 Layer Cookies

These 7-layer Magic Cookie Bars are made with seven delicious layers – a classic cookie recipe that everyone loves any time of year!
4.46 from 33 votes
Course: Dessert
Cuisine: American
Author: Kasey Schwartz
Servings: 12
Prep Time: 10 minutes
Cook Time: 20 minutes


  • 1 1/2 cup graham cracker crumbs
  • 1/2 cup butter melted
  • 14 oz Sweetened Condensed Milk
  • 1 cup butterscotch chips
  • 1 cup semi-sweet chocolate chips
  • 1 1/3 cup flaked coconut
  • 1 cup chopped nuts I like pecans


  • Preheat oven 350°F. Spray 13 x 9-inch baking pan with no-stick cooking spray.
  • Mix graham cracker crumbs and butter and press crumb mixture firmly into the bottom of prepared pan. Pour sweetened condensed milk evenly over crumb mixture. Layer evenly with remaining ingredients in order given. Press down firmly with a fork
  • Bake for 20-25 minutes or until lightly browned. Loosen from sides of pan while still warm; cool on wire rack.
  • For perfectly cut cookie bars, line entire pan with foil, extending foil over edge of pan. Coat lightly with no-stick cooking spray. After bars have baked and cooled, remove from the pan and cut with a sharp knife.



Calories: 428kcal | Carbohydrates: 52g | Protein: 7g | Fat: 23g | Saturated Fat: 12g | Polyunsaturated Fat: 5g | Monounsaturated Fat: 4g | Trans Fat: 1g | Cholesterol: 13mg | Sodium: 172mg | Potassium: 361mg | Fiber: 4g | Sugar: 38g | Vitamin A: 112IU | Vitamin C: 1mg | Calcium: 125mg | Iron: 2mg
Keyword: chocolate, christmas cookies, coconut, cookies
Did you make this recipe?Mention @kasey_allthingsmamma or tag #allthingsmamma!

Categories: , ,

About Kasey Schwartz

Hi, I’m Kasey, Founder of All Things Mamma – where I am dishing up family favorite recipes that are easy to make with simple, everyday ingredients. Plus – tips and tricks for living your best life!


  1. Hello, if I double the recipe, shouldn’t I use a larger sheet pan?

  2. Since I am celiac, I had to use gluten free graham crackers. Was only able to spread out 2/3 pan. Cooling now, but was very oily from the butter…let you know once they cool

  3. 5 stars
    This recipe is great! We recommend putting the condensed milk on the top, so it seeps through to all the layers. It tastes delicious!

    1. Laurie Buss says:

      5 stars
      These were a huge hit at the office. I love how quick and easy they are to make. Thank you so much for sharing!

    2. Yes!! Made these for years and sweet condensed milk is always last!

  4. 5 stars
    I made these to take to a funeral luncheon today. I received so many compliments on how good these were. The plate was clean when I went to leave! This will definitely be high in my rotation. Great recipe.

  5. Can I use caramels cut up instead of butterscotch chips?

  6. Tara Olsen says:

    5 stars
    This is the way my mom made seven layer bars. Everyone else wants to pour the condensed milk on at the end, but I prefer it this way.

    1. Kasey Schwartz says:

      I agree! Good to know!

    2. Wow I love these alway was going too make the but at Christmas I find more traditional bakes. This year, that all changed. Add this to the list!!!
      I am pouring some leftover homage Carmel on top after the vm are before the cooling in the fridge. Hoping they will be yummy 😋

  7. 5 stars
    Tailgating favorite!! So easy and so good!!

    1. Loretta Henderson henderson says:

      5 stars
      These are amazing. So soft and delicious. A can’t go wrong recipe.

  8. Shari Ewing says:

    The bars are good but my original recipe calls for pouring on the sweetened condensed milk last, over everything. I think pouring on the milk last makes a better cookie!!💕💕

    1. Ooh they loo so terrific I’m very please w the ease of this recipe!

  9. Jennifer Cowen says:

    How many does this recipe serve?

  10. Stephanie says:

    Yummy! My only complaint is that you didn’t put the foil trick at the beginning of the recipe. By the time I read that, my bars were already in the pan. Boo.

    1. You always read a recipe all the through before making it

  11. 5 stars
    These are delicious! I have been making a version of this recipe for 35 years. You can’t beat it 😀.

  12. I had not made these for years. Just like I used to make, these are way too good. We polished off a whole pan in 2 days. Will be making these more often if I can find more shredded coconut at the store

  13. 5 stars
    Quick and easy to make. I layer the ingredients first and then poured the condensed milk all over the top. It melts through and covers the entire bar. Everyone gobbled them up.
    Thank you!

  14. Johanna Sittig says:

    5 stars
    Can magic bars be made and refrigerate and bake day before Christmas?

Leave a Reply

Your email address will not be published.

Recipe Rating

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