Cake in a Cup Recipe — What Works, What Doesn’t, and How to Get It Right

My sister-in-law once mailed her brothers and sisters a box of ingredients for Christmas — flour, sugar, cocoa, a printed instruction card, nothing else. Cake in a cup, delivered as a gift. We made ours over the holidays and never really stopped.

Fast Answer

A cake in a cup takes about six minutes total — mixed and microwaved in the same mug you eat it from. It's hard to mess up, which is exactly why it works as a five-ingredient Christmas gift kit.

3-Minute Chocolate Mug Cake (Soft, Rich, Foolproof)

A cake in a cup, also known as a mug cake, is a single-serving cake that’s cooked in a mug or a microwave-safe cup. It’s a quick and easy way to satisfy a craving for cake without having to bake a whole cake.

Mug cakes typically consist of basic cake ingredients like flour, sugar, egg, milk, and oil or butter, mixed in the mug and then microwaved for a short time until it’s cooked through. You can customize mug cakes with various flavors and add-ins like chocolate chips, vanilla extract, cocoa powder, or fruit.

It’s a popular option for a fast dessert or snack, especially for those who want a homemade treat without the hassle of baking a full-sized cake.

Start Here

  • Time: About six minutes start to finish, most of it spent mixing.
  • Mug size: Use at least a 12-ounce mug — the batter rises fast and a smaller one will overflow.
  • Mixing order matters less than you'd think: wet ingredients first, then dry, works fine, but if you own a small bowl, whisk the dry ingredients there first to avoid dry pockets.
  • Don't walk away during the microwave step: the difference between soft and rubbery is measured in seconds, not minutes.
Frustrated cook making common mistakes.

What Most Cooks Get Wrong

  • Overcooking by even 15–20 seconds: the batter goes from soft to rubbery fast once it sets, so a flat 2 1/2 minutes can already be too long in a strong microwave.
  • Guessing on mug size: anything under 12 ounces risks batter climbing over the rim around the two-minute mark.
  • Skipping the mix-in-a-bowl step: dumping dry ingredients straight into the wet mix in the mug leaves pockets of flour that never fully incorporate.

Why This Works

  • Oil instead of butter: oil stays liquid at room temperature, so the batter stays moist instead of seizing up the way butter-based batters can in a microwave.
  • One egg does a lot of work: in a batter this small, the egg is what gives you cake structure instead of pudding — cut it and you need another binder (see the FAQ below).
  • The mug is the oven: microwaves heat water molecules directly, and a tall, narrow mug traps steam around the batter instead of letting it escape, which is why this cooks in minutes instead of the 30–40 you'd need in a conventional oven.
Chocolate Cake in a Mug Recipe
Print Recipe
4 from 4 votes

Cake in a Cup Recipe

Prep Time3 minutes
Cook Time3 minutes
Total Time6 minutes
Course: Dessert
Cuisine: American
Servings: 1 cup

Ingredients

  • 4 tablespoons flour
  • 4 tablespoons sugar
  • 2 tablespoons unsweetened cocoa powder
  • pinch salt
  • 2 tablespoons vegetable oil
  • 3 tablespoons milk
  • 1 egg
  • splash vanilla extract or other flavoring like cinnamon or peppermint

Instructions

  • In a medium sized mug (be sure it is microwave safe), add the vegetable oil, egg, milk and whatever flavoring you are using. Mix up these ingredients until well combined.
  • Add the flour, sugar, cocoa powder and salt. Again mix until well combined. If you are using any of the suggested add ins, now's the time to add them.
  • Cook in the microwave on high for about 2 1/2 minutes depending on your brand of microwave. The end result should look like the photo at the top.

Notes

According to the printed recipe that came from my sister-in-law's mugs, "This recipe is very flexible!
You can use cake or all-purpose flour (or even self-rising flour), other flavorings instead of vanilla, water instead of milk, change baking time to get the amount of moistness you prepare.
You can add the dry ingredients before the web if you prefer. Others have substitute pudding mix for the cocoa powder for pancake mix for the flour."

Quick Fixes and Tips

  • Center still wet after 2 1/2 minutes? Microwave in 10-second bursts rather than guessing at another full minute.
  • Getting dry pockets of flour? Whisk the dry ingredients together in a small bowl before adding them to the mug — a reader tip that fixed this for good.
  • Want it richer without more sugar? A pinch of espresso powder deepens the chocolate.
  • Making it with kids? Let them handle the mixing and measuring — just pull the mug out of the microwave yourself. It's hot.

What to Serve With This

  • Vanilla ice cream: a small scoop melts into the warm cake in the time it takes to grab a spoon.
  • Unsweetened whipped cream: cuts the sweetness instead of adding to it.
  • Fresh berries: raspberries or sliced strawberries bring acid the chocolate doesn't have on its own.
  • Coffee, black: this is a small, rich dessert — a bitter drink balances it better than a sweet one.
  • Cold milk: the kid-and-parent version of the coffee pairing, and just as effective.

Storage and Make-Ahead

  • Best eaten immediately: mug cakes lose their texture fast and turn dense within the hour.
  • Dry ingredients can be pre-mixed: combine flour, sugar, cocoa, and salt in a small bag or jar days ahead — add the wet ingredients right before microwaving.
  • Leftovers don't reheat well: a second trip through the microwave turns already-cooked cake rubbery; if you must, use 10-second bursts and stop as soon as it's warm.
Mug Cakes Cookbook
Made this with the classic ratio, or did you try one of the egg-free versions readers have posted below? I want to know which mug size worked for you and whether you ran into the rubbery-texture problem a few people mention in the comments.

More Cake-in-a-Cup Ideas

  • Classic Chocolate: Rich, fudgy, and ready in about 1 minute.
  • Vanilla Bean: Light and fluffy—perfect base for berries or sprinkles.
  • Red Velvet: Slightly tangy with a hint of cocoa.
  • Lemon Poppy Seed: Bright, citrusy, and refreshing.
  • Peanut Butter: Dense and nutty—great with chocolate chips.
  • Funfetti: Colorful, sweet, and perfect for celebrations.
  • Carrot Cake: Moist, spiced, and hearty.
  • Molten Lava: Gooey center, ultra-decadent.
  • Banana Bread: Naturally sweet and cozy.
  • Pumpkin Spice: Warm, aromatic, and perfect for fall.
  • Coffee Cake: Cinnamon-spiced with a crumb topping.

Love Chocolate Cake? Try These Next

More On This Topic

  • If you want to understand why baking goes wrong more often than it should, this breakdown of common mistakes is a good place to start: how not to bake.
  • Wondering what a "pinch" of salt actually means in a recipe like this one? Here's how to season to taste.
  • If you want the full-size version of this cake for an actual occasion, this is the chocolate cake recipe I make when I have more than six minutes.
  • For a dessert with a similar payoff but a gooier center, try molten chocolate cake.
  • Baking for someone gluten-free? The flourless chocolate cake skips the flour question entirely.
  • If mug cakes become a regular thing in your house, there's an entire mug cakes cookbook worth a look.
  • For a richer, denser slice when you're not in a hurry, this chocolate fudge cake is the opposite end of the spectrum from a six-minute mug cake.

Cake In A Cup FAQ

What is cake in a cup? A single-serving cake mixed and cooked in a microwave-safe mug — batter goes in, a warm cake comes out in about six minutes.

How long does cake in a cup take to cook? About 2 to 2 1/2 minutes on high, depending on your microwave’s wattage. Start checking at 2 minutes, since a few extra seconds is the difference between soft and rubbery.

Why is my mug cake rubbery? It cooked too long. Microwaves work fast, so even 15 extra seconds past done can turn a soft cake springy.

Why is my cake in a cup dry? Same cause as rubbery — overcooking, plus not quite enough oil or milk. Add an extra half-tablespoon of milk next time and stop cooking as soon as the top looks set.

Can I make cake in a cup without eggs? Yes — a reader in the comments swaps the egg for 1/2 teaspoon vinegar and 1/4 teaspoon baking soda. It works, though the texture is less fluffy than with egg.

What size mug should I use? At least 12 ounces. Anything smaller risks the batter climbing over the rim as it cooks.

Can I make cake in a cup without milk? Yes — water, almond milk, or oat milk all work fine. Milk just gives a slightly richer flavor.

Can I bake this in the oven instead of microwaving it? Yes, in an oven-safe ramekin at 350°F for about 12 to 18 minutes, though the texture ends up closer to a small baked cake than a mug cake.

Why did my mug cake overflow? The mug was too small or too full. Use a mug that holds at least 12 ounces and don’t fill it past halfway before microwaving.

Can kids make this themselves? Kids can measure and mix, but an adult should be the one pulling the mug out of the microwave — it gets hot fast.

23 Responses

  1. I loved this!! So quick and yummy!! It is a diff texture than regular cake but it’s not regular cake! We turned ours into sundaes with choc syrup, nuts, and Ice cream. Fabulous

  2. Yum! I used Special dark cocoa and stevia added shredded coconut and dark choc chips than after it was done I added greek yogurt as a topping! Next time I will add a bit more stevia but oh so good thanks!

  3. I’ve finally found the perfect cake in a cup recipe!!!! SO yummy! It has a spongy texture, but super good.

  4. I actually used cake mix. I used about 6 to 8 tablespoons of store bought cake batter, added the egg, the milk and the oil. About three minutes in the microwave.

  5. Oh so delicious! I made this for a little pre-baking-the-actual-cake treat for my husbands birthday the night before it was the actual day. It’s thick, spongy, moist, and wonderfully decadent. I highly recommend this recipe, but certainly don’t be afraid to play with it! Add what you want! So much fun and so good!!

  6. We don’t use a microwave in our home. Is there a way to make this without the use of a microwave?

    1. Donna, we don’t microwave either so I’m sticking it in the oven, when I can smell it, I’ll check it out. Wish me luck:)

  7. I recommend mixing it in a separate bowl and then pouring it in because then you won’t have clumps of ingredients in your cake. But this cake was delish!!

  8. It had the taste and texture of a chocolate flavored scrambled egg. I guess I should have figured that from the proportions — one egg to four tablespoons flour? You have to be pretty desperate for cake to eat this.

  9. 5 stars
    This was a really great recipe, it was spongey and tasted like an actually cake. I cooked mine for 2 minutes as we have a quite high powered microwave. It turned out perfect. Thanks for the recipe.

  10. I substituted the egg with vinegar (1/2 t.) and soda (1/4 t.). Used water. Added an extra 1/2 T of oil. Used 1/2 t. vanilla rather than a splash (which could be nearly nothing to a couple tablespoons!), and 1/8 t. salt instead of a dash which wasn’t enough the first time. The idea came from an old recipe book entitled, The “I Hate to Cook” Cookbook by Peg Bracken. It was called a Cockeyed Cake, or what we called Crazy Cake. I also sifted the dry ingredients so there wouldn’t be any lumps, then added the liquid ingredients except for the vinegar, got it all mixed, then added the vinegar last, poured into the mug and cooked for 2-2.25 minutes. Not as ‘fluffy’ without the egg, but a good substitute with great flavor.

    Sift in small mixing bowl 1/4 c. flour (same at 4 T.), 1/4 c. sugar, 2 T. powdered cocoa, 1/8 t. salt, 1/4 t. baking soda.
    Pour on top 2-1/2 T. veggie oil, 3 T. water, 1/2 t. vanilla, mix well. Add 1/2+ t. white vinegar and mix well again, pour into mug and cook 2.25 minutes.

4 from 4 votes

Leave a Reply

Your email address will not be published. Required fields are marked *

Recipe Rating




This site uses Akismet to reduce spam. Learn how your comment data is processed.