Choose the right mug. Use a microwave-safe mug that holds at least 12 ounces.
This gives the cake room to rise without spilling over.
Mix the dry ingredients. Add flour, sugar, cocoa powder, baking powder, and a pinch of salt to the mug. Whisk with a fork until evenly combined and no cocoa clumps remain.
Add the wet ingredients. Pour in the milk, oil (or melted butter), peanut butter, and vanilla. Stir until the batter looks smooth and glossy, scraping the bottom and sides of the mug.
Add mix-ins if you like. Fold in chocolate chips, a dash of cinnamon, or a few crushed peanuts for extra texture and flavor.
Microwave in short bursts. Cook on high for 45 seconds, then check.
Continue in 10–15 second bursts until the top is set and springs back lightly when touched. Total time is usually 60–90 seconds depending on your microwave.
Rest briefly. Let it sit for 1–2 minutes. The cake finishes setting and becomes fluffier as it cools slightly.
Finish and serve. Drizzle a little warm peanut butter on top, add a few chocolate chips, or a scoop of ice cream.
Enjoy straight from the mug.