Keto Mug Cake
This post may contain affiliate links. See my disclosure policy.
My keto mug cake recipe is truly the easiest low-carb dessert. It’s rich, chocolatey, and ready in two minutes. 2 grams of net carbs!

Not everyone in my house is on the keto train, so I sometimes need a single-serve dessert to satisfy my sweet tooth. Que, my keto chocolate mug cake. No one would guess anything is missing from this recipe–because there isn’t. It’s made with many of the same ingredients as my hot chocolate mug cake, just with a few swaps to cut the carbs in half.
I’ve made this low carb mug cake countless times to get the texture just right- moist, fluffy, and never dry (the most common mug cake fail!). It’s completely sugar-free, naturally gluten-free, and uses coconut flour and a brown sugar substitute to keep it keto. The best part? It’s ready in just two minutes in the microwave, so you can crush your chocolate cravings instantly!
Arman’s tips before starting

Avoid overcooking. This is the quickest way to ruin a mug cake. I always start with 1 minute of cooking time, then let it sit for 30 seconds before deciding if it needs more time. If it still looks wet all over, microwave it in 15-second intervals until it’s just done.
Use a larger mug than you think you need. Mug cakes rise quite a bit as they cook, so I prefer using a large mug or even a shallow cereal bowl. The one I use holds about 6 ounces (180 mL).
Add the milk last. The milk should only be added to thin out the batter. Add one tablespoon at a time until it reaches the consistency of cake batter.
The cake should look slightly underdone in the center. This always surprises people, but it’s exactly what you want. The residual heat continues to cook the cake as it sits, giving you a soft, fluffy texture instead of a dry one.
What readers are saying
★★★★★ – “This recipe is amazing. I prefer baking with coconut flour, and this is great. Easy to use peanut butter instead of cocoa” – Anne
Key Ingredients

Find the printable recipe with measurements below.
- Coconut flour. My favorite high-fiber, low-carb flour for baking. Sift it to remove clumps.
- Cocoa powder. I used sifted, unsweetened Dutch-processed cocoa powder. Dark or black cocoa powder is great if you want a richer mug cake.
- Brown sugar substitute. Make my homemade brown sugar substitute using molasses and allulose and skip the expensive store-bought kind.
- Baking powder. The leavening agent that gives the cake its rise.
- Salt. Just a pinch to balance out the sweet ingredients.
- Butter OR coconut oil. To add a richer texture. I prefer using melted butter, but coconut oil also works.
- Eggs. Room-temperature eggs mix easily into the batter without firming up the butter or coconut oil.
- Milk. I used unsweetened coconut milk, but any milk works.
- Chocolate chips. Skip the expensive store-bought kind and make your own sugar free chocolate chips.
Recipe variations
Here are a few ways I’ve jazzed up this mug cake to change things up.
- Make a keto vanilla mug cake. Swap the cocoa powder for extra coconut flour and add one teaspoon of vanilla extract.
- Add some mix-ins. Peanut butter, walnuts, pecans, or fresh berries are all great options. Just make sure they don’t exceed 2 tablespoons in the recipe.
- Top the keto mug cake with sugar-free chocolate syrup and keto whipped cream for a more decadent treat.
How to make a keto mug cake

Step 1- Prep. In a small bowl, combine the dry ingredients.

Step 2- Make the batter. Add the wet ingredients and whisk until a smooth batter remains. Fold in the chocolate chips.

Step 3- Assemble. Transfer the cake batter to the greased mug.

Step 4- Microwave for one minute.
No microwave? No problem!
If you’d rather not use a microwave, or if you’re making multiple mug cakes at once, you can bake them in the oven.
Simply prepare the recipe as instructed, then transfer the batter to a greased, oven-safe ramekin. Bake at 350°F (180°C) for 8-10 minutes or until firm on top.
More keto desserts

Keto Mug Cake
Video
Ingredients
- 1 tablespoon coconut flour
- 1 tablespoon cocoa powder
- 1 tablespoon brown sugar substitute or any keto granulated sweetener
- 1/4 teaspoon baking powder
- 1 tablespoon butter melted
- 1 large egg
- 1 tablespoon milk
- 1/2 tablespoon keto chocolate chips
Instructions
- Grease a microwave-safe bowl or mug.
- In a small bowl, add the coconut flour, cocoa powder, brown sugar substitute, and baking powder. Add the butter, egg, and milk, and whisk together until a smooth batter remains. Fold through the chocolate chips.
- Transfer the batter into the greased mug and microwave for one minute.
- Remove the mug cake from the microwave and enjoy immediately.
Notes
- Sweeteners: Allulose or monk fruit sweetener works.
- Vanilla mug cake: Omit the cocoa powder.
- Oven method: Prepare the cake as instructed. When ready to bake, transfer the batter to a greased ramekin and bake at 350°F (180°C) for 8-10 minutes.


















This is now our favorite mug cake! We have tried so many and this is by far the best. It’s moist and tastes like regular cake. Thank you for all of the great recipes!
I also frequently make your keto chicken Parmesan recipe. Another favorite!
it was a bit dry so i had to add more milk but overall pretty good.
Thanks Carolyn! Next time, you can try underbaking it a little, so while its cooling down (and still technically cooking) it will end up the right balance of moist and fluffy.
I used half sweetener and loved it!
So easy to tweak this recipe, thanks for sharing Allora!
This recipe is amazing. I prefer baking with coconut flour, and this is great. Easy to use peanut butter instead of coaco.
Hi Anne, thanks for sharing this. So glad you’re also a coconut flour lover and peanut butter instead of the traditional cocoa sounds like a great idea!
Yummy
Delish! I added half of the batter mixture to a mug, then topped with a layer of sun butter followed by a layer of sugar free chocolate chips, finally added remaining batter and again topped with a few chocolate chips. Soooooo good!
Thanks for the satisfying recipe.
Amazing mug cake, deliciuos
I used 4 tbs of almond flour as that’s what I had on hand and a drip of vanilla as well and it worked out lovely. I really appreciate the fast & easy recipes.