These chocolate cupcakes are deeply rich and moist, with a surprise burst of tart-sweet raspberry jam hidden in the center. The combination of dark cocoa sponge and bright berry filling is a classic pairing that feels fancy but comes together with simple pantry staples. The raspberry filling keeps the cupcakes moist for days, making them perfect for birthdays, bake sales, or a weekend treat.
Ingredients
- For the cupcakes:
- 1 ½ cups (190g) all-purpose flour
- 1 cup (200g) granulated sugar
- ½ cup (50g) unsweetened cocoa powder (natural or Dutch-processed)
- 1 teaspoon baking soda
- ½ teaspoon baking powder
- ½ teaspoon salt
- 2 large eggs, at room temperature
- ½ cup (120ml) buttermilk, at room temperature
- ½ cup (120ml) warm water
- ¼ cup (60ml) vegetable oil
- 1 teaspoon vanilla extract
- For the raspberry filling:
- ¾ cup (about 120g) fresh or frozen raspberries
- 3 tablespoons (45g) granulated sugar
- 1 teaspoon lemon juice
- 1 teaspoon cornstarch mixed with 1 tablespoon cold water (slurry)
- For the chocolate buttercream (optional but recommended):
- 1 cup (2 sticks, 226g) unsalted butter, softened
- 2 cups (240g) powdered sugar, sifted
- ½ cup (50g) unsweetened cocoa powder
- 2–3 tablespoons heavy cream or milk
- 1 teaspoon vanilla extract
Instructions
- Make the raspberry filling: In a small saucepan, combine raspberries, sugar, and lemon juice. Cook over medium heat, mashing the berries with a spoon, until they release their juices and the mixture comes to a simmer (about 3–4 minutes). Stir in the cornstarch slurry and continue cooking for 1–2 minutes until thickened. Remove from heat and press through a fine-mesh strainer to remove seeds. Let cool completely. You should have about ⅓ cup of thick sauce.
- Preheat oven and prepare pan: Preheat your oven to 350°F (175°C). Line a 12-cup muffin tin with paper liners.
- Mix dry ingredients: In a medium bowl, whisk together flour, sugar, cocoa powder, baking soda, baking powder, and salt.
- Mix wet ingredients: In a large bowl, whisk eggs, buttermilk, warm water, oil, and vanilla until well combined.
- Combine batter: Add the dry ingredients to the wet ingredients and mix with a spatula or electric mixer on low speed until just combined. The batter will be thin—that’s normal.
- Fill the cups: Divide the batter evenly among the 12 liners, filling each about ⅔ full.
- Bake: Bake for 18–22 minutes, or until a toothpick inserted into the center comes out clean (a few moist crumbs are fine). Let cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
- Core the cupcakes: Once completely cool, use a small knife or a cupcake corer to remove a cone-shaped piece from the center of each cupcake, about ¾ inch deep and ¾ inch wide. Reserve the tops or discard them (they make a nice snack).
- Fill: Spoon or pipe the cooled raspberry filling into each hole. Fill almost to the top, then replace the top piece of cake (trimming the tip if needed) to close the hole.
- Make the buttercream (if using): Beat the softened butter on medium speed until smooth. Add powdered sugar, cocoa powder, vanilla, and 2 tablespoons of cream. Beat on low until combined, then increase to high and beat for 2–3 minutes until light and fluffy. Add more cream if needed for spreading consistency.
- Frost and serve: Frost the filled cupcakes with a knife or piping bag. Serve immediately or refrigerate until ready.
Tips
- Use room-temperature ingredients: Cold eggs and buttermilk can make the batter curdle. Set them out 30 minutes before starting.
- Don’t overmix: Overmixing develops gluten, making cupcakes tough. Mix until no streaks of flour remain.
- Cool completely before filling: If the cupcakes are warm, the filling will melt and soak in, ruining the texture. Cool on a rack for at least 30 minutes.
- Substitute the filling: No raspberries? Use seedless raspberry jam (warmed slightly to thin) or strawberry preserves. For a fresh berry version, chop ½ cup of fresh raspberries and stir into the sauce after cooking—skip the straining step.
Serving Suggestions
These cupcakes are delightful as-is, but a dusting of powdered sugar or a few fresh raspberries on top of the frosting adds elegance. Serve with a glass of cold milk, coffee, or a berry-infused iced tea. For a dessert platter, pair them with vanilla bean ice cream or a scoop of raspberry sorbet.
Variations
- White chocolate raspberry: Add ½ cup of white chocolate chips to the cupcake batter before baking, and use a white chocolate buttercream instead of chocolate.
- Gluten-free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture will be slightly more delicate.
- Mini cupcakes: Bake in mini muffin tins for 10–12 minutes. Use a small piping tip to fill them with raspberry sauce—you’ll need about half the filling.
- Vegan option: Replace the eggs with 2 flax eggs (2 tablespoons ground flaxseed + 6 tablespoons water), use almond milk mixed with 1 teaspoon vinegar instead of buttermilk, and use coconut oil instead of vegetable oil. The cake will be a bit denser.
Storage and Reheating
Room temperature: Store unfrosted or frosted cupcakes in an airtight container at room temperature for up to 2 days. The filling will keep them moist.
Refrigerator: For longer storage, refrigerate for up to 5 days. Bring to room temperature before serving for best flavor.
Freezer: Unfrosted, filled cupcakes freeze well for up to 3 months. Wrap each in plastic wrap and place in a freezer bag. Thaw overnight in the fridge or for a few hours at room temperature. Frost after thawing.
Reheating: Cupcakes are best at room temperature. If you prefer a warm treat, microwave a single cupcake for 10–15 seconds—but be aware the filling will become very hot.
Frequently Asked Questions
Can I use frozen raspberries for the filling?
Yes. Frozen raspberries work perfectly—just thaw them first and drain off any excess liquid before cooking. You may need to cook for an extra minute to thicken.
Why did my filling turn out runny?
If the filling is too thin, you likely didn’t cook the cornstarch long enough, or you added too much water. Make sure the mixture comes to a full simmer and thickens visibly before straining. You can also re-cook it with a little more cornstarch slurry.
Can I skip the buttercream and use a different frosting?
Absolutely. Cream cheese frosting, whipped cream, or a simple ganache all work well. If using whipped cream, frost just before serving to avoid it weeping.
How do I core the cupcakes without making a mess?
Use a small paring knife to cut a cone-shaped piece, or use an apple corer. For a cleaner look, use a piping tip to press and twist into the center. The hole doesn’t need to be perfect—the frosting will cover it.
Can I make the filling ahead of time?
Yes, the raspberry filling can be made up to 3 days in advance. Store it in an airtight container in the fridge. Let it come to room temperature before filling the cupcakes so it spreads easily.
Why did my cupcakes sink in the middle?
This usually happens if the oven door is opened too early, or if the batter was overmixed. Make sure your baking powder and soda are fresh, and don’t open the oven until at least 15 minutes of baking time have passed.