Go Top

Keto Chocolate Cake in a Mug

Low Carb Cake in a Mug

There comes a time in everyone’s ketogenic life where you crave something sweet. Cookies, brownies, cake – but there’s nothing that you’ve pre-made and nothing that is low carb laying around.

In under 5 minutes you can have a chocolate cake that’s rich, delicious, and sure to slam those cravings straight into the ground. Cake in a mug! Chocolate cake in a mug, that is. Absolutely divine in taste, just like you spent 45 minutes slaving away baking it in the oven.

I know, I know, you need almond flour. And none of that almond meal, either – only a fine grain almond flour for the soft and non-grainy texture. But it’s worth it, trust me!

I used to make these with protein powder, and the consistency is just nowhere close. The protein powder will give a more rubbery texture, and while it’s still good it’s just not great. The almond flour helps give it that real-cake texture that you’re looking for!

The key to the perfect consistency is the egg. Combined with the absorptive powers of the coconut flour and the rising properties of the almond flour, the egg will coax the cake to rise even higher than you might expect and provide an extremely decadent consistency.

Yields 1 chocolate cake or 2 chocolate cake snacks

The Preparation

  • 1 Large Egg
  • 2 Tbsp. Salted Butter
  • 2 Tbsp. Almond Flour
  • 2 Tbsp. Unsweetened Cocoa Powder
  • 1 1/2 Tbsp. Erythritol or Splenda
  • 2 tsp. Coconut Flour
  • 1/4 tsp. Vanilla Extract
  • 1/2 tsp. Baking Powder

TL;DR Instructions

TL;DR Instructions

1. Melt the butter in the microwave for 25 seconds.
2. Add the rest of the ingredients and mix well.
3. If you are making 2 servings, split the batter into 2 ramekins.
4. Microwave for 60-75 seconds.
5. Whip some heavy cream and put on top. (Optional)

The Execution

1. Measure out 2 Tbsp. butter and put it inside the mug you will be using.

2. Microwave the butter for 20-25 seconds until it mostly melted and hot. Add your sweetener to the melted butter.

3. Add your 2 Tbsp. Cocoa Powder to the butter.

4. Add your coconut flour, almond flour, baking powder, and vanilla.

5. Don’t forget the egg! It will help the cake rise.

6. Mix the ingredients well, until everything is combined and there’s as little lumps as you can get. If you’re going to make 2 servings, this is the point where you would measure the batter out into 2 mugs or 2 ramekins.

7. Microwave the cake for 60-75 seconds. It takes 75 seconds in my microwave. If you are making 2 servings, probably 50-60 seconds would do the best – I never make 2 servings because I’m greedy :)

8. While you’re waiting for the cake to cook, whip some cream in a mixing bowl. (Optional)

9. Let the cake cool for a moment and spoon on the whipped cream. (Optional)

10. Enjoy! (Not Optional)


Cuisinart CSB-75 Smart Stick 2-Speed 200-Watt Immersion Hand Blender
Spectrum Expeller Pressed Organic Coconut Oil
Sunbeam 76893.05 Kitchen Bake 5-Piece Bakeware Set

If you make this into 2 servings, it will be: 197 Calories, 19 Fats, 2.6g Net Carbs, and 6g Protein.

Chocolate Cake in a Mug Calories Fats (g) Carbs (g) Fiber (g) Net Carbs (g) Protein (g)
2 Tbsp. Salted Butter 200 24 0 0 0 0
2 Tbsp. Almond Flour 80 7 3 2 1 3
2 tsp. Coconut Flour 20 1 3 2 1 1
1/4 tsp. Vanilla 2 0 0 0 0 0
1 Large Egg 70 5 0.7 0 0.7 6
2 Tbsp. Cocoa Powder 20 1 6 4 2 2
1/2 tsp. Baking Powder 1 0 0.6 0 0.6 0
Totals 393 38 13.3 8 5.3 12
Keto Chocolate Cake in a Mug

If you make this into 2 servings, it will be: 197 Calories, 19 Fats, 2.6g Net Carbs, and 6g Protein.

The Preparation

  • 1 Large Egg
  • 2 Tbsp. Salted Butter
  • 2 Tbsp. Almond Flour
  • 2 Tbsp. Unsweetened Cocoa Powder
  • 1 1/2 Tbsp. Erythritol or Splenda
  • 2 tsp. Coconut Flour
  • 1/4 tsp. Vanilla Extract
  • 1/2 tsp. Baking Powder

The Execution

  1. Melt the butter in the microwave for 25 seconds.
  2. Add the rest of the ingredients and mix well.
  3. If you are making 2 servings, split the batter into 2 ramekins.
  4. Microwave for 60-75 seconds.
  5. Whip some heavy cream and put on top. (Optional)

There are 43 comments

Add yours
  1. kathy

    This was delicious….I didn’t have the sweetener, but used the sugar free caramel syrup instead..When it was done I drizzled heavy cream over it instead of whipping it…

  2. Lee Stevenson

    Tried it tonight, didn’t mind it at all though I thought it tasted slightly eggy (understandable I guess given the egg to cake size ratio).
    Other than that was nice :)

    • Craig

      That actually sounds a bit stange to me, mine didn’t taste eggy in the slightest (the protein brownie one does taste a little eggy). What type of cocoa powder did you use? If you make it again, add a tiny bit more cocoa powder and it might help :)

  3. Shane

    I just made this and it was absolutely amazing. I just wanted to point out though that in the ingredients you say baking powder but in the step by step instructions you say baking soda, I used the baking powder :)

  4. Naomi

    This looks terrific! Wondering if you have actual carbs measured on this too, or just net carbs. My daughter is type 1 diabetic and we need actual carb counts, not just net. She would LOVE this :) Thanks

    • Craig


      If you look at the very bottom of the recipe, it includes all nutritional counts of the recipe including carbs, fiber, and net carbs. It’s 13g “actual” carbs but you can cut that down by possibly subbing the coconut flour for xanthan gum. I haven’t tried that, but in theory it should work.

  5. Scorp

    I noticed the ingredients list calls for “1/4 tsp. Vanilla”, yet I don’t see where to use it in the execution. Also, I see whipped cream is used but not included in the ingredients list.

    Am I missing something here?

    • Craig

      You can mix the vanilla with the egg when it goes in. Since it’s part of the wet ingredients. As for the cream it’s optional but I always put it on so I included it in the pictures/recipe. I’ll update the post to include the vanilla with the egg and the whipped cream as optional. Some people go with sugar free syrups and things like that, so you’re welcome to add your own creative spin on it if you’d like.

  6. Nourishing Nibbles in the Cape

    So divine, and inspiring, thank you for sharing. I’ve turned it into a Cappucino Cup Cake and posting on my blog, giving you full credit for inspiration, of course! I’ve also added a link for readers to check out your blog! Much love and gratitude, oh and happy Nibbling xox

  7. Christine

    Can one die go to choc heaven and still live? Thanks, you saved the day with this one!! Great Wonderful Try It!! I’m telling you try it!! My mico runs quick.. 40 sec works.

    • Craig

      Haha Christine I think if I ate these often I’d be in a chocolate coma! Super happy it turned out, I think I forgot to mention that some microwaves run hotter than others – so sorry about that!

  8. Laura

    I just wanted to say thanks for this recipe! I made this for dessert after turning your almond flax slider buns in to mini pizzas for dinner (delicious). I didn’t add whipped cream, but I did drizzle over a generous amount of Da Vinci Caramel syrup….it soaked right in to the sponge, yum! I didn’t share either, oops!

  9. Lars

    I made it today and the consistency was great! My problem is the coacoa powder. I just used about 1/4 of what you wrote in the recepie and still ended up with a black cake and it made the cake bitter as heck. Going to try it tomorrow with even less powder.

    • Craig

      While it is similar, it’s not really the same thing. To be quite honest with you, there’s always going to be a similar version of every single recipe ever. Cooking has been around for a very long time. I guest posted over on Mellissa’s site (the Dirty Blondie Pancakes) so I respect her enough to cite her work if I used it, but I did not actually use her site to come up with the recipe.

  10. Tanya

    Just bought ground almonds and erythritol because I wanted to try this mug cake recipe!! ^.^ I usually made my mug cakes with just coconut flour but adding almond flour and using less coconut flour brought it closer to an actual cake-like texture and flavour. It’s a little high calorie for a snack that I can gobble down just like that – but what can I say. Who would want to share? It tastes better than normal flour and sugar mug cakes!!!! :p Thanks Craig!

  11. Jeff

    Great recipe, but it could be faster to put together. Here’s the easy-mode bulk dry-mix version.

    16x Dry Mix
    2 cups Almond Flour
    2 cups Unsweetened Cocoa Powder
    1 1/2 cups Erythritol or Splenda
    2/3 cup Coconut Flour
    2 2/3 tbsp Baking Powder

    Single Serving From Dry Mix
    2 Tbsp. Salted Butter, microwave for 25s
    1 Large Egg
    2/3 cup Dry Mix

    Mix ingredients into melted butter, microwave for 60-75s

    • Craig


      I’ve mentioned in other comments before that I don’t include erythritol because it’s not processed by humans. Splenda is, but as mentioned on the site I don’t use it anymore. I mainly use erythritol and stevia now. Erythritol can’t be broken down by humans and is mainly excreted by us in our urine. Many people don’t know this and would see a large carb count for the sweetener and automatically be drawn away or think this website is not low carb.

  12. Img

    A very nice recipe, thank you!
    By the way, what is the wattage of your microwave? Saying ‘microwave on high’ is not as immediately useful as saying, for example, ‘microwave at 1000W’. Using specific wattage would allow the reader to make timing adjustments to their own microwave.

  13. Rachel M

    Dear God, this is good!!! I used Nectresse for the sweetener since that’s what I had on hand. It came out absolutely PERFECT. I actually felt like I was cheating!

  14. Lara

    Hey Craig, I made 2 of these the other night, along with some homemade Whipped Cream….it was soooo good!! But had a question…mine was pretty dry…what could I do to increase the moisture? Add a little more butter? Thanks ahead of time :)

    • Craig

      Susan, you can do this in the oven at 350 at the 8-12 minute range. I haven’t done it myself but this is based on the feedback others have given. Hope that helps!

  15. sa916

    craig, can I use stevia for this instead of splenda? if so, is there a specific brand you prefer? I use truvia for coffee/tea.

  16. Julie

    I just made this. Delicious!!! I added a bit of organic instant coffee crystals and 1 tsp coconut oil to mine. Also only used 1 T cocoa powder bec I don’t care for super dark chocolate cakes. Baked perfectly in my oven in 1 minute. Drizzled w/ SF choc syrup. The only thing that could have made it better would have been some whipped cream (or coconut cream). However, the first spoonful was so good, I didn’t want to wait any longer to enjoy it! Something to look forward to next time, lol. Thanks for posting, Craig!

  17. Kurt

    How can this be so delicious? I’ve paid ridiculous money for low-carb desserts that tasted just awful. And all this time a delicious treat was just 5 minutes away in my own kitchen! Love to see all the erythritol recipes. Been using it for years (buy in bulk online). Just saw all the variations on “cake in a mug” on your site… peanut butter chocolate! Are you kidding! Thank you for the inventive, tested and delicious recipes! I know getting them right takes a ton of time and effort. I bought both of you books too!

    Thanks for all the hard work!

    • Craig

      Wow Kurt – that means a lot – thank you! I’m glad you’re liking the mug cake (and hope you enjoy the others too, as much as I do). The peanut butter chocolate one and the churro ones are 2 of my favorites. Let me know whatcha think of them!

  18. Stefania

    I’m planning on trying this tomorrow :) I was wondering If I can double the almond flour and omit the coconut flour since I don’t have any at this time. Otherwise If using xanthan gum as suggested in another reply, how much should I use?

    • Craig

      I think 1 tbsp. more almond flour would do it. Otherwise you could add just a pinch of xanthan and see where it takes you. Xanthan is extremely powerful (1/4 tsp. for a whole pot of a soup to thicken). So for a mug cake, it would only be a small pinch at a time until you are happy with the thickness.

  19. Shelli

    Just started keto two weeks ago. I found your website and this is the first recipe I have tried. I didn ‘t think this could be that good….. Cake in a cup?? It was very good. I ate it warm with Land O Lakes sugar free whipped cream on top. YUM. Thanks Craig. I will be trying more recipes soon!!!

Post a new comment

Let's face it, keto can be hard. But why not take all the guess work out and make it as simple as possible? Well, you can!

Sign up for this newsletter to receive weekly and bi-monthly tips, tricks, guides, and recipes all sent to your inbox for FREE!

Close this popup