Rich Chocolate Cupcakes with Peanut Butter Swirl are the perfect fusion of two classic flavors—deep, velvety chocolate and creamy, salty-sweet peanut butter. These indulgent cupcakes are soft, moist, and packed with cocoa flavor, beautifully contrasted by ribbons of smooth peanut butter that are swirled right into the batter before baking. The result is a decadent dessert that’s both visually appealing and irresistibly delicious. Whether you’re serving them at a celebration, gifting them to someone special, or just treating yourself, these cupcakes are guaranteed to satisfy the cravings of chocolate and peanut butter lovers alike. Not only do they offer a luscious combination of textures and tastes, but they also present a stunning bakery-quality look with minimal effort. These cupcakes are a go-to for home bakers looking to impress with minimal complexity and maximum flavor.
The History of Chocolate and Peanut Butter in Baking
The rich tradition of combining chocolate and peanut butter in desserts has roots in early 20th-century America. Peanut butter became a staple in U.S. households during the 1900s, initially introduced as a protein source. Chocolate, already cherished for centuries, became widely available and affordable during the industrial revolution. The pairing of chocolate and peanut butter was popularized by confectionery brands, most notably in the creation of peanut butter cups in the 1920s and 1930s. This iconic combination was quickly embraced by home bakers, leading to countless innovations in cookies, bars, cakes, and cupcakes. The idea of swirling peanut butter into chocolate cake batter brought a new twist to traditional recipes, enhancing both flavor and presentation. Today, chocolate and peanut butter remain one of the most beloved pairings in the baking world, offering both comfort and indulgence.
Ingredients Breakdown
For the cupcakes: 1 cup (125g) all-purpose flour – forms the base and structure, ½ cup (45g) unsweetened cocoa powder – delivers the rich chocolate flavor, 1 teaspoon baking soda – helps the cupcakes rise, ½ teaspoon salt – balances sweetness and sharpens flavor, ¾ cup (150g) granulated sugar – sweetens the batter, ¼ cup (50g) brown sugar – adds moisture and a hint of caramel, ½ cup (120ml) vegetable oil – keeps the cupcakes moist and tender, 2 large eggs – add structure and richness, ½ cup (120ml) sour cream or Greek yogurt – enhances moisture and gives a soft crumb, ½ cup (120ml) hot water or coffee – intensifies the chocolate flavor, 1 teaspoon vanilla extract – brings the flavors together. For the peanut butter swirl: ½ cup (125g) creamy peanut butter – provides the distinct swirl and rich flavor, 2 tablespoons (30g) powdered sugar – sweetens the peanut butter slightly and helps it set, 1 tablespoon (15ml) milk – loosens the peanut butter for easier swirling.
Step-by-Step Recipe
Preheat your oven to 350°F (177°C) and line a 12-count muffin tin with cupcake liners. In a medium bowl, whisk together the flour, cocoa powder, baking soda, and salt. In a separate large bowl, beat together the granulated sugar, brown sugar, and oil until smooth. Add the eggs, one at a time, mixing well after each addition. Stir in the sour cream and vanilla extract. Slowly incorporate the dry ingredients into the wet, mixing until just combined. Carefully stir in the hot water or coffee, creating a smooth but thin batter. In a small bowl, mix the peanut butter, powdered sugar, and milk until well blended and smooth. Fill each cupcake liner about halfway with chocolate batter. Drop 1 to 2 teaspoons of the peanut butter mixture on top of each, then use a toothpick or knife to gently swirl the peanut butter into the batter. Bake for 17–20 minutes or until a toothpick inserted in the center comes out clean. Let cupcakes cool in the pan for 5 minutes before transferring them to a wire rack to cool completely.
Tips for the Perfect Cupcake
Ensure all ingredients, especially eggs and sour cream, are at room temperature for a smooth, well-emulsified batter. Don’t overmix the batter after adding the dry ingredients to keep the cupcakes light and tender. Use high-quality cocoa powder for deeper chocolate flavor and brew fresh coffee if using it instead of hot water to enhance the richness. When swirling the peanut butter, avoid overmixing it into the chocolate—gentle swirls create the best visual effect and texture contrast. Let the cupcakes cool completely before storing or frosting to prevent sogginess. If you prefer more peanut butter, you can double the swirl mixture and use more per cupcake for a richer flavor.
Variations and Customizations
Add chocolate chips to the batter for extra bursts of chocolate. Use crunchy peanut butter instead of creamy for added texture. Replace peanut butter with almond or cashew butter for a different nutty twist. Top cooled cupcakes with chocolate ganache or peanut butter frosting for an extra-decadent finish. Turn these into layered mini-cakes by cutting them in half and adding frosting or a peanut butter-chocolate spread between the layers. For a fun surprise, hide a mini peanut butter cup in the center of each cupcake before baking. You can also make these gluten-free by using a 1:1 gluten-free flour substitute and dairy-free by replacing the sour cream with a non-dairy yogurt alternative and using plant-based milk.
Health Considerations and Nutritional Value
Rich Chocolate Cupcakes with Peanut Butter Swirl are a dessert best enjoyed in moderation. Each cupcake is typically around 300–400 calories, depending on the exact ingredients used. They are high in fats and sugars due to the peanut butter, oils, and sweeteners, but they also contain some protein from the eggs and peanut butter. Cocoa powder offers antioxidants, and if you use natural peanut butter, you gain some healthy fats. For a slightly lighter version, consider reducing the sugar slightly, using Greek yogurt instead of sour cream, or choosing a natural sweetener. Those with peanut allergies should replace peanut butter with a seed butter like sunflower seed butter. If you’re monitoring your sugar intake, you can use low-sugar or sugar-free alternatives in the batter and swirl.
FAQ
Can I make these cupcakes ahead of time? Yes, you can bake the cupcakes a day in advance and store them in an airtight container at room temperature or refrigerate them.
Can I freeze these cupcakes? Absolutely. Let them cool completely, then freeze them in an airtight container for up to 3 months. Thaw at room temperature before serving.
Do I have to use coffee in the batter? No, but it enhances the chocolate flavor. You can replace it with hot water if you prefer.
Can I use natural peanut butter? Yes, but make sure it’s well-stirred and smooth for easier swirling.
What if I want to frost them? You can top them with chocolate buttercream, peanut butter frosting, or even a swirl of both for added flair.
Can I make these gluten-free? Yes, just use a gluten-free 1:1 flour blend and ensure your baking powder and cocoa are certified gluten-free.
Can I make these vegan? Substitute eggs with flax eggs, use dairy-free yogurt and milk, and opt for vegan-friendly sugars.

Rich Chocolate Cupcakes with Peanut Butter Swirl
Ingredients
Ingredients for Chocolate Cupcakes
- ▢ ¼ cup unsweetened cocoa powder
- ▢ ½ cup all-purpose flour
- ▢ ½ teaspoon baking powder
- ▢ ¼ teaspoon baking soda
- ▢ ⅛ teaspoon salt
- ▢ ¼ cup ½ stick unsalted butter, at room temperature
- ▢ 6 tablespoons granulated sugar
- ▢ 1 large egg
- ▢ ½ teaspoon vanilla extract
- ▢ 2½ tablespoons sour cream
- ▢ 1 tablespoon melted chocolate cooled
Ingredients for Peanut Butter Cupcakes
- ▢ ½ cup plus 1 tablespoon all-purpose flour
- ▢ ¼ teaspoon baking soda
- ▢ ½ teaspoon baking powder
- ▢ ¼ teaspoon salt
- ▢ 2½ tablespoons creamy peanut butter
- ▢ 2 tablespoons vegetable oil
- ▢ ¼ cup packed brown sugar
- ▢ ¼ cup buttermilk
- ▢ 1 large egg
- ▢ ¼ teaspoon vanilla extract
- Ingredients for Chocolate Buttercream
- ▢ ½ cup 1 stick unsalted butter
- ▢ ½ cup vegetable shortening
- ▢ ¾ cup unsweetened cocoa powder
- ▢ 2 to 2½ cups powdered sugar
- Ingredients for Peanut Butter Buttercream
- ▢ ½ cup 1 stick unsalted butter
- ▢ ½ cup vegetable shortening
- ▢ ¾ cup creamy peanut butter
- ▢ 2 to 4 cups powdered sugar
Instructions
Chocolate Cupcakes
- Preheat your oven to 350°F (177°C) and line a 12-cup muffin tin with cupcake liners.
- In a small bowl, whisk together the cocoa powder, flour, baking powder, baking soda, and salt until evenly combined.
- In a larger bowl, cream the butter and sugar using an electric mixer until the mixture is light and fluffy. Add the egg and vanilla extract, and mix briefly until just combined.
- Stir in the sour cream and the cooled, melted chocolate using a spatula until smooth.
- Gradually add the dry ingredients to the wet mixture in two parts. Rather than dumping all the flour mixture in, lightly sprinkle spoonfuls over the wet ingredients, as if sifting it. Fold gently until no dry streaks remain, scraping the sides and bottom of the bowl to ensure everything is incorporated. Repeat with the remaining dry mixture. Set the chocolate batter aside.
Peanut Butter Cupcakes
- In a medium bowl, mix together the flour, baking soda, baking powder, and salt.
- In another bowl, combine the peanut butter, vegetable oil, and brown sugar. Beat together using an electric mixer until smooth and creamy.
- Add the egg and vanilla extract, then beat again until well combined.
- Add the dry ingredients and buttermilk in alternating additions, mixing by hand. Stir just until everything is fully incorporated and the batter is smooth.
Assembling the Cupcakes
- Spoon the chocolate and peanut butter batters alternately into the prepared cupcake liners, filling each one nearly to the top.
- Place the muffin tin in the center of the preheated oven and bake for 15 to 17 minutes, or until a toothpick inserted into the center of a cupcake comes out clean.
- Let the cupcakes rest in the pan for about 3 minutes, then remove them and place them upside down on a wire cooling rack. This cooling method helps create domed tops.
- Allow the cupcakes to cool completely before adding any frosting.
Chocolate Buttercream
- In a mixing bowl, beat together the butter and vegetable shortening using an electric mixer until fluffy and light.
- Add the cocoa powder and mix gently with a spatula until mostly incorporated.
- Gradually add the powdered sugar, 1 cup at a time. Start by mixing it in with a spatula, then switch to the electric mixer to beat until smooth. Continue adding powdered sugar until the flavor and consistency meet your preference.
Peanut Butter Buttercream
- In a large mixing bowl, beat the butter and vegetable shortening with an electric mixer until smooth and fluffy.
- Add in the peanut butter and beat again until well incorporated.
- Slowly add the powdered sugar, one cup at a time. Mix each addition by hand first, then beat with the mixer until the frosting is light and creamy. Add more powdered sugar as needed to reach your desired sweetness and texture.
To Frost the Cupcakes
- Prepare a piping bag fitted with a Wilton 6B tip. Carefully add the chocolate buttercream to one side of the piping bag and the peanut butter buttercream to the opposite side. Press the buttercream down into the bag evenly.
- Pipe the frosting onto each cooled cupcake, starting at the outer edge and spiraling inward toward the center. Continue layering the swirl upward to build a beautiful, stacked frosting dome.