This is the ultimate keto chocolate cake recipe! It’s moist and rich, with a deep chocolate flavor and perfect texture. Dairy free options too.
You want the best keto chocolate cake? Okay fine, you asked for it! At the request of many readers, I am finally sharing the chocolate cake from The Ultimate Guide to Keto Baking.
This is the recipe that people rave about most after they purchase my book. This is the keto chocolate cake that wins everyone over, even the harshest keto critics.
This is the chocolate cake that no one can believe is low carb, sugar-free, and even dairy-free.
The secret to its fabulosity? Mayonnaise! Read on to find out more.
The Ultimate Keto Chocolate Cake
I have developed any number of low carb chocolate cake recipes in my day. There are so many wonderful ways to make it, all with little variations. Like Keto Texas Sheet Cake, or my low carb Slow Cooker Chocolate Cake.
But sometimes you want just want the classics. And what’s more classic than a moist two layer chocolate cake with creamy chocolate frosting?
When I wrote my book, I aimed for a good mix of both the classics and more unique recipes. I wanted to show people how amazing and versatile keto baking really can be. And I flatter myself that I achieved that goal.
So creating a really good keto chocolate cake was of the utmost importance. You can’t have a baking book that calls itself “The Ultimate Guide” without that, now can you?
But the response to this cake blew my mind. My readers and fans have gone nuts for it, have shared it with friends and family, and have sung its praises far and wide. And for that I am ever so grateful.
How to make Keto Chocolate Mayonnaise Cake
Don’t be intimidated by this cake, as it’s actually quite easy to make. Be sure to check out the video in my recipe card for all the tips and tricks!
Grease and line your cake pans
Grease two 8 inch cake pans and then line them with parchment paper circles. You can buy pre-cut circles like these ones (very useful!), or you can simply cut them out yourself. This helps keep your cake from sticking, no matter how good, or not, your cake pans are.
Whisk the dry ingredients
This is an almond-flour based recipe, but you can try substituting sunflower seed flour if you need to be nut free. And the espresso powder is optional, but it does help deepen the chocolate flavor. I promise it won’t taste like coffee in the end.
Stir in the mayonnaise
Mayonnaise takes the place of butter and creates an unbelievably moist cake. It also makes the cake easier than many, because there is no need to cream the fat with the sweetener. One less step and one less bowl to clean!
Whisk in the other wet ingredients
The only other additions are eggs, water, and vanilla. Because it’s made with mayonnaise, this keto chocolate cake it totally dairy free.
Bake until just firm
Baking is said to be a science, but knowing when your cakes are done is more of an art, in my opinion. Every oven is different, and that’s why my recipes give you a range of bake time.
Tactile and visual cues are much more accurate. So in this case, you want the cake to feel firm to the touch, and spring back when lightly pressed.
How to frost keto chocolate cake
You have lots of options here and you are not limited to the dairy free frosting recipe I included. The sky’s the limit! Here are some other delicious ideas:
- Best Keto Chocolate Frosting
- Keto Swiss Meringue Buttercream
- Chantilly Cream Frosting
- Sugar Free Peanut Butter Frosting
- Caramel Frosting (you will need to make 1.5 times the amount for a two layer cake).
- Cookies and Cream Frosting
Can you make keto chocolate cake in advance?
This is a great recipe for making ahead by a day or two. I think keto frosting are always best fresh, so I recommend making the cakes and frosting it on the day you plan to serve it.
The cake layers can be frozen, tightly wrapped, for up to 3 months. You can also freeze the finished cake, but the frosting may change consistency somewhat after it thaws.
More amazing keto cake recipes
- Keto Black Forest Cake
- Brownie Bottom Keto Cheesecake
- Cinnamon Walnut Coffee Cake
- Keto Devil’s Food Cake
- The Best Coconut Flour Cupcakes
Keto Chocolate Cake
Ingredients
Cake
- 2 cups almond flour
- ¾ cup Swerve Sweetener
- ⅔ cup cocoa powder
- 1 tablespoon baking powder
- 1 teaspoon espresso powder (optional)
- ½ teaspoon salt
- 1 cup mayonnaise
- 3 large eggs
- ⅓ cup water
- 1 teaspoon vanilla extract
Dairy Free Chocolate Frosting
- 2 ounces unsweetened chocolate chopped
- ¾ cup plus 1 tbsp coconut oil divided
- 4 ounces dairy free cream cheese softened
- 1 cup powdered Swerve Sweetener
- 1 teaspoon vanilla extract
- ⅓ to ½ cup full fat coconut milk
Instructions
- Preheat the oven to 350F and grease two 8-inch round cake pans. Line the bottoms of the pans with parchment and grease the parchment.
- In a large bowl, whisk together the almond flour, sweetener, cocoa powder, baking powder, espresso powder, and salt.
- Stir in the mayonnaise, eggs, water, and vanilla extract until well combined. Divide the batter evenly between the prepared pans and spread to the edges and smooth the tops.
- Bake 20 to 25 minutes, until the cakes are just firm to the touch. Remove from the oven and let cool in the pans for at least 20 minutes, then flip out onto a wire rack to cool completely. Peel off the parchment paper.
Dairy Free Frosting
- Place the chocolate and 1 tablespoon of the coconut oil in a microwave safe bowl. Melt on high in 30 second increments, stirring in between, until smooth. Allow to cool to lukewarm. Alternatively, you can melt in a heatproof bowl over a pan of barely simmering water.
- Place the remaining coconut oil in a large bowl. If it is very hard, microwave it for 15 seconds or so. It should be softe enough to beat without being melted. Add the cream cheese and beat until smooth. Add the sweetener and vanilla extract and beat until well combined.
- Drizzle in the melted chocolate and beat again until smooth. Add the coconut milk a few tablespoons at a time until a spreadable consistency is achieved.
To assemble
- Place one layer of cake on a large plate or cake platter. Top with one third of the frosting, spreading to the edges.
- Gently place the second layer of cake on top and spread the top with another third of the frosting.
- Spread the the sides with the remaining frosting.
Elaine says
I have not made this cake but I am going to. I have made the DingDong cake and if you are a chocoholic, like me, THIS CAKE IS FOR YOU!!!
Nedra says
I love your baked goods. This however, wound up tasting like mayo. Oddly, the raw dough did not have that taste. In rereading everything, I did forget the 1/3 cup water. All the other ingredients and steps as the recipe states were followed. Idk what went wrong.
Carolyn says
What mayo did you use? I don’t taste it AT ALL. 🙂
Meredith Marie Webb says
Hello,
Thanks for this recipe. I worked for Lakanto and have eaten countless keto/lowcarb sweets over the years. I started keto since I moved to Texas and have been loving almond flour baking with my lakanto sweeteners. I ran out of cocoa powder so I got some more at costco. Every time I’ve tried to make some sort of keto chocolate cake now including this one, the cake turns out so dry! I keep trying to figure out what it is. My first instinct was maybe my sweetener is just old and has been affected by the humidity. But it has been that way this entire time and I was still able to make a delicious moist chocolate cake. Then it occured to me, when I got more cocoa powder, I just got whatever was at costco at the time, which was technically cacao powder, not cocoa powder. online resources say these are interchangeable but I wonder if that’s why the cake is dry and bland. Your thoughts would be appreciated. I used all fresh ingredients including primal kitchen mayo which is oil and egg.
Carolyn says
Yes, natural Cacao does tend to be more dry than dutched cocoa powder. It doesn’t mean you can’t use it but you may need to add more oil to offset it.
Katie Moon says
Do you know if this would be successful in a 9×13? How would it change the baking time? Thank you so much for sharing the great recipes!
Carolyn says
It would be successful but I can’t guide you on the baking time since I didn’t make mine that way. Start with 20 minutes and check on it frequently after that.
Bill H says
Hi – ok, how did you get ‘keto sprinkles’? You didn’t talk about that at all. I’d make it without them, but I think that would complete the ‘illusion’ (I make things all the time that extended family won’t even try because “hey, he’s keto…..move on…”. 🙁
Lisa says
Hi there just do a search on her home page and you will find the recipe
Erica Maynard says
She mentioned in the video that she got them from an etsy shop. I believe it was this one…
https://www.etsy.com/shop/TheSprinkleCompany
Alexia says
This cake was amazing! I made it to take to my family’s Greek easter celebration and it was a hit even with the non-keto eater. One keto family member even double checked with me that it was actually keto bc it was just that good, she couldn’t believe it. I use your recipes all the time and am definitely adding this one to the list of go to cakes for events. I was curious if this cake could be tweeked into a vanilla cake but just omitting the cocoa powder? I use one of your vanilla cake recipes now that is great itself but THIS cake is just soooo moist I’d love to be able to make a vanilla version too.
Carolyn says
I am so glad you liked it! You can never just omit cocoa powder from a recipe… it’s a bit like flour, it adds bulk and consistency. And since it’s so much more fine and absorbent than almond flour, you’d need to replace it with quite a bit more almond flour to make up the difference. I think you’d need at least another full cup of almond flour, if not another 1 1/3 cup.
Didi says
Only keto cake Hubs not only liked but asked for again again!
Carolyn says
Thanks so much!
Deborah Burks says
Omg, your recipes are a game changer. This chocolate cake recipe is so delicious, best keto cake out there. I was surprised when the recipe called for a cup of mayonnaise but it made the cake so moist and delicious.! I used a new sweetener substitute called Purecane and I like it more than any of the others. Comes in confectioner sugar also for the frosting. I just read your post comparing sweetener substitutes and would love to hear your opinion on Purecane sweetener and if I should be using it for keto.
Thanks for all your delicious recipes, I am hooked! I wish I knew how to add a picture it turned out so nice!
sue davidson says
I followed the recipe but it was very dry and ended up throwing it away. I knew I would not eat or serve it up to a guest. Disappointed because I love the recipes from this site which usually turn up very nice. The 2 cakes I made did not rise…maybe the reason why they are so heavy and dry…same thing happenned with KETO VANILLA BIRTHDAY CAKE….Tasted good but was flat and more like a cookie base.
Carolyn says
I am sorry you are having trouble but there is an issue on your end and I wish I knew what… if things aren’t rising and are dry. Both of these cakes rise and are nice and moist. So… please list the EXACT brands of ingredients and what kind of pans you are using. Then I might be able to diagnose it.
Carolyn says
PS – right after you commented, I got another comment with a rave review. Since the vast majority are rave reviews, I know it’s an issue with something you are using or doing… so I’d like to help if I can.
Dawn says
I always check out the negative reviews so I can read your retort. You don’t suffer fools. Love it.
Carolyn says
Well in this case, I’d really like to help the reader discover what the issue is. Sadly, she has not returned…. It’s just that I do know that, done right, this cake is anything but dry!
Venee says
Hi, what modifications would I make if I wanted to use 9 inch cake pans?
Also, I have monkfruit sweetener, would that be okay?
Thank you!!
Carolyn says
It will just bake faster so keep your eye on it. As for “monk fruit sweeteners”, they are usually mostly erythritol. If so, they should be okay but please don’t be fooled by that marketing gimmick. 🙂
Linda says
This cake is to die for! I put less sweetener in ( we just like it that way) and instead of the water I make a double shot of espresso, to top it off I make a chocolate ganache…..would not suggest eating this before bedtime!!
Once again Carolyn, you and your recipes ROCK!!
Thank you for all of your hard work and dedication!
You make low carb and keto eating exciting and delicious!!
Carolyn says
So glad to hear it!
Eileen says
Made this for my birthday this year and my family dubbed it the best cake I’ve ever made! Perfectly moist and chocolaty. I’ve always loved mayonnaise cake, and was so happy to see you had a recipe for a keto version. For this cake, I was inspired by an old “cake mix doctor” recipe from our pre-keto days, and prepared it in a parchment-lined springform pan that I pre-loaded with one recipe of your pecan syrup before baking. Topped with whipped cream and a sprinkle of pecans crushed with a small handful of chocolate chips. Oh my goodness. Heaven!
Carolyn says
Happy birthday and I am so happy to hear that!
Cathy says
The frosting was way too oily .4 ounces of cream chesse to 3/4 C of coconut oil would not blend. I added an extra cup of Swerve and 2 more oz. cream cheese to get it to look like frosting. I used coconut cooking oil. Could have been my proble.
Carolyn says
I don’t know what “coconut cooking oil” is, but you should be using virgin, unrefined oil like this one: https://amzn.to/34EW7vL
Jasmin P. says
For this recipe is ANY mayonnaise acceptable?
Carolyn says
As long as it’s mostly oil and egg yolks!
Nellie says
I made this cake for my own birthday, with an almond buttercream. Omg, this cake is so good, it barely needed any frosting. My little one liked the cake more than anything else I had!
Carolyn says
That’s fabulous!
Lisa C says
Hi Carolyn, I really like the look of this recipe for my son’s upcoming birthday, can you tell me if you think there would be any issues using UK mayonnaise (I am resident there) or should I try to find an American brand? Thank you.
Carolyn says
I think it would be fine, as long as it’s oil and eggs as the main ingredients.
Chelene Landis says
Amazing taste! So most. It tastes even better if you top it with keto whipped cream
Helen says
My husband and family love this cake.
Jodi says
My cake is not that good. I followed all directions and ingredients and the cake is flat and tastes grainy. Why?
Carolyn says
YOu haven’t given me much to go on here. I don’t know your brand of almond flour, or sweetener. If it’s grainy… then I think you’re using a very coarse almond flour. Could also be your cocoa powder, or your baking powder was old and didn’t help it rise. There are so many factors that make a good cake.
Patty P says
Newly diagnosed and having to be careful with blood sugar. I am a big fan of chocolate snack cake, but not so much frosting. This was great!! I baked it in an 8×8 pan for 35 minutes or so. I had never had a mayo cake before and was doubtful- but moist, chocolaty and delicious!
Cheyenne says
Wow!! I followed your recipe from your book and wanted to come on here and thank you. I made it with the Keto chocolate buttercream frosting. It’s just amazing. Thank you for taking the time to perfect this recipe for us – I have the biggest sweet tooth and I was worried I wouldn’t be able to enjoy an authentic tasting cake again!
Carolyn says
So glad you liked it!