Baking Encyclopedia
Seven-Layer Magic Bars

Seven-Layer Magic Bars, Gluten Free

A buttery graham crust layered with chocolate, butterscotch, toasted coconut, and pecans, all welded together by a can of sweetened condensed milk. Seven ingredients, one pan, zero mixer.

55 min total24 bars

Ingredients

Makes 24 bars

Crust

Layers

Instructions

  1. 1

    Heat the oven and line the pan

    Heat the oven to 350°F with a rack in the center. Line a 9x13-inch pan with parchment, leaving a couple of inches hanging over the two long sides so you can lift the finished slab straight out.

  2. 2

    Toast the coconut and pecans

    Spread the pecans on one side of a rimmed sheet pan and 1/2 cup of the coconut on the other. Toast for 5 to 7 minutes, pulling the coconut once it's golden at the edges and giving the pecans a minute or two longer. Cool and set aside, keeping the remaining 1 cup of coconut untoasted.

  3. 3

    Mix the graham-style crust

    Whisk the gluten-free flour blend, xanthan gum, brown sugar, cinnamon, and salt in a bowl, breaking up any lumps of brown sugar with your fingers. Stir in the melted butter and honey until the mixture holds together when squeezed. Let it sit for 20 minutes — gluten-free starches need that time to absorb the butter, and skipping it gives you a gritty, sandy crust that won't hold a clean edge.

  4. 4

    Press and par-bake the crust

    Press the rested mixture into the pan in a tight, even layer, compacting it hard with the bottom of a measuring cup. Bake for 13 to 15 minutes, until the surface looks dry, matte, and golden at the edges. This crust needs a longer par-bake than a graham crumb version because you're actually baking raw flour here, not just setting existing crumbs. It will still feel soft when hot and will crisp as it cools.

  5. 5

    Build the layers

    Scatter the chocolate chips over the warm crust, then the butterscotch chips, then the pecans, then both the toasted and untoasted coconut, keeping the untoasted coconut on top so it browns in the oven.

  6. 6

    Pour the condensed milk

    Stir the vanilla into the can of condensed milk, then drizzle it slowly back and forth across the whole pan, hitting the edges and corners. Scrape the can clean and press the surface firmly with the back of a fork so the milk soaks down into the layers.

  7. 7

    Bake until the edges bubble

    Bake for 25 to 28 minutes, until the coconut is deeply golden and the condensed milk bubbles visibly around the perimeter. The center stays soft at this stage and firms up during cooling. Tent with foil if the top is darkening too quickly.

  8. 8

    Cool completely, then chill before cutting

    Sprinkle with flaky salt while hot, if using. Cool in the pan on a rack for at least 2 hours, then refrigerate for 45 minutes before slicing. The gluten-free crust is more tender than a graham one and benefits from the extra chilling — cut it at room temperature and the base tends to crumble. Lift out by the parchment and slice with a long sharp knife, wiping the blade between cuts.

  9. You did it! Help us bring baking back home by selling your delicious baked goods on Homebaked!

Baker's Tips

  • 1.

    Twelve to thirteen whole graham crackers blitzed in a food processor gives you the 2 cups of crumbs you need. Hand-crushing in a zip-top bag works too, but aim for fine, even crumbs — big shards make a crust that crumbles apart.

  • 2.

    The toppings total about 4 cups, and that number is what matters more than the exact mix. Swap in white chocolate, peanut butter chips, toffee bits, walnuts, or macadamias as long as you stay near 4 cups total.

  • 3.

    Use full-fat sweetened condensed milk, not evaporated milk and not a low-fat version. It's the structural glue here, and lighter versions set up loose and weepy.

  • 4.

    These are intensely sweet by design. Unsweetened coconut, bittersweet chips, and the flaky salt finish all pull it back toward balance if the classic version reads as too much for you.

  • 5.

    Warming the can in hot tap water for a few minutes makes the condensed milk pour thinner and spread more evenly, which means fewer dry patches on top.

  • 6.

    Cut them small. A 6x4 grid gives 24 generous bars, but an 8x4 grid of 32 smaller squares is honestly the better serving size for a dessert this rich.