A mug cake is a single-serving cake mixed and microwaved in the same mug, relying on a small amount of chemical leavener (baking powder) and a hot, fast cooking method. The microwave sets the batter in about 90 seconds, producing a soft, tender crumb that is best eaten warm with a spoon. This version uses pantry staples and works with the plain flour, sugar, and cocoa you likely already have.
Ingredients
- 4 tbsp (32 g) all-purpose flour
- 3 tbsp (36 g) granulated sugar
- 2 tbsp (10 g) unsweetened cocoa powder (for chocolate version)
- 1/4 tsp baking powder
- 1/8 tsp salt
- 3 tbsp (45 ml) milk (any kind)
- 2 tbsp (28 g) unsalted butter, melted
- 1/4 tsp vanilla extract
- 1 tbsp (15 ml) water (if batter seems too thick)
Instructions
- In a 12 oz (355 ml) microwave-safe mug, whisk together the flour, sugar, cocoa (if using), baking powder, and salt with a fork until no lumps remain.
- Add the milk, melted butter, and vanilla. Stir with the fork until just combined—about 20 strokes. The batter should be thick but pourable; if it is stiff, add the water and stir once.
- Microwave on high (1000W) for 60 seconds. Check the top: it should look set and slightly springy. If still wet in the center, microwave in 10-second bursts, up to 90 seconds total. Times vary by microwave wattage—start checking at 60 seconds.
- Let the mug cake rest in the microwave for 1 minute. It will continue to set as it cools. Serve warm directly from the mug.
Why Does It Turn Out Dry, Runny, or Dense?
Dry: Overcooking is the main cause. The cake continues to cook during the rest time, so stop microwaving as soon as the top is just set. If your microwave runs hot, reduce the first cook to 45 seconds. Also, measure flour by spooning it into the cup and leveling—packed flour adds extra dry ingredients.
Runny: The batter was too thin or the cake was undercooked. Use a 12 oz (355 ml) mug—a larger mug spreads the batter thin and cooks unevenly. If the center is still liquid after 90 seconds, microwave in 10-second bursts until the center is just set. Do not add extra milk beyond the recipe.
Dense: Overmixing develops gluten, making the cake tough. Stir only until the flour disappears—about 20 strokes. Also, check that your baking powder is fresh; if it is older than 6 months, it may not lift the cake.
What Can I Swap or Add?
Substitutions
- Milk: Use any milk—dairy, oat, almond, or soy. The cake will be slightly less rich with non-dairy milks.
- Butter: Replace with 2 tbsp (30 ml) neutral oil (like canola) or 2 tbsp (28 g) melted coconut oil. Oil makes a moister crumb.
- Sugar: Use brown sugar for a deeper flavor; reduce to 2 tbsp (24 g) if you prefer less sweet.
- Flour: For a gluten-free version, use 4 tbsp (32 g) 1-to-1 gluten-free flour blend. Add 1/4 tsp xanthan gum if your blend lacks it.
- Cocoa: Omit cocoa and increase flour to 5 tbsp (40 g) for a vanilla mug cake.
Add-ins
- Stir in 1 tbsp (15 g) chocolate chips, chopped nuts, or dried fruit after mixing.
- Top with a scoop of ice cream, whipped cream, or a drizzle of caramel sauce.
- Add 1/4 tsp cinnamon or a pinch of espresso powder to the dry ingredients for flavor.
How Long Does a Mug Cake Keep?
A mug cake is best eaten immediately—it loses its soft texture within 30 minutes as it cools and firms. If you must store it, wrap the mug tightly with plastic wrap and refrigerate for up to 1 day. To reheat, microwave on medium (50% power) for 20-30 seconds until warm. Do not freeze mug cakes; the texture becomes rubbery.
Can I Make This in the Oven Instead?
Yes. Preheat the oven to 350°F (175°C). Pour the batter into a small oven-safe ramekin (about 6 oz / 180 ml) and bake for 12-15 minutes, until a toothpick inserted in the center comes out clean. The texture will be slightly more cake-like and less spongy than the microwave version. The total time changes to about 20 minutes including cooling.
What If I Don’t Have a Microwave?
Use the oven method above. Alternatively, cook the batter in a small skillet on the stovetop: melt 1 tsp butter in a 6-inch (15 cm) nonstick skillet over medium-low heat, pour in the batter, cover, and cook for 4-5 minutes until set and puffed. Flip carefully and cook 1 minute more. This gives a pancake-like texture.
How Do I Scale This Up for More Servings?
For 2 servings, double all ingredients and use two separate mugs. For 4 servings, quadruple and use four mugs—do not put more than one mug in the microwave at a time unless your microwave has a turntable large enough to fit them without touching. Cook each mug individually for best results. A single large mug (16 oz / 475 ml) can hold a double batch, but increase cooking time to 2-3 minutes, checking every 30 seconds after the first minute.
Is It Safe to Eat Raw Batter?
No. The batter contains raw flour and raw egg (if you add one). Raw flour can carry bacteria, and raw eggs may contain Salmonella. Always cook the batter fully to 160°F (71°C) internal temperature (use a food thermometer inserted into the center). If you want to taste the batter, heat-treat the flour first: spread it on a baking sheet and bake at 350°F (175°C) for 5 minutes, then cool completely. Use pasteurised eggs if you add one. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw flour and raw eggs entirely.
What Pairs Well With a Mug Cake?
Serve it as a quick dessert after a weeknight dinner, or as a late-night snack. A dollop of whipped cream or a scoop of vanilla ice cream balances the warm, rich cake. For a breakfast treat, reduce sugar to 2 tbsp (24 g) and add 1/4 tsp cinnamon—serve with a side of yogurt or fruit. This mug cake also works as a last-minute birthday dessert for one; top with a candle and sprinkles.
Related
- Bread Loaf Woolies: Soft White Sandwich Loaf
- Microwave Cake Recipe UK: Easy 5-Minute Mug Cake
- 3-Ingredient Microwave Mug Cake Recipe
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).