The Feast

Home cooking recipes for everyday dinners and easy entertaining

Peanut Butter Chocolate Swirled Cupcakes Recipe

· 6 min read · Baking and Desserts

These cupcakes suit weeknight baking or weekend treats when you want a familiar comfort with a playful twist. The chocolate cake batter and peanut butter batter swirl together for a marbled effect, and the cupcakes hold well for a day or two at room temperature. Serve them plain or with a dollop of whipped cream or a scoop of vanilla ice cream.

Peppered with cocoa and peanut butter, these cupcakes combine two classic flavors without being overly sweet or heavy. The texture is tender and moist, with distinct layers of chocolate and peanut butter visible in each slice.

Ingredients

For the chocolate cake batter

  • 1 cup (125 g) all-purpose flour
  • ¾ cup (150 g) granulated sugar
  • ¼ cup (25 g) unsweetened cocoa powder, natural or Dutch-processed
  • ½ tsp baking powder
  • ¼ tsp baking soda
  • ¼ tsp salt
  • ½ cup (120 ml) whole milk, room temperature
  • ¼ cup (60 ml) vegetable oil
  • 1 large egg, room temperature
  • ½ tsp pure vanilla extract

For the peanut butter batter

  • ½ cup (65 g) all-purpose flour
  • ¼ cup (50 g) granulated sugar
  • ¼ cup (55 g) packed light brown sugar
  • ¼ tsp baking powder
  • ¼ tsp salt
  • ¼ cup (65 g) smooth peanut butter (no-stir, not natural with oil separation)
  • ¼ cup (60 ml) whole milk, room temperature
  • 2 tbsp (30 g) unsalted butter, melted and cooled
  • 1 large egg, room temperature
  • ½ tsp pure vanilla extract

Serves 12 · Prep 25 min · Cook 18 min · Total 55 min

Instructions

  1. Preheat the oven to 350°F (175°C). Line a standard 12-cup muffin tin with paper liners. Set aside.
  2. Make the chocolate batter: In a medium bowl, whisk together 1 cup (125 g) flour, ¾ cup (150 g) sugar, ¼ cup (25 g) cocoa powder, baking powder, baking soda, and salt. In a separate bowl, whisk milk, oil, egg, and vanilla. Pour the wet ingredients into the dry and mix with a rubber spatula until just combined—do not overmix.
  3. Make the peanut butter batter: In another bowl, whisk together ½ cup (65 g) flour, ¼ cup (50 g) granulated sugar, ¼ cup (55 g) brown sugar, baking powder, and salt. Add peanut butter, milk, melted butter, egg, and vanilla. Mix until smooth, scraping the bowl well to ensure no dry spots remain.
  4. Fill each muffin cup about halfway with chocolate batter, then add about 1½ tablespoons of peanut butter batter on top. Use a skewer or toothpick to swirl gently—draw it through the batter 3–4 times in a figure-eight pattern. Do not over-swirl or the batters will fully blend.
  5. Bake for 18–22 minutes, until a toothpick inserted into the center comes out clean or with a few moist crumbs. Rotate the pan halfway through for even baking.
  6. Cool in the pan for 10 minutes, then transfer cupcakes to a wire rack to cool completely before storing or serving.

Substitutions

Use buttermilk instead of whole milk in either batter—reduce the baking powder to ¼ tsp and keep the baking soda. Buttermilk adds tang and tenderness without changing structure significantly.

For dairy-free: sub the milk with unsweetened almond or oat milk and use coconut oil or a plant-based butter alternative in the peanut butter batter. In the chocolate batter, use oil only. The texture may be slightly denser.

For natural peanut butter: drain off any oil that has separated before measuring. Use ¼ cup (65 g) by weight, not volume, because oil can throw off the fat balance. The cupcakes may spread more and the swirls will be less distinct.

Swap cocoa powder for melted chocolate: melt 2 oz (55 g) semisweet chocolate and cool to room temperature. Reduce the oil in the chocolate batter to 2 tbsp (30 ml) and add the melted chocolate with the milk. The batter will be darker and richer.

For gluten-free: use a 1:1 gluten-free baking flour blend (with xanthan gum) for both batters. The peanut butter batter may need an extra 1–2 tbsp of milk to reach the right consistency. Bake time may increase by 2–4 minutes.

Equipment

A standard 12-cup muffin tin works best. If using jumbo cups, fill only two-thirds full and increase bake time to 22–26 minutes. Mini muffin tins yield about 24 cupcakes—reduce bake time to 12–15 minutes.

Use a 1½-tablespoon cookie scoop for consistent peanut butter batter portions. For smoother swirling, chill the peanut butter batter for 15 minutes before scooping—it firms up slightly and holds its shape better in the cup.

A rubber spatula is essential for scraping bowls cleanly and preventing overmixing. Overmixed batter produces gummy cupcakes; mix only until no dry flour remains.

Storage

Cool cupcakes completely before storing. At room temperature, keep them covered in an airtight container for up to 2 days. In the refrigerator, they last 4 days—bring to room temperature before serving to restore texture.

For longer storage, wrap unfrosted cupcakes tightly in plastic wrap, then in foil, and freeze for up to 2 months. Thaw overnight in the refrigerator, then unwrap and bring to room temperature. Frost after thawing if desired.

Frosted cupcakes do not freeze well—the frosting can weep and separate. Freeze unfrosted and frost after thawing.

Swirl Technique Tips

The swirl should be visible but not overdone. Too few swirls give uneven distribution; too many blend the batters fully, losing the marbled effect. Aim for 3–4 gentle figure-eight passes with a toothpick or skewer.

If the peanut butter batter is too runny, the swirls will sink and blur. If it is too thick, it will not distribute well. Adjust with 1 tsp of milk at a time until it reaches the consistency of thick pancake batter.

Fill each cup no more than two-thirds full. Overfilling causes the batter to rise over the sides and merge into adjacent cups, breaking the swirl pattern.

Common Issues

Dense or gummy cupcakes usually result from overmixing or using cold eggs and milk. Always bring eggs and milk to room temperature (set out 30 minutes before baking) and mix the batter just until combined.

Flat or sunken centers

Browned tops but raw centers

Oil separation in peanut butter batter

FAQ

Can I make these ahead? Yes—bake and cool them the day before, store in an airtight container at room temperature, and frost just before serving. Frosting adds moisture and shortens shelf life.

Do I need to refrigerate them? No, not for up to 2 days at room temperature. If your kitchen is above 75°F (24°C), store them in the refrigerator to prevent softening.

Can I use crunchy peanut butter? Yes, but it will add texture and may make the swirls less smooth. The flavor remains the same, and some people prefer the crunch.

How do I know when they are done? Insert a toothpick into the center of a cupcake—it should come out clean or with a few moist crumbs. Overbaking dries them out; underbaking leaves them gummy.

Can I double the recipe? Yes—double all ingredients and bake in two batches if your oven cannot accommodate two full trays. Do not increase leaveners beyond doubling; measure carefully.

What if I want chocolate chips in them? Fold ¼ cup (45 g) semi-sweet chocolate chips into the chocolate batter only. Do not add to the peanut butter batter or the swirls will blur.

Can I frost them? Yes—use a simple peanut butter frosting (¼ cup (65 g) peanut butter, ½ cup (115 g) butter, 2 cups (250 g) powdered sugar, 2–3 tbsp milk) or chocolate ganache. Frost just before serving.

In this article
  1. Ingredients
  2. Instructions
  3. Substitutions
  4. Equipment
  5. Storage
  6. Swirl Technique Tips
  7. Common Issues
  8. FAQ