
This Keto Chocolate Peanut Butter Cake is over-the-top delicious. Three layers of tender low carb chocolate cake with sugar-free peanut butter frosting and a rich chocolate glaze. It’s a peanut butter lover’s dream!

Allow me to introduce myself. My name is Carolyn and I have an all-consuming obsession with chocolate and peanut butter. It’s genetic and I’m pretty sure I’ve had this condition since birth.
It’s actually a very common affliction that affects many people worldwide. Chances are good that you have it too! Otherwise you probably wouldn’t even be reading this post.
You know the best cure for this affliction? Cake. A really amazing cake that tastes like eating keto peanut butter cups. Keto Chocolate Peanut Butter Cake is almost always the answer, no matter what the question!
If this flavor combo is your obsession, be sure to check out my Keto Peanut Butter Balls too.

You will love this cake!
I originally dreamed up this beautiful Keto Chocolate Peanut Butter Cake back in 2014. It was delicious back then but my keto baking skills have vastly improved and I decided it needed an update.
I made the cake similarly to my Keto Devil’s Food Cake, as it’s so wonderful and chocolatey. I also re-vamped peanut butter frosting by folding in whipped cream to give it lightness and structure. It was both airy and luscious, and reminiscent to Keto Peanut Butter Mousse.
Finally, I created a chocolate glaze to decorate the cake. It was the perfect consistency to drip down the sides decoratively.
The final cake is just as delicious as the original, but with even fewer carbs! It’s definitely worthy of all your special occasions.
Ingredients you need

This post may contain Amazon or other affiliate links. As an Amazon Associate I earn from qualifying purchases.
- Almond flour: Make sure to use a good finely ground almond flour for the best cake texture. You can also use sunflower seed flour for a nut-free version.
- Sweetener: I used granular Swerve in the cake and powdered Swerve in the frosting and glaze. I also used a little allulose in the glaze to keep it shiny and soft. See the Expert Tips section for other sweetener options.
- Cocoa powder: If you want a dark chocolate cake, use dark cocoa powder.
- Protein powder: Added dry protein like whey protein powder gives keto cakes a lighter texture and more structure. I don’t recommend skipping it, although you can also use egg white or plant-based protein. Do not use collagen as it will make the cakes gummy and hard to cook through.
- Sour cream: Full fat sour cream adds wonderful tenderness to keto cakes and muffins.
- Peanut butter: Any creamy natural peanut butter should work for the frosting. I really like the Santa Cruz brand.
- Cream cheese: Cream cheese gives the frosting more structure without having to add copious amounts of powdered sweetener.
- Whipping cream: Folding whipped cream into the frosting gives it a luscious mousse-like texture.
- Unsweetened chocolate: The chocolate drip glaze really is the perfect finish to a cake like this. Unsweetened chocolate is not the same thing as sugar-free chocolate like ChocZero or Lily’s. Those have been sweetened already.
- Kitchen staples: Eggs, butter, baking powder, vanilla, salt.
Step by Step Directions

1. Prepare the batter: In a medium bowl, whisk together the almond flour, sweetener, cocoa powder, protein powder, baking powder, and salt. Stir in the sour cream, eggs, and vanilla. Stir in the water one tablespoon at a time until the batter is thick but pourable.
2. Bake the layers: Divide batter evenly among 3 greased 8-inch cake pans and bake at 325ºF for 15 to 20 minutes, or until just firm to the touch. Remove and let cool completely in the pans.
3. Prepare the frosting: In a large bowl, beat the peanut butter, cream cheese, and butter together until very smooth, about 2 minutes. Beat in the sweetener and vanilla extract. In a separate bowl, whip the cream until it holds stiff peaks. Fold into the peanut butter mixture until no streaks remain.
4. Frost the cake: Place one layer of cake on a serving platter and spread with about one quarter of the frosting. Top with another layer of cake and another quarter of the frosting. Add the remaining layer of cake and spread the top and sides with the remaining frosting. Refrigerate for one hour to firm up.
5. Prepare the glaze: In a small saucepan over medium heat, bring the cream to a simmer. Remove from heat and add the chopped chocolate. Let sit a few minutes to melt. Add the sweeteners and whisk to combine. Let cool a few minutes to thicken.
6. Decorate the cake: Drizzle the glaze over the top of the cake along the edges, letting it drip down the sides. Smooth the remaining glaze over the top of the cake. Top with keto peanut butter cups and sprinkles, if desired.

Expert tips
Always make sure to prep your cake pans properly. This includes greasing the pan and lining them with parchment paper circles. And then greasing the parchment as well. This ensures that your cakes flip easily out of the pans.
Don’t overbake those cake layers! It’s easy to do and they will end up dry. I touch the tops of my cakes multiple times during baking. The minute they feel dry on top with a little bounce underneath, I get them out of the oven. Watch my video for the Best Tips on Baking Keto Cakes.
Sweetener Options
You can use almost any granular sweetener in the cake layers, but the baking time may change so keep your eye on them. Additionally, any confectioners-style sweetener should work in the frosting. I do find that allulose can make things a little softer so allow it to firm up properly in the fridge before adding the glaze.

Frequently Asked Questions
Not all peanut butter is created equal. Some of the commercial brands are highly processed and full of sugar and preservatives. But natural peanut butter that has no added sugar has only about 5 to 6 grams of carbs per 2 tablespoon serving. Most people find they can use it sparingly on a keto diet without issue.
Keto friendly cake like this Chocolate Peanut Butter Cake is made with alternative flours and sweeteners. In this case, almond flour forms the base of the cake, along with protein powder and sweetener.
If you want to prepare this keto cake ahead, make the cake up to the point of adding the chocolate glaze. Then wrap carefully and refrigerate for up to 5 days. Add the glaze a few hours before serving.


Keto Chocolate Peanut Butter Cake
Equipment
Ingredients
Cake
- 2 cups (224 g) almond flour
- 3/4 cup (136.5 g) Swerve Sweetener, or other granular sweetener
- 6 tbsp dark cocoa powder, or Dutch process
- 1/3 cup (36 g) unflavoured whey protein powder, or egg white protein powder
- 2 1/2 tsp (2.5 tsp) baking powder
- 1/2 tsp (0.5 tsp) salt
- 1/2 cup (115 g) sour cream, softened
- 3 large eggs
- 1 tsp vanilla extract
- 2 to 4 tbsp (2 tbsp) water
Peanut Butter Frosting
- 3/4 cup (193.5 g) creamy peanut butter
- 4 ounces (113.4 g) cream cheese, softened
- 1/2 cup (113.5 g) butter, softened
- 3/4 cup (136.5 g) Swerve Confectioners, or other powdered sweetener
- 1 tsp vanilla extract
- 3/4 cup (178.5 g) heavy whipping cream
Chocolate Glaze
- 1/4 cup (59.5 g) heavy whipping cream
- 1 oz (28.35 g) unsweetened chocolate, chopped
- 1 tbsp Swerve Confectioners
- 1 tbsp allulose, granular
Instructions
Cake
- Preheat oven to 325ºF and grease three 8-inch round cake pans well. Line the bottom of the pans with circles of parchment and grease the parchment.
- In a medium bowl, whisk together the almond flour, sweetener, cocoa powder, protein powder, baking powder, and salt.
- Stir in the sour cream, eggs, and vanilla. Stir in the water one tablespoon at a time until the batter is thick but pourable.
- Divide batter evenly among prepared cake pans and bake 15 to 20 minutes, or until just firm to the touch.
- Remove and let cool completely in the pans.
Peanut Butter Frosting
- In a large bowl, beat the peanut butter, cream cheese, and butter together until very smooth, about 2 minutes. Beat in the sweetener and vanilla extract.
- In a separate bowl, whip the cream until it holds stiff peaks. Fold into the peanut butter mixture until no streaks remain.
To Assemble
- Place one layer of cake on a serving platter and spread with about one quarter of the frosting. Top with another layer of cake and another quarter of the frosting.
- Add the remaining layer of cake and spread the top and sides with the remaining frosting. Refrigerate for one hour to firm up.
Chocolate Glaze
- In a small saucepan over medium heat, bring the cream to a simmer. Remove from heat and add the chopped chocolate. Let sit a few minutes to melt.
- Add the sweeteners and whisk to combine. Let cool a few minutes to thicken, and then slowly drizzle over the top of the cake along the edges, letting it drip down the sides.
- Smooth the remaining glaze over the top of the cake. Top with keto peanut butter cups and sprinkles, if desired.
Notes
Nutrition
Nutritional Disclaimer
Please note that I am not a medical or nutritional professional. I am simply recounting and sharing my own experiences on this blog. Nothing I express here should be taken as medical advice and you should consult with your doctor before starting any diet or exercise program. I provide nutritional information for my recipes simply as a courtesy to my readers. It is calculated using MacGourmet software and I remove erythritol from the final carb count and net carb count, as it does not affect my own blood glucose levels. I do my best to be as accurate as possible but you should independently calculate nutritional information on your own before relying on them. I expressly disclaim any and all liability of any kind with respect to any act or omission wholly or in part in reliance on anything contained in this website.
Free Bonus: Secrets to Keto Baking!
Sign up for your favorite recipes delivered straight to your inbox plus get our FREE bonus: Secrets to Keto Baking!



After reading a couple comments about the cake being thin I decided to bake 4X9″ cakes and put 1/4 of the frosting between each layer and the rest on top. Omitted the glaze as my kids and grandkids don’t like dark chocolate. Instead I used the leftover cake crumbs from the cake pans on the cake top. I cut up 3 sugar-free peanut butter cups into 1/4s and decorated the top. It looks amazing if I do say so myself. And I do!
Great to hear!
Are there any adjustments needed, to make this recipe as a sheet cake or in a 9×13 pan?
I’m trying to get ingredients so I can make this for my birthday. I was wondering if you you could use egg white protien powder instead of whey protein powder. Wanted to ask before I ordered some. Thanks.
Yes, that would work fine.
Hi Carolyn: Is is possible to make this in 2 9″ pans and cook a little longer?
Probably but you will need to watch them and figure out the timing.
I made this cake for my son’s birthday and it was a big hit! I will definitely make it again but will probably use a 6″ cake pan as the 8″ layers were a bit too thin. But it still turned out really pretty and the taste was amazing.
Great to hear!
Made this cake for my son’s birthday and it was a big hit! I will definitely make it again but will probably use a 6″ cake pan as the 8″ layers were a bit too thin. But it still turned out really pretty and the taste was amazing.
What is the fat content in the sour cream and whipping cream you use in this recipe? The products may very in my country so I want to make sure I use ones with similar content 🙂
Excellent question. This is the sour cream I like (the red container, full fat) https://goodculture.com/sour-cream/
Heavy whipping cream usually has 36% or so fat.
Love everything that you offer us. Thanks for the help with the keto / low carb life. Do you think this recipe would work other nut butters, like cashew for instance? I really don’t like peanut butter.