There are so many reasons why I love these Pistachio Cupcakes, starting with their nostalgic bygone green and red appearance (perfect for any Bridgerton party!) and ending with how delicious they are!
If you're looking for more pistachio recipes, don't miss this Pistachio Tiramisu or these Pistachio Muffins made with a pistachio nut butter center.

Why This Pistachio Cupcake Recipe Works
- Recipe name: Pistachio Cupcakes
- Ready in: 1hr 35 minutes
- Serves: 24 cupcakes
- Main ingredients: Butter, flour, baking powder, sour cream, pistachios, sugar, raspberries, cream cheese, pistachio butter.
- Perfect for: An afternoon tea party or a birthday party.
- Why I love it: The hidden raspberry center complements the cupcake's and frosting's nutty flavor.
- Calories: 371kcal
SUMMARIZE & SAVE THIS CONTENT ON
This recipe is for buttery, fluffy cupcakes flavored with real pistachios and vanilla. The cupcakes are cored out after baking and filled with a raspberry purée before being swirled high with a fluffy cream cheese and pistachio frosting.
If you love trying new cupcake flavours, have a look at this recipe for Raspberry and White Chocolate Cupcakes or this one for Lemon Drizzle Cupcakes.
Variations
This recipe for pistachio cupcakes is delicious as outlined in this post, but you may want to try decorating these cupcakes with other frosting flavors. Try this Raspberry Cream Cheese Frosting, this Strawberry Buttercream, or this delicious Chocolate Frosting with Melted Chocolate.
Jump to:
Key Ingredients

- Unsalted butter - used in the cupcake batter and the frosting. Make sure you use unsalted, room-temperature butter for the best results.
- Sour cream - use full-fat sour cream for this recipe; it adds richness and moisture to these pistachio cupcakes. If you don't have sour cream, use full-fat Greek yogurt instead.
- Cream cheese - use full-fat cream cheese for this recipe. There are lots of different brands to choose from, but I like using Philadelphia cream cheese.
- Pistachio butter - I used store-bought smooth pistachio butter, also called pistachio paste. If you have a high-powered food processor, you can make your own pistachio paste with shelled raw pistachios.
- Green food coloring - since this recipe uses natural pistachio flavor rather than instant pistachio pudding mix, it doesn't have a deep green color. For aesthetics, you can choose to add a touch of green food coloring to the frosting.
See the recipe card for full information on ingredients and quantities.
How to Make Pistachio Cupcakes
Pistachio Cupcakes

- Step 1: Preheat the oven to 180°C (350°F) and line 22 cupcake liners into two 12-hole cupcake pans. Add the superfine sugar and lemon zest to a small bowl and use the tips of your fingers to massage the lemon zest into the sugar.

- Step 2: Add the butter and lemon sugar mixture to a bowl of a stand mixer fitted with a paddle attachment. Beat at medium-high speed until creamed, about 3 minutes.

- Step 3: Add the eggs to the creamed butter and sugar mixture one at a time, scraping down the sides of the bowl with a rubber spatula between each addition. Add the vanilla and beat again.

- Step 4: Sift together the flour, baking powder, and salt into a large mixing bowl. Add the sour cream and flour mixture to the cupcake batter by alternating between the two. Starting with the flour and ending with the sour cream. Add the pistachios to the cupcake batter and mix through with a rubber spatula.

- Step 5: Use an ice cream scoop to fill the cupcake liners two-thirds of the way up the liner.

- Step 6: Bake in a preheated oven for about 15 - 20 minutes or until a light golden brown and a cake tester inserted into the center of the cupcake comes out clean. Cool completely on a wire rack.
Raspberry Filling

- Step 1: In a small saucepan set over medium heat, add the fresh raspberries, sugar, and lemon juice. Allow the fruit to soften and the sugar to melt. Stir occasionally with a spatula and press the fruit against the sides of the saucepan to help them break down if needed.

- Step 2: Once the sugar is melted and the purée has thickened, allow the mashed raspberry purée to cool to room temperature. Add this to a piping bag.
Raspberry Buttercream

- Step 1: Add the icing sugar and softened butter to a bowl of a stand mixer fitted with a paddle attachment. Beat at medium speed until the mixture resembles fine breadcrumbs.

- Step 2: Add the cubed cream cheese and beat at medium-high speed until the frosting is smooth. Scrape down the sides of the bowl and mix again for about 2 minutes.

- Step 3: Add the pistachio butter and vanilla extract to the frosting and beat again until combined. Add a tiny drop of green food coloring to the frosting and beat again. Add the frosting to a piping bag fitted with your chosen nozzle.

- Step 4: Use a cupcake or apple corer to remove the center of each cupcake, fill the center with the raspberry puree, and then pipe a swirl of frosting onto each cupcake. Decorate with crushed pistachios and fresh raspberries.
How to Make Lump-Free Pistachio Cream Cheese Frosting
It's happened to me countless times: lumpy cream cheese frosting that's too soft to pipe because I overwhipped it trying to get rid of the lumps! The only way to avoid this is to use room-temperature butter and cream cheese. The butter is what causes the lumps, so make sure it is softened and mixed into the icing sugar properly before adding the cream cheese. Try this Raspberry Buttercream recipe if you'd prefer to make these pistachio cupcakes without cream cheese.

Loved the raspberry filling, great recipe, and thanks for sharing.
- Claire
Storage
Cupcakes cool quickly and dry out just as quickly, so try to frost them the same day they are baked. If you don't have time to decorate the cupcakes the same day you bake them, store them in an airtight container or cover the cupcake trays with plastic wrap until the next day.
For any leftover filled and frosted cupcakes, store them in an airtight container in the fridge for about 3 days. Choose to store these cupcakes in the refrigerator because of the fresh fruit on and inside the cupcakes.
Top tips
- Use an oven thermometer to check the actual temperature of your oven.
- Don't overfill the cupcake cases, as this can lead to misshapen cupcakes. For more cupcake baking tips, read this post: 9 Tips for Baking the Perfect Cupcakes.
- Make sure the butter is at room temperature before starting this recipe.
- Ensure the cupcakes have cooled completely before frosting.
Pistachio Cupcakes FAQs
Check your oven's temperature and ensure you haven't overfilled the cupcake cases. Overfilling the cupcake cases can result in misshapen cupcakes.
Wait - having room-temperature butter is the most crucial step in a successful batter and frosting. Choose to wait until the butter has reached room temperature before making this recipe, or cube the butter and heat it gently in the microwave, being careful not to melt it.
I always recommend using a kitchen scale rather than cups when baking. This way, you can ensure you've measured correctly and that your baked goodies come out perfectly.
Once the cupcakes have been filled with the raspberry puree, I do not recommend freezing them. But they can be frozen before decorating. Place the undecorated cupcakes in a freezer-safe, air-tight container and freeze them for up to three months. Defrost properly before filling and frosting them.
More Nutty Dessert Recipes

Arriving with a tray of cupcakes might be my favorite party trick, and these cupcakes are always a win! If you're looking for other cupcake recipes to impress, try these Chocolate Fudge Cupcakes or these delicious Passionfruit Cupcakes.

Happy Baking, With Love, Kitty
Please leave a star rating and comment below if you tried this recipe! And if you're wondering what to try next, have a look at this Raspberry Buttercream Cake!
📖 Recipe

Pistachio Cupcakes
Equipment
- 2x cupcake trays
- 24 cupcake papers
- cupcake or apple corer
- piping bags and nozzle
Ingredients
Pistachio Cupcakes
- 175 g castor sugar
- 1 tablespoon lemon zest
- 175 g unsalted butter
- 3 extra-large eggs
- 1 teaspoon vanilla extract
- 230 g cake flour
- 1 tablespoon baking powder
- ½ tsp salt
- 140 g sour cream
- 70 g pistachios chopped
Raspberry Filling
- 280 g raspberries
- 40 g castor sugar
- 1 tablespoon lemon juice
Pistachio Buttercream
- 600 g icing sugar
- 100 g unsalted butter
- 250 g cream cheese
- 3 tablespoon pistchio butter
- 1 teaspoon vanilla extract
- green food colouring optional
- raspberries to decorate
- crushed pistachios to decorate
Instructions
Pistachio Cupcakes
- Preheat the oven to 180°C (350°F) and line 22 cupcake liners into two 12-hole cupcake pans.
- Add the superfine sugar and lemon zest to a small bowl and use the tips of your fingers to massage the lemon zest into the sugar.
- Add the butter and lemon sugar mixture to a bowl of a stand mixer fitted with a paddle attachment. Beat at medium-high speed until creamed, about 3 minutes.
- Add the eggs to the creamed butter and sugar mixture one at a time, be sure to scrape down the sides of the bowl with a rubber spatula between each addition. Add the vanilla and beat again.
- Sift together the flour, baking powder, and salt into a large mixing bowl.
- Add the sour cream, and flour mixture to the cupcake batter by alternating between the two. Starting with the flour and ending with the sour cream.
- Add the chopped pistachios to the cupcake batter and mix through with a rubber spatula.
- Use an ice cream scoop to fill the cupcake liners two-thirds of the way up the liner. Bake in a preheated oven for about 15 - 20 minutes or until a light golden brown and a cake tester inserted into the center of the cupcake comes out clean. Cool completely on a wire rack.
Raspberry Filling
- In a small saucepan set over medium heat add the fresh raspberries, sugar, and lemon juice. Allow the fruit to soften and the sugar to melt. Stir occasionally with a spatula and press the fruit against the sides of the saucepan to help them break down if needed.
- Once the sugar is melted and the purée has thickened, allow the mashed raspberry purée to cool to room temperature. Add this to a piping bag.
Pistachio Buttercream
- Add the icing sugar and softened butter to a bowl of a stand mixer fitted with a paddle attachment. Beat at medium speed until the mixture resembles fine breadcrumbs.
- Add the cubed cream cheese and beat at medium-high speed until the frosting is smooth. Scrape down the sides of the bowl and mix again for about 2 minutes.
- Add the pistachio butter and vanilla extract to the frosting and beat again until combined.
- Add a tiny drop of green food coloring to the frosting and beat again. Add the frosting to a piping bag fitted with your chosen nozzle.
- Use a cupcake or apple corer to remove the center of each cupcake, fill the center with the raspberry puree, and then pipe a swirl of frosting onto each cupcake. Decorate with crushed pistachios and fresh raspberries.
Notes
- Use room temperature ingredients for the best results.
- Fresh or frozen raspberries will work for this recipe.
- To avoid lumpy cream cheese frosting, ensure the butter is at room temperature and has been beaten sufficiently before adding the cream cheese.









Claire says
Loved the raspberry filling, great recipe and thanks for sharing 🙂