
This quick chocolate mug cake is a single-serving dessert mixed and cooked in a mug, so you can have warm cake without turning on the oven or making a full batch. It uses familiar pantry ingredients and takes only a few minutes from mixing to the first spoonful.
The key is to mix the dry ingredients thoroughly, add just enough milk and oil for a smooth batter, and stop cooking as soon as the top is set. The result is soft and tender with a rich cocoa flavor, a lightly fudgy center, and the best texture while warm. Add whipped cream, chocolate chips, or nuts if you like.
Why This Recipe Works
A mug cake cooks in a small space, where microwave energy can set the batter quickly. That makes the cooking time short, but it also means a few extra seconds can turn a tender cake dry or rubbery. This recipe uses a brief first cook followed by short checks, so you can stop when the surface looks set and a few moist crumbs remain.
Mixing the flour, sugar, cocoa, baking powder, and salt before adding the liquid spreads the small amount of leavener evenly. That helps the cake rise more consistently and avoids bites with concentrated baking powder or cocoa. Once the milk, oil, and vanilla go in, stir only until no dry pockets remain; prolonged mixing can make a small cake dense.
Oil keeps the crumb moist without needing softened butter, and milk gives the batter enough liquid to combine smoothly. The modest amount of baking powder lifts the cake without making it taste overly leavened. A mug with room above the batter also gives the cake space to rise without spilling over.
Ingredients
- 4 tablespoons all-purpose flour
- 4 tablespoons granulated sugar
- 2 tablespoons unsweetened cocoa powder
- 1/8 teaspoon baking powder
- 3 tablespoons milk
- 2 tablespoons vegetable oil
- 1/4 teaspoon vanilla extract
- 1 small pinch salt, about 1/16 teaspoon
- Optional toppings: 1 tablespoon whipped cream, 1 tablespoon chocolate chips, or 1 tablespoon chopped nuts, as desired
Ingredient Notes
Flour: All-purpose flour gives the cake enough structure to rise while staying tender. Spoon it into the measuring spoon and level it rather than packing it in. A 1-to-1 gluten-free baking flour blend can be used, but the finished texture may vary by blend. Do not substitute almond or coconut flour cup-for-cup; they absorb liquid differently.
Sugar: Granulated sugar sweetens the cocoa and contributes to a soft crumb. Brown sugar can replace it in the same amount for a slightly deeper, more caramel-like flavor, though it may make the cake a little more moist and dense. Avoid reducing the sugar substantially, since it affects both sweetness and texture.
Cocoa powder: Use unsweetened cocoa powder, either natural or Dutch-process. Natural cocoa tends to taste a little sharper, while Dutch-process cocoa is often darker and milder. Because this recipe has only a small amount of baking powder, either works here; the cake may differ slightly in color and flavor.
Baking powder: This is the cake’s leavener. Measure the small amount carefully and check that it is not stale if it has been open for a long time. Baking soda is not a direct substitute in this recipe.
Milk: Dairy milk or an unsweetened, unflavored plant milk can be used in the same quantity. Sweetened or flavored milk can change the final sweetness and taste. The batter should be thick but easy to stir, not dry or crumbly.
Oil: Neutral vegetable oil keeps the crumb soft. Canola or another mild-flavored cooking oil works as well. Melted butter can replace the oil, but it may make the cake a little firmer as it cools. Strongly flavored oils can distract from the chocolate.
Vanilla and salt: Vanilla rounds out the cocoa flavor, and a pinch of salt keeps the sweetness from tasting flat. If using salted butter instead of oil, you can omit the added salt, but this recipe is easiest to measure with oil.
Instructions
- Choose your cooking method and vessel. For the microwave method, use a microwave-safe mug that holds at least 12 ounces, preferably 14 ounces, so the batter has room to rise. For the oven method, preheat a conventional oven to 350°F and use an oven-safe ramekin; do not put an ordinary mug in the oven unless its manufacturer specifically says it is oven-safe. The roomy vessel helps prevent overflow and makes cooking more even.
- Combine the dry ingredients. Add the flour, sugar, cocoa powder, baking powder, and salt to the mug or ramekin. Stir with a fork until the color looks even and no cocoa clumps remain, about 20 to 30 seconds. An even dry mixture helps the cake rise uniformly and prevents concentrated pockets of leavener.
- Add the liquid ingredients. Pour in the milk, oil, and vanilla. Stir from the bottom and around the sides until the batter is smooth, scraping away any flour or cocoa tucked into the corners. Stop as soon as the dry streaks disappear, usually after 20 to 30 seconds; a few small lumps are less troublesome than overmixing.
- Cook in the microwave, or use the oven alternative. For a microwave, cook at full power for 60 seconds, then check the surface. If the center is still shiny or liquid, continue in 10-second bursts, checking each time; most mugs will take about 60 to 90 seconds, depending on the microwave and mug. The top should look just set, with a slightly moist center and no pool of raw batter. For the oven method, bake the ramekin at 350°F for 12 to 16 minutes, beginning to check at 12 minutes. It is ready when the top springs back lightly and a toothpick inserted near the center comes out with a few moist crumbs rather than wet batter. Oven times vary with the ramekin’s shape and material.
- Let it stand before serving. Leave the cake in its mug or ramekin for 1 to 2 minutes. It will finish setting from residual heat, and the vessel will be very hot. Look for a surface that holds its shape when touched lightly; avoid judging doneness only by how tall the cake rose, since it may settle a little as it stands.
- Add toppings and eat warm. Top with whipped cream, chocolate chips, or chopped nuts, if desired. Chocolate chips can be stirred into the batter before cooking, but keep the amount modest so the cake still cooks through. Enjoy directly from the mug with a spoon, or loosen the edge carefully and turn it onto a plate.
Tips for Success
- Measure flour lightly. Too much flour is one of the easiest ways to get a dry mug cake. Fill the tablespoon without pressing the flour down, then level it.
- Break up cocoa lumps before adding liquid. Cocoa can clump, especially if it has settled in its container. Stir the dry ingredients well or press any lumps against the side of the mug with a fork.
- Use a larger mug than the batter seems to need. A mug of at least 12 ounces gives the cake space to puff. A narrow, small mug is more likely to overflow and may cook unevenly.
- Know your microwave. Microwave wattage, mug shape, and how cold the milk is can all affect the time. Start at 60 seconds and use short increments rather than cooking for a long stretch without checking.
- Stop before the center looks dry. The cake continues to set while it stands. A matte, just-set top and a few moist crumbs are better cues than waiting for the whole surface to look firm.
- Stir well, but briefly. Make sure there are no dry pockets at the bottom, then stop. A few seconds of careful mixing is enough for this small portion.
- Use a fork for easy cleanup. A fork mixes the dry ingredients and reaches the bottom corners of the mug. If any batter sticks to the sides above the final level, wipe it away before cooking so it does not dry into a tough strip.
Troubleshooting
The cake is dry or rubbery. It was probably cooked too long, or the flour was packed into the measuring spoon. Next time, measure the flour loosely and start checking after 60 seconds, then use 10-second bursts. Let the cake stand for only a minute or two before eating; continued heating is not needed.
The center is wet. Return it to the microwave for 10 seconds at a time until the surface is set. In an oven, give it another 1 to 2 minutes and check again. A very deep mug or ramekin can take longer than a shallow one, so use the visual cues rather than relying on the clock alone.
The batter bubbled over. The mug was likely too small, or the microwave time was longer than the cake needed. Use a mug of at least 12 ounces, set it on a microwave-safe plate to catch drips, and check early. A plate helps with cleanup but does not replace using a roomy mug.
The cake is dense and barely rose. Check that the baking powder was measured and still active, and make sure it was mixed evenly with the flour. Also avoid stirring for a long time after adding the liquid. Mug cakes rise modestly and can settle slightly after cooking, but a completely flat, heavy result often points to leavener or mixing issues.
There are dry flour pockets. The ingredients may not have been scraped from the bottom and sides. Stir thoroughly before cooking, especially at the base of the mug. If you spot a dry patch before cooking, mix it in rather than adding extra milk immediately; the batter is meant to be thick.
The cake tastes bitter or too sweet. Confirm that you used unsweetened cocoa powder, not sweetened drinking chocolate. For a less sweet result next time, reduce the sugar by about 1 tablespoon, understanding that the texture may be a little less tender. If the cocoa tastes harsh, a slightly bigger pinch of salt or a spoonful of whipped cream on top can balance the serving.
Variations
Chocolate-chip center: Stir 1 tablespoon chocolate chips into the batter, or press a few into the center just before cooking. They soften as the cake cooks, so take care when eating the hot middle.
Mocha-style cake: Replace 1 tablespoon of the milk with 1 tablespoon cooled, strong brewed coffee. It lends a coffee note that pairs with cocoa without requiring a different cooking method.
Nutty chocolate: Stir 1 tablespoon chopped walnuts or pecans into the batter, or scatter them on top after cooking. Nuts add crunch, so keep the pieces small enough to fit comfortably on a spoon.
Brown-sugar version: Use 4 tablespoons packed light brown sugar in place of granulated sugar for a warmer flavor and slightly softer crumb. Measure it packed, as brown sugar is denser than granulated sugar.
Simple dairy-free option: Use an unsweetened plant milk in place of dairy milk, and choose a plant-based topping if desired. The oil is already dairy-free. Check that any chocolate chips or whipped topping suit your needs.
Less-sweet finish: Keep the cake as written and add unsweetened whipped cream, a few raspberries, or a small spoonful of plain yogurt on top. The fresh or lightly tangy topping gives contrast without changing the batter.
What to Serve With It
This cake is rich enough to enjoy on its own, especially while its center is warm. A small spoonful of whipped cream or a scoop of vanilla ice cream makes it feel more like a plated dessert. Add the cold topping just before serving so it contrasts with the warm cake.
Fresh berries, sliced banana, or a few orange segments are easy accompaniments when you want something bright alongside the chocolate. A glass of milk, coffee, or tea also works well. Since the recipe makes one serving, there is no need to prepare an elaborate side; choose one topping or drink and serve right away.
Make-Ahead, Storage and Reheating
This recipe is quickest and has its best texture when mixed and cooked just before serving. You can measure the flour, sugar, cocoa, baking powder, and salt into the mug ahead of time, cover it, and keep it at room temperature for a day. Add the milk, oil, and vanilla only when you are ready to cook. Do not leave wet batter sitting out, since the leavener begins working once the liquid is mixed in.
If you have cooked cake left over, cover it and refrigerate it within 2 hours. Keep it refrigerated and use it within 3 to 4 days. The cake may become firmer as it chills, and a topping such as whipped cream is best stored separately. For the best texture, make only the amount you plan to eat.
To freeze cooked cake, place it in a freezer-safe, airtight container and freeze it promptly. For best quality, use within 3 to 4 months. Thaw in the refrigerator, then warm gently in the microwave in short intervals until heated through. Freezing and reheating can make this small cake less tender, so fresh is preferable. Do not leave the cake at room temperature for more than 2 hours; discard it if it has been out longer.
Recipe Card
Servings: 1
Prep time: 3 minutes
Cook time: 1 to 1 1/2 minutes in the microwave, or 12 to 16 minutes in a 350°F oven
Total time: About 5 minutes in the microwave, or about 20 minutes in the oven, including mixing and standing
Ingredients
- 4 tablespoons all-purpose flour
- 4 tablespoons granulated sugar
- 2 tablespoons unsweetened cocoa powder
- 1/8 teaspoon baking powder
- 3 tablespoons milk
- 2 tablespoons vegetable oil
- 1/4 teaspoon vanilla extract
- 1 small pinch salt, about 1/16 teaspoon
- Optional: 1 tablespoon whipped cream, chocolate chips, or chopped nuts
Condensed steps
- Use a microwave-safe mug of at least 12 ounces, or preheat the oven to 350°F and use an oven-safe ramekin.
- Stir flour, sugar, cocoa, baking powder, and salt together until evenly combined.
- Add milk, oil, and vanilla; stir just until smooth and no dry pockets remain.
- Microwave at full power for 60 seconds, then continue in 10-second bursts until the top is just set, usually 60 to 90 seconds total. Alternatively, bake at 350°F for 12 to 16 minutes, until a toothpick near the center comes out with moist crumbs.
- Let stand for 1 to 2 minutes, then add toppings and serve warm.
Frequently Asked Questions
Can I make this mug cake without a microwave?
Yes. Mix the batter in an oven-safe ramekin and bake it in a preheated 350°F oven for about 12 to 16 minutes. Start checking at 12 minutes. Do not use an ordinary mug in the oven unless it is specifically marked as oven-safe.
How do I know when a mug cake is done?
The top should look set rather than shiny or liquid, and the center should still look moist. In the oven, a toothpick inserted near the center should come out with a few moist crumbs, not raw batter. The cake continues setting for a minute or two after cooking.
Can I mix the batter in a separate bowl?
Yes. A small bowl can make it easier to stir thoroughly, especially if your mug has a narrow base. Transfer the batter to the mug before cooking, leaving plenty of room for it to rise.
Can I use butter instead of vegetable oil?
Yes. Use 2 tablespoons melted butter in place of the oil. Let it cool briefly before mixing it with the milk, so it does not become unpleasantly hot. The cake may be slightly firmer as it cools than the oil-based version.
Can I leave out the vanilla?
Yes. The cake will still cook properly without it, though the flavor will be a little less rounded. If you have another extract, use it sparingly; strongly flavored extracts can take over a small cake.
Why did my cake rise and then sink?
A little settling as a mug cake cools is normal. A large collapse can happen if the cake is undercooked in the center, the batter is overmixed, or the baking powder is old. Cook until the top is set, mix only until combined, and measure the baking powder carefully.
Can I double the recipe?
For two servings, it is more reliable to mix and cook two separate mugs than to double the batter in one mug. A larger amount in one vessel cooks less evenly, and a standard mug may overflow. Cook each mug separately, adjusting the time only as needed for your microwave.
Can I prepare the whole batter ahead?
It is better to mix the dry ingredients in advance and add the milk, oil, and vanilla just before cooking. Once wet, the baking powder starts acting, and the batter may not rise as well if it sits. This recipe is small enough that mixing it fresh takes only a few minutes.