Recipe
Pistachio Cake Recipe (From Scratch)
A tender, genuinely pistachio cake built on ground nuts rather than pudding mix: moist crumb, soft green tint, simple frosting.
Quick answer
Make pistachio cake from scratch by grinding shelled pistachios into the dry mix so the flavor and color come from real nuts, not pudding mix. Cream butter and sugar, add eggs and a little almond extract, then fold in flour, ground pistachios and milk. Bake at 175C (350F) for about 30 minutes and finish with cream cheese frosting and chopped pistachios.
A good pistachio cake from scratch gets its flavor and soft green tint from real ground pistachios, not from a box of pudding mix. The recipe above grinds shelled nuts into the dry ingredients, so every slice tastes nutty and looks gently green rather than neon. It is a tender, moist two-layer cake finished with simple cream cheese frosting.
Pistachio cake from scratch
Ingredients
- 150 g (1¼ cups) shelled unsalted pistachios, finely ground
- 260 g (2 cups) all-purpose flour · 2 tsp baking powder · ½ tsp salt
- 225 g (1 cup) softened butter · 300 g (1½ cups) superfine sugar
- 4 large eggs · 1 tsp vanilla · ¼ tsp almond extract
- 180 ml (¾ cup) milk or pistachio milk
- Frosting: 200 g cream cheese, 100 g butter, 250 g powdered sugar, chopped pistachios
Method
- Heat oven to 175°C/350°F; line two 8in pans.
- Grind the pistachios to a fine meal; whisk into the flour, baking powder and salt.
- Cream butter and sugar 4 minutes; beat in eggs one at a time, then the extracts.
- Fold in the dry mix in three additions, alternating with the milk.
- Divide and bake 28-32 minutes until a skewer comes out clean; cool fully.
- Beat the frosting smooth, fill and frost, and scatter with chopped pistachios.
Why grind real pistachios instead of using pudding mix?
Grinding pistachios is what makes this cake actually taste of pistachio. The familiar boxed pistachio cake leans on instant pudding mix for flavor and on dye for its bright green, which is why those cakes look more vivid than anything nuts alone can produce. Pistachios are roughly 45% fat and high in protein and fiber, per USDA FoodData Central, and that natural oil is exactly what keeps a from-scratch cake moist and rich.
Blitz the nuts to a fine meal but stop before they turn oily. A few seconds too long and you get pistachio butter instead of a dry flour-like grind. If you want a head start, a fine pistachio powder does the same job. Pistachios also bring useful nutrients beyond fat: see American Pistachio Growers for the full profile, and our notes on whether pistachios are good for you.
How do you get a moist crumb?
The combination of butter, eggs and ground nuts does most of the work. Creaming the butter and sugar properly, a full four minutes until pale, builds the structure that holds air, and the pistachio oil keeps the crumb from drying out as it bakes. Adding the eggs one at a time stops the batter splitting, and folding the flour in three additions, alternating with milk, keeps the mix tender rather than tough.
A small amount of almond extract is the quiet trick here. Pistachios and almonds share a related flavor note, so a quarter teaspoon amplifies the pistachio without anyone tasting marzipan. Don't overdo it.
One more thing on texture: weigh the ground pistachios rather than measuring by cup, because grind density varies wildly and too much nut meal makes a heavy, greasy cake. Toasting the pistachios lightly before grinding deepens the flavor, but let them cool fully or the warm oil will clump the grind into paste.
Why is my pistachio cake pale, not bright green?
Because real pistachios only ever give a soft, muted green. The vivid color of bakery and boxed versions comes from food dye, not nuts. This is worth saying plainly so the result doesn't disappoint: a from-scratch cake lands somewhere between cream and pale sage. If you want more color without artificial dye, whisk a teaspoon of matcha into the dry mix, which deepens the green and adds a gentle grassy edge, the same pairing behind a pistachio matcha. For more on where the color comes from, see pistachio green color.
Frosting and finishing
Cream cheese frosting is the classic match. Its tang balances the sweet, nutty crumb. Beat softened cream cheese, butter and powdered sugar until smooth, then frost only once the layers are completely cool, or it will slide. Scatter chopped pistachios over the top for crunch and to signal what's inside. A swirl of pistachio cream between the layers is an easy upgrade if you want a richer middle.
If you'd rather a lighter finish, a whipped mascarpone or a thin glaze works too. For a dairy-free cake, swap the milk for a barista-style nut milk and use vegan butter and cream cheese; our is pistachio milk dairy-free page covers the substitutions.
Make-ahead and storage
The layers freeze well unfrosted, wrapped tightly, for up to two months. Frosted cake keeps in the fridge for three to four days; bring slices to room temperature before serving so the crumb softens and the flavor comes back. The cake is, if anything, better on day two once the pistachio flavor settles.
For more pistachio bakes and sweets, browse the recipe collection, or try a pistachio milk cake for a softer, milk-soaked alternative.
Allergy note
Pistachios are a tree nut, so this cake is not suitable for anyone with a nut allergy, and ground nuts mean it can't simply be picked around. The almond extract adds a second tree nut. The standard recipe also contains dairy (butter, milk, cream cheese) and egg; it can be made dairy-free with plant-based butter, cream cheese and a nut milk, but it cannot be made nut-free without losing the cake itself.
Frequently asked questions
Why is my pistachio cake not green?
Can I use pistachio pudding mix instead of grinding nuts?
Why add almond extract to a pistachio cake?
Allergy note: Pistachios are a tree nut. If you have a nut allergy, avoid pistachio milk and pistachio products, and check labels for cross-contamination warnings. This article is general information, not personalized dietary or medical advice.