Made with just seven ingredients, these Magic Bars—also known as Hello Dolly or 7-Layer Bars—are one of the easiest and most irresistible desserts. Sweetened condensed milk transforms while baking into a caramel-like binder that holds together a crisp graham cracker crust, shredded coconut, chocolate chips, and pecans for an ooey-gooey, crunchy treat.

If the idea of using sweetened condensed milk in a bar sounds unusual, don’t worry—the liquid milk caramelizes during baking and becomes the glue that makes these bars addictive. No special equipment is required: a bowl, a spatula, and a baking pan are all you need. They’re perfect for last-minute desserts or baking with kids.

Why you’ll love this Magic Bar with coconut
- Simple ingredients: only seven items are needed, many of which are pantry staples.
- Effortless to make: no complicated techniques or special gadgets—just layer and bake.
- Delicious texture and flavor: chewy, crunchy, nutty, chocolatey, and caramel-like all in one bite.
Ingredients
- 1 stick unsalted butter, melted
- 1/4 cup brown sugar
- 12 graham crackers, finely crushed
- 1 can sweetened condensed milk
- 1 cup chocolate chips
- 1 cup pecans, chopped
- 1 cup sweetened shredded coconut

How to make the best Magic Bars
Preheat and prepare: Preheat the oven to 350°F (175°C). Spray a 9×9-inch pan with nonstick spray and line it with two strips of parchment paper arranged in a cross to create an easy lift-out.
Make the crust: In a small bowl, mix the melted butter, brown sugar, and crushed graham crackers. Press the mixture firmly and evenly into the bottom of the prepared pan to form the crust.

Add the condensed milk: Pour the sweetened condensed milk evenly over the graham crust.
Top with mix-ins: Combine the chocolate chips, chopped pecans, and shredded coconut, then sprinkle the mixture evenly over the condensed milk layer.

Bake and cool: Bake on the center rack for 20–25 minutes, or until the coconut is lightly browned and the top looks set. Remove from the oven and allow the bars to cool completely before lifting them from the pan. For cleaner slices, chill briefly in the refrigerator before cutting.
Recipe variations
- Swap the chocolate chips for white chocolate, caramel, butterscotch, or dark chocolate chips.
- Replace pecans with walnuts or any preferred chopped nut.
- Add dried fruit such as cranberries or cherries for a tart contrast.
- Try a different crust by substituting crushed cookies (Biscoff, Oreo without filling, or chocolate wafers) for the graham crackers.
Storage
Room temperature: Store in an airtight container for 3–5 days.
Refrigerator: Keep in an airtight container or tightly wrapped for up to one week.
Freezer: Freeze tightly wrapped for up to 3 months. Thaw overnight in the refrigerator before serving.
FAQs
Can I use pre-crushed graham crackers?
Yes. Pre-crushed graham cracker crumbs save time and work well for the crust.
Do I have to line my pan with parchment paper?
Lining the pan with a parchment cross creates an overhang that makes it easy to lift the bars from the pan and slice them neatly.
How do I get clean slices?
Allow the bars to cool completely, then chill briefly in the refrigerator before cutting. Use a sharp knife and wipe it between slices for tidy pieces.

This Magic Bar with coconut is a straightforward, crowd-pleasing dessert that’s easy to customize. If you try it, enjoy it, and consider sharing your results—these bars are sure to disappear fast!
Magic Bars with Coconut
Ingredients
- 1 stick unsalted butter, melted
- 1/4 cup brown sugar
- 12 graham crackers, finely crushed
- 1 can sweetened condensed milk
- 1 cup chocolate chips
- 1 cup pecans, chopped
- 1 cup sweetened shredded coconut
Instructions
- Preheat oven to 350°F. Spray a 9×9-inch pan with nonstick spray and line with parchment paper in a cross.
- Mix melted butter, brown sugar, and crushed graham crackers. Press into the bottom of the pan.
- Pour the sweetened condensed milk evenly over the crust.
- Combine chocolate chips, pecans, and coconut, then sprinkle over the condensed milk.
- Bake on the center rack for 20–25 minutes, until the coconut is golden. Cool completely before removing from the pan and cutting.
Notes
- Swap chip types or nuts to change the flavor profile.
- Add dried fruit for extra texture and brightness.
- Use crushed cookies for a different crust flavor.
Nutrition (per serving, approximate)
Calories: 560 kcal | Carbohydrates: 63 g | Protein: 6 g | Fat: 33 g | Sugar: 50 g