The BEST EVER Keto Chocolate Mug Cake

Annie Lampella @ Ketofocus

By Annie Lampella, Pharm.D.

Published August 26, 2020 • Updated March 2, 2026

Reader Rating
4.8 Stars (13 Reviews)

This post may contain affiliate links. See my disclosure policy.

When chocolate cravings hit, I reach for this keto chocolate mug cake. Two minutes, one mug, and 3.8g net carbs for something rich and fudgy enough to make you forget about regular cake.

I have been making this chocolate mug cake since I first started creating keto recipes, and it is still the one I come back to when I need something sweet right now. Not tomorrow. Not after a trip to the store. Right now, with ingredients I already have in the pantry.

The base is simple: one egg, melted butter, almond flour, cocoa powder, and a little coconut flour for structure. That coconut flour matters more than you think. It absorbs liquid and gives the cake body so it does not turn into a puddle. I have tested this ratio dozens of times, and this combination gives you a center that is fudgy without being wet.

The sweetener you pick changes the texture. I use monk fruit for a lighter, more cakey crumb. But I have also made this with allulose, and allulose holds more moisture, so you get a denser, fudgier result. My reader Mike tried the same swap and confirmed it. If fudgy is your goal, go with allulose. If you like a little more lift, stick with monk fruit. Either way, the carb count stays the same.

This is also one of those recipes that takes well to add-ins. A teaspoon of peanut butter stirred into the batter before microwaving gives you something that tastes like a low carb peanut butter cup. Sugar-free chocolate chips on top work too. I have even done a dollop of whipped cream after it cools for two minutes, which makes the whole thing feel more like a real dessert. If you like the chocolate chip angle, try my chocolate chip version.

If this is your first time making one of these, use a 12-ounce mug or bigger. Anything smaller and the batter rises over the rim during cooking. I learned that the hard way. A wide, shallow mug also gives you more surface area for crispy edges, which I prefer over a tall narrow one.

For the microwave, 60 to 75 seconds is the window. I check mine at 60 and give the mug a gentle shake. If the center still wobbles, I add 10 more seconds. You want it set but not rubbery. Every microwave runs differently, so the shake test is more reliable than a fixed time.

I keep coming back to this because it scratches the itch without turning into a project. When you want something more involved, my easy keto chocolate cake is worth the extra effort. For variety without the commitment, I rotate between this, my red velvet version, and the pumpkin version depending on my mood.

How to make it

Grab a 12-ounce or larger microwave-safe mug and add all the dry ingredients first: almond flour, cocoa powder, coconut flour, baking powder, sweetener, and a pinch of salt. Give those a quick stir so the leavening is evenly distributed. Then crack in the egg, pour in the melted butter, and mix until smooth. Scrape the sides down so there are no dry pockets hiding at the bottom.

Microwave on high for 60 seconds, then give it a gentle shake. If the center wobbles, add 10 to 15 more seconds. I find 65 seconds is my sweet spot, but every microwave is different, so trust the shake test over the clock. Once it is set, let it cool in the mug for a minute or two before eating. The same technique works for my birthday version too.

Youtube
640K+ subscribers
Discover More Keto Recipes on Our Channel

Explore 685+ keto recipe videos with step-by-step instructions, tips, and tricks to make keto easy.

Recipe
Print Pin

The BEST EVER Keto Chocolate Mug Cake

4.8 (13) Prep 1m Cook 1m Total 2m 1 servings

Ingredients

Step by Step Instructions

Step by Step Instructions

1
Add the ingredients

Add all ingredients to a mug or microwave safe small bowl.

mini cake ingredients in a white coffee mug
2
Mix it

Mix together until combined.

chocolate cake mixed in a white mug
3
Microwave it

Microwave for 60 to 75 seconds or until the cake has risen and is set in the middle. It should not be wobbly when you shake it. Remove from microwave to let cool.

small baked chocolate cake in a white mug
Tip Baking times may vary based on your microwave.
Nutrition Per Serving
382 Calories
34.9g Fat
9.9g Protein
3.8g Net Carbs
9g Total Carbs
1 Servings
Nutrition disclaimer

The nutrition information provided is an estimate and is for informational purposes only. I am a Doctor of Pharmacy (Pharm.D.); however, this content is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always consult your physician or other qualified health provider before making any lifestyle changes or beginning a new nutrition program.

Your Macros. Your Recipes. Calculated in 60 Seconds.

Get personalized keto macros and instantly see which recipes fit your targets. No more guessing what to eat.

Get My Macros + Recipes →

Get weekly keto recipes from Annie.

Join the list and get new recipes delivered to your inbox every week.

The BEST EVER Keto Chocolate Mug Cake

Frequently Asked Questions

Can I bake this in the oven instead of the microwave?

I have done this in a ramekin at 350 degrees for about 12 to 14 minutes. The texture comes out more like a keto lava cake, with crispier edges and a softer center. I actually prefer the oven version when I have the time. Grease the ramekin first or it sticks.

Why did it overflow in the microwave?

Your mug is too small. I use a 12-ounce mug minimum because the batter rises quite a bit from the baking powder and egg. If you only have smaller mugs, split the batter between two of them and reduce the cook time by about 15 seconds each.

Can I make this without eggs?

I have tried it with a flax egg (1 tablespoon ground flax plus 3 tablespoons water, rested 5 minutes) and it works. The texture is denser and a little more crumbly, but it still holds together. I would not skip the egg replacement entirely or you end up with chocolate soup.

Is allulose better than monk fruit for this recipe?

They both work, but I get different textures from each. Allulose holds more moisture, so the cake comes out fudgier. Monk fruit gives a lighter, more traditional crumb. I go back and forth depending on whether I want fudgy or cakey that day. The carb count stays the same either way.

What can I use instead of almond flour?

Sunflower seed flour is my go-to swap for nut-free baking. Use the same amount. If you want to use only coconut flour, cut the total to about 2 to 3 teaspoons. Coconut flour absorbs a lot of liquid, so if you add too much, the cake turns dense and dry. I figured out that ratio after two readers asked me the same question. For more almond flour desserts, try my low calorie brownies.

How can I make this dairy-free?

I swap the butter for coconut oil, same amount. The coconut flavor is subtle and actually pairs well with the chocolate. I have also used a dairy-free butter stick and could not tell the difference in the finished cake.

Can I pre-mix the dry ingredients ahead of time?

I do this all the time. I measure out the almond flour, cocoa powder, coconut flour, baking powder, sweetener, and salt into small zip bags. When I want one, I dump a bag into a mug, add the egg and melted butter, stir, and microwave. I keep three or four bags in the pantry so there is zero friction between me and chocolate.

What toppings work best?

My favorite is a teaspoon of peanut butter stirred in before microwaving. One of my readers, Brenda, does the same thing and it really does taste like a peanut butter cup. After cooking, I sometimes add a spoonful of sugar-free whipped cream or a drizzle of melted sugar-free chocolate. For something with deeper chocolate flavor, try adding an extra teaspoon of cocoa powder.

Similar Recipes

Others looking for “The BEST EVER Keto Chocolate Mug Cake” also liked:

Low Carb Chocolate Mug Cake Recipe

a thick mug cake popping out of a mug with a dollop of whipped cream on top This low-carb chocolate mug cake is rich, fudgy, and absolutely not diet food. The texture is fluffy enough that even serious chocolate lovers won’t believe it’s sugar-free. And since it’s homemade, you know exactly what’s in it. The whole thing takes about two minutes from bowl to first bite. Top with fresh whipped cream for the full dessert experience. fluffy chocolate cake coming out of a white mug topped with whipped cream

What is a Mug Cake?

A mug cake is exactly what it sounds like – a cake you mix and cook right in a mug using the microwave. They’re single-serving desserts you can throw together in minutes when cravings hit.

Mug vs Ramekins for Making Mug Cakes

Most of the time I just use a regular coffee mug. But if you want a cuter presentation, you can use a ramekin too. Mix in the mug and transfer, or if your ramekin is big enough, use it for everything – mixing to serving. Either way, spray it with cooking spray first so the cake doesn’t stick. cutting out a bite of chocolate keto cake with whipped cream on top in a white ramekin

Portion Controlled Desserts

One of the things I love about mug cakes is the built-in portion control. You’re making one serving, so there’s no leftover cake tempting you from the counter. The benefits of portion control are not limited to maintaining a healthy weight, but also include:
  • Easy food digestion
  • Feel more energized throughout the day
  • Controlled blood sugar levels
  • No ingredients wasted
  • Less dirty dishes

How to Make a Sugar-Free Chocolate Mug Cake in the Microwave?

Making this in the microwave takes almost no effort.
  • Use a microwave-safe mug or a sufficiently-sized ramekin with cooking spray.
  • Mix all ingredients like almond & coconut flour, cocoa, and monk fruit sweetener in it.
  • Stir and add any extras you want (think flavor extracts like vanilla or coffee to boost the chocolate flavor).
  • Put the mug or ramekin in the microwave and give it around 60 seconds until batter appears to be all fluffy. Do not microwave for more than 90 seconds.
  • Let the cake cool for a minute and enjoy.
chocolate mug cake ingredients piled into a white coffee mug

Baking the Chocolate Mug Cake in the Oven

If you prefer the oven, here’s how:
  • Use a ramekin instead of a mug (your mug may not be oven safe)
  • Mix all ingredients in the ramekin
  • Stir to make a batter
  • Put the ramekin in the pre-heated oven at 325 degrees F for 5-10 minutes
  • Allow the cake to cool and enjoy

How to Make a Dairy-Free Chocolate Mug Cake

To make this dairy-free, replace butter with ghee (highly-clarified butter) or coconut oil. Both work great for low-carb baking.

Choosing Your Cocoa Powder

This recipe uses cocoa powder for all the chocolate flavor. Make sure you’re using 100% unsweetened cocoa powder – some brands sneak in sugar and extra carbohydrates.

Can I Make a Larger Cake with this Recipe?

Yes! Just triple or quadruple the ingredients, pour them into a greased baking dish or cake pan, and bake at 325 degrees for 10-12 minutes.
About the Author
Annie Lampella, Pharm.D.

Annie Lampella, Pharm.D.

Annie is a Doctor of Pharmacy, mom, and the recipe creator behind KetoFocus. With a B.S. in Genetics from UC Davis, she has over 14 years of experience developing family-friendly keto recipes based on the science of human metabolism.

More Dessert Recipes

slice of keto carrot cake
45 Mins
Keto Carrot Cake with Almond Flour
4.9 Stars (95 Reviews)

Almond flour, real shredded carrots, and cream cheese frosting with sour cream. 5.6g net carbs per slice. I make this every Easter and Thanksgiving.

See the Recipe
keto chocolate chip cookie stack
145 Mins
Keto Almond Flour Chocolate Chip Cookies
4.8 Stars (41 Reviews)

I accidentally invented these while making butter bars, and they turned out to be the chewiest almond flour chocolate chip cookies I've ever baked....

See the Recipe
five golden brown chocolate chip cookies on the table with dark chips spread around
16 Mins
Best Keto Chocolate Chip Cookies
4.7 Stars (34 Reviews)

Almond flour and coconut flour together create a keto chocolate chip cookie that's close to Toll House. 1.2g net carbs per cookie. Crispy edges, soft...

See the Recipe
creamy chocolate mousse in a small dish topped with sprinkles and strawberries
3 Mins
Keto Chocolate Mousse
4.9 Stars (16 Reviews)

When a chocolate craving hits, this 3-ingredient mousse saves the day. No cooking, no eggs, and I can have it ready in under 10 minutes.

See the Recipe
A keto pretzel chocolate chip cookie broken open to show a soft center filled with melted chocolate chips and crunchy pretzel pieces.
20 Mins
Keto Pretzel Chocolate Chip Cookies
4.4 Stars (7 Reviews)

These thick, chewy keto pretzel chocolate chip cookies land at about 2g net carbs each. I skip chill time so the pretzel pieces stay crunchy, and six...

See the Recipe
pretty fluted edges on a pie crust
65 Mins
Keto Pie Crust
4.8 Stars (28 Reviews)

I've been refining this recipe since I started keto in 2012. Almond flour, coconut flour, cold butter, and one secret ingredient create a flaky,...

See the Recipe
Reviews 27
4.8 Stars (13 Reviews)
  1. J
    James B. Mar 23, 2026

    I swapped the monk fruit for a tablespoon of allulose and honestly wasn't expecting much since I barely cook, but this little mug cake came out so dense and fudgy I had to double-check the net carbs. Only 3.8g and it took less than 75 seconds in the microwave. I'm completely hooked.

    1. Annie Lampella
      Annie Lampella Mar 26, 2026

      Allulose holds more moisture so fudgier makes sense. I actually prefer it that way. Monk fruit gives you the lighter crumb.

  2. B
    Brooke Lee Mar 21, 2026

    Made this while my husband was in the kitchen and he went quiet after the first bite, then just said 'wait, that's actually keto?'

    1. Annie Lampella
      Annie Lampella Mar 22, 2026

      That pause before the question is the best reaction. Show him the macros and he still won't buy it.

  3. S
    Sarah Mar 20, 2026

    Making these for my husband and kids this weekend and trying to figure out how to do four at once. Can I mix a big batch and just divide it into four mugs, or does each one need to be measured separately? I'm fuzzy on why there's both almond flour and coconut flour in there (not sure if the ratios hold when you scale up). Microwave question too: can I run all four mugs at the same time, or does each one need its own full 60-75 seconds? Really hoping these turn out. Nothing beats ending Sunday dinner with everyone getting their own little cake.

    1. Annie Lampella
      Annie Lampella Mar 23, 2026

      Mix one big batch and divide into four mugs. The ratio holds at 4x, no adjusting needed.

      Can't microwave all four at once though. Each one needs its own 60-75 seconds or the centers come out gummy. Stagger them while dinner wraps up.

  4. J
    Jordan Mar 16, 2026

    My grandmother used to make individual chocolate cakes in ramekins, one per person. Something about the fudgy center took me right back. Didn't expect 60 seconds in a microwave to do that.

    1. Annie Lampella
      Annie Lampella Mar 20, 2026

      Try it in the oven in a ramekin sometime. 350, about 12-14 min. Edges crisp up, center stays fudgy. Basically what your grandmother was making.

  5. R
    Rita Mar 10, 2026

    Been keto almost two years and had basically given up on warm chocolate cake. Made this Tuesday night right when I was about to cave on a craving, sat there watching the 75-second timer like an idiot. Cut into it, saw how fudgy the center was, and okay, I got a little emotional. The dark cocoa actually tastes like chocolate, not that weird fake-sweet flavor from most keto desserts. First time mine came out a touch dry, so I knocked it to 65 seconds and that fixed it. 3.8g net carbs. This is my Tuesday night now.

    1. Annie Lampella
      Annie Lampella Mar 12, 2026

      Higher-wattage microwaves need that. Mine runs 1200W and I pull it at 65 or the edges get rubbery.

  6. L
    Luz Mar 7, 2026

    I've made plenty of keto desserts that were fine but never quite right, so I wasn't expecting much from a 75-second microwave cake. Almost didn't bother. The fudgy center stopped me cold. I stood there eating it straight from the mug thinking there is no way this is 3.8 net carbs. Already on my second one.

    1. Annie Lampella
      Annie Lampella Mar 8, 2026

      The fudgy center is what gets me too. Two in one sitting is just math at 3.8 net carbs.

  7. J
    Jen Mar 1, 2026

    I always end up with a rubbery texture when I microwave mug cakes, so I usually pull mine early and finish it in the toaster oven for a couple minutes. Would that still work here or is the full 60 to 75 seconds what gets it to that fudgy texture? Don't want to mess with a recipe that already sounds dialed in.

    1. Annie Lampella
      Annie Lampella Mar 2, 2026

      Yeah that works. Pull it at about 45 seconds and finish 2-3 minutes at 350 in the toaster oven. You'll get crispier edges and a softer center, more lava cake than fudgy, but the texture won't be rubbery.

    2. J
      Jen Mar 2, 2026

      Crispier edges and softer center sounds like an upgrade honestly. Trying 45 seconds this week.

  8. C
    Corinne Feb 24, 2026

    My mom used to make chocolate mug cakes after school when I was little. I stopped thinking about them when I went keto, just kind of filed them under 'gone.' Made this on a cold night this week and when it came out of the microwave with that fudgy center, I sat there for a second. It just took me right back. The 65-second mark was the sweet spot for mine. Thank you for bringing this one back.

    1. Annie Lampella
      Annie Lampella Feb 27, 2026

      Something about that fudgy center just does it. 65 seconds is my sweet spot too. Glad it brought that back.

  9. M
    Mike Feb 16, 2026

    swapped the monk fruit for allulose, little more fudgy. same carbs tho

    1. Annie Lampella
      Annie Lampella Feb 16, 2026

      Allulose does that, holds more moisture. I go back and forth between the two depending on whether I want fudgy or cakey.

  10. J
    Jenna Apr 4, 2024

    I don't have coconut flour. Can I replace it with something else?

    1. Annie Lampella
      Annie Lampella May 15, 2025

      Try adding another tablespoon or two of almond flour to replace the coconut flour.

  11. B
    Brenda Feb 22, 2024

    I really enjoyed the texture and flavor. I put a teaspoon of peanut butter in it and it was yummy!

    1. Annie Lampella
      Annie Lampella Feb 23, 2024

      I actually put you in the FAQ for this one. The peanut butter cup thing is real.

  12. J
    Joyce Feb 2, 2021

    I wanted something sweet and remembered your mug cake recipe. It was delicious and the serving size was perfect with no leftovers. I added a little sugar free whipped cream for good measure Great recipe and thank you so much for helping to make keto sustainable!!!

    1. Annie Lampella
      Annie Lampella Feb 3, 2021

      The whipped cream is a good call. Try a pinch of espresso powder on top too, makes the chocolate come through more.

  13. D
    Dianne Jan 11, 2021

    I have two children with nut allergies. I cannot have any type of almond flour or nut flours in my house. Can you give me the alternative to using coconut flour instead? Is it for every 1 tsp of almond flour I use two tsp of coconut flour? Thanks so much! Love your channel! It’s my saving grace and my fave ?

    1. Annie Lampella
      Annie Lampella Jan 12, 2021

      I usually will 1/3 the measurement if I'm swapping coconut flour for almond flour. Try 2-3 teaspoons of coconut flour. I know it doesn't seem like a lot but coconut flour absorbs a lot of liquid so if you add too much the cake will be really dense and dry.

Leave a Review