A coffee mug cake relies on a 1:1:1 ratio of flour, sugar, and milk to create a single-serving dessert that rises slightly and has a soft, moist crumb. This version includes cocoa powder and instant coffee to enhance the flavor, making it ideal for a quick treat with afternoon coffee or as a last-minute dessert when guests arrive.
Serves 1 · Prep 5 min · Cook 2 min · Total 7 min
Ingredients
- 4 tablespoons (30 g) all-purpose flour
- 4 tablespoons (50 g) granulated sugar
- 2 tablespoons (15 g) unsweetened cocoa powder
- 1/8 teaspoon baking powder
- Pinch of salt
- 3 tablespoons (45 ml) milk
- 1 tablespoon (15 ml) vegetable oil or melted butter
- 1/4 teaspoon vanilla extract
- 1/4 teaspoon instant coffee granules (optional)
- 1 tablespoon (15 g) chocolate chips (optional)
Instructions
- Choose a microwave-safe coffee mug that holds at least 12 oz (350 ml). Lightly grease the inside with butter or nonstick spray if not using oil in the batter.
- Add flour, sugar, cocoa powder, baking powder, salt, and instant coffee (if using) to the mug. Stir with a fork until combined and no dry pockets remain.
- Pour in milk, oil, and vanilla extract. Mix for 20–30 seconds until smooth and uniform, scraping the bottom and sides of the mug.
- Stir in chocolate chips, if using, ensuring they are evenly distributed.
- Microwave on high (100% power) for 75–90 seconds. Start checking at 75 seconds: the cake is done when it no longer looks wet on top and a toothpick inserted near the center comes out with moist crumbs, not wet batter.
- Let the mug cake sit for 1 minute after microwaving. It will continue to set and be easier to handle.
Why the cake might fail and how to fix it
Why is my mug cake too dry or rubbery?
Overcooking is the most common cause. Microwaves vary in power, and even 15 seconds too long can dry out the cake. Always start with 75 seconds and add time in 5-second increments. If your microwave runs hot, reduce the initial time to 60 seconds. Using too much flour or not measuring it correctly (scooping directly from the bag) adds excess dry ingredients. Spoon flour into the measuring cup and level it off with a knife.
Why is my mug cake too runny or undercooked?
Undercooking typically happens when the microwave is set below high power or the time is too short. Ensure the microwave is set to 100% power. If the center is still liquid after 90 seconds, microwave in 5-second bursts, checking each time. Too much milk or oil can also cause a soggy texture. Measure liquids with a liquid measuring cup on a flat surface, not a dry measuring cup.
Why is my mug cake dense or gummy?
A dense texture often results from overmixing after adding wet ingredients. Stir just until combined; overmixing develops gluten, which makes the cake tough. Old or improperly stored baking powder can also fail to leaven. Replace baking powder every 6 months for reliable results. Using a mug that is too small restricts rising and causes steaming instead of baking. Use a mug with straight or slightly flared sides and at least 3.5 inches (9 cm) in diameter.
Substitutions and their effects
Swapping ingredients changes texture and flavor. Use these ratios to maintain structure.
| Swap | Ratio | Effect |
|---|---|---|
| Gluten-free flour blend | 1:1 by volume | Slightly grainier texture; ensure blend contains xanthan gum |
| Almond milk or oat milk | 1:1 by volume | Neutral flavor; slight reduction in rise due to lower protein |
| Coconut oil (melted) | 1:1 by volume | Subtle coconut flavor; solidifies when cool |
| Maple syrup or honey | Replace 4 tbsp sugar with 3 tbsp syrup + reduce milk by 1 tbsp | Denser crumb; more moisture |
| Self-rising flour | Replace all-purpose flour and omit baking powder and salt | Faster prep; may be saltier depending on brand |
What happens if I forget the baking powder?
The cake will not rise and will be flat and dense. Baking powder is essential for lift in this quick method. If unavailable, mix 1/4 teaspoon cream of tartar with 1/8 teaspoon baking soda as a substitute.
Can I double the recipe in a larger mug?
No. Doubling the batter increases depth, which prevents even cooking. The center stays raw while the edges overcook. Make one at a time.
Storing leftover mug cake
A mug cake is best eaten fresh. Leftovers can be refrigerated in an airtight container for up to 2 days. Reheat in the microwave for 20–30 seconds. Do not leave at room temperature more than 2 hours due to dairy and egg content. Freezing is not recommended—texture becomes rubbery upon thawing. If made with raw eggs or raw flour, use heat-treated flour and pasteurized eggs, and refrigerate immediately. Pregnant people, young children, older adults, and those with weakened immune systems should avoid consuming raw flour or raw eggs.
For consistent results, use the same mug each time to learn its behavior in your microwave. A 12 oz ceramic mug typically works best. Avoid metal-rimmed or cracked mugs. If the cake spills during cooking, reduce batter volume by 1 tablespoon or use a larger mug. Always allow the mug to cool before washing—sudden temperature changes can cause cracking.