Sourdough Magic Cookie Bars for a Bake Sale — Gooey, Layered & Crowd-Pleasing

Sourdough Magic Cookie Bars for a Bake Sale — Gooey, Layered & Crowd-Pleasing

Sourdough magic cookie bars cut in a pan with toasted coconut, chocolate, butterscotch and pecans, stacked on a plate

Looking for sourdough magic cookie bars for bake sales that actually hold together, travel well, and disappear first from the table? You want a bar that looks generous, slices into tidy portions, and tastes like you fussed — when really you layered everything into one pan and let the oven do the work.

That is exactly what our Sourdough Discard Magic Cookie Bars deliver. The recipe takes the classic seven-layer bar — a buttery graham crust, gooey sweetened condensed milk, chocolate, butterscotch, coconut and pecans — and stirs sourdough discard straight into the crust for a deeper, richer flavour with a subtle tang. It makes 24 bars in a 9×13-inch pan, needs no mixer and no chilling, and is ready in about 55 minutes. The full step-by-step recipe is one tap away, and this page shows you how to turn that one pan into a bake-sale star.

What makes these bars perfect for a bake sale

  • One pan, 24 tidy bars: one 9×13-inch pan cuts cleanly into 24 bars — a proper bake-sale batch from a single bake, with no portioning guesswork.
  • Seven layers in every bite: graham and discard crust, semisweet chocolate chips, butterscotch chips, sweetened shredded coconut and chopped pecans, all held together with sweetened condensed milk and finished with flaky sea salt.
  • No mixer, no chilling, no fuss: if you can stir, sprinkle and pour, you can make these — the recipe calls the method beginner-proof for good reason.
  • Made to wait gracefully: the bars keep in an airtight container at room temperature for up to 5 days and, in the recipe's own words, taste even better on day two as the flavours settle in.

Get Your Starter — Guaranteed to Activate, Beginner-Friendly →

⭐ 4.9 stars from 748 reviews — read what bakers say about their first loaves.

How the layers come together

The crust is where the sourdough earns its place. You stir 150 g graham cracker crumbs with 120 g sourdough discard — unfed, straight from the fridge is perfect — plus melted butter, a little brown sugar and salt, until the mixture looks like damp sand and holds together when squeezed. Press it firmly and evenly into a parchment-lined pan, paying attention to the corners. The recipe is blunt about this step: press, then press again, because a tightly packed crust slices cleanly while a loose one shatters under the knife.

Then you layer like you mean it. Chocolate chips go over the crust first, then butterscotch chips, then the coconut, then the pecans. Pour the sweetened condensed milk — one 400 g can, and it must be sweetened condensed, never evaporated — slowly and evenly over everything in a zigzag, letting it seep down on its own. Do not stir. Stirring drags the crust up into the filling and ruins the distinct layers that make each bite buttery, gooey, chocolatey, toasty and crunchy all at once.

Bake at 175°C (350°F) for 28–32 minutes, until the coconut on top is deep golden, the edges are bubbling and the centre looks set rather than liquid. The bars will still feel soft in the middle, and that is correct — they firm up as they cool, and overbaking is how gooey bars turn crunchy. If the coconut browns too quickly, tent the pan loosely with foil for the last few minutes.

Cutting, packing and presenting bars that sell

Here is the part bake-sale bakers get wrong: cutting too soon. Let the pan cool on a wire rack for at least 1 hour, then chill it for 30 minutes before you cut a single bar. Lift the whole slab out by the parchment overhang, use a large sharp knife, and wipe the blade clean between cuts. The recipe's pro move is a hot, dry knife — run it under hot water, wipe it dry, and it glides through the chocolate layer instead of dragging it. Sprinkle the flaky sea salt over the top while the bars are still slightly warm.

That chill-then-cut routine is your bake-sale advantage. Cold bars give you straight edges and clean layers you can actually see — chocolate, coconut and pecans stacked over that golden crust — and visible layers are what make someone pick your bar over everything else on the table. Because the batch keeps well for up to 5 days at room temperature, you can bake ahead, cut when the slab is properly cold, and portion at your leisure instead of in a last-minute rush. Need to bake even further ahead? Freeze cut bars in a single layer for an hour, then stack them in a freezer container with parchment between layers for up to 3 months, and thaw at room temperature for about 30 minutes.

Easy swaps that still hold together

The recipe is flexible where a bake sale needs it to be. Pecans are classic, but walnuts, chopped almonds or a mix all work, and you can leave the nuts out entirely — the bars still hold together. Dark chocolate chips make the batch richer and less sweet, white chocolate chips lean sweeter and creamier, and swapping the butterscotch chips for more chocolate chips is built right into the recipe. One swap is not allowed: the sweetened condensed milk. It is the gooey glue that sets the layers, and evaporated milk is thin and unsweetened, so the bars would fall apart. For a less-sweet finish, the recipe suggests unsweetened coconut and that flaky salt on top — salt is the fastest way to tame sweetness.

Get Your Starter With Free Shipping in Canada, the US & the UK →

Mini FAQ

How many bars does one pan make?

The recipe makes 24 bars from one 9×13-inch pan — or 12 enormous ones, as the recipe cheerfully admits. For a bake sale, the 24-bar cut gives you tidy, even portions from a single bake.

Can I bake these ahead of the sale?

Yes. The bars keep in an airtight container at room temperature for up to 5 days and taste better on day two. For longer storage, freeze cut bars with parchment between layers for up to 3 months and thaw for about 30 minutes at room temperature.

Can I make them without nuts?

Absolutely. Leave the pecans out or swap in extra chocolate chips or coconut — the recipe confirms the bars hold together just fine without nuts, and walnuts or chopped almonds work if you want a different nut.

Do I need active starter, or will discard do?

Discard is the point of this recipe. Cold, unfed discard stirs straight into the crust with no feeding or warming first, and its tang is what makes the crust taste richer than a plain graham version. Active starter works too, with a milder tang. New to starter? Start with our flaked dehydrated starter and step-by-step help in the Sourdough Academy.

Browse more bakes like this in the Recipe Library, and if you love one-pan discard bars, try our one-bowl sourdough blondies next.

Ready to bake the bars everyone asks about? Get the full Sourdough Discard Magic Cookie Bars recipe — seven layers, one pan, zero leftovers. Happy baking, and may your table sell out first. 🐿️

Questions? Just message us — we'll get back to you, we promise. No AI chatbots here, just real people who bake sourdough every day.

Our 100% Activation Guarantee

Zero Risk. Zero Guesswork. Just Real Sourdough.

Bake or Get Covered: If your starter fails to activate into a bubbly, active, bake-ready culture.
We’ll either send you a fresh replacement batch completely free or issue a 100% refund.

No hoops to jump through, no complicated returns, and no hard feelings.