Coconut Flour Chocolate Mug Cake
If you’re looking for a quick, rich and satisfying keto chocolate dessert that’s also grain-free, this Coconut Flour Chocolate Mug Cake is the perfect treat. Made with wholesome ingredients and ready in just a few minutes, it’s ideal for a late-night indulgence or a mid-day pick-me-up that won’t leave you with a pile of dishes.

This post may contain affiliate links. Please read my disclosure policy for more information.
Why You’ll Love This Recipe
- Gluten-free and grain-free: Perfect for those following a gluten-free, paleo, or low-carb lifestyle.
- Quick and easy: Mix everything in one mug and microwave for about a minute—no oven required.
- Moist and fluffy texture: Despite being made with coconut flour, which can sometimes be dense, this mug cake turns out soft and moist thanks to the eggs and almond milk.
- Customizable: Add chocolate chips, a dollop of nut butter, or a sprinkle of sea salt on top for an extra layer of flavor.
Why Use Coconut Flour in Mug Cakes?
Coconut flour is a high-fiber, low-carb alternative to traditional wheat flour. It absorbs more liquid than other flours, which is why you’ll notice this recipe uses more eggs and almond milk to balance the texture. It’s naturally gluten-free and adds a subtle coconut flavor that pairs beautifully with chocolate.

Ingredients
This is all you need to make a tasty chocolate flavored keto mug cake.

Coconut Flour The star of the recipe—light, nutritious, and perfect for a fluffy cake texture. It is very absorbent so requires a lot of liquid.
Cocoa Powder : Gives the cake its rich, chocolatey flavor. Use unsweetened for great chocolate flavor and to cut down on on the sugary carbs.
Keto Sweetener : Use your favorite low-carb sweetener or regular sugar, depending on dietary needs. We use allulose but monk fruit sweetener works well.
Baking Powder : Helps the cake rise and stay airy.
Eggs : Essential for structure and moisture, especially when using coconut flour.
Coconut Oil or Melted Butter : Adds richness and keeps the cake tender.
Almond Milk : Balances the dryness of the coconut flour and helps blend the ingredients smoothly. Coconut milk can be substituted.
How To Make Coconut Flour Chocolate Mug Cake

Mix dry ingredients in a mug.

Add the wet ingredients.

Mix until smooth then microwave.

Cool slightly, then you are ready to serve.
Recipe Tips
- Use room temperature eggs
Since this recipe uses 2 eggs, having them at room temperature helps the batter mix more evenly and gives the cake a better rise and texture. - Measure coconut flour precisely
Coconut flour is very absorbent, so use a level tablespoon and avoid overpacking. Even a small excess can make the cake dry. - Whisk wet ingredients separately first (optional but helpful)
For a smoother batter, whisk the eggs, almond milk and oil (or melted butter) together before adding to the dry ingredients. - Choose oil or butter based on your flavor preference
Melted butter gives a richer, more cake-like taste, while oil makes it slightly lighter and dairy-free. Coconut oil complements the coconut flour nicely. - Don’t skip the baking powder
With dense ingredients like coconut flour and cocoa powder, baking powder is crucial for a soft, fluffy texture. - Microwave in bursts if unsure
Start with 60 seconds, check for doneness, then add 10-second intervals. Overcooking will dry it out quickly due to the coconut flour. - Sift cocoa powder if lumpy
This helps prevent dry clumps and makes mixing easier. - Sweetener matters
Use a granulated sweetener that measures like sugar. If you’re using a concentrated sweetener (like stevia), adjust the quantity accordingly or the cake may taste bitter or bland. - Let it sit for 1–2 minutes after cooking
The texture settles and improves as it cools slightly—hot out of the microwave, it might seem too soft or wet.

Serving Suggestions
- Top with whipped cream
A dollop of whipped cream (regular or dairy-free) adds lightness and contrast to the rich chocolate flavor. - Add fresh berries
Raspberries, strawberries, or blueberries complement the chocolate and add a pop of color and freshness. - Drizzle with nut butter or chocolate sauce
A spoonful of peanut butter, almond butter, or melted dark chocolate makes the mug cake even more decadent. - Sprinkle with chopped nuts
Crushed walnuts, pecans, or almonds add a satisfying crunch and a bit of healthy fat. - Serve with a scoop of low-carb ice cream
For an indulgent dessert, pair your warm mug cake with vanilla or chocolate ice cream—especially delicious with the warm-cold contrast. - Dust with powdered sweetener or cocoa
A light dusting gives it a bakery-style finish—especially if you’re serving it to guests or sharing a photo! - Add a square of dark chocolate in the center before microwaving
This creates a gooey, molten chocolate center for a surprise when you dig in.
More Keto Mug Cake Recipes
Keep on track with these other keto mug cake recipes.
Keto Strawberry Shortcake Mug Cake
Keto Chocolate Peanut Butter Mug Cake

Coconut Flour Chocolate Mug Cake
Need Metric Measurements?
Use the button options below to toggle between US cups and Metric grams.
Ingredients
- 2 tablespoons coconut flour
- 2 tablespoons cocoa powder
- 2 tablespoons allulose or other low carb sweetener
- 1/2 teaspoon baking powder
- 2 medium eggs
- 2 tablespoons coconut oil or melted butter
- 2 tablespoons almond milk
Instructions
- In a microwave-safe mug or small bowl, mix the coconut flour, cocoa powder, sweetener and baking powder until well combined.
- Add in the eggs, oil or melted butter, and almond milk. Stir until a smooth batter forms.
- Microwave on high for 60–90 seconds, depending on your microwave’s strength. The top should look set but still soft.
- Microwave on high for 60–90 seconds, depending on your microwave’s strength. The top should look set but still soft.
Notes
Nutrition
The information shown is an estimate provided by an online nutrition calculator.