Vegan Magic Bars

These vegan magic bars are layered with chocolate, coconut, pecans, and condensed milk for a crowd-pleasing dessert that’s pure indulgence.

A stack of magic bars are on a white table with more of the treats behind it.
Prep Time 5 minutes
Cook Time 25 minutes
Total Time 30 minutes
Jump to Recipe Print Recipe Pin Recipe

This post may contain affiliate links. Disclosure Policy

If you’ve ever bitten into a gooey, chocolatey bar and thought, This is pure magic, then you’re going to love these Vegan Magic Bars. Sometimes called vegan magic cookie bars or even vegan 7-layer bars, they’re the kind of dessert that makes a whole room go quiet with the first bite. Sweet, salty, crunchy, and chewy all at once, these bars prove that indulgence can be dairy-free and utterly irresistible.

As someone who has tested more than my fair share of desserts, I can tell you: this recipe is one of those keepers you’ll find yourself making on repeat.

Marly leaning on the kitchen island

Magic Bars Have a Problem

I’ve always had a problem with the original Magic Bars recipe. They’re cloyingly sweet! And that’s saying a lot coming from me – the self-branded Sweet Tooth Queen!

The problem with the original recipe? Butterscotch chips.

I’m happy to say I solved it.

Instead of butterscotch chips, I substituted semi-sweet or bittersweet chocolate chunks. Yes, pairing chocolate chunks with chips means double the chocolate, but it balances beautifully with the other ingredients.

I also add chopped pretzels (or salted roasted nuts), and that makes these decadent dessert bars shine!

It’s the upgrade these bars always needed. I hope you agree!

Ingredients & Substitutions

You can find the full printable recipe, including ingredient quantities, below. But first, here are some explanations of ingredients and steps to help you make this recipe perfect every time.

  • Graham Crackers – Use whichever graham crackers you prefer or substitute a favorite cookie. Crush them finely for the best crust texture.
  • Vegan Butter – Melted vegan butter binds the crust. I love using Earth Balance, but any stick-style dairy-free butter or margarine works. Coconut oil (solid at room temperature) is another great substitute.
  • Chocolate Chips & Chunks – Go for semi-sweet or dark chocolate. Use a mix of chips and chunks for varied texture.
  • Shredded Coconut – Unsweetened works well here since the bars are already rich. Sweetened coconut will make them extra indulgent.
  • Pecans – Toast lightly beforehand if you want an extra nutty punch. Walnuts or almonds also work.
  • Pretzels – The salty crunch is magic! If you’re nut-free, use extra pretzels instead of pecans.
  • Vegan Sweetened Condensed Milk – Store-bought options (like Nature’s Charm) save time, but making your own with vegan sweetened condensed milk works beautifully.
Several slices of vegan 7 layer bars infused with melty chocolate chips on a white table.

How to Make Vegan Magic Bars

The word “magic” is there for a reason, because these tasty dessert bars come together so fast…and disappear just as quickly! Here’s a summary of the steps I use to make them. See the full recipe card below for more detailed instructions.

Step One: Make the Crust:

I crumble graham crackers with a rolling pin or food processor. Then mix those crumbs with melted vegan butter. This gets pressed firmly into a lined 9×13 pan. This creates your buttery-sweet base.

Step Two: Add the Layers:

Next, we’ll sprinkle on chocolate chips, followed by coconut and pecans. Then come those delightful chocolate chunks and some pretzels. Lightly press down on them to keep the layers even.

A hand drizzles sweetened condensed milk over a baking dish full of other ingredients.

Step Three: The Secret Sauce

Every recipe deserves a secret sauce, and this one is no different! We’re going to drizzle the bars with some vegan sweetened condensed milk. If yours is too thick, pop it in the microwave for a few seconds until it becomes runny enough to pour. Then be sure to drizzle it evenly over the top.

This golden layer is what binds everything together in a gooey, magical way.

Step Four: Bake, Cool & Slice

Pop the pan into a preheated oven and bake until the edges are golden and the center bubbles slightly.
Let the bars cool completely before slicing (this part is torture, I know).

Want a super clean cut? Refrigerate the bars for at least 2 hours for clean slices.

Marly’s Tips

  • For easier slicing, dip a sharp knife into hot water and wipe between cuts.
  • If your crust feels crumbly, add an extra tablespoon of melted butter.
  • Sprinkle flaky sea salt on top after baking for a gourmet finish.
  • Add colorful sprinkles on top to make these treats match a festive party

Recipe Shortcuts

  • Buy pre-crushed graham cracker crumbs to save time.
  • Use store-bought vegan condensed milk for the easiest shortcut.
  • Chill the baked bars in the freezer for 10-15 minutes if you’re in a hurry to slice.
A slice of a layered magic dessert bar on a white table.

Recipe Test Kitchen

I gave this recipe thorough testing before sharing it with you. Here are some of the things I tested:

  • When I first tested these bars, I noticed the crust crumbled too easily. Adding a touch more vegan butter solved the problem, giving it that perfect firm bite.
  • I also experimented with different nuts—pecans turned out best because of their buttery flavor, but walnuts work in a pinch.
  • As mentioned above, I wanted to avoid butterscotch chips because I think they are too sweet. So, I initially tested mini white chocolate chips (see the image below). These work fine, but they are also very sweet. I found I preferred using dark chocolate chunks instead of butterscotch or white chocolate.
  • I tried a batch with and without coconut flakes, and I find the version with coconut flakes to be the best. It adds texture, flavor, and balances the chocolate perfectly.
  • Finally, I tested both chopped pretzels and salted peanuts as the final topping. I personally liked the chopped pretzels best, but my hubby preferred the salted peanuts. I suppose it’s just a matter of personal preference.
Sprinkling white chocolate chips on a layered dessert bar in a pan.
White chocolate chips on magic bars can substitute for butterscotch chips.

My non-vegan taste testers (thank you, Jeff, Lara, and Bob!) loved every version!

Testing these tweaks means you can dive straight into dessert success without the guesswork.

Subscribe and Get a Free Easy Vegan Recipes eBook

Plus our latest vegan recipes, delivered right to your inbox!

We won’t send you spam. Unsubscribe at any time.

A slice of layered dessert bar on a white table.

Vegan 7-Layer Magic Cookie Bars

These Vegan Magic Bars are pure indulgence—layers of buttery crust, melty chocolate, toasted coconut, crunchy pecans, and gooey vegan condensed milk. Sweet, salty, and utterly irresistible.
5 from 1 vote
Course: Dessert
Cuisine: American
Prep Time: 5 minutes
Cook Time: 25 minutes
Total Time: 30 minutes
Servings: 30 slices
Calories: 210kcal

Ingredients

For the Crust:

For the Layers:

  • 1 cup semi-sweet chocolate chips
  • 1 cup shredded coconut
  • 1 cup semi-sweet chocolate chunks
  • 1 cup chopped pecans
  • 1 cup pretzels chopped (substitute salted peanuts)
  • 1 ½ cups vegan sweetened condensed milk (see notes)

Instructions

  1. Preheat the oven to 350°F/175°C. Line a 9×13 baking pan with parchment paper, leaving some overhang for easy lifting.
  2. Make the crust: In a bowl, mix the graham cracker crumbs and melted butter, and stir until evenly combined. Press the mixture firmly into the bottom of the prepared pan.
    1 ½ cups graham cracker crumbs, ½ cup vegan butter
    Melted butter is being poured into a bowl with graham cracker crumbs and other ingredients.
  3. Add the layers: Sprinkle the chocolate chips in an even layer over the graham cracker crumbs. Next, sprinkle the shredded coconut flakes, chopped nuts, chocolate chunks, and pretzels in layers. Lightly press them down with a spatula or your hands.
    1 cup semi-sweet chocolate chips, 1 cup shredded coconut, 1 cup chopped pecans, 1 cup pretzels, 1 cup semi-sweet chocolate chunks
    Chocolate chips are being spread over a crust in a baking dish.
  4. Secret Sauce: Drizzle the sweetened condensed milk evenly over the top.
    1 ½ cups vegan sweetened condensed milk
    A hand drizzles sweetened condensed milk over a baking dish full of other ingredients.
  5. Bake for 25–30 minutes, or until the edges are golden and the center is bubbling slightly.
  6. Cool completely: Let the bars cool in the pan at room temperature for 1 hour, then refrigerate for at least 2 hours to set completely. Use the parchment to lift out and slice into bars.
  7. Try to remember what your mom always said and share!

(The products above contain sponsored links to products we use and recommend)

Notes

Recipe Suggestions

  • Vegan Sweetened Condensed Milk: You can find brands like Nature’s Charm in stores, or make your own by simmering one can of full-fat coconut milk with ½ cup maple syrup or coconut sugar until thickened (about 30–40 minutes), or use my recipe for Quick Dairy-Free Sweetened Condensed Milk.
  • Nut-Free? Skip the nuts and add sunflower seeds, crushed pretzels, or more coconut.
  • Make-Ahead Friendly: These bars keep well in the fridge for up to a week and freeze beautifully, too.
Calories: 210kcal | Carbohydrates: 21g | Protein: 3g | Fat: 13g | Saturated Fat: 5g | Polyunsaturated Fat: 2g | Monounsaturated Fat: 5g | Trans Fat: 0.03g | Cholesterol: 3mg | Sodium: 87mg | Potassium: 120mg | Fiber: 2g | Sugar: 16g | Vitamin A: 190IU | Vitamin C: 0.1mg | Calcium: 55mg | Iron: 1mg

The nutrition information shown is an estimate provided by an online nutrition calculator and should not be considered a substitute for a professional nutritionist’s advice.

Did you make this recipe?

Leave a rating below then tag @namelymarly on Instagram and hashtag it #namelymarly. I love seeing your creations!

More Chocolate Recipes

If you love this recipe for vegan magic bars, here are more chocolate dessert favorites to try:

Frequently-Asked Questions

Can I make these bars nut-free?

Yes! Just skip the pecans and add extra pretzels, sunflower seeds, or coconut.

Do I need parchment paper?

Absolutely—it makes lifting + slicing the bars and cleanup so much easier.

What if I don’t like coconut?

You can omit it, but you’ll lose some of the chewiness. Try adding oats for texture instead.

One Response to Vegan Magic Bars

  1. Avatar thumbnail image for MarlyShawn Reply

    These are rich, sweet and delicious

5 from 1 vote

Rate / Comment

Your email address will not be published.

Recipe Rating




This site uses Akismet to reduce spam. Learn how your comment data is processed.