Ingredients
- 1 ½ cups (190 g) all-purpose flour
- 1 ½ tsp baking powder
- ¼ tsp salt
- ½ cup (115 g) unsalted butter, softened
- ¾ cup (150 g) granulated sugar
- 2 large eggs, at room temperature
- 1 tsp vanilla extract
- ½ cup (120 ml) whole milk, at room temperature
- 2 tbsp (15 g) unsweetened cocoa powder
- 2 tbsp (30 ml) hot water
Instructions
- Heat the oven to 350°F (177°C). Line a 12-cup muffin tin with paper liners.
- In a medium bowl, whisk the flour, baking powder, and salt. Set aside.
- In a large bowl, beat the butter and sugar with an electric mixer on medium speed until light and fluffy, about 2 minutes. Scrape down the bowl.
- Add the eggs one at a time, beating well after each. Beat in the vanilla.
- With the mixer on low, add the flour mixture in three additions, alternating with the milk in two additions, starting and ending with flour. Mix until just combined; do not overmix.
- In a small bowl, stir the cocoa powder and hot water until smooth. Let cool for 1 minute.
- Transfer about 1 cup (240 ml) of the vanilla batter to the cocoa mixture and stir until fully combined.
- Spoon 1 tablespoon of vanilla batter into each liner, then 1 teaspoon of chocolate batter on top. Use a toothpick or skewer to swirl the batters together with a few figure-eight motions. Do not over-swirl or the colors will blend into one muddy shade.
- Bake for 18–22 minutes, until a toothpick inserted in the center comes out clean and the tops spring back when pressed lightly. The cupcakes should be golden around the edges.
- Cool in the tin for 5 minutes, then transfer to a wire rack to cool completely before frosting.
Scale the Batch or Swap Ingredients
This recipe makes 12 standard cupcakes. For 6, halve every ingredient; for 24, double them. Use the same baking time for a half batch, but start checking at 15 minutes for a double batch since the oven works harder with more pans.
| Batch | Flour | Sugar | Butter | Eggs | Milk | Cocoa |
|---|---|---|---|---|---|---|
| Half (6) | ¾ cup (95 g) | 6 tbsp (75 g) | ¼ cup (57 g) | 1 | ¼ cup (60 ml) | 1 tbsp (7 g) |
| Full (12) | 1 ½ cups (190 g) | ¾ cup (150 g) | ½ cup (115 g) | 2 | ½ cup (120 ml) | 2 tbsp (15 g) |
| Double (24) | 3 cups (380 g) | 1 ½ cups (300 g) | 1 cup (230 g) | 4 | 1 cup (240 ml) | ¼ cup (30 g) |
For the cocoa mixture, use hot water to bloom the cocoa; this deepens the chocolate flavor. If you use Dutch-processed cocoa, the color will be darker and the swirl more defined. For a richer chocolate, replace the hot water with hot brewed coffee, but note the coffee flavor will be faint.
If you don’t have whole milk, use 2% or a plant-based milk like oat or almond. The cupcakes will be slightly less tender with lower-fat milks. For a dairy-free version, use vegan butter and your preferred plant milk; the texture will be a touch denser.
To make the swirl more dramatic, use a piping bag to pipe thin lines of each batter into the liner. Or, drop alternating spoonfuls of vanilla and chocolate batter, then swirl once. The key is to keep the two batters distinct before swirling.
Frost and Serve
These cupcakes are excellent plain, but a simple vanilla buttercream or chocolate ganache pairs well. For a classic look, use a star tip to pipe frosting in a swirl on top. Serve at room temperature with a glass of cold milk or coffee. They also work well for birthdays, bake sales, or a weekend treat.
Store Leftover Cupcakes
Unfrosted cupcakes keep in an airtight container at room temperature for up to 3 days. Frosted cupcakes should be refrigerated if the frosting contains dairy; bring them to room temperature before serving. You can freeze unfrosted cupcakes for up to 2 months. Wrap each in plastic wrap, then place in a freezer bag. Thaw at room temperature for about 1 hour before frosting.
Do not leave cupcakes out for more than 2 hours if they are filled or frosted with perishable ingredients like cream cheese or custard. If your kitchen is above 90°F (32°C), reduce that to 1 hour.
Why the Batter Splits and How to Fix It
If the batter looks curdled when you add the eggs, it’s usually because the butter and eggs were too cold. Warm the eggs quickly by placing them in a bowl of warm water for 5 minutes before adding. If the batter still splits, continue mixing; it will often come together once the flour is added. Overmixing after the flour is the bigger risk—stop as soon as the streaks disappear.
For even baking, fill each liner about two-thirds full. If you overfill, the tops will mushroom over the pan. If you underfill, the cupcakes will be flat and small.
Check for Doneness Without Guessing
The toothpick test is reliable: insert a toothpick into the center of a cupcake. If it comes out with wet batter, bake for 2 more minutes and test again. If it comes out with a few moist crumbs, they are done. The tops should also spring back when you press them gently with a finger. Cupcakes continue to cook slightly as they cool in the pan, so pulling them at the first sign of doneness prevents dryness.
Ovens vary, so start checking at 18 minutes. If you are baking a double batch, rotate the pans halfway through baking to ensure even browning.
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).






