Bright, zesty lemon cake meets a bright raspberry core and silky lemon buttercream in these moist cupcakes. They’re quick to make, travel well, and look stunning on a dessert table.
Each bite balances tart citrus, sweet buttercream, and a pop of raspberry jam. These are great for brunches, parties, or a weekend bake.
If you like texture contrasts, this recipe adds chopped pistachios for a nutty crunch. For more cupcake inspiration try this green velvet cake recipe for a different flavor profile.
Why You’ll Love This Moist Lemon Cupcakes with Raspberry Filling
– Bright lemon flavor that isn’t overpowering.
– Moist crumb thanks to a mix of sour cream, oil, and milk.
– Fresh raspberry compote for natural sweetness and texture.
– Silky lemon buttercream that pipes beautifully.
– Pistachios add color, crunch, and contrast.
– Easy to scale up for parties or halve for a smaller batch.
These cupcakes deliver a tender, fine crumb with a silky mouthfeel from the buttercream and a jammy center that bursts with fruit. The lemon is fresh, not artificial, and the texture is both light and satisfying.
“Five stars! The lemon is bright, the raspberry center is decadent, and the pistachio topping makes them feel bakery-level.” — A satisfied reader
Key Ingredients for Moist Lemon Cupcakes with Raspberry Filling
Lemon zest — Zesting the lemon into the sugar releases essential oils so the lemon flavor is distributed throughout the batter. Use organic lemons if possible to avoid wax on the skin. If you skip zest and rely only on juice, the aroma and depth will be noticeably muted.
Cake flour — Cake flour keeps the crumb soft and tender by having lower protein than all-purpose flour. Measure properly by spooning into the cup and leveling, which prevents dense cupcakes. If you must substitute with AP flour, remove 2 tablespoons per cup and add 2 tablespoons cornstarch to mimic cake flour.
Sour cream + oil — This combination provides moisture and tenderness without weighing cakes down. Sour cream adds tang and richness while oil keeps the crumb soft even after chilling. If you replace sour cream with yogurt, choose full-fat plain for similar results; nonfat yogurt may yield a drier texture.
Fresh or frozen raspberries — Fresh raspberries give a bright flavor and slightly grainy texture to the compote; frozen berries work well and often yield a saucier filling because they break down faster. If using frozen, do not thaw fully before cooking unless you want extra liquid to reduce.
For related texture tips when baking with nuts and mix-ins, check this carrot patch cupcakes guide on incorporating add-ins.
Full Ingredient List for Moist Lemon Cupcakes with Raspberry Filling
- 3/4 cup granulated sugar
- 1 tablespoon lemon zest (packed)
- 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
- 6 tablespoons cubed unsalted butter (room temperature)
- 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
- 1 teaspoon vanilla extract
- 3 cups fresh or frozen raspberries
- 1/4 cup granulated sugar (for compote)
- 2 teaspoons fresh lemon juice (for compote)
- 1 tablespoon + 1 teaspoon cornstarch
- 1 tablespoon water
- 1 1/2 cups unsalted butter (room temperature for buttercream)
- 2 cups powdered sugar
- 3 tablespoons heavy cream
- 1 tablespoon fresh lemon juice (for buttercream)
- 2 teaspoons lemon zest (for buttercream)
- Chopped pistachios (for decorating)
- Fresh raspberries (for decorating)
Step-by-Step Instructions for Moist Lemon Cupcakes with Raspberry Filling
Step 1: Prep the pan and oven
Line a 12-cup cupcake pan with liners and preheat the oven to 350°F (180°C). Proper liners prevent sticking and help the cupcakes rise evenly.
Pro Tip: The oven should smell neutral and take about 10–15 minutes to stabilize at 350°F; liners will sit flat and not wrinkle when the pan is level.
Step 2: Infuse the sugar with lemon zest
Rub the lemon zest into the granulated sugar until the mixture looks like wet sand. This releases lemon oils into the sugar for an aromatic base.
Pro Tip: The sugar will darken slightly and smell strongly of lemon when ready.
Step 3: Combine dry ingredients and butter
In a stand mixing bowl whisk together cake flour, the lemon-scented sugar, chopped pistachios, baking powder, and salt. Mix in the cubed room-temperature butter on low speed for 3 minutes until the mixture resembles coarse sand.
Pro Tip: The mixture should look crumbly with pea-sized butter bits; too smooth means the butter melted or overmixing occurred.
Step 4: Mix the wet ingredients
In a separate bowl whisk sour cream, milk, oil, egg, vanilla extract, and lemon juice until smooth. This emulsion helps incorporate fat evenly into the batter.
Pro Tip: The wet mix should be glossy and pourable, with no visible lumps of sour cream.
Step 5: Combine wet and dry
Pour the wet ingredients into the dry and mix for a few seconds. Scrape down the bowl and continue mixing until just combined—do not overmix.
Pro Tip: The batter should be thick but loose enough to drop from a spoon; small streaks of flour mean you should fold a few more times.
Step 6: Portion and bake
Scoop batter into the 12 liners, filling each roughly 3/4 full. Bake 15–20 minutes, or until a toothpick inserted comes out with a few moist crumbs attached. Cool in pan 5 minutes, then transfer to a wire rack to cool completely.
Pro Tip: Tops should be pale golden and spring back slightly when lightly pressed; underbaked centers will feel very soft.
Step 7: Make the raspberry filling and buttercream
For the filling, cook raspberries, 1/4 cup sugar, and 2 teaspoons lemon juice over medium, mashing occasionally, until bright red and bubbling—about 10–12 minutes. Whisk cornstarch and water, add, and cook 1–2 minutes until thickened. For buttercream, cream 1 1/2 cups butter until smooth, add powdered sugar until combined, then beat in heavy cream, lemon juice, and lemon zest until light and fluffy (2–3 minutes more).
Pro Tip: The compote should coat a spoon and be glossy rather than runny; buttercream should be airy and hold peaks without looking greasy.
Step 8: Core, fill, and decorate
Leave cupcakes in the pan to core them—this helps keep them intact. Core the center and spoon in raspberry compote. Pipe lemon buttercream around the core, then dollop more compote into the center. Garnish with chopped pistachios and fresh raspberries. A piping bag with a large round tip works best for a neat ring.
Pro Tip: A clean cut-out hole with crumbs intact and a piped ring that holds the compote are signs of a successful assembly. For piping basics and decorating inspiration, see this piping and decorating guide.
Expert Tips for Moist Lemon Cupcakes with Raspberry Filling
– Bring ingredients to room temperature for even mixing and emulsification; cold eggs or butter can cause curdled batter.
– Measure cake flour by spooning it into the cup and leveling to avoid dense cupcakes. For measuring advice, check this flour measuring reference.
– Don’t overmix after adding wet and dry ingredients; overdeveloped gluten makes the crumb tough.
– Use a shallow, wide mixing motion when folding in to evenly combine without overstirring.
– If your cupcakes dome too much, lower oven temperature by 10–15°F and bake a few minutes longer.
– For even tops, rotate the pan halfway through baking if your oven has hot spots.
– Chill buttercream slightly if it becomes too soft while piping; chilled frosting holds shape better.
– Avoid overcooking the raspberry compote; remove it from heat when it thickly coats a spoon to prevent a jammy, overly sticky center.
Storage & Freezing for Moist Lemon Cupcakes with Raspberry Filling
Fridge storage: Place cupcakes in an airtight container and refrigerate up to 3–4 days. For best texture, let chilled cupcakes sit at room temperature 20–30 minutes before serving.
Freezer storage: Freeze unfrosted cupcakes tightly wrapped in plastic and in a freezer-safe container up to 3 months. Frosted cupcakes freeze best when flash-frozen on a tray for an hour, then transferred to a container to protect piping.
Thawing: Thaw frozen unfrosted cupcakes at room temperature 1–2 hours. For frosted cupcakes, thaw in the fridge overnight to prevent condensation on the frosting.
Reheating: Warm a single cupcake in the microwave for 8–10 seconds to revive softness. For multiple cupcakes, warm briefly in a 300°F oven for 5–7 minutes, uncovered.
For tips on freezing frostings and cookies, compare methods in this freezing frostings guide.
Variations & Substitutions for Moist Lemon Cupcakes with Raspberry Filling
– White chocolate lemon cupcakes: Fold 1/2 cup chopped white chocolate into the batter and shave white chocolate over the frosting for additional sweetness and a creamy finish. The white chocolate complements lemon and adds a luxurious mouthfeel.
– Blueberry lemon version: Swap raspberries for blueberries in the compote and reduce cooking time slightly to keep berries whole. The result is a milder fruit filling with bursts of whole berry texture.
– Vegan adaptation: Replace butter with vegan butter, use a flax egg (1 tbsp flax + 3 tbsp water) and full-fat coconut yogurt for sour cream. Textures will be slightly denser; chill the cupcakes before piping to firm frosting.
– Almond-pistachio twist: Substitute 1/4 cup almond flour in place of 1/4 cup cake flour and top with toasted almond slivers plus pistachios for a nuttier, more complex flavor.
Frequently Asked Questions About Moist Lemon Cupcakes with Raspberry Filling
Q: Can I make the batter ahead of time?
A: You can prepare the batter and refrigerate it for up to 24 hours in an airtight container; bring it back to room temperature and stir gently before scooping. Expect a slightly different rise—adding an extra minute to bake time helps.
Q: How do I prevent a soggy bottom from the raspberry filling?
A: Ensure the compote is thick—cook it until it coats a spoon and cool it before adding to the cupcake. Pipe a thin layer of hardened buttercream or ganache around the well before filling to create a barrier if you plan to store them long-term.
Q: Can I use frozen raspberries straight from the freezer?
A: Yes. Use them frozen and cook slightly longer; they will release more liquid, so allow extra time to reduce and thicken the compote. Taste and adjust sugar since frozen berries can be tarter.
Q: Why did my buttercream separate or look greasy?
A: Buttercream can look greasy if the butter was too warm or you added powdered sugar too quickly. Chill the butter for 10–15 minutes and beat slowly to reincorporate. Adding a splash of heavy cream and beating on medium-high restores emulsion.
Q: How can I scale this recipe for 24 cupcakes?
A: Double every ingredient and bake in two pans, rotating halfway through for even heat. Leave 1–2 inches of space between pans for air circulation and check doneness at the same time interval; bake time usually remains similar but monitor for color and toothpick test.
Final Thoughts on Moist Lemon Cupcakes with Raspberry Filling
These cupcakes strike a bright, balanced note between citrus, fruit, and creamy buttercream—perfect for special occasions or a weekend bake. If you enjoyed the recipe, please leave a star rating in the recipe card below and pin it to Pinterest.
For further reading and similar lemon-raspberry ideas, check this Lemon Raspberry Filled Cupcakes | Cake ‘n Knife, this riff on jam-filled cupcakes from Lemon Raspberry Jam Cupcakes – Sally’s Baking Addiction, an alternate take at Lemon and Raspberry Cupcakes – Two Cups Flour, and a bright buttercream-focused version at Lemon Raspberry Cupcakes – Live Well Bake Often.

Moist Lemon Cupcakes with Raspberry Filling
Ingredients
Method
- Line a 12-cup cupcake pan with liners and preheat the oven to 350°F (180°C).
- Rub the lemon zest into the granulated sugar until the mixture looks like wet sand.
- In a mixing bowl, whisk together cake flour, lemon-scented sugar, chopped pistachios, baking powder, and salt.
- Mix in cubed butter on low speed for 3 minutes until resembling coarse sand.
- In a separate bowl, whisk together sour cream, milk, oil, egg, vanilla extract, and lemon juice until smooth.
- Pour the wet ingredients into the dry and mix until just combined.
- Scoop batter into the liners, filling each roughly 3/4 full.
- Bake for 15–20 minutes, or until a toothpick comes out with a few moist crumbs. Cool in pan for 5 minutes, then transfer to a wire rack to cool completely.
- To make the filling, cook raspberries, 1/4 cup sugar, and 2 teaspoons lemon juice over medium heat until bubbling, about 10–12 minutes.
- Whisk cornstarch and water, add to the raspberry mixture, and cook until thickened.
- For the buttercream, cream butter until smooth, add powdered sugar, and then mix in heavy cream, lemon juice, and lemon zest until fluffy.
- Core the center of each cupcake and spoon in the raspberry compote.
- Pipe lemon buttercream around the core and add more compote into the center.
- Garnish with chopped pistachios and fresh raspberries.