Food

How to Make a Cookie Dough Mug Cake

By Hayride Live · Updated · 5 min read

Cookie dough mug cake is a single-serving dessert that tastes like the inside of a chocolate chip cookie, but it’s cooked in the microwave in about a minute. The method below makes a soft, cakey version that’s safe to eat because the flour is heat-treated and the egg is cooked through. If you want a truly raw-center mug cake, you’ll need the eggless variation further down.

Before You Start: What You Need and Why

You’ll need a microwave-safe mug that holds at least 12 ounces (360 ml) — a standard coffee mug works. The mug should be at least 3 inches (7.5 cm) tall so the batter doesn’t overflow when it rises. You’ll also need a small bowl for mixing, a fork or whisk, and a measuring spoon set. The ingredients are pantry staples: butter, sugar, egg yolk, vanilla, flour, baking soda, salt, and chocolate chips. The flour must be heat-treated first to kill any bacteria, because this recipe is eaten straight from the mug without further cooking.

Heat-Treat the Flour (Do This First)

Raw flour can carry harmful bacteria, so it needs to reach 160°F (71°C) before you eat it. Spread 2 tablespoons (16 g) of all-purpose flour on a microwave-safe plate. Microwave on high for 30 seconds, stir, then microwave another 15–30 seconds until the flour reaches 160°F (71°C) on an instant-read thermometer. Let it cool completely before using. You can also toast it in a dry skillet over medium heat for 2–3 minutes, stirring constantly, until it hits 160°F (71°C).

This makes one mug cake. The total time from start to eating is about 5 minutes.

  1. Melt 1 tablespoon (14 g) unsalted butter in the mug in the microwave for 15–20 seconds, until just melted. Stir in 2 tablespoons (25 g) granulated sugar and 1 large egg yolk (save the white for another use). Mix until smooth.
  2. Add 1/4 teaspoon vanilla extract, 2 tablespoons (16 g) heat-treated all-purpose flour, 1/8 teaspoon baking soda, and a tiny pinch of salt. Stir until no dry streaks remain.
  3. Fold in 1 tablespoon (15 g) chocolate chips. The batter will be thick — that’s correct.
  4. Microwave on high for 45–60 seconds. Start checking at 45 seconds; the cake should be set on top but still slightly moist in the center. The top will look dry and spring back when lightly touched. If it’s still wet, microwave in 10-second bursts.
  5. Let the mug cake cool for 1 minute in the mug before eating. It will be very hot.

How to Tell It Worked

The cake should have risen slightly above the rim of the mug, and the top should be dry to the touch. When you press the center gently with a finger, it should feel firm and spring back, not sink or leave a wet indentation. The edges will be slightly darker and the center will be the softest part. If you insert a toothpick into the center, it should come out with moist crumbs but no raw batter. The texture is like a dense, soft cookie — not a fluffy cupcake.

The One Failure People Hit: Overcooking

The most common problem is a dry, rubbery mug cake. That happens when you microwave it too long. Because microwaves vary in power (most are 700–1100 watts), the time can range from 45 seconds to 90 seconds. Start with 45 seconds, check, then add 10-second bursts. The cake will continue to set as it cools, so it’s better to pull it out when the center still looks slightly underdone. If you overdo it, the texture becomes tough and the chocolate chips may burn. There’s no fix for an overcooked mug cake — you’ll need to start over, but now you know to check earlier.

If you want a mug cake with a gooey, raw-cookie-dough center, skip the egg yolk and use the eggless version below. This one is safe to eat even if the center stays soft, because there’s no egg to worry about — but the flour still needs heat-treating.

  1. In the mug, melt 1 tablespoon (14 g) butter. Stir in 2 tablespoons (25 g) brown sugar, 1 tablespoon (15 ml) milk (any kind), and 1/4 teaspoon vanilla.
  2. Add 2 tablespoons (16 g) heat-treated flour, 1/8 teaspoon baking soda, and a pinch of salt. Stir until smooth.
  3. Fold in 1 tablespoon (15 g) chocolate chips.
  4. Microwave on high for 35–50 seconds. The edges will be set, but the center will look soft and slightly glossy. Let it cool for 1 minute before eating — the center will set a bit more but stay gooey.

Worked Example: Doubling for Two Mugs

To make two mug cakes, double every ingredient: 2 tablespoons (28 g) butter, 1/4 cup (50 g) sugar, 2 egg yolks (or 2 tablespoons milk for eggless), 1/2 teaspoon vanilla, 1/4 cup (32 g) flour, 1/4 teaspoon baking soda, a pinch of salt, and 2 tablespoons (30 g) chocolate chips. Mix in a bowl, then divide between two mugs. Microwave each mug separately — do not cook both at once, because they’ll cook unevenly. Each mug will take the same 45–60 seconds.

How to Store and Reheat a Mug Cake

Mug cakes are best eaten immediately, but if you have leftovers, cover the mug with plastic wrap and refrigerate within 2 hours. It will keep for up to 2 days. To reheat, microwave on 50% power for 20–30 seconds until warm. The texture will be denser after refrigeration. Do not leave a mug cake sitting out at room temperature for more than 2 hours, because it contains butter and egg (or milk).

What If I Only Have Whole Eggs or No Butter?

If you don’t want to separate an egg, use 1 large whole egg instead of the yolk, but reduce the flour to 1.5 tablespoons (12 g) and add 1 tablespoon (8 g) more flour if the batter looks too thin. The cake will be slightly more fluffy and less rich. For a no-butter version, use 1 tablespoon (15 ml) coconut oil or vegetable oil — the flavor will be less buttery, and the texture will be a bit more tender. If you’re out of chocolate chips, chop a square of chocolate bar into small pieces, or use 1 tablespoon (15 g) of peanut butter chips or white chocolate chips. Each swap changes the flavor and sweetness slightly, but the method stays the same.

Raw Flour and Raw Egg Safety in Mug Cakes

This recipe uses heat-treated flour and a cooked egg yolk, so it’s safe to eat as written. If you choose to make a version with raw egg (not recommended), you must use pasteurised eggs and heat-treated flour, and you should avoid it if you’re pregnant, a young child, an older adult, or have a weakened immune system. The eggless version above eliminates the egg risk entirely. Always refrigerate any leftover mug cake within 2 hours, and never reheat it more than once.

Spotted a mistake? Tell us and we will correct it. How we write and check articles.