With just six ingredients and one pan, these Magic Cookie Bars are perfect for sharing. With a buttery crust, chewy layers, and chocolate in every bite,
These chocolate coconut bars were always one of my favorites to sneak from my mom’s holiday treat tray along with her Nanaimo bars and Snickerdoodle cookies.

Recipe Highlights: Magic Cookie Bars
- Flavor: These bars have a sweet and chewy center, light yet crisp top, and a buttery crust with lots of coconut and chocolate flavor.
- Difficulty: Bar cookies are super easy to make because of a simple layering technique, no mixer needed, and baked in just one pan.
- Freezing: Perfect to wrap with plastic, freeze, and add to a lunchbox or briefcase for a sweet surprise that will thaw by lunchtime.
- Serving: Easy to pack for potlucks or add to lunchboxes, they are also a favorite at a cookie exchange or on holiday trays along with peanut butter brownies or pumpkin bars.
Total Time: 1 Hr 40 Mins Servings: 24 to 36 Cooking Method: Oven
Ingredient Notes

- Crust: Graham cracker crumbs and melted butter make the best base for this recipe.
- Sweetened Condensed Milk: Is sweet and has a thick consistency which helps hold the layers together.
- Toppings: Chocolate chips, coconut, and pecans are the basics to get a perfectly chewy bar.
Variations
- Short on time? Use a pre-made graham cracker pie crust and press it into the bottom of the baking dish.
- Crushed Nilla or chocolate wafer cookies are a great substitute for graham crumbs.
- Any combination of candy chips like butterscotch or peanut butter will work.
- Create cranberry magic cookie bars by swapping in white chocolate chips and adding dried cramberries.
- Experiment with chopped peanuts, walnuts, almonds, or dried fruit like cherries, or mango to add a little color and chewy flavor.
How to Make Magic Cookie Bars




- Press graham cracker mixture into a pan.
- Pour sweetened condensed milk evenly over the top of the crust.
- Sprinkle with chocolate chips, coconut, and pecans.
- Bake (full recipe below).


Storing and Freezing Magic Bars
- Cool bars completely and store in an airtight container, separating stacked layers with parchment.
- You can store at room temperature for up to one week, but be sure to keep in a cool spot away from sunlight.
- Refrigerate for up to one week, or freeze for up to 3 months.
- Magic cookie bars are delicious served at room temperature or cold thawed slightly after being frozen.
Cut, Share, and Enjoy
Did you make these Magic Cookie Bars? Leave a comment and rating below.

Magic Cookie Bars
Equipment
Ingredients
- ½ cup butter
- 1½ cups graham cracker crumbs
- 1 (14 ounce) can sweetened condensed milk
- 1 cup chocolate chips (semi sweet preferred)
- 1⅓ cups coconut shredded or flaked
- 1 cup chopped pecans or other chopped nuts
Instructions
- Preheat oven to 350°F*. Line 9×13 baking pan with parchment paper (or foil) if desired**. (If using foil, spray with oil or non-stick spray.)
- Add butter to the baking pan and pop into the oven to melt butter. If using parchment paper, add butter to a medium bowl and melt in the microwave on high for 90 seconds.
- Add crumbs to the pan (or bowl) and mix with butter. Press evenly on the bottom of the baking pan using bottom of a measuring cup or other flat surface.
- Evenly pour the sweetened condensed milk over the crust. Sprinkle with chocolate chips, coconut, then nuts. Press down firmly using a measuring cup or spoon.
- Bake for 25 to 30 minutes, or until lightly browned. Remove pan from the oven and run a knife around the edge of the pan (if not lined). Cool completely before cutting.
Notes
- Store bars for 1 week in a sealed container in the refrigerator or at room temperature.
- For 7 layer Magic Cookie Bars, add 1 cup butterscotch chips.
Nutrition Information
Nutrition information does not include optional ingredients or garnish and is an estimate. It may change based on actual ingredients and cooking methods used.
©Our Zesty Life. Content and photographs are copyright protected. Sharing of this recipe is both encouraged and appreciated. Copying and/or pasting full recipes to any social media is strictly prohibited.
Like our recipes?
Follow us on Pinterest!
REPIN this Magic Cookie Bars recipe
















Delicious and so easy!!❤️❤️
Thanks Lana, so happy you enjoyed this recipe!
How much coconut??
The recipe calls for 1 1/3 cup coconut. Enjoy!
I made magic bars with a pre made toll house chocolate chip cookie dough, for the crust. WoW! they were yummy and not crumb left. Everyone loved them.
What a great idea! Thank you for sharing!
I recall making these by just melted butter on the bottom of the pan/ cookie sheet then Graham crackers on top then layering all the toppings, with coconut last and drizzling the sweetened condensed milk evenly on top then baking… but can’t find the recipe. Turned out fine. Just going to go for it again.
You can click Jump to Recipe at the top or scroll down to see the recipe. Perhaps you are using reader view. The recipe will not show correctly using reader view.
I still have a very old label from the sweetened condensed milk can from long ago! I made these once again last week for a special occasion, and was most certainly not disappointed!
They’re an old favorite of mine too Kathy!