Keto Chocolate Mug Cake With Coconut Flour

5 min prep 24 min cook 5 servings
Keto Chocolate Mug Cake With Coconut Flour
Save This Recipe!
Click to save for later - It only takes 2 seconds!

Love this? Pin it for later!

There’s a special kind of magic that happens when the clock strikes 9:30 p.m., the house is finally quiet, and the only thing standing between me and total bliss is a warm, fudgy bite of chocolate cake. For years I’d stand in my kitchen, debating whether to fire up the oven for a full-sized dessert or settle for a square of 90 % dark chocolate that never quite scratched the itch. Then one rainy Tuesday I grabbed my favorite oversized coffee mug, a jar of coconut flour I’d bought for smoothies, and—on a whim—whisked together the very first version of this Keto Chocolate Mug Cake. Ninety seconds later I was spooning up a molten-center miracle that clocked in at under 5 g net carbs and didn’t require a single pat of butter. Since that night I’ve refined the ratios, tested seventeen brands of cocoa, and taught the recipe to everyone from my carb-counting dad to my pregnant best friend who swore off sugar for nine months. It’s still the dessert I turn to when I want celebration without compromise, and I’m betting it will become yours too.

Why This Recipe Works

  • One mug, one fork: Zero extra bowls to wash and only 90 seconds in the microwave.
  • Coconut flour magic: A tiny amount absorbs liquid like a sponge, keeping carbs low and fiber high.
  • No almond flour needed: Nut-free, school-safe, and perfect for anyone with tree-nut allergies.
  • Deep cocoa flavor: Dutch-process cocoa plus a shot of espresso powder for bakery-level richness.
  • Erythritol-free sweetening: Allulose keeps the crumb tender and eliminates cooling aftertaste.
  • Built-in portion control: Satisfies late-night cravings without leaving half a cake on the counter.
  • Freezer-friendly batter: Mix dry ingredients in bulk, portion into jars, and you’re 60 seconds from dessert anytime.

Ingredients You'll Need

Ingredients

Coconut flour is the star here, but not all brands behave the same. I’ve tested Bob’s Red Mill, Arrowhead Mills, and a handful of boutique labels; the freshest, finest-ground flour yields the most velvety crumb. Look for pouches that feel soft when squeezed—any clumps indicate moisture exposure and will throw off liquid ratios. Store the remainder in a zip-top bag with a silica packet in the freezer; coconut flour’s high fiber content makes it prone to rancidity at room temperature.

Dutch-process cocoa lends that deep, Oreo-adjacent flavor we all crave. If you only have natural cocoa, swap in an extra ⅛ teaspoon of baking powder to balance acidity. For an ultra-dark finish, replace 1 teaspoon of cocoa with black cocoa—the same trick I use for copycat Oreo cookies.

Allulose is my go-to keto sweetener because it dissolves cleanly and won’t recrystallize when the cake cools. If you prefer monk-fruit/erythritol blends, reduce coconut flour by ½ teaspoon; erythritol absorbs slightly more liquid. Stevia drops work in a pinch—use 15 drops and cut almond milk back by 1 teaspoon.

Avocado oil keeps the crumb moist without a pronounced flavor. Melted coconut oil works too, but cool the warm liquid to lukewarm so it doesn’t scramble the egg. If you’re dairy-free, skip the final square of dark chocolate on top; otherwise, a 5 g shard of 100 % cacao pressed into the center creates a molten lava effect that will make you forget delivery chocolate cake forever.

How to Make Keto Chocolate Mug Cake With Coconut Flour

1
Prep the mug

Choose a microwave-safe mug that holds at least 12 oz (350 ml). A wider base gives more even baking than a tall, narrow one. Lightly grease the inside with a swipe of avocado oil or a quick spritz of coconut oil spray; this prevents the dreaded “cake-cement” on the rim and makes cleanup a breeze.

2
Whisk dry ingredients

Into the mug add 1 tablespoon plus 1 teaspoon (9 g) coconut flour, 1 tablespoon (6 g) Dutch-process cocoa, 2 tablespoons (24 g) allulose, ¼ teaspoon baking powder, pinch of sea salt, and a scant ⅛ teaspoon espresso powder. Whisk with a mini fork or the handle of a spoon; the goal is to break up every tiny clump of cocoa so you don’t bite into a bitter pocket later.

3
Add wet ingredients

Pour in 1 tablespoon (15 ml) avocado oil, 1 large egg (straight from the fridge is fine), and 2 tablespoons (30 ml) unsweetened almond milk. Add ¼ teaspoon vanilla extract. Use the fork to stir vigorously for a full 20 seconds, scraping the bottom and sides. The batter will look thin at first; let it rest 30 seconds and you’ll see coconut flour magically thicken it to a glossy brownie-batter consistency.

4
Check the texture

The batter should mound slightly when you lift the fork, but still spread on its own. If it’s stiff like cookie dough, add almond milk ½ teaspoon at a time; if it’s watery, sprinkle in coconut flour ⅛ teaspoon at a time. Humidity, egg size, and even altitude can shift the sweet spot, so trust your eyes.

5
Optional lava center

For a molten core, press a 5 g square of 100 % cacao or a teaspoon of sugar-free chocolate chips into the center until just submerged. Don’t push it all the way to the bottom; you want it suspended so it can melt into a gooey pocket.

6
Microwave magic

Place the mug in the center of the turntable. Microwave on HIGH for 70–90 seconds. A 1000 W oven needs about 80 seconds; 1200 W may finish in 65. The cake will rise dramatically, then settle. You’re looking for the top to look just set and the edges to pull slightly from the sides. Err on the side of under-baking; carry-over heat finishes the center as it rests.

7
Rest & serve

Let the mug stand 2 minutes. The steam trapped under the surface finishes cooking the crumb and prevents burnt-tongue syndrome. Serve straight from the mug with a dollop of whipped coconut cream, or invert onto a plate for a mini cake presentation. A pinch of flaky salt on top amplifies the chocolate notes.

Expert Tips

Temperature matters

Cold egg + room-temp oil = best emulsification. If your egg is icy, set it in a bowl of warm tap water for 3 minutes before cracking.

No almond milk?

Unsweetened cashew, macadamia, or hemp milk work 1:1. Heavy cream thinned with water (1 tablespoon cream + 1 tablespoon water) makes an extra-rich version.

Microwave hotspots

If your oven lacks a turntable, pause halfway and rotate the mug 180° for even rising.

Double-decker dessert

Make two mugs and sandwich them with sugar-free frosting for an instant keto whoopie-pie.

Prep-ahead jars

Multiply dry ingredients by 10, whisk, and portion 3-tablespoon scoops into 4-ounce mason jars. Seal and freeze for up to 3 months. When ready, add wet ingredients and microwave.

Oven option

No microwave? Bake at 350 °F (177 °C) for 12–14 minutes in a greased 6-ounce ramekin set on a small sheet pan.

Variations to Try

  • Peppermint Patty

    Replace vanilla with ⅛ teaspoon peppermint extract and tuck a square of sugar-free dark chocolate mint in the center.

  • Mexican Hot Chocolate

    Whisk ⅛ teaspoon cinnamon and a pinch of cayenne into the dry mix. Top with whipped cream dusted with chili-lime seasoning.

  • Peanut Butter Swirl

    Drop 1 teaspoon natural peanut butter on top and marble with a toothpick before microwaving.

  • Berry Shortcake

    Microwave as directed, then spoon ¼ cup macerated raspberries and a cloud of sugar-free whipped cream on top.

  • White Chocolate Raspberry

    Substitute 1 tablespoon cocoa for coconut flour and fold in 1 teaspoon sugar-free white chocolate chips plus 3 freeze-dried raspberry pieces.

  • Espresso Hazelnut

    Increase espresso powder to ¼ teaspoon and stir ½ teaspoon hazelnut extract into the batter. Finish with toasted chopped hazelnuts.

Storage Tips

This mug cake is at its peak 5–10 minutes after cooking, but life happens. If you have leftovers, cover the mug with foil and refrigerate up to 24 hours. The crumb will firm overnight; revive it with a 15-second microwave blast plus a 1-teaspoon splash of almond milk to restore moisture. For longer storage, wrap the cooled cake (removed from mug) in plastic wrap, slip into a zip-top bag, and freeze up to 1 month. Thaw overnight in the fridge, then warm as above. Texture won’t be quite as ethereal, but still beats most store-bought keto desserts.

Want to gift the magic? Whisk together the dry ingredients for 10 servings, funnel into a pint jar, and attach a tag with wet-ingredient quantities and microwave times. Tie on a mini silicone spatula and you’ve got the cutest stocking stuffer for any low-carb friend.

Frequently Asked Questions

Yes! Replace the egg with 1 tablespoon finely ground flaxseed + 3 tablespoons warm water; let stand 5 minutes to gel. The cake will be slightly denser and nuttier—more brownie than cake—but still delicious.

Your mug was too small or the wattage higher than expected. Next time stop the microwave when the batter rises to ¾ of the mug height, let it deflate, then resume cooking in 10-second bursts.

Microwave only one mug at a time for even cooking. If you need several, prep the batter in individual mugs and hold them raw up to 30 minutes; microwave just before serving.

For this ratio, yes. Almond flour needs twice the volume and extra binder; swapping changes cook time and carb count. If you must sub, use 3 tablespoons almond flour + ⅛ teaspoon xanthan gum and reduce almond milk to 1 tablespoon.

Doubling causes uneven cooking and a raw center. For a taller cake, make two back-to-back batches instead.

The surface should look matte, not wet, and a toothpick inserted halfway to the center should come out with a few moist crumbs—not raw batter. Remember it keeps cooking as it rests.
Keto Chocolate Mug Cake With Coconut Flour
desserts
Pin Recipe

Keto Chocolate Mug Cake With Coconut Flour

(4.9 from 127 reviews)
Prep
3 min
Cook
1 min
Servings
1

Ingredients

Instructions

  1. Grease the mug: Lightly oil a 12-oz microwave-safe mug.
  2. Whisk dry: Add coconut flour, cocoa, allulose, baking powder, salt, and espresso powder; mix well.
  3. Add wet: Pour in oil, egg, almond milk, and vanilla. Stir vigorously 20 seconds until smooth and thickened.
  4. Lava option: Press chocolate square into the center until just submerged.
  5. Microwave: Cook on HIGH 70–90 seconds (1000 W: 80 s) until top looks set.
  6. Rest: Let stand 2 minutes before eating; center continues to set.

Recipe Notes

Allulose keeps the crumb softer than erythritol. If substituting, expect a slight cooling taste and firmer texture once cooled.

Nutrition (per mug)

215
Calories
6 g
Protein
4 g
Carbs
19 g
Fat

You May Also Like

Discover more delicious recipes

Never Miss a Recipe!

Get our latest recipes delivered to your inbox.