Chocolate Peanut Butter Magic Cookie Bars are an easy dessert bar made with a peanut butter cookie base, melty chocolate chips, crunchy peanuts, and a cocoa-flavored sweetened condensed milk topping. These bars are ideal for holidays, potlucks, and make-ahead desserts since they freeze and travel well.

These Chocolate Peanut Butter Magic Cookie Bars are a fast, crowd-pleasing dessert that disappears quickly. Using a peanut butter cookie mix and common pantry ingredients, they come together in minutes and deliver a rich chocolate-and-peanut-butter experience with a soft cookie base, gooey chocolate, and crunchy peanuts.

The holidays are busy, and recipes that are quick, reliable, and kid-friendly are especially welcome. These bars are simple enough for children to help make yet attractive enough to serve at any gathering. They also freeze well, so you can make them ahead and pull them out when you need a last-minute treat.
If you love chocolate and peanut butter, this recipe is for you. The peanut butter cookie base complements melted chocolate chips and salted peanuts, while the cocoa-infused condensed milk topping ties all the flavors together into a decadent bar.
What I Love About This Recipe
- Uses peanut butter cookie mix for fast prep.
- Comes together in just a few minutes.
- Chocolate and peanut butter are a classic pairing.
- Freezes, stores, and travels well.
- Great for holidays, parties, and bake sales.
Equipment You May Need
- 13×9-inch baking pan – for even baking.
- Large mixing bowl – to combine the cookie base.
- Small mixing bowl – for the condensed milk and cocoa.
- Measuring cups and spoons – to measure accurately.
- Rubber spatula or spoon – for mixing and spreading.
Ingredients
Cookie Base
- Peanut butter cookie mix – the quick cookie base.
- Vegetable oil – adds moisture and helps bind the dough.
- Water – brings the dough together.
- Egg – adds structure and richness.
Topping
- Sweetened condensed milk – creates the signature magic-bar topping.
- Unsweetened cocoa powder – adds chocolate depth to the topping.
- Chocolate chips – melt into the bars for extra chocolate flavor.
- Salted peanuts – add crunch and balance the sweetness.
How to Make Chocolate Peanut Butter Magic Cookie Bars
Step One: Prepare the Pan
Preheat the oven to 350 degrees F and lightly spray a 13×9-inch baking pan with cooking spray.
Step Two: Make the Cookie Base
In a large bowl, stir together the peanut butter cookie mix, vegetable oil, water, and egg until a soft dough forms. Press the dough evenly into the bottom of the prepared pan.
Step Three: Mix the Topping
In a small bowl, whisk the sweetened condensed milk with the cocoa powder until smooth and fully combined.
Step Four: Assemble the Bars
Sprinkle the chocolate chips and peanuts evenly over the cookie dough base. Pour the cocoa-condensed milk mixture over the top and spread gently to cover.
Step Five: Bake
Bake for 25–30 minutes, or until the edges are lightly golden and the center is set. Remove from the oven and allow to cool completely before cutting into bars.
(Printable recipe card with full details is included in the recipe section below.)
Serving Suggestions
- Serve chilled or at room temperature for neat slices.
- Add a scoop of vanilla ice cream for an extra indulgent dessert.
- Drizzle warm chocolate or peanut butter sauce over ice cream and bars.
- Cut into small squares for dessert trays or cookie platters.
Quick Tips for Best Results
- Avoid overbaking to keep the bars moist and tender.
- Cool completely before slicing to get clean edges.
- Line the pan with parchment paper for easy removal.
- Use a sharp knife wiped between cuts for neat squares.

Chocolate Peanut Butter Magic Cookie Bars FAQ
How should I store these bars?
Store bars in an airtight container at room temperature for up to 3 days or refrigerate for up to a week.
Can I freeze the bars?
Yes. Wrap tightly and freeze for up to 3 months. Thaw in the refrigerator before serving.
How long do they last?
About 3 days at room temperature, up to 7 days refrigerated, or several months frozen.
Substitutions?
Use different types of chocolate chips, swap peanuts for peanut butter chips, or use mixed nuts instead.
Can I use low-fat ingredients?
Low-fat condensed milk or reduced-fat cookie mixes may alter texture and richness.
What else can I add?
Shredded coconut, toffee bits, or chopped candy pieces make nice additions.
Can I adapt this for special diets?
Possible substitutions exist, but results will vary. Check ingredient labels carefully for vegan, gluten-free, or low-carb needs.

Enjoy these Chocolate Peanut Butter Magic Cookie Bars! They’re great for sharing at any gathering and convenient to make ahead.

Chocolate Peanut Butter Magic Cookie Bars Recipe
Ingredients
Cookie Base:
- 1 (1 lb 1.5 oz) pouch peanut butter cookie mix
- 3 tablespoons vegetable oil
- 1 tablespoon water
- 1 large egg
Topping:
- 1 (14 oz) can sweetened condensed milk
- 2 tablespoons unsweetened cocoa powder
- 1 (11.5 oz) bag chocolate chips
- 2 cups salted peanuts
Instructions
-
Preheat oven to 350 degrees F. Lightly spray a 13×9-inch baking pan with cooking spray.
-
In a large bowl, stir together cookie mix, oil, water, and egg until a soft dough forms. Press dough into the bottom of the prepared pan.
-
In a small bowl, whisk the sweetened condensed milk and cocoa powder until smooth.
-
Sprinkle chocolate chips and peanuts evenly over the cookie dough. Pour the condensed milk mixture over the top in an even layer.
-
Bake about 25–30 minutes, or until the edges are lightly golden and the center is set. Cool completely before cutting.
Notes
- Do not overbake to keep the bars moist.
SUBSTITUTIONS:
- Use any chocolate chips (semi-sweet, dark, or bittersweet).
- Substitute peanut butter chips for peanuts, or use mixed nuts.
Nutrition:
(Nutrition data is provided for informational purposes only and may vary based on brands and substitutions.)