The first thing you notice about these Midnight Raspberry Lava Cupcakes is the color. Dark chocolate cake sits beneath a tall swirl of vivid raspberry buttercream. Then you cut one open. A thick, ruby-red raspberry center begins to run through the chocolate crumb. It is glossy, tart, sweet, and deliberately messy in the best possible way.
Chocolate and raspberry cupcakes are not new, but the texture of the filling changes this version. Many recipes use jam or preserves inside the cake. Here, we cook fresh raspberries into a thick compote. That gives us more control over sweetness, acidity, and consistency. Similar chocolate-raspberry cupcakes commonly combine a moist cocoa cake with a fruit filling, while other versions use preserves for the center. For more baking inspiration, visit RecipesMind.
Fresh raspberries also deserve careful handling because some are used uncooked for decoration. The FDA’s fresh produce safety guidance recommends rinsing produce thoroughly under running water rather than using soap or commercial produce wash. Dry the berries carefully afterward. This matters here because wet raspberries can bleed onto the buttercream.
These cupcakes look like something from a pastry case, but every part can be made in a home kitchen. You do not need to create a true underbaked chocolate lava cake. In fact, that would make filled cupcakes much harder to handle. The “lava” comes from a cooked raspberry center that slowly spills out when the cupcake is cut.
Affiliate disclosure: As an Amazon Associate I earn from qualifying purchases. This article may contain affiliate links to kitchen tools I find useful for preparing this recipe.
JUMP TO
Why These Midnight Raspberry Lava Cupcakes Work
The recipe has three distinct textures.
First comes the dark chocolate cupcake. Oil keeps its crumb soft, while cocoa gives it the deep color seen in the finished cupcake. Hot coffee helps bring out the cocoa flavor without making the cupcake taste strongly of coffee.
Next comes the raspberry lava filling. It is not a thin raspberry sauce. It must be thick enough to stay inside the cupcake but soft enough to move when you cut through it.
Finally, there is the raspberry buttercream. It needs enough structure to hold tall curved ridges from a piping tip. Adding ordinary raspberry puree straight to buttercream can introduce too much water. Reducing the puree first solves that problem and also creates a stronger pink color.
The result is rich without tasting flat. Cocoa brings bitterness. Raspberry adds acidity. Buttercream supplies sweetness and a creamy finish.
If you enjoy working with fruit in desserts, our guide to what strawberry puree is made from is also useful for understanding fruit-based fillings and sauces.
Ingredients for 12 Cupcakes
Chocolate cupcakes
- 1 cup (125 g) all-purpose flour
- 1/2 cup (45 g) unsweetened cocoa powder
- 3/4 cup (150 g) granulated sugar
- 1 teaspoon baking powder
- 1/2 teaspoon baking soda
- 1/4 teaspoon fine salt
- 1 large egg, at room temperature
- 1/2 cup (120 ml) whole milk, at room temperature
- 1/3 cup (80 ml) neutral vegetable oil
- 1 teaspoon pure vanilla extract
- 1/2 cup (120 ml) very hot coffee or hot water
For the deepest color, use a good-quality dark or Dutch-process cocoa that works with the leavening in the recipe. Do not use sweetened hot cocoa mix.
Raspberry lava center
- 1 1/2 cups (about 185 g) fresh or frozen raspberries
- 1/3 cup (67 g) granulated sugar
- 1 tablespoon fresh lemon juice
- 1 tablespoon (8 g) cornstarch
- 1 tablespoon cold water
- Small pinch of salt
Frozen raspberries work well for the cooked filling. There is no need to thaw them first, although cooking may take a little longer.
Raspberry buttercream
- 1 cup (226 g) unsalted butter, softened but not greasy
- 3 1/2 cups (420 g) powdered sugar, sifted if lumpy
- 2 to 3 tablespoons thick reduced raspberry puree
- 1 teaspoon vanilla extract
- Pinch of fine salt
- 1 to 2 teaspoons heavy cream or milk, only if needed
The original concept calls for 1/3 cup raspberry puree. For tall piping like the cupcake in the reference image, that can make conventional American buttercream too soft if the puree contains a lot of water. Reducing the puree first and adding it gradually gives much better control.
Decoration
- 12 fresh raspberries
- 2 to 3 oz (55–85 g) dark chocolate
- Optional extra small chocolate curls
For the same presentation, use one raspberry on the peak of each cupcake and several irregular dark chocolate curls around it.
Equipment That Makes the Recipe Easier
You can make the cupcakes with ordinary kitchen tools, but four pieces of equipment are particularly useful:
- 12-cup muffin pans on Amazon for evenly shaped cupcakes.
- cupcake liners on Amazon for the dark presentation shown in the reference.
- large piping tips and piping bags on Amazon for the tall raspberry swirl.
- cupcake corers on Amazon for making a neat pocket without cutting through the bottom.
Affiliate disclosure: Replace these standard Amazon links with your own Amazon Associates links before publishing. If you earn commissions, include the disclosure required for your account and applicable rules.
Make the Thick Raspberry Lava Filling First
Start here because the filling must be completely cool before it enters the cupcakes.
Put the raspberries, sugar, lemon juice, and pinch of salt into a small saucepan. Set it over medium-low heat.
Cook for about 5 to 7 minutes, stirring and crushing some of the berries. You want the raspberries to release their juice while retaining a little texture.
In a separate cup, stir the cornstarch with cold water until smooth. Never add dry cornstarch directly to the bubbling berries. It can form stubborn white lumps.
Pour the slurry into the raspberry mixture while stirring.
Cook for another 1 to 2 minutes. The filling should become noticeably thicker and glossy. Drag a spatula across the bottom of the pan. The mixture should leave a trail for a moment before flowing back.
Remove it from the heat.
Transfer the compote to a shallow bowl and cool completely. It will become thicker as it cools.
Do not thin it. The dramatic center depends on this consistency. A watery sauce will migrate into the cake and leave you with wet crumb rather than a distinct red core.
How to Bake the Dark Chocolate Cupcakes
Preheat the oven to 350°F (175°C). Place the rack in the center of the oven and line a standard 12-cup muffin pan.
In a large bowl, whisk together the flour, cocoa, sugar, baking powder, baking soda, and salt.
Break up every visible cocoa lump.
In another bowl, whisk the egg, milk, vegetable oil, and vanilla until smooth.
Pour the wet mixture into the dry ingredients. Stir just until mostly combined.
Now slowly pour in the hot coffee while whisking gently.
The batter will look considerably thinner than traditional vanilla cupcake batter. That is expected.
Divide it between 12 liners. Each should be about two-thirds full. An ice cream scoop can make portioning easier.
Bake for 17 to 20 minutes.
Check at 17 minutes. A toothpick inserted near the center should emerge with a few moist crumbs rather than liquid batter.
Do not keep baking simply because the cakes look very soft. Chocolate cupcakes can become dry quickly after they are fully set.
Let them sit in the pan for about 5 minutes. Transfer them to a wire rack and allow them to cool completely before filling.
That cooling stage is essential. Warm cake can soften both the compote and buttercream.
Make a Raspberry Reduction for Bright Pink Buttercream
This small step makes a major difference.
Take about 1/2 cup raspberry puree and put it in a small saucepan. Cook over low to medium-low heat, stirring frequently, until it reduces to roughly 3 tablespoons.
The puree should become concentrated rather than watery.
Pass it through a fine-mesh sieve if you want smooth frosting without raspberry seeds.
Then let it cool completely.
Do not add warm puree to butter. Warm fruit can soften the fat and ruin the piping consistency.
For another useful fruit technique, see our guide on how to make puree.
Make the Raspberry Buttercream
Place the softened butter in a large mixing bowl.
Beat for 3 to 4 minutes until lighter in color and creamy.
Add the powdered sugar gradually, about one cup at a time. Start the mixer on low so the sugar stays in the bowl.
Add vanilla and salt.
Now beat in 2 tablespoons of cold reduced raspberry puree.
Check the consistency before adding more.
The finished frosting should form a stiff peak that bends slightly at the end. It should be creamy enough to pipe but firm enough for a tall swirl.
If it is too stiff, add milk or cream 1 teaspoon at a time.
If it is too soft, chill it for 10 to 15 minutes. You can also add a little more powdered sugar.
Do not keep adding raspberry puree just to obtain a darker color. Extra liquid can make the frosting slump. Concentrated puree is the key to getting strong raspberry flavor and a naturally rich pink tone.
Create the Raspberry Lava Center
Once the cupcakes are completely cold, use a cupcake corer or small paring knife to remove a cylinder from the middle.
Make each cavity about 1 inch wide and 1 inch deep.
Do not cut all the way through the cupcake. Leave cake at the bottom to contain the filling.
Spoon about 1 to 1 1/2 tablespoons of cooled raspberry compote into each cavity.
For the visual effect in the reference cupcake, fill the cavity generously. The compote should reach close to the top.
You can place a thin piece of the removed cake over the filling, but it is not required. The buttercream will cover the opening.
This method creates a real pocket of raspberry rather than a few scattered streaks.
Pipe the Tall Raspberry Swirl
Fit a large piping bag with a large open-star or French-star tip.
Fill it no more than two-thirds full. An overfilled bag is harder to control.
Begin piping at the outside edge of the cupcake. Move inward in a steady circle. Build another layer above the first, then finish toward the center.
For the reference look, the frosting should be tall, textured, and slightly dramatic rather than perfectly smooth.
Place one fresh raspberry upright at the top.
Then add several dark chocolate curls around the raspberry.
To make irregular curls, bring a vegetable peeler gently along the edge of a room-temperature chocolate bar. Some pieces will curl while others will break into shards. Both shapes work well here.
The final cupcake should have:
- Very dark chocolate cake
- Deep raspberry-pink frosting
- A tall ridged swirl
- One fresh raspberry on top
- Dark chocolate curls
- A thick, bright red center visible when cut open
How to Get That Slow Raspberry “Lava” Effect
This is where the recipe can succeed or fail.
The filling should not behave like syrup.
You are aiming for the consistency of a loose, thick preserve. When the cupcake is cut vertically, the raspberry center should remain visible for a moment and then slowly move down the exposed crumb.
If it runs instantly onto the plate, it was too thin.
If it stays in a solid lump, it was cooked too far.
Cornstarch is what gives the fruit enough body, while lemon juice keeps the raspberry flavor bright.
Allowing the compote to cool is equally important because hot starch-thickened mixtures appear thinner than they will be at room temperature.
Common Mistakes to Avoid
Overfilling the cupcake liners: Too much batter can create broad mushroom-shaped tops and make neat frosting difficult.
Overmixing after adding flour: Mix only until the batter is uniform.
Using warm cupcakes: Buttercream will soften and slide.
Using runny raspberry puree in the frosting: Reduce it first.
Making the filling too thin: A sauce will soak into the crumb instead of producing the red center.
Cutting the cavity too deeply: Leave enough cake at the base to prevent leaks.
Decorating with wet berries: Pat washed raspberries dry before placing them on buttercream.
If fruit-forward baking is your thing, you may also like this strawberry-filled chocolate cake guide.
Storage and Make-Ahead Instructions
The cupcakes themselves can be baked one day before assembly. Once completely cool, store them tightly covered.
The raspberry filling can also be prepared ahead and refrigerated in a covered container.
Buttercream is easiest to pipe when it is cool but pliable. If refrigerated, let it soften slightly and beat it briefly before filling the piping bag.
Because the finished cupcakes contain fresh fruit and a fruit-heavy frosting, I prefer refrigerating leftovers in a covered container. The USDA’s SNAP-Ed resource also recommends refrigerating fresh raspberries and notes their relatively short storage life.
For the best eating texture, take the cupcakes out of the refrigerator for a short period before serving so the buttercream and cake can soften.
Frequently Asked Questions
Why are they called Midnight Raspberry Lava Cupcakes?
“Midnight” describes the very dark chocolate cake, while “lava” refers to the thick raspberry center that slowly spills from the cupcake after it is cut.
Can I use frozen raspberries?
Yes. Frozen raspberries are excellent for the cooked filling and reduced puree. Use fresh, dry raspberries for the garnish when you want the closest match to the reference presentation.
Can I use water instead of coffee?
Yes. Use the same quantity of hot water. Coffee provides another layer of roasted flavor, but it is not required for the recipe to work.
Why is my raspberry filling disappearing into the cake?
It is probably too thin. Cook it until glossy and visibly thick, then let it cool completely before filling the cupcakes.
Why did my raspberry buttercream become runny?
The most common causes are warm butter, warm raspberry puree, or too much fruit liquid. Use a cold, reduced puree and add it gradually.
Can I use raspberry jam instead?
You can, and filled chocolate cupcakes are often made with raspberry preserves. However, homemade compote gives you better control over the fresh raspberry flavor and the flowing consistency that defines this version.
How do I keep the cupcakes moist?
Measure flour carefully, use oil as listed, and avoid overbaking. Pull the cupcakes from the oven once the center is set and a tester shows moist crumbs rather than wet batter.
Can I remove the raspberry seeds?
Yes. Push the cooked raspberry mixture through a fine-mesh sieve before adding the cornstarch slurry. Return the strained liquid to the saucepan, thicken it, and cool it. The result will be smoother and more polished.
Print
Midnight Raspberry Lava Cupcakes
Rich dark chocolate cupcakes filled with a thick, glossy raspberry compote and topped with fluffy raspberry buttercream, fresh raspberries, and dark chocolate curls. Cut one open to reveal a ruby-red raspberry center that slowly spills into the moist chocolate crumb.
- Total Time: 1 hour 40 minutes
- Yield: 12 cupcakes
Ingredients
Chocolate Cupcakes
- 1 cup (125 g) all-purpose flour
- 1/2 cup (45 g) unsweetened cocoa powder
- 3/4 cup (150 g) granulated sugar
- 1 teaspoon baking powder
- 1/2 teaspoon baking soda
- 1/4 teaspoon fine salt
- 1 large egg, room temperature
- 1/2 cup (120 ml) whole milk, room temperature
- 1/3 cup (80 ml) neutral vegetable oil
- 1 teaspoon vanilla extract
- 1/2 cup (120 ml) hot brewed coffee or hot water
Raspberry Lava Filling
- 1 1/2 cups (about 185 g) raspberries, fresh or frozen
- 1/3 cup (67 g) granulated sugar
- 1 tablespoon fresh lemon juice
- Pinch of fine salt
- 1 tablespoon (8 g) cornstarch
- 1 tablespoon (15 ml) cold water
Raspberry Buttercream
- 1 cup (226 g) unsalted butter, softened
- 3 1/2 cups (420 g) powdered sugar
- 2–3 tablespoons thick, cooled reduced raspberry puree
- 1 teaspoon vanilla extract
- Pinch of fine salt
- 1–2 teaspoons heavy cream or milk, only if needed
Decoration
- 12 fresh raspberries
- 2–3 oz (55–85 g) dark chocolate, for curls
Instructions
Add the raspberries, sugar, lemon juice, and salt to a small saucepan.
Cook over medium-low heat for about 5–7 minutes, stirring frequently. Gently crush some of the raspberries as they soften.
Mix the cornstarch and cold water in a separate small bowl until completely smooth.
Stir the slurry into the simmering raspberries.
Cook for another 1–2 minutes, stirring constantly, until the mixture is thick and glossy.
Transfer to a shallow bowl and cool completely. The filling should resemble a loose, thick preserve rather than a thin sauce.
2. Prepare the oven and panPreheat the oven to 350°F (175°C).
Position a rack in the center of the oven.
Line a standard 12-cup muffin pan with cupcake liners.
3. Mix the dry ingredientsWhisk together the flour, cocoa powder, sugar, baking powder, baking soda, and salt.
Break apart any lumps of cocoa.
4. Add the wet ingredientsIn another bowl, whisk the egg, milk, vegetable oil, and vanilla.
Add the wet ingredients to the dry mixture.
Stir gently until almost combined.
5. Add the hot coffeeSlowly pour in the hot coffee while stirring gently.
The batter will be relatively thin. This is normal.
Do not continue mixing once the batter is smooth.
6. BakeDivide the batter evenly between 12 cupcake liners, filling each about two-thirds full.
Bake for 17–20 minutes.
Begin checking at 17 minutes. A toothpick inserted into the cake should come out with a few moist crumbs but no raw batter.
Cool in the pan for about 5 minutes.
Transfer the cupcakes to a wire rack and cool completely.
7. Prepare concentrated raspberry pureeSimmer about 1/2 cup raspberry puree over medium-low heat until reduced to roughly 3 tablespoons.
For smoother buttercream, strain out the seeds.
Cool the reduction completely before using it.
8. Make the raspberry buttercreamBeat the softened butter for 3–4 minutes until creamy and lighter in color.
Gradually beat in the powdered sugar.
Add the vanilla and salt.
Beat in 2 tablespoons of cooled raspberry reduction.
Add the remaining raspberry reduction gradually only if needed for flavor and color.
If the buttercream is too thick, add cream or milk 1 teaspoon at a time.
It should hold a defined piping peak.
9. Core the cupcakesOnce completely cool, remove a small cylinder from the middle of each cupcake.
Make each cavity approximately 1 inch wide and 1 inch deep.
Do not cut through the bottom.
10. Add the raspberry lava centerSpoon approximately 1–1 1/2 tablespoons of cooled raspberry filling into each cavity.
Fill close to the top without overflowing.
11. Pipe the frostingTransfer the raspberry buttercream to a piping bag fitted with a large star tip.
Pipe a generous, tall swirl over each cupcake.
12. DecorateTop each cupcake with one fresh raspberry.
Finish with irregular curls or small shards of dark chocolate.
For the dramatic lava presentation, cut a cupcake vertically through its center shortly before serving.
Notes
The filling matters: Do not use a thin raspberry sauce. It needs to be thick and glossy or it may soak into the chocolate crumb instead of forming the visible center.
Cool everything: Both the cupcakes and raspberry components must be cool before assembly.
For stronger pink frosting: Reduce the raspberry puree instead of adding more unreduced puree. This gives stronger color and flavor without introducing excessive liquid.
Coffee: Hot coffee deepens the cocoa flavor. Hot water can be substituted in the same quantity.
Frozen raspberries: They work well for the cooked filling and puree. Fresh raspberries are preferable for the final garnish.
Do not overbake: Begin checking the cupcakes at 17 minutes.
For the reference-photo appearance: Use dark cupcake liners, pipe a tall raspberry-pink swirl, place one raspberry upright on top, and add irregular dark chocolate curls.
- Prep Time: 35 minutes
- Additional/Cooling Time: 45 minutes
- Cook Time: 20 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
The Moment Worth Waiting For
The best part comes after all the piping and decorating.
Take one finished cupcake and cut straight through the center.
The knife passes through that tall raspberry swirl first. Then the dark chocolate crumb opens and reveals a glossy pocket of ruby fruit. If the compote was cooked correctly, it moves slowly down the cut surface rather than vanishing into the cake.
That contrast is what makes Midnight Raspberry Lava Cupcakes memorable: dark cocoa cake, bright raspberry, creamy pink frosting, fresh fruit, and little curls of bittersweet chocolate.
They look dramatic enough for Valentine’s Day, birthdays, dinner parties, or a dessert table. Yet underneath the decoration is a straightforward chocolate cupcake recipe with a carefully controlled fruit filling.
And once you know the three details that matter—do not overbake the chocolate cake, thicken the raspberry center properly, and reduce the puree before making the buttercream—the dramatic result becomes much easier to reproduce.
