Traditional flavors for everyday kitchens.

Photo of author

By François Lemoine

Published: Feb 16, 2026

This post may contain affiliate links. See our disclosure policy.

Lemon Raspberry Pistachio Cupcakes

Welcome to a delightful baking journey where bright citrus meets sweet berries and nutty crunch. These Lemon Raspberry Pistachio Cupcakes are a true celebration of spring and summer flavors, all packed into a beautiful handheld treat.

Each bite offers a tender, lemony cake base, a hidden pocket of tart raspberry filling, and a cloud of zesty lemon buttercream, all crowned with a sprinkle of crunchy pistachios. This recipe guides you through creating bakery-quality cupcakes at home with simple, clear steps.

You will love the balance of sweet and tangy, the moist crumb, and the stunning presentation. Let’s gather our ingredients and make something wonderfully delicious together.

Why You’ll Love This Recipe

You will adore these cupcakes for so many reasons. First, they combine three incredible flavors that complement each other perfectly. The lemon provides a fresh zing, the raspberry adds a pop of fruity tartness, and the pistachio brings a lovely, subtle crunch.

Furthermore, the texture is absolutely divine. The cake is incredibly moist and tender, thanks to the use of both oil and butter. Meanwhile, the homemade raspberry filling is much better than any store-bought jam.

Finally, these cupcakes look as impressive as they taste. They are perfect for birthdays, baby showers, or simply to brighten an ordinary day. You can easily find more inspiration for using citrus in our collection of bright and tangy lemon dessert recipes.

Recipe

Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
Lemon Raspberry Pistachio Cupcakes

Lemon Raspberry Pistachio Cupcakes


5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

  • Author: François Lemoine
  • Total Time: 1 hr 47 min
  • Yield: 12 servings 1x

Description

Moist lemon pistachio cupcakes filled with sweet-tart raspberry compote and topped with zesty lemon buttercream.


Ingredients

Scale
  • 3/4 cup granulated sugar (150 g)
  • 1 tablespoon lemon zest, packed (6 g)
  • 1 1/2 cups cake flour (180 g)
  • 1/3 cup finely chopped pistachios (40 g)
  • 2 teaspoons baking powder (8 g)
  • 1/2 teaspoon fine sea salt (3 g)
  • 6 tablespoons cubed unsalted butter, room temperature (85 g)
  • 1/2 cup sour cream, room temperature (120 g)
  • 1/2 cup whole milk, room temperature (120 ml)
  • 1/3 cup vegetable oil (80 ml)
  • 1 large egg, room temperature (50 g)
  • 2 tablespoons fresh lemon juice (30 ml)
  • 1 teaspoon vanilla extract (5 ml)
  • 3 cups fresh or frozen raspberries (360 g)
  • 1/4 cup granulated sugar (50 g)
  • 2 teaspoons fresh lemon juice (10 ml)
  • 1 tablespoon + 1 teaspoon cornstarch (12 g)
  • 1 tablespoon water (15 ml)
  • 1 1/2 cups unsalted butter, room temperature (340 g)
  • 2 cups powdered sugar (240 g)
  • 3 tablespoons heavy cream (45 ml)
  • 1 tablespoon fresh lemon juice (15 ml)
  • 2 teaspoons lemon zest (4 g)
  • Chopped pistachios for decorating
  • Fresh raspberries for decorating

Instructions

  1. Line a 12-cup cupcake pan with liners. Preheat oven to 350°F/180°C.
  2. Rub lemon zest into the sugar until it resembles wet sand.
  3. In a stand mixer bowl, whisk together flour, lemon sugar, pistachios, baking powder, and salt.
  4. Mix in butter on low speed for 3 minutes until mixture looks like coarse sand.
  5. In a separate bowl, whisk together sour cream, milk, oil, egg, vanilla, and lemon juice.
  6. Mix wet ingredients into dry ingredients on low until just combined.
  7. Divide batter among liners, filling each about 3/4 full.
  8. Bake for 15-20 minutes until a toothpick comes out with a few moist crumbs.
  9. Cool in pan on rack for 5 minutes, then remove cupcakes to cool completely.
  10. Make filling: cook raspberries, sugar, and lemon juice over medium heat for 10-12 minutes, mashing.
  11. Whisk cornstarch and water, stir into raspberries, and cook 1-2 minutes until thick. Cool.
  12. Make buttercream: cream butter until smooth, then mix in powdered sugar.
  13. Add heavy cream, lemon juice, and zest. Beat for 2-3 minutes until light and fluffy.
  14. Core the center of each cooled cupcake and fill with raspberry compote.
  15. Pipe lemon buttercream around the core and garnish with pistachios and raspberries.

Notes

  • For best results, ensure all dairy ingredients are at room temperature.
  • To measure cake flour, spoon it into the cup and level it off.
  • Leave cupcakes in the pan to core them for easier handling.
  • Use a piping bag with a large round tip for the frosting.
  • Prep Time: 1 hr 30 min
  • Cook Time: 17 min
  • Category: Main Course
  • Method: Baked
  • Cuisine: American

Nutrition

  • Calories: 589 kcal
  • Sugar: 39 g
  • Sodium: 186 mg
  • Fat: 41 g
  • Carbohydrates: 55 g
  • Fiber: 3 g
  • Protein: 4 g

Ingredients and Substitutions

Gathering the right ingredients is the first step to success. Using room-temperature ingredients is crucial for a smooth, well-combined batter.

Base Components

  • Granulated Sugar: Sweetens the cake and helps create a tender texture.
  • Lemon Zest: Provides intense, aromatic lemon flavor without adding extra liquid.
  • Cake Flour: This lower-protein flour gives the cupcakes a soft, delicate crumb. You can make a substitute by measuring 1 1/2 cups of all-purpose flour, removing 3 tablespoons of it, and replacing that with 3 tablespoons of cornstarch.
  • Pistachios: Use unsalted, shelled pistachios. Finely chop them for the best distribution in the batter.
  • Baking Powder & Salt: Leavening and flavor balance.
  • Unsalted Butter: Provides rich flavor and structure. Ensure it is at room temperature for easy creaming.

Wet Ingredients and Flavorings

  • Sour Cream: Adds moisture and a slight tang that pairs beautifully with lemon.
  • Whole Milk: For tenderness. You can use 2% milk if needed.
  • Vegetable Oil: This keeps the cupcakes incredibly moist for days.
  • Egg: Binds the batter and adds structure.
  • Vanilla Extract: Enhances all the other flavors.
  • Fresh Lemon Juice: Use the juice from the lemons you zested for the brightest flavor.

Raspberry Filling

  • Fresh or Frozen Raspberries: Frozen work perfectly and are often more economical. No need to thaw.
  • Granulated Sugar & Lemon Juice: Sweetens and brightens the filling.
  • Cornstarch & Water: A slurry that thickens the filling to a perfect, spreadable consistency.

Lemon Buttercream and Garnish

  • Unsalted Butter: The base of the frosting. It must be fully softened.
  • Powdered Sugar: Sweetens and stabilizes the buttercream.
  • Heavy Cream: Thins the frosting to a perfect piping consistency.
  • Lemon Juice & Zest: Infuses the frosting with fresh citrus flavor.
  • Chopped Pistachios & Fresh Raspberries: For the beautiful, tasty finish.

How to Make Lemon Raspberry Pistachio Cupcakes

Follow these steps for perfect cupcakes every time. The process is straightforward but yields impressive results.

Step 1: Prepare the Oven and Pan

First, line a standard 12-cup muffin tin with your favorite cupcake liners. Then, preheat your oven to 350 degrees Fahrenheit or 180 degrees Celsius. Proper preheating is essential for even baking.

Step 2: Make the Lemon Sugar

Place the granulated sugar and packed lemon zest in a small bowl. Use your fingertips to rub the zest into the sugar for a minute or two. This releases the citrus oils and turns the sugar into fragrant, slightly damp “lemon sand.” This simple trick gives your cake an incredible burst of natural lemon flavor.

Step 3: Combine Dry Ingredients

In the bowl of a stand mixer fitted with the paddle attachment, whisk together the cake flour, your lemon sugar, the finely chopped pistachios, baking powder, and fine sea salt. This ensures the leavening is evenly distributed. Add the room-temperature, cubed butter to the dry ingredients.

Step 4: Mix in the Butter

Mix on low speed for about 3 minutes. The mixture will look like coarse, moist sand. This step coats the flour particles with fat, which helps create a tender texture in the final cupcake.

Step 5: Combine Wet Ingredients

In a separate medium bowl, whisk together the room-temperature sour cream, milk, vegetable oil, egg, vanilla extract, and fresh lemon juice. Whisk until the mixture is completely smooth and homogenous.

Step 6: Finish the Batter

With the mixer on low, pour the wet ingredients into the dry ingredients. Mix for just a few seconds, then stop the mixer and scrape down the sides and bottom of the bowl. This prevents dry pockets. Mix again on low just until the batter is combined and smooth. Do not overmix.

Step 7: Bake the Cupcakes

Divide the batter evenly among the 12 prepared liners, filling each about three-quarters full. Bake for 15 to 20 minutes. The cupcakes are done when a toothpick inserted into the center comes out with a few moist crumbs attached. Let them cool in the pan on a wire rack for 5 minutes before transferring them directly to the rack to cool completely.

Step 8: Make the Raspberry Filling

While the cupcakes cool, make the filling. In a medium saucepan, combine the raspberries, sugar, and lemon juice. Cook over medium heat, mashing the berries with a spoon or potato masher as they soften. Cook for 10 to 12 minutes, until the mixture is bubbly and bright red. In a small bowl, whisk the cornstarch and water into a smooth slurry. Stir this into the hot raspberry mixture and cook for 1 to 2 more minutes, stirring constantly, until very thick. Remove from heat and let it cool completely; it will thicken further as it sits.

Step 9: Make the Lemon Buttercream

In a clean mixer bowl, beat the room-temperature butter on medium-high speed until it is very smooth and pale, about 3 minutes. Gradually add the powdered sugar with the mixer on low. Once incorporated, add the heavy cream, lemon juice, and lemon zest. Increase the speed to medium-high and beat for 2 to 3 minutes, until the frosting is light, fluffy, and holds its shape.

Step 10: Assemble and Decorate

Use a small knife or a cupcake corer to remove a small cylinder of cake from the center of each cooled cupcake. Fill this hole with the cooled raspberry compote. Fit a piping bag with a large round tip and fill it with the lemon buttercream. Pipe a generous circle of frosting around the edge of the cupcake, creating a well. For a final touch, you can add another small dollop of raspberry filling in the center. Garnish with chopped pistachios and a fresh raspberry on top. Serve and enjoy the delicious results of your work.

Pro Tips for Success

These expert tips will help you avoid common pitfalls and achieve perfect cupcakes.

  • Room Temperature is Key: Cold ingredients do not emulsify properly. Take the butter, sour cream, milk, and egg out of the fridge at least an hour before you start.
  • Measure Flour Correctly: For cake flour, spoon it into your measuring cup and level it off. Do not scoop directly from the bag, as this packs in too much flour and leads to dry cupcakes.
  • Do Not Overmix: Mix the batter just until you see no more dry flour. Overmixing develops gluten, which makes cakes tough.
  • Cool Completely: Ensure cupcakes are fully cool before coring and frosting. Otherwise, the filling will melt and the frosting will slide off.
  • Core with Ease: Leave the cupcakes in the muffin tin when you core them. The pan provides support and helps you keep the surrounding cake intact.

Flavor Variations

This versatile recipe is a wonderful canvas for other flavor combinations. Feel free to get creative.

  • Berry Swap: Use blackberries, blueberries, or a mix of berries for the filling. You can even explore other easy lemon dessert recipes that pair with different fruits.
  • Nut Alternatives: Replace the pistachios in the batter with an equal amount of finely chopped almonds, pecans, or walnuts for a different nutty flavor.
  • Citrus Twist: Try using lime zest and juice instead of lemon for a unique, tropical flair. Orange would also be lovely.
  • Frosting Flavors: Add a teaspoon of almond extract to the buttercream, or mix a tablespoon of raspberry filling into it for a swirled effect.

Serving Suggestions

These cupcakes are a complete delight on their own. However, you can turn them into part of a larger dessert spread. Serve them alongside a pot of freshly brewed tea or a strong cup of coffee. They also make a fantastic ending to a light meal.

For a dinner party, pair them with a scoop of vanilla bean ice cream. If you need ideas for the main course, check out our selection of easy and healthy dinner recipes to create a balanced menu.

Storage and Freezing Instructions

Store assembled cupcakes in a single layer in an airtight container in the refrigerator for up to 4 days. The buttercream and filling contain dairy, so refrigeration is necessary. Let them sit at room temperature for about 30 minutes before serving for the best texture and flavor.

You can also freeze unfrosted cupcakes. Wrap them individually in plastic wrap and place them in a freezer bag for up to 2 months. Thaw overnight in the refrigerator. Make the filling and frosting fresh when you are ready to assemble. The raspberry filling can be made ahead and stored in the fridge for up to 5 days.

Nutrition Facts per Serving

CaloriesFatCarbsProteinFiberSugarSodium
589 kcal41 g55 g4 g3 g39 g186 mg

FAQs About Lemon Raspberry Pistachio Cupcakes

Can I use all-purpose flour instead of cake flour?

Yes, you can. For this recipe, use 1 1/2 cups of all-purpose flour, but remove 3 tablespoons of it. Replace those 3 tablespoons with 3 tablespoons of cornstarch. Whisk this mixture well before using it. This creates a similar low-protein blend that mimics cake flour.

Can I make these cupcakes without nuts?

Absolutely. Simply omit the chopped pistachios from the batter. The cupcakes will still be deliciously lemony and moist. You can also replace them with an extra tablespoon of flour if you prefer.

Why did my frosting turn out runny?

A runny frosting usually means the butter was too soft or warm. The butter should be at a cool room temperature, around 67 degrees Fahrenheit. If your kitchen is very warm, briefly chill the mixed frosting in the refrigerator for 10-15 minutes, then re-whip it.

Can I use frozen raspberries for the filling?

Frozen raspberries are an excellent choice. Use them directly from the freezer; there is no need to thaw. They often break down more easily and release more liquid, which may require an extra minute of cooking to reduce.

How far in advance can I assemble the cupcakes?

For the best appearance and texture, assemble the cupcakes the same day you plan to serve them. You can bake the cakes and make the filling a day ahead. Then, make the frosting and assemble everything a few hours before your event.

Final Thoughts

These Lemon Raspberry Pistachio Cupcakes are a true testament to how special homemade baking can be. The process is enjoyable, the ingredients are simple, and the final product is absolutely stunning. From the fragrant lemon sugar to the vibrant raspberry heart and the fluffy frosting, every element works in harmony.

They are sure to impress your family, friends, or guests at any gathering. Remember, baking is about joy and sharing. So, preheat your oven, zest those lemons, and get ready to create a batch of unforgettable cupcakes. Happy baking!

Leave a Comment

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star