The Gunny Sack

  • Home
  • Dinner
  • Recipe Index
    • All Recipes
    • Air Fryer
    • Appetizer
      • Dip
    • Beverages
      • Coffee
      • Smoothie
    • Breakfast
    • Crock Pot
    • Dessert
      • Bars
      • Cake
      • Candy
      • Cheesecake
      • Chocolate
      • Cookies
      • Fruit Desserts
        • Apple
        • Banana
        • Pumpkin
        • Strawberry
      • Fudge
      • Ice Cream
      • No Bake
      • Peanut Butter
      • peppermint
      • Pie
      • Truffles
    • Dinner
      • Beef
      • Bread
      • Casserole
      • Chicken
      • Grilled
      • Pasta
      • Pizza
      • Pork
      • Salad
      • Sauces and Dressing
      • Side
        • Potatoes
        • Vegetables
      • Soup
    • Snack
    • Holiday
      • Easter
      • Christmas
      • Halloween
      • Thanksgiving
      • Valentine’s Day
  • About
    • About The Team
    • Contact
    • Subscribe
menu icon
go to homepage
  • Recipes
  • Appetizers
  • Desserts
  • Dinners
  • Subscribe
    • Facebook
    • Instagram
    • Pinterest
  • subscribe
    search icon
    Homepage link
    • Recipes
    • Appetizers
    • Desserts
    • Dinners
    • Subscribe
    • Facebook
    • Instagram
    • Pinterest
  • ×
    Home » Dessert » Bars

    Magic Cookie Bars

    Modified: Mar 22, 2024 · Published: Feb 8, 2024 by Tonia Larson

    This post may contain affiliate links.

    ↓ JUMP TO RECIPE ↓ JUMP TO VIDEO

    Make this easy Magic Cookie Bars recipe with a cake mix, M&Ms, and sweetened condensed milk. The flavor combinations and colors are endless!

    Stack of magic cookie bars.

    You can make magic bars any time of the year by using different colors or flavors of M&Ms and sprinkles! Use pink for Valentine’s Day or red and green for Christmas. Or swap out the ingredients to make other flavors, including shredded coconut or nuts.

    How To Make Magic Cookie Bars

    Cake mix, butter, egg, and red food coloring in a bowl.

    Use a hand mixer or stand mixer to combine the cake mix, egg, softened butter, and red food coloring.

    Pink cake mix in pan.

    Press the batter into a 9×13-inch pan lined with greased parchment paper or foil.

    Valentine M&Ms and white chocolate chips on top.

    Top the cake mix layer with white chocolate chips and Valentine’s Day M&Ms.

    Eagle Brand sweetened condensed milk on magic cooke bars.

    Drizzle Eagle Brand sweetened condensed milk over the top and spread it out if necessary. Then, top it with sprinkles.

    Baked magic cookie bars in pan.

    Bake the magic cookie bars at 325˚F for 22-25 minutes. Allow the bars to cool completely, and then cut them into squares.

    Magic cookie bars cut into pieces.

    Variations

    Samoas Cookie Bars

    Girl Scouts Samoas Cookies are wildly popular, and you can make a copycat version using this cake mix cookie bar recipe!

    • Skip adding the red food coloring to the cake mix.
    • Spread 2 cups of semi-sweet chocolate chips over the crust in an even layer.
    • Drizzle the sweetened condensed milk over the top.
    • Sprinkle with 1 1/2 cups of shredded coconut.
    • Bake at 350˚F for 22-25 minutes.

    7 Layer Cookie Bars

    Seven layer cookie bars are similar to the samoas bars but with additional layers.

    • Don’t add the red food coloring to the cake mix.
    • Spread 1 cup of semi-sweet chocolate chips over the crust layer, followed by 1 cup of butterscotch chips and 1 cup of chopped walnuts.
    • Drizzle sweetened condensed milk over the top.
    • Sprinkle with 1 1/2 cups of shredded coconut.
    • Bake at 350˚F for 22-25 minutes.
    Valentine magic bars with sprinkles.

    Storage

    • Fridge: Store the cooled bars in an airtight container, with parchment paper between the layers, in the fridge for up to a week.
    • Freezer: Place the bars in a freezer-safe, airtight container with parchment paper between layers. Freeze for up to two months.
    Square Valentine magic cookie bars.

    Similar Recipes

    • Peanut Butter Cup Cookie Bars are a family favorite!
    • Chocolate Mint M&M Bars are perfect for mint lovers.
    • These Apple Bars are made with a spice cake mix and diced apples!
    Stack of magic cookie bars.

    Magic Cookie Bars

    Make this easy Magic Cookie Bars recipe with a cake mix, M&Ms, and sweetened condensed milk. The flavor combinations and colors are endless!
    No ratings yet
    ↑ Click stars to rate!
    Print Review SaveSaved! Add to Shopping ListGo to Shopping List
    Prep Time: 10 minutes minutes
    Cook Time: 22 minutes minutes
    Total Time: 32 minutes minutes
    Servings: 24
    Prevent your screen from going dark

    Equipment

    • KitchenAid Hand Mixer

    Ingredients

    • 15.25 oz white cake mix
    • ½ cup butter softened
    • 1 large egg
    • ½ teaspoon red gel food coloring optional
    • 1 cup white chocolate chips
    • 10 oz M&Ms any color
    • 14 oz sweetened condensed milk
    • 2 tablespoons sprinkles

    Instructions

    • Preheat the oven to 350˚F.
    • Mix together the cake mix, butter, egg, and red food coloring until combined. Press into a parchment (or foil) lined and greased 9×13-inch pan.
    • Top with white chocolate chips and M&Ms. Drizzle with sweetened condensed milk and top with sprinkles.
    • Bake at 350˚F for 22-25 minutes. Cool completely before cutting into bars.

    Video

    Buy our Slow Cooker Favorites cookbook banner.
    ORDER COOKBOOK HERE

    Notes

    Storage
    Store in an airtight container with parchment paper between layers in the fridge for up to a week or in the freezer for up to two months.
    Samoas Cookie Bars
    Omit the red food coloring. Spread 2 cups of semi-sweet chocolate chips over the crust, drizzle with sweetened condensed milk, and top with 1 1/2 cups of shredded coconut. Bake as directed.
    7 Layer Bars
    Skip the red food coloring. Spread 1 cup of semi-sweet chocolate chips, 1 cup of butterscotch chips, and 1 cup of chopped walnuts over the crust. Drizzle with sweetened condensed milk and top with 1 1/2 cups of shredded coconut. Bake as directed.

    Nutrition

    Serving: 1bar | Calories: 260kcal | Carbohydrates: 37g | Protein: 3g | Fat: 11g | Saturated Fat: 7g | Polyunsaturated Fat: 0.4g | Monounsaturated Fat: 2g | Trans Fat: 0.3g | Cholesterol: 27mg | Sodium: 194mg | Potassium: 98mg | Fiber: 1g | Sugar: 29g | Vitamin A: 202IU | Vitamin C: 1mg | Calcium: 117mg | Iron: 1mg
    Course: Dessert
    Cuisine: American
    Author: Tonia Larson

    More Bars

    • A slice of an apple bar with icing on top.
      Apple Bars
    • Smore rice krispie treats.
      S’more Rice Krispie Treats
    • rainbow rice krispies treats.
      Rainbow Rice Krispies Treats
    • close up showing the layers of christmas crack saltine cracker toffee with red and green decorations.
      Christmas Crack Saltine Cracker Toffee

    About Tonia Larson

    Hi! I’m Tonia, the owner and recipe creator at The Gunny Sack, where I’ve shared easy recipes for busy people for 14+ years! My family-friendly meals, easy side dishes, and delicious desserts include mouthwatering photos, dynamic videos, and step-by-step instructions to help you cook at home.

    « Printable Valentine Cards For Kids
    Easter Cake Recipe »

    Comments

      Leave A Review Cancel reply

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

      Recipe Rating




    1. Stacey says

      June 7, 2015 at 9:36 pm

      Hi! I have made these twice now, even tho the flavor is awesome, it seems my cake mix crust is rising above the mm’s and chips and it doesn’t look as nice as yours pictured.

      is there something i am doing wrong?

      they only variance i did was used yellow cake mix instead of white.

      Reply
    2. Erin @ Making Memories says

      January 20, 2014 at 12:47 pm

      I just pulled these out of the oven and I don’t know if I can wait until they cool. They look amazing! Thank you so much!!!

      Reply
      • Tonia says

        January 20, 2014 at 12:50 pm

        Fantastic! I’m so happy to hear that!

        Reply
    3. Lindsay says

      October 28, 2013 at 10:05 pm

      These look great! I’m actually going to make them this week but use the “Candy Corn” Halloween M&Ms. They are white chocolate but just colored orange, yellow, and white. Thanks for the inspiration!

      Reply
      • Tonia says

        October 28, 2013 at 10:07 pm

        Ohhh…I love Candy Corn M&M’s! Enjoy!

        Reply
    4. Rvpgirl says

      March 30, 2013 at 4:48 pm

      I made these for Valentine’s Day and loved them, so today I used Easter colored M&M’s and made more! I also tried lining the pan with parchment paper instead of foil. I still sprayed it just to be safe, but they didn’t stick at all and the paper pulled right off in one piece. Thanks for the recipe!

      Reply
      • Tonia says

        March 30, 2013 at 5:12 pm

        Great idea! I will have to try that next time!

        Reply
    5. mandasara says

      February 16, 2013 at 1:14 am

      Just made these for Valentine’s day and everyone loved them. The recipe was so easy and once they cooled down and hardened a bit they were easy to cut into bars. They are delicious!

      Reply
    6. DD says

      February 11, 2013 at 9:31 pm

      Do you bake the cake first?

      Reply
      • Tonia L says

        February 11, 2013 at 10:11 pm

        Hi DD! Nope you just combine the cake mix, egg and butter and pat it into the bottom of the pan. Then, add the rest of the ingredients to the top and bake! Isn’t that great? That is why others call them magic bars!

        Reply
    7. Mari Graulau says

      February 3, 2013 at 2:31 pm

      I made these this morning for a gathering later this afternoon. Fingers crossed that they turned out good. Hoping I didn’t leave them in the oven too long. What should they look like when they come out? Do you allow them to cool completely in the pan before cutting? Very silly questions but I am a bit of a perfectionist when I bake, just want to make sure I am doing it right. Thanks for the yummy looking recipe!

      Reply
      • Tonia L says

        February 3, 2013 at 3:08 pm

        Thank Mari! Your email address isn’t enabled for replies. I added a response to your great questions to the post in case others are wondering the same thing. Thanks for asking!

        Reply
    8. kristi@ishouldbemoppingthefloor says

      January 31, 2013 at 12:19 am

      These look awesome! I so wish our school allowed homemade goodies for parties…these would be perfect!! Guess I’ll have to make them for ourselves! 🙂

      Reply
      • Tonia L says

        February 1, 2013 at 2:23 pm

        I know! I understand why they don’t allow it but it really is too bad!

        Reply
    9. Ginger says

      January 30, 2013 at 4:10 am

      Those look so yummy, and I love anything with chocolate in it. Yum! 🙂

      Reply
      • Tonia L says

        February 1, 2013 at 2:22 pm

        I am with you! Thanks Ginger!

        Reply
    10. Jessica Kielman says

      January 30, 2013 at 2:07 am

      I am so making these with Kate this week!

      Reply
      • Tonia L says

        February 1, 2013 at 2:22 pm

        Kate will be delighted!!

        Reply
    11. Ali @ JamHands.net says

      January 28, 2013 at 9:18 pm

      Awww that is adorable 🙂 Perfect for Valentine’s Day.If you don’t mind I wanted to invite you to come link up at Recipe Sharing Monday and share your favorite recipes. Have a super week. 🙂

      Reply
    12. Dorothy @ Crazy for Crust says

      January 29, 2013 at 1:11 am

      Tonia these are awesome! I love love love the cake mix crust and those M&Ms are my favorites. 🙂

      Reply
      • Tonia L says

        January 29, 2013 at 5:56 pm

        Thanks Dorothy…I guess you are a bad influence on me ;)! My friend let me know she made these and served them to her guests and they loved them!

        Reply
    13. M.J. Powell says

      January 24, 2013 at 10:04 pm

      Hi,These look so good. You have a nice blog. We are hosting our first party. We would like to invite you to link up and party with us.Thanks!!The Busy Bee’s,Myrna and Joye.http://thebusybhive.blogspot.com/

      Reply
    14. Christina at I Gotta Create! says

      January 23, 2013 at 11:11 pm

      Tonia these look heavenly! I just pinned them 🙂

      Reply
    15. Vanessa says

      January 23, 2013 at 6:04 pm

      Yum, I love anything with white chocolate in it. I’ve got a major sweet tooth.

      Reply
    16. Shannah @ Just Us Four says

      January 23, 2013 at 5:49 pm

      Yum! These look absolutely delicious!

      Reply
    17. OneSpecialDeeDee says

      January 23, 2013 at 2:36 pm

      could you make this without the M & M’s? or do the M & M’s get softer? this is my concern.so my question is do the m & m’s soften so that its not to crunchy?

      Reply
      • Tonia L says

        January 23, 2013 at 2:54 pm

        Hi DeeDee! Yes, you can make it without M&Ms but I would put something else on instead like another kind of baking chips, cookie pieces, chopped up candy bars, pretzel bits or nuts. I’m not sure if the M&Ms soften but the bars were definitely not too crunchy. Even my 18 month old nephew ate one of the bars without any problems. Another option would be to add less M&Ms! I hope you enjoy them as much as we did! 🙂

        Reply
      • OneSpecialDeeDee says

        January 23, 2013 at 9:55 pm

        THANKS.. I wish the baking chip people would add more Holiday colored baking morsels like M & M’s do.Maybe I could use vanilla and chocolate chip chips…..or I just might make it your way and see how they come out.

        Reply
        • Stacey says

          July 4, 2013 at 2:46 pm

          ME TOO!!!!!!

          Reply
    18. Anne @ Domesblissity says

      January 23, 2013 at 1:50 pm

      Oh my Tonia! Why did I have to go and look at this. Amazing. It’s on the list. What’s this? People are stealing your content? How damn rude! Hope that comes to an end.Anne xx

      Reply
      • Tonia L says

        January 23, 2013 at 2:47 pm

        Thanks Anne! I should’ve been more specific in my description. Although I’ve found my content on another site in the past it isn’t happening right now as far as I know. The problem is that when the full content is in the RSS Feed, scraper can redirect the entire feed to their own website. This happened to me and it took hours of work to figure it out. In the end, the person owning the other website said it was a mistake and took everything down. Anyway, I just found a tutorial about how to keep this from happening again so I put it to good use!

        Reply
    19. thepaintedapron.com says

      January 23, 2013 at 1:13 pm

      YUMMMMMMM…making something with Valentine M&Ms is on my to do list for Feb, this looks perfect! I love all the cookie bars with sweetened condensed milk! Thanks!Jenna

      Reply
      • Tonia L says

        January 23, 2013 at 3:20 pm

        Thanks Jenna!

        Reply
    Tonia Larson from The Gunny Sack.

    Hi, I'm Tonia! Welcome to The Gunny Sack, where I’ve shared easy recipes for busy people for 14+ years! Meet Tonia Larson →

    Popular

    • two ingredient dough pretzel bites in a bowl
      Two Ingredient Dough Pretzel Bites
    • Boiled Corn On The Cob Recipe
      How To Boil Corn On The Cob
    • Pineapple Salsa Recipe | thegunnysack.com
      Pineapple Salsa Recipe
    • Deep fried cheese curds on parchment.
      Fried Cheese Curds

    Footer

    ↑ back to top

    About

    • Privacy Policy
    • Disclosure
    • Nutritional Disclaimer
    • Comment Policy

    Newsletter

    • Sign Up for emails and updates

    Contact

    • Contact
    • About Me

    As an Amazon Associate I earn from qualifying purchases.

    Copyright © 2025 The Gunny Sack

    Rate This Recipe

    Your vote:




    A rating is required
    A name is required
    An email is required