How to Make a Cake in a Mug

Sometimes you want cake right now, not in an hour. A mug cake is a single-serving cake made in a mug and cooked in the microwave in about 90 seconds. It is perfect for a late-night craving, a quick dessert, or baking with kids. Here is how to make a mug cake that is actually moist and delicious, not rubbery or dry.
Why Mug Cakes Go Wrong
Most mug cake recipes fail for the same reasons. Too much flour makes them dry. Too much microwave time makes them rubbery. And no fat makes them tough. The key is a balanced recipe with the right amount of liquid and fat, and a short cooking time. A mug cake should be slightly underdone in the center when you take it out, because it keeps cooking for a few seconds from the residual heat.
Chocolate Mug Cake Recipe
Ingredients
- 4 tablespoons all-purpose flour
- 2 tablespoons cocoa powder
- 3 tablespoons granulated sugar
- 1/4 teaspoon baking powder
- Pinch of salt
- 3 tablespoons milk
- 2 tablespoons vegetable oil or melted butter
- 1/4 teaspoon vanilla extract
- 1 tablespoon chocolate chips (optional)
Method
Use a microwave-safe mug that holds at least 300ml, so the cake has room to rise without overflowing. Stir the flour, cocoa, sugar, baking powder, and salt together in the mug. Add the milk, oil, and vanilla, and stir until just combined. Do not overmix. Stir in the chocolate chips if using. Microwave on high for 70 to 90 seconds. The cake should look set on top but still slightly soft in the center. Let it sit for one minute before eating. The center will finish cooking from the residual heat. Top with whipped cream, ice cream, or a dusting of powdered sugar.
Vanilla Mug Cake
Leave out the cocoa powder and add an extra tablespoon of flour and half a teaspoon more vanilla. A vanilla mug cake is lighter and pairs well with fresh berries or a drizzle of caramel. Our guide to a moist vanilla cake covers the same flavor principles on a larger scale.
Tips for the Best Mug Cake
- Use the right mug. A wide, short mug cooks more evenly than a tall, narrow one.
- Do not overcook. Start with 70 seconds and add 10 seconds at a time if needed. Overcooked mug cake turns rubbery fast.
- Mix in the mug. Fewer dishes, and it is easier to get the proportions right.
- Add a little extra fat. A tablespoon of oil or melted butter makes a big difference to moisture.
- Know your microwave. Microwaves vary in power. If yours is very strong, reduce the time by 10 seconds. If it is weak, add 10 seconds.
Choosing the Right Mug
The mug you use affects how the cake cooks. A wide, short mug gives the batter more surface area, so it cooks evenly and rises well. A tall, narrow mug can leave the center undercooked while the edges overcook. Use a ceramic mug rather than a thin glass one, because ceramic distributes heat more evenly. Make sure the mug is microwave-safe and holds at least 300ml so the cake has room to rise without overflowing.
Mug Cake Variations
- Peanut butter mug cake. Add a tablespoon of peanut butter to the batter and swirl it in.
- Banana mug cake. Mash half a ripe banana into the batter and reduce the milk by a tablespoon.
- Vegan mug cake. Use plant milk and oil instead of butter. See our vegan cake recipes for substitution guidance.
Mug cakes are best eaten immediately, straight from the mug. They do not store well, but they only take two minutes to make, so there is no need to save one. If your mug cakes keep turning out dry or rubbery, our guide on how to fix common cake baking mistakes explains the causes. And if you want a full-size version, our guide on how to bake the perfect chocolate cake is the place to start.
