Peanut Butter Frosted Chocolate Cupcakes Recipe
In this article
These chocolate cupcakes with peanut butter frosting combine deep cocoa flavors with a salty, creamy topping. They are a good choice for weekend baking, birthday parties, or potlucks where a crowd needs a handheld dessert. Serve them alongside a glass of cold milk or a cup of black coffee to balance the sweetness.
Cupcake Batter and Baking
The base of these cupcakes is a moist chocolate sponge that relies on a combination of cocoa powder and boiling water to bloom the chocolate flavor. Using boiling water dissolves the cocoa granules and releases the oils in the cocoa, resulting in a darker color and a more intense taste. Ensure all room-temperature ingredients, such as eggs and buttermilk, are truly at room temperature to prevent the batter from curdling or separating during the mixing process.
Because this recipe uses raw flour and raw eggs, it is important to handle them safely. Heat-treat the flour to 160 F (71 C) and let it cool before mixing, and use pasteurised eggs. This prevents the risk of foodborne illness from bacteria like E. coli or Salmonella. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid consuming raw eggs and raw flour in the batter.
Serves 12 Prep 20 min Cook 22 min Total 1 hr 12 min
Ingredients
- 1 1/2 cups (190 g) all-purpose flour (heat-treated)
- 1 cup (200 g) granulated sugar
- 1/3 cup (35 g) unsweetened cocoa powder
- 1 teaspoon (5 g) baking soda
- 1/2 teaspoon (3 g) baking powder
- 1/2 teaspoon (3 g) salt
- 1 large pasteurised egg
- 1/2 cup (120 ml) buttermilk, room temperature
- 1/4 cup (60 ml) vegetable oil
- 1 teaspoon (5 ml) vanilla extract
- 1/2 cup (120 ml) boiling water
- 1/2 cup (115 g) unsalted butter, softened
- 1/2 cup (125 g) creamy peanut butter
- 2 cups (240 g) powdered sugar
- 2 tablespoons (30 ml) heavy cream or milk
- 1/2 teaspoon (3 g) vanilla extract
Instructions
- Preheat your oven to 350 F (175 C). Line a 12-cup cupcake pan (approximately 3 inches or 7.5 cm in diameter per cup) with paper liners.
- In a large mixing bowl, whisk together the heat-treated flour, granulated sugar, cocoa powder, baking soda, baking powder, and salt until no lumps remain.
- Add the pasteurised egg, buttermilk, vegetable oil, and 1 teaspoon of vanilla extract to the dry ingredients. Beat with a hand mixer on medium speed for about 2 minutes until the batter is smooth.
- Stir in the boiling water by hand using a whisk or spatula. The batter will be very thin and watery; this is normal for this style of chocolate cake.
- Divide the batter evenly among the 12 liners, filling each about 2/3 full. Overfilling can cause the cupcakes to overflow or sink in the middle.
- Bake at 350 F (175 C) for 18-22 minutes. Insert a toothpick into the center of a cupcake; it is done when the toothpick comes out clean or with just a few moist crumbs attached.
- Remove the pan from the oven and let the cupcakes cool in the pan for 5-10 minutes before transferring them to a wire rack to cool completely. They must be entirely cold before frosting, or the peanut butter butter-cream will melt.
- Prepare the frosting by beating the softened butter and peanut butter together in a bowl until smooth and fluffy, about 2-3 minutes.
- Add the powdered sugar one cup at a time, beating on low speed first to avoid a sugar cloud, then increasing to medium speed.
- Stir in the heavy cream and vanilla extract. Beat on high for 1 minute until the frosting is light and airy. If the frosting is too stiff, add another tablespoon of cream; if too soft, add a tablespoon of powdered sugar.
- Pipe or spread the frosting onto the cooled cupcakes using a piping bag or a small offset spatula.
Equipment and Substitutions
A standard 12-cup muffin tin is the primary tool for this recipe. If you do not have a muffin tin, you can use sturdy foil cupcake liners placed inside a larger baking dish, though the sides may not rise as evenly. A hand mixer is recommended for the frosting to incorporate enough air for a fluffy texture, but a stand mixer works equally well. If you only have a whisk, you will need to beat the butter and peanut butter vigorously for several minutes before adding sugar.
For substitutions, you can replace the buttermilk with a mixture of 1/2 cup (120 ml) regular milk and 1/2 tablespoon of lemon juice or white vinegar. Let this sit for 5 minutes before using. This provides the acidity needed to activate the baking soda. If you prefer a different oil, melted coconut oil works as a 1:1 swap, though it may add a slight coconut flavor. For the peanut butter, almond butter or cashew butter can be used in a 1:1 ratio. Note that almond butter is often thinner than peanut butter, so you may need to add an extra 1/4 cup (30 g) of powdered sugar to the frosting to maintain the structure.
Cupcake Storage and Safety
Store the frosted cupcakes in an airtight container. They can be kept at room temperature for about 1-2 days, but because of the dairy in the frosting and buttermilk in the cake, it is safer to refrigerate them. In the refrigerator, these cupcakes stay fresh for 3-5 days. If you refrigerate them, let them sit at room temperature for about 30 minutes before eating to allow the butter in the frosting to soften, which improves the texture.
You can freeze the unfrosted cupcakes for up to 3 months. Wrap each cupcake tightly in plastic wrap and place them in a freezer-safe bag. To thaw, leave them in the refrigerator overnight or on the counter for 2 hours. If you freeze already-frosted cupcakes, place them in a single layer in a container with parchment paper between them to prevent the frosting from sticking. Thaw them slowly in the refrigerator to prevent condensation from forming on the frosting.
Always refrigerate perishable items like the buttermilk, eggs, and butter within 2 hours of purchase or preparation. If the cupcakes have been sitting out at room temperature for more than 2 hours (or 1 hour if the temperature is above 90 F/32 C), they should be discarded to avoid foodborne illness. When reheating a cupcake in the microwave, do so for only 5-10 seconds to avoid melting the frosting.
Common Baking Issues
If your cupcakes sink in the middle, it is often because the oven door was opened too early, causing a drop in temperature, or because too much baking soda was used. Ensure you level off your measuring spoons with a knife for exact quantities. If the cupcakes are too dry, you may have overbaked them or used too much flour. To avoid this, use a kitchen scale to measure flour by weight (190 g) rather than volume, as packing flour into a cup can lead to using too much.
When the frosting separates or looks curdled, it is usually because the butter was too cold or the cream was added too quickly. To fix this, gently warm the bowl by holding it over a pot of simmering water (a double boiler method) for a few seconds, then beat the frosting again on medium speed. This helps the fats and liquids emulsify. If the frosting is too sweet, add a pinch of salt to the mixture to cut through the sugar and enhance the peanut butter flavor.