Keto Magic Cookie Bars
These keto magic cookie bars layer a buttery almond-flour crust with toasted coconut, sugar-free chocolate chips, and chopped pecans bound in rich condensed-cream caramel. At just 3.4g net carbs per bar and ready in about 50 minutes, they're the seven-layer dessert reimagined for low-carb living.
Head of Nutrition · June 18, 2026

Nutrition per serving
Per serving · makes 16. Values are estimates; brands vary.
A keto remake of the classic seven-layer "magic" cookie bar, swapping sweetened condensed milk for a simmered heavy-cream caramel and graham crumbs for a buttery almond-flour crust. Every chewy, nutty, chocolate-studded bar lands at just 3.4g net carbs.
Ingredients
- 2 cups blanched almond flour
- 6 tbsp unsalted butter, melted
- 1/3 cup powdered erythritol (divided)
- 1/2 tsp kosher salt
- 3/4 cup heavy whipping cream
- 2 tbsp unsalted butter (for the caramel layer)
- 1 tsp vanilla extract
- 1 cup unsweetened shredded coconut
- 2/3 cup sugar-free dark chocolate chips
- 3/4 cup raw pecans, roughly chopped
Instructions
- 1
Preheat the oven to 350F. Line an 8x8-inch baking pan with parchment paper, leaving an overhang on two sides for easy lifting.
- 2
Make the crust: stir the almond flour, melted butter, 3 tbsp of the powdered erythritol, and the salt until a crumbly dough forms. Press firmly and evenly into the bottom of the pan. Bake for 10 minutes until just set and lightly golden at the edges.
- 3
Make the keto condensed-cream layer: in a small saucepan over medium heat, combine the heavy cream, 2 tbsp butter, and the remaining 3 tbsp powdered erythritol. Simmer gently, stirring often, for 8 to 10 minutes until slightly thickened and pale gold. Remove from heat and stir in the vanilla.
- 4
Pour the warm cream mixture evenly over the par-baked crust. Scatter the shredded coconut, chocolate chips, and chopped pecans over the top in even layers, then gently press down so everything adheres.
- 5
Return to the oven and bake for 22 to 25 minutes, until the coconut is golden and the edges are bubbling. The center will still look soft.
- 6
Cool completely in the pan, then chill for at least 1 hour to fully set. Lift out using the parchment and cut into 16 bars.
Tips & notes
- The bars must chill fully before cutting, or the caramel layer will be runny. Overnight in the fridge gives the cleanest cut.
- Swap pecans for walnuts or sliced almonds, and use sugar-free milk chocolate chips for a sweeter, more classic flavor.
- Store covered in the refrigerator for up to 1 week, or freeze individually wrapped for up to 2 months.
Log this recipe in one tap
Save keto magic cookie bars to CarbMeNot and track its 3.4g net carbs against your daily budget automatically.
Frequently asked questions
- How many carbs are in keto magic cookie bars?
- Each bar has 3.4g net carbs (7.9g total carbs minus 4.5g fiber), 248 calories, 4.6g protein, and 24g fat. This recipe makes 16 bars.
- Why didn't my caramel layer set properly?
- The heavy cream and erythritol mixture needs to simmer long enough to reduce and thicken, and the bars must chill for at least an hour after baking. If your caramel is runny, give it more fridge time before cutting.
- Can I make these dairy-free?
- Yes. Use coconut cream in place of heavy whipping cream and a quality vegan butter for both the crust and caramel layer. The flavor leans more coconut-forward, and the carb count stays nearly identical.


