Zimt

How to Make a Cookie in a Mug

· 5 min read · Cookies and Bars

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Making a cookie in a mug is a quick way to get a warm, single-serving dessert in about two minutes using a microwave. You mix a small batch of dough right in the mug, microwave it, and eat it straight from the cup. No oven preheating, no leftover dough, and minimal cleanup. Before you start, make sure you have a microwave-safe mug (not metal-trimmed) and a fork or small whisk.

What You'll Need

  • 1 microwave-safe mug (about 12 oz / 350 ml capacity)
  • 2 tablespoons unsalted butter, melted
  • 2 tablespoons granulated sugar
  • 1 large egg yolk (save the white for another use)
  • 1/4 teaspoon vanilla extract
  • 1/4 cup all-purpose flour
  • 1/8 teaspoon baking powder
  • Pinch of salt
  • 2 tablespoons chocolate chips or chopped chocolate
  • Fork or small whisk
  • Measuring spoons and a measuring cup

Step-by-Step

  1. Melt the butter in a small microwave-safe bowl for 20–30 seconds, or in the mug itself for 15–20 seconds. Let it cool slightly so it doesn't cook the egg yolk.
  2. Add the sugar to the melted butter in the mug. Stir with a fork until combined.
  3. Mix in the egg yolk and vanilla. Stir until the mixture is smooth and slightly thickened. Make sure the butter isn't hot—if it is, wait a minute.
  4. Add the dry ingredients: flour, baking powder, and salt. Stir until just combined. Do not overmix; a few streaks are fine.
  5. Fold in the chocolate chips with a few gentle stirs.
  6. Microwave on high for 40–50 seconds. Start with 40 seconds; the cookie should look set on top but still slightly soft in the center. If it's still wet and gooey, add 5–10 seconds more.
  7. Let it rest for 1–2 minutes in the mug. It will continue to cook slightly and set as it cools.
  8. Enjoy directly from the mug with a spoon. Add a scoop of ice cream or a drizzle of caramel if you like.

Common Mistakes

  • Overcooking: The most common error. Even 10 seconds too long makes a dry, rubbery cookie. Start with the shorter time and add more only if needed.
  • Using a whole egg: A whole egg makes the batter too runny and the final texture cakey or rubbery. Stick to just the yolk for a chewy cookie.
  • Mixing too much: Overmixing develops gluten, leading to a tough, dense result. Stir until the flour disappears.
  • Wrong mug size: A mug that's too small will overflow as the cookie rises. Use a 12-ounce mug or larger.
  • Forgetting baking powder: It's what gives the cookie a soft, slightly puffed texture. Without it, you get a flat, hard disc.

Tips

  • For a gooey center, undercook slightly: aim for 35–40 seconds. The center will look moist but not raw.
  • Use a microwave-safe mug with straight sides for even cooking. Wide mugs cook faster than tall, narrow ones.
  • If your microwave is low wattage (700W or less), you may need 50–60 seconds. High wattage (1000W+) may need only 30–40 seconds.
  • Substitute the chocolate chips with nuts, dried fruit, or white chocolate. Keep the total add-in amount to about 2 tablespoons.
  • To make it dairy-free, use coconut oil or vegan butter instead of regular butter. The texture will be slightly different but still good.
  • If you want a softer cookie, add 1 teaspoon of milk or water to the batter. For a firmer one, add an extra tablespoon of flour.

Troubleshooting

  • Cookie is dry or rubbery: You likely overcooked it. Next time, reduce time by 10–15 seconds. You can also add a teaspoon of milk to the batter before cooking.
  • Cookie is raw in the middle: If the center is still liquid after 50 seconds, microwave in 5-second increments until just set. Also check that your mug isn't too large—a wide mug spreads the batter thin and cooks faster.
  • Cookie overflowed the mug: Use a bigger mug next time, or reduce the batter by using a smaller egg yolk. Also make sure your mug is truly microwave-safe and not too narrow.
  • Cookie stuck to the mug: Let it cool for 2–3 minutes; it will release more easily. You can also lightly grease the mug with butter or cooking spray before adding the batter.
  • Cookie tastes like raw flour: This happens when the center isn't fully cooked. Microwave for another 10–15 seconds, but check every 5 seconds to avoid overcooking.
  • Cookie is too sweet or not sweet enough: Adjust the sugar by 1 teaspoon at a time. For a less sweet version, use only 1.5 tablespoons of sugar.

Frequently Asked Questions

Can I use a whole egg instead of just the yolk?

You can, but the texture will be more cake-like and less like a cookie. The white adds too much moisture and makes the batter runny. If you use a whole egg, increase the flour to 1/3 cup and expect a softer, cakier result.

Can I make this without an egg?

Yes. Replace the egg yolk with 1 tablespoon of milk or water plus 1/2 teaspoon of oil (like vegetable or coconut). The cookie will be slightly less rich but still works.

Can I use self-rising flour instead of all-purpose plus baking powder?

Yes. Use 1/4 cup of self-rising flour and omit the baking powder and salt. If your self-rising flour is salted, skip the extra salt.

How do I know when the cookie is done?

The top should look set and slightly puffed, and the center should be just barely moist—not shiny or wet. If you insert a toothpick, it should come out with a few moist crumbs, not raw batter.

Can I double the recipe?

Yes, but use a larger mug (16 oz) and increase the microwave time to about 1 minute 15 seconds to 1 minute 30 seconds. Check at 1 minute and add time in 10-second increments.

Is it safe to eat raw cookie dough in a mug?

No. The flour and egg in raw dough can contain harmful bacteria. Always microwave the cookie until it reaches a safe internal temperature (at least 160°F / 71°C) to kill any potential pathogens.