Tested recipes for real home kitchenshello@tinytasteco.com
↓ Jump to Recipe

Magic Cookie Bars (7-Layer Bars)

There's no mixer involved anywhere in this recipe, which is exactly why it's stayed a go-to for decades. You press a graham crust into the pan, pour condensed milk over it, layer on chocolate chips, coconut, and nuts, and bake. That's it. The condensed milk does all the binding work while it bakes, turning six separate ingredients into one cohesive, sliceable bar.

These go by a few different names depending on who taught you — magic bars, 7-layer bars, Hello Dolly bars — but the method is the same everywhere: layer, don't mix, and let the oven do the rest.

Table of Contents

Why This Recipe Works

Sweetened condensed milk isn't just a sweetener here — as it bakes, the sugars caramelize slightly and the milk proteins set, gluing the loose toppings (chocolate, coconut, nuts) into one solid, sliceable layer instead of a pile of separate ingredients. That's the entire mechanism behind why these bars hold together with zero folding or mixing required.

Ingredients

Ingredient notes: Use full-sweetened condensed milk, not evaporated milk — they're different products and evaporated milk won't set the bars properly. Sweetened shredded coconut toasts to a better golden color than unsweetened.

📋 Recipe Card

Magic Cookie Bars

10 min
Prep
30 min
Cook
40 min
Total
Easy
Difficulty
Servings: 16 bars
Ingredients
  • ½ cup (113g) butter, melted
  • 1½ cups (180g) graham crumbs
  • 1 can (14oz) condensed milk
  • 1½ cups (255g) chocolate chips
  • 1 cup (85g) coconut
  • 1 cup (115g) chopped pecans
Method
  1. Mix melted butter with graham crumbs and press into a lined 9x13-inch pan.
  2. Pour condensed milk evenly over the crust.
  3. Sprinkle chocolate chips, then coconut, then nuts over the milk. Press down gently.
  4. Bake at 350°F (175°C) for 25-30 minutes until coconut is golden brown.
  5. Cool completely, at least 1 hour, before slicing into 16 bars.

Step-by-Step

Step 1: Make the Crust

Mix the melted butter with the graham cracker crumbs until evenly moistened, then press firmly into an even layer in a parchment-lined 9x13-inch pan.

Step 2: Pour the Condensed Milk

Pour the sweetened condensed milk evenly over the crust, tilting the pan slightly so it spreads to the edges.

Step 3: Layer the Toppings

Sprinkle the chocolate chips evenly over the condensed milk, followed by the coconut, then the chopped nuts. Press down very gently with your palms just to help the layers settle together.

Step 4: Bake

Bake at 350°F (175°C) for 25 to 30 minutes, until the coconut on top is golden brown and the edges look set and slightly bubbly.

Step 5: Cool and Slice

Cool completely in the pan, at least 1 hour, before lifting out with the parchment overhang and slicing into 16 bars. These need the full cool-down to hold together when sliced.

Pro Tips

Storage & Make-Ahead

Store in an airtight container at room temperature for up to 5 days, or refrigerate for up to 10 days for extra firmness. These freeze exceptionally well — wrap individual bars and freeze up to 3 months, thawing at room temperature for about 20 minutes.

Variations & Substitutions

FAQ

Yes, just replace them with an equal amount of extra chocolate chips or coconut, or skip that layer entirely if there's a nut allergy to consider.
These bars need to cool completely, and ideally chill for 30 minutes, before slicing. Cutting them warm is the most common cause of crumbly, messy slices.
Yes, pre-made graham cracker crumbs work perfectly and save a step — just make sure to measure by volume the same way.
A gentle press helps the layers stick together once baked, making the bars easier to slice cleanly. Don't press hard enough to squeeze out the condensed milk.

Final Thoughts

This is the recipe I hand to anyone who says they "can't bake" — there's genuinely no way to mess up the technique since there isn't one beyond layering and waiting. It also happens to be one of the best make-ahead bars on this whole site.

Nutrition information is an estimate only, calculated per bar based on standard ingredient values, and will vary by brand and exact measurements. See our Disclaimer for details.
🧑‍🍳

TinyTasteCo Kitchen

Every recipe on TinyTasteCo is tested multiple times in a real home kitchen before it's published. Learn more on our Author page.