Walnuts
10.0best for cakeMore bitter but similar crunch in baking
Chopped Pistachios in Cake add crunch and nutty richness to every slice. The substitute should toast well and hold up through the baking time.
More bitter but similar crunch in baking
Walnuts have tannins that pistachios lack, which can tint a white or yellow cake crumb grayish. Use 1/2 cup chopped walnuts (vs 1/2 cup pistachios) and pair with a darker batter like spice or chocolate cake; reduce vanilla extract by 1/4 teaspoon to let walnut flavor lead.
Sweeter; works in desserts and salads
Pecans carry more fat than pistachios (72% vs 45%), so the crumb goes heavier and the rise drops by about 10%. Increase baking powder by 1/4 teaspoon per cup of pecans and sift three times with the flour; cool fully on a rack before slicing or the moist crumb tears around the nuts.
Slightly sweeter, good for snacking
Peanuts are denser and starchier than pistachios, which shifts the crumb toward a bread-like chew. Use 1/2 cup roasted peanuts chopped to pea-size and fold at the end; pair with brown sugar in creaming (not white) so the flavor reads intentional rather than accidental.
Toast and chop for crunch; 1:1 swap in pesto, baklava, and baked goods, less sweet
Almonds are firmer than pistachios and toast cleaner at 325°F for 7 minutes without turning bitter. Sliced almonds distribute evenly in a whisked batter; sub at 1:1 volume but chop whole almonds to pea-size or they tear the tender crumb when the toothpick test comes clean.
Green color and crunch; 1:1 swap in salads, pesto, and baked goods, nut-free option
Mild, buttery; closest texture match
Buttery and rich; 1:1 swap in cookies and white chocolate bark, milder flavor
Similar small size and buttery texture; 1:1 swap in pesto, sweeter and softer texture
Richer and sweeter; 1:1 swap in baked goods and ice cream, no green color
Chop to match pistachio size; creamy with rich nutty flavor, 1:1 in baking and trail mix
Pistachios in cake deliver nutty richness only if you toast them at 325°F for 7-8 minutes and cool completely before folding — raw pistachios release moisture during baking that weighs down the creaming structure. Reduce any added baking powder by 1/4 teaspoon per cup of nuts: pistachio oil inhibits gas cells the same way extra fat does, giving a denser rise.
Sift flour and leavener together three times, then fold (don't whisk) in 1/2 cup chopped nuts at the very end so the batter keeps the creamed butter's air. Unlike pistachios in brownies which sit in a fudgy, dense matrix, pistachios in cake need a tender crumb around them, so chop to pea-sized pieces — larger pieces pull the crumb apart when you slice.
Grease the pan and dust with flour, then scatter 1 tablespoon of nuts on the bottom before pouring batter for a speckled top once inverted. Test doneness with a toothpick at 32 minutes; the nuts hold heat and can fake a clean test, so add 2 minutes if the center still springs back slowly.
Cool in pan 10 minutes, then on a rack before slicing to set the moist crumb.
Don't skip sifting the flour with baking powder and baking soda three times — pistachio oil makes a tender crumb heavier and uneven leavening crushes rise.
Avoid raw pistachios in batter; they release moisture during bake and produce a gummy ring around each nut once the cake cools.
Skip the toothpick test at 30 minutes and you'll over-bake — nuts retain heat and fake a clean toothpick while the crumb dries out.
Reduce added leavener by 1/4 teaspoon per cup of nuts, or the rise collapses during the last 5 minutes of bake as the creaming structure fails.
Don't whisk pistachios in — fold them gently so the pan's batter keeps the air from creaming instead of deflating into a flat layer.