You want chocolate cupcakes with a peanut butter filling, and the direct answer is: bake a standard chocolate cupcake, cut a cone out of the top, pipe in a peanut butter filling, then replace the top and frost. The rule to remember is that the filling should be thick enough to hold its shape—if it's too runny, it will soak into the cake and disappear. You'll make a filling from peanut butter, powdered sugar, and a little butter or cream, which stays firm at room temperature.
Quick answer: Bake chocolate cupcakes, cut out a small cone from the top, fill the hole with a peanut butter–powdered sugar mixture, replace the cone, and frost as usual.
The Filling Needs to Be Thick, Not Runny
The most common mistake is making the filling too thin, like a sauce. A thin peanut butter mixture will soak into the cupcake and make it soggy, and you won't taste it distinctly. The correct approach is to mix peanut butter with powdered sugar until it forms a stiff paste—similar to the texture of play dough. That paste stays put inside the cake and gives a clear peanut butter bite in every mouthful.
For a standard recipe, use 1 cup (240 g) creamy peanut butter, 1 cup (120 g) powdered sugar, and 2 tablespoons (30 g) softened butter. Beat them together until smooth. If the mixture is too crumbly, add 1–2 teaspoons of milk or cream; if it's too sticky, add a little more powdered sugar. The filling should be firm enough to roll into a ball without sticking to your fingers.
How to Fill the Cupcakes Without Tearing Them
Fill the cupcakes after they have cooled completely—warm cake will crumble and the filling will melt. Use a small knife or a cupcake corer to cut a cone-shaped piece from the center of each cupcake. Cut about 1 inch (2.5 cm) deep and 1 inch wide at the top. Remove the cone, trim off the pointed tip so you have a flat piece to put back, and set it aside.
Fill the hole with about 1 tablespoon (15 ml) of the peanut butter mixture. Press it in gently, leaving a slight mound on top. Replace the cone piece, pressing it down lightly so it's level with the top of the cupcake. If you're frosting with a piping bag, the seam will be hidden. If you're spreading frosting with a knife, smooth the top before frosting.
For a faster method, you can cut a small plug from the center with a knife, fill, and replace the plug—no need for a fancy corer. The key is to keep the cake intact, so use a gentle sawing motion rather than pushing straight down.
Bake the Cupcakes First: Temperature and Doneness
Bake the chocolate cupcakes at 350°F (175°C) for 18–22 minutes, until a toothpick inserted in the center comes out with a few moist crumbs, not wet batter. This is the standard range for most cupcake recipes, but always check at 18 minutes and add time in 2-minute increments. Overbaking dries out the cake, which makes it more likely to crumble when you cut the hole.
Let the cupcakes cool in the pan for 5 minutes, then transfer to a wire rack to cool completely. Cooling takes about 30–45 minutes. Do not fill them while they are still warm—the filling will melt and the cake will tear.
Frosting Options: What Goes Well with Peanut Butter and Chocolate
Chocolate buttercream is the classic choice, but a peanut butter frosting also works if you want a double peanut butter hit. For a simple chocolate buttercream, beat 1/2 cup (115 g) softened butter, 2 cups (240 g) powdered sugar, 1/4 cup (30 g) unsweetened cocoa powder, and 3–4 tablespoons (45–60 ml) milk until fluffy. Spread or pipe onto the filled cupcakes.
If you prefer a lighter topping, a whipped cream frosting or a ganache drizzle works too. Ganache—melted chocolate and warm cream in a 1:1 ratio by weight—poured over the top will set into a shiny shell. Just let the cupcakes cool completely before adding any frosting, and refrigerate the finished cupcakes for 30 minutes if the frosting is soft.
How to Store Filled Cupcakes
Store filled and frosted cupcakes in an airtight container at room temperature for up to 2 days. The peanut butter filling is shelf-stable, but the frosting may soften. If your kitchen is warm (above 75°F/24°C), refrigerate them, but bring to room temperature before serving for the best texture. Refrigerated cupcakes will keep for up to 4 days, but the cake may dry out slightly.
You can freeze unfilled cupcakes for up to 3 months: wrap each in plastic wrap and place in a freezer bag. Thaw at room temperature for 1–2 hours, then fill and frost. Do not freeze filled cupcakes—the filling can separate and make the cake soggy when thawed.
If you have leftover peanut butter filling, it keeps in the refrigerator for up to 2 weeks. Let it come to room temperature before using, and add a teaspoon of milk if it's too stiff to pipe.
How to Make the Filling Dairy-Free or Vegan
If you need a dairy-free version, use a vegan butter substitute or omit the butter entirely. The filling will still hold together if you use just peanut butter and powdered sugar—the powdered sugar provides enough structure. For a vegan frosting, use a dairy-free butter and plant-based milk. Check the labels on your peanut butter and powdered sugar; most are naturally dairy-free, but some brands add milk powder.
For a lower-sugar filling, replace half the powdered sugar with peanut flour or oat flour. The texture will be less sweet and slightly more crumbly, so add a teaspoon of milk at a time until it holds. This changes the flavor—it will taste more like peanut butter and less like candy.
What to Do If the Filling Sinks or the Cupcake Splits
If the filling sinks into the cake, it means it was too thin. Next time, add more powdered sugar until the mixture is stiff. If the cupcake splits when you cut the hole, the cake was too warm or too dry. Let the cupcakes cool completely, and use a serrated knife with a gentle sawing motion. If a cupcake does tear, you can patch it by pressing the pieces together and frosting generously—no one will notice.
If you want a more even distribution of filling, you can pipe the filling into the center using a pastry bag fitted with a large round tip. Insert the tip about 1 inch (2.5 cm) into the top of the cupcake and squeeze while pulling up slowly. This method works best with a slightly thinner filling, but still thick enough to hold its shape.