Classic Magic Bars Recipe
Introduction
Classic Magic Bars are a wonderfully rich and sweet treat that combines layers of graham cracker crust, chocolate chips, coconut, and nuts, all held together by creamy sweetened condensed milk. They’re easy to make and perfect for sharing at gatherings or enjoying as a delightful snack.

Ingredients
- 1 and 1/2 cups graham cracker crumbs
- 1/2 cup unsalted butter, melted
- 1/4 cup granulated sugar (optional, for crust)
- 1 (14 ounce) can sweetened condensed milk
- 1 cup semi-sweet chocolate chips
- 1 cup shredded sweetened coconut
- 1 cup chopped walnuts (or pecans)
Instructions
- Step 1: Preheat your oven to 350°F (175°C). Line a 9×13 inch baking pan with parchment paper, leaving an overhang on the sides for easy lifting later.
- Step 2: In a medium bowl, mix graham cracker crumbs, melted butter, and optional sugar until combined. Press this mixture firmly and evenly into the bottom of the prepared pan to form the crust.
- Step 3: Sprinkle the chocolate chips evenly over the crust layer.
- Step 4: Add a layer of shredded coconut evenly over the chocolate chips.
- Step 5: Sprinkle the chopped walnuts or pecans on top of the coconut.
- Step 6: Pour the entire can of sweetened condensed milk evenly over all the layers, making sure it coats everything.
- Step 7: Bake for 25-30 minutes, until the edges are golden and the coconut is lightly toasted. The center will look set but slightly jiggly.
- Step 8: Allow the bars to cool completely in the pan on a wire rack for at least 2 hours, or refrigerate for 1-2 hours until firm. This step is key for clean slices.
- Step 9: Using the parchment paper, lift the bars from the pan and place on a cutting board. Cut into squares with a sharp knife, wiping the knife clean between cuts for the neatest results.
Tips & Variations
- For a nut-free version, simply omit the walnuts and add an extra 1/2 cup of coconut or chocolate chips.
- Use pecans instead of walnuts for a slightly different flavor and texture.
- Make sure to press the crust firmly to prevent it from crumbling when serving.
- Refrigerating the bars after baking helps them hold together better and makes slicing easier.
Storage
Store magic bars in an airtight container in the refrigerator for up to one week. For longer storage, freeze the bars wrapped tightly in plastic wrap and foil for up to 2 months. Thaw in the fridge before serving. Reheat gently at room temperature if desired.
How to Serve

Serve this delicious recipe with your favorite sides.
FAQs
Can I use different types of chocolate chips?
Yes, you can substitute semi-sweet chocolate chips with milk chocolate, dark chocolate, or even white chocolate chips based on your preference.
Do I have to refrigerate the bars before cutting?
Refrigerating is highly recommended as it allows the sweetened condensed milk to fully set, helping the bars hold together and making for cleaner slices.
Print
Classic Magic Bars Recipe
- Total Time: 3 hours (including cooling time)
- Yield: 12–16 bars 1x
Description
Classic Magic Bars are a delicious layered dessert featuring a rich graham cracker crust, gooey sweetened condensed milk, and a delightful combination of chocolate chips, shredded coconut, and chopped walnuts. Baked to a perfect golden brown and cooled to set, these bars offer a scrumptious treat perfect for any occasion.
Ingredients
Crust
- 1 and 1/2 cups graham cracker crumbs
- 1/2 cup unsalted butter, melted
- 1/4 cup granulated sugar (optional, for crust)
Topping and Binder
- 1 (14 ounce) can sweetened condensed milk
- 1 cup semi-sweet chocolate chips
- 1 cup shredded sweetened coconut
- 1 cup chopped walnuts (or pecans)
Instructions
- Preheat and Prepare Pan: Preheat your oven to 350°F (175°C). Line a 9×13 inch baking pan with parchment paper, ensuring an overhang on the sides for easy lifting after baking.
- Make the Crust: In a medium bowl, combine the graham cracker crumbs, melted butter, and optional granulated sugar. Mix thoroughly and press the mixture evenly and firmly into the bottom of the prepared pan to form a solid crust base.
- Add Layers: Evenly sprinkle the chocolate chips over the crust, followed by the shredded sweetened coconut, and then the chopped walnuts on top.
- Pour Sweetened Condensed Milk: Pour the entire can of sweetened condensed milk evenly over all the layers, making sure it coats everything. This milk is the key binder that holds all layers together.
- Bake: Bake for 25-30 minutes, or until the edges are golden brown, and the coconut topping is lightly toasted. The center should be set but still slightly jiggly.
- Cool Completely: Once baked, remove from the oven and allow the bars to cool completely in the pan on a wire rack for at least 2 hours. For best results, refrigerate for 1-2 hours until thoroughly chilled and firm to ensure clean slices.
- Cut and Serve: Use the parchment paper overhang to lift the bars from the pan onto a cutting board. Cut into squares with a sharp knife, wiping the blade clean between cuts for the neatest slices.
Notes
- Extended cooling in the pan or refrigeration is essential for the sweetened condensed milk to fully set, ensuring clean and intact slices.
- You can substitute walnuts with pecans if desired.
- The granulated sugar in the crust is optional depending on your preferred sweetness level.
- For equally sized bars, mark the surface with the knife gently before the bars fully cool.
- Prep Time: 15 minutes
- Cook Time: 25-30 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
Keywords: magic bars, magic cookie bars, graham cracker crust, layered dessert, sweetened condensed milk, chocolate chips, coconut, walnuts, easy dessert, no-fuss treats

