Moist Lemon Cupcakes with Raspberry Filling
I still remember the first time I made these Moist Lemon Cupcakes with Raspberry Filling for a summer picnic — the way the lemon smell filled the kitchen and the raspberries bubbled into a syrupy, bright red jam made everyone crowd the counter. If you like buttery cake that’s tender and a little springy, with…
I still remember the first time I made these Moist Lemon Cupcakes with Raspberry Filling for a summer picnic — the way the lemon smell filled the kitchen and the raspberries bubbled into a syrupy, bright red jam made everyone crowd the counter. If you like buttery cake that’s tender and a little springy, with a tart jammy center and a lemony buttercream to lean into that citrus brightness, this is the one I keep going back to when I want something that feels special but isn’t fussy. If you’re the type who likes a different twist sometimes, I’ll point you toward a seasonal riff I love, like these apple cider cupcakes with apple butter filling I made last fall — same comforting idea, different fruit.
The Ingredient That Changes Everything
When I talk about what makes these cupcakes sing, I always mention the lemon sugar. For the batter I use 3/4 cup granulated sugar and 1 tablespoon lemon zest (packed) — it’s worth taking that extra minute to rub the zest into the sugar until it smells like an orchard and the texture looks like damp sand. The rest of the batter is simple and honest: 1 1/2 cups cake flour (See notes below for measuring), 1/3 cup finely chopped pistachios, 2 teaspoons baking powder, 1/2 teaspoon fine sea salt, and 6 tablespoons cubed unsalted butter (room temperature). For the wet ingredients I whisk together 1/2 cup sour cream (room temperature), 1/2 cup whole milk (room temperature), 1/3 cup vegetable oil, 1 large egg (room temperature), 2 tablespoons fresh lemon juice, and 1 teaspoon vanilla extract. The raspberry center is made with 3 cups fresh or frozen raspberries, 1/4 cup granulated sugar, 2 teaspoons fresh lemon juice, and a cornstarch slurry of 1 tablespoon + 1 teaspoon tablespoon cornstarch mixed with 1 tablespoon water. For the frosting I keep it classic: 1 1/2 cups unsalted butter (room temperature), 2 cups powdered sugar, 3 tablespoons heavy cream, 1 tablespoon fresh lemon juice, and 2 teaspoons lemon zest. Finish with chopped pistachios and fresh raspberries for decorating.
Getting into the Kitchen (with a few tricks)
Line a 12-cup cupcake pan with liners. Preheat the oven to 350°F/180°C. I always set the pan on the counter and preheat first so the oven is ready the second the batter is mixed. Rub the lemon zest into the sugar until it looks like wet sand. There’s something about that action — rolling the zest between your fingers and sugar — that unlocks the aroma in a way sprinkling it later never does.
In a stand mixing bowl, whisk together the flour, lemon sugar, pistachios, baking powder, and salt. Mix in the butter on low speed for 3 minutes until it resembles coarse sand. If you don’t have a stand mixer, you can do this by hand with a pastry cutter; it just takes more arm time. In a separate bowl, whisk together the sour cream, milk, oil, egg, vanilla extract, and lemon juice. I always use room temperature dairy and egg because cold ingredients can make the batter seize and produce tougher cupcakes.
Mix the wets into the dries for a few seconds, then scrape down the bowl and continue mixing until just combined. Scoop into 12 cupcake liners, filling each one roughly 3/4 full. Bake for 15-20 minutes, or until a toothpick inserted comes out with a few moist crumbs attached. Let the pan cool on a wire rack for 5 minutes, then remove the cupcakes from the pan and let them continue cooling on the rack. That toothpick test is your best friend here — under-bake and the cake collapses when you core it to add filling; over-bake and you lose that tender crumb.
Make the raspberry filling. Cook the raspberries, sugar, and lemon juice over medium heat, mashing occasionally, until the filling is bright red and bubbly, about 10-12 minutes. Then mix in the whisked cornstarch and water. Cook 1-2 minutes longer until thickened. I like to strain mine for a completely smooth compote if I’m serving picky eaters, but leaving the seeds gives a rustic texture I adore. If you want a different jammy center, try making a quick blueberry compote instead — it pairs beautifully with lemon, and if you’re curious about other lemon-berry combos, I recently tested a riff inspired by these lemon cupcakes with strawberry buttercream that came out lovely.
Make the buttercream. Cream the butter until smooth, then mix in the powdered sugar. Once combined, mix in the heavy cream, lemon juice, and lemon zest. Continue beating until light and fluffy, 2-3 minutes longer. A light, airy buttercream is what keeps these cupcakes from feeling too sweet — the lemon cuts it just enough.
Assembly and a couple more tricks I swear by
Core the center of the cooled cupcakes and fill it with the raspberry compote. Pipe the lemon frosting around the core, then fill it with more raspberry filling. Garnish with chopped pistachios and fresh raspberries. Leave the cupcakes in the pan to core them. It’s easier to keep the cake intact, and you can remove them once cored. A piping bag with a large round tip is best used for the frosting! One tip: if the compote is very runny, chill it for 10-15 minutes so piping doesn’t turn into a sticky waterfall. Another is to spoon a little frosting into the hole before adding raspberry — it acts like a dam and keeps the filling from seeping out.
When Things Don’t Go As Planned
If your cupcakes sink after coring or the center collapses, it usually means they were slightly underbaked or the compote was too warm when added. If the buttercream is greasy, it was probably too warm or overbeaten; pop it in the fridge for 10 minutes and rewhip briefly. When I want to avoid seedy jams but still keep the bright color, I cook the raspberries a bit longer and press them through a fine mesh. Once, I swapped pistachios for slivered almonds because I couldn’t find pistachios, and while different, the almond crunch was a lovely alternative — small, respectful swaps like that are a good way to adapt if you’re missing one element.
Sides, Storage, and a Few Variations
These cupcakes are lovely with afternoon tea — I often put out a plate with a pot of Earl Grey or a citrusy iced tea and call it a weekday celebration. If you’re serving these at a brunch, a light yogurt parfait and fresh fruit complement them nicely, but they’re really happy on their own.
Leftovers keep surprisingly well. Store cooled, decorated cupcakes in an airtight container in the refrigerator for up to 4 days. If you want to make ahead, bake and freeze the plain cupcakes (no frosting) for up to a month; thaw, core, fill, and frost the day you plan to serve. For another savory-sweet idea to round out a lemon-themed menu, I like serving these alongside dishes like baked lemon garlic cod with butter sauce when I’m hosting a light dinner — lemon everywhere ties the meal together.
A couple of variations: fold white chocolate chips into the batter for a creamy contrast, or swap the pistachios for toasted hazelnuts for a different nutty profile. If you want to keep the citrus notes but change the fruit, blueberry or even a rhubarb compote works wonderfully. If you’re curious about other lemon-berry combinations, I’ve been inspired by a raspberry-lemon roll that uses a similar compote — here’s a recipe that influenced my technique for making fruit fillings: raspberry cinnamon rolls with lemon glaze. And for a bigger lemon-seafood spread, try pairing with baked salmon with lemon butter sauce at brunch or dinner.
Why I love this recipe
I love this recipe because it’s forgiving and bright — the lemon is never shrill, the buttercream is pillowy, and the raspberry filling gives you that joyful burst when you bite into the center. There’s memory here too: my sister declared these “picnic cupcakes” the first summer I made them, and now she requests them whenever we get together. They’re easy enough for a weeknight bake but charming enough to bring to a party, and that balance is why they live in my regular rotation.
Conclusion
If you want a reference for a slightly different take on lemon-raspberry cupcakes with a white chocolate buttercream, I found this version helpful when I was tweaking my frosting: Lemon Raspberry Filled Cupcakes | Cake ‘n Knife. For another jam-forward lemon-raspberry cupcake idea that emphasizes raspberry jam as the center, this resource is a great inspiration: Lemon Raspberry Jam Cupcakes – Sally’s Baking Addiction.

Moist Lemon Cupcakes with Raspberry Filling
Ingredients
Method
- Line a 12-cup cupcake pan with liners.
- Preheat the oven to 350°F (180°C).
- Rub the lemon zest into the sugar until it looks like wet sand.
- In a stand mixing bowl, whisk together the flour, lemon sugar, pistachios, baking powder, and salt.
- Mix in the butter on low speed for 3 minutes until it resembles coarse sand.
- In a separate bowl, whisk together the sour cream, milk, oil, egg, vanilla extract, and lemon juice.
- Mix the wet ingredients into the dry ingredients for a few seconds, then scrape down the bowl and continue mixing until just combined.
- Scoop into cupcake liners, filling each about 3/4 full.
- Bake for 15-20 minutes, or until a toothpick inserted comes out with a few moist crumbs attached.
- Let the pan cool on a wire rack for 5 minutes, then remove the cupcakes from the pan and let them continue cooling.
- Cook the raspberries, sugar, and lemon juice over medium heat, mashing occasionally, until bubbly, about 10-12 minutes.
- Mix in the cornstarch slurry and cook 1-2 minutes longer until thickened.
- Strain for a smooth compote if desired.
- Cream the butter until smooth, then mix in the powdered sugar.
- Add the heavy cream, lemon juice, and lemon zest, and beat until light and fluffy, about 2-3 minutes.
- Core the center of the cooled cupcakes and fill with the raspberry compote.
- Pipe the lemon frosting around the core, then fill with more raspberry filling.
- Garnish with chopped pistachios and fresh raspberries.
