Cashews
10.0best for pastaMild, buttery; closest texture match
Crushed Pistachios tossed with Pasta add crunch and richness as a topping or in pesto. The substitute should have a similar oil content and roast flavor.
Mild, buttery; closest texture match
Cashews emulsify into pesto more smoothly than pistachios because of lower fiber; the sauce gets creamier but clings less to each noodle. Use 3/4 cup cashews (vs 1 cup pistachios), add 3 tablespoons reserved starch water (not 2), and blend 40 seconds to avoid over-heating and browning the emulsion.
More bitter but similar crunch in baking
Walnuts carry bitterness that can overwhelm a pasta sauce that relies on salt and a clean noodle bite. Blanch walnuts 30 seconds in boiling water, peel the papery skins, then blend with olive oil and al dente pasta's reserved water; reduce the cheese by 2 tablespoons to let walnut lead.
Sweeter; works in desserts and salads
Pecans have more fat than pistachios (72% vs 45%), producing a richer but heavier pesto that can break as you toss. Use 3/4 cup pecans toasted at 300°F for 5 minutes, and add starch water 1 tablespoon at a time during toss to keep the sauce emulsify stage stable on hot noodles.
Slightly sweeter, good for snacking
Peanuts shift pasta pesto toward an Asian-leaning flavor profile (vs pistachios' Mediterranean note). Toast at 300°F for 6 minutes, blend with a splash of lime juice to cut the density, and toss with noodles plus a drizzle of sesame oil; skip parmesan which clashes with peanut.
Toast and chop for crunch; 1:1 swap in pesto, baklava, and baked goods, less sweet
Almonds are firmer than pistachios and need longer blending (60 seconds in 15-second pulses) to reach the same paste consistency for pesto. Use skinless blanched almonds to avoid a gritty sauce; toast 7 minutes at 300°F and add 3 tablespoons reserved pasta water while emulsifying.
Green color and crunch; 1:1 swap in salads, pesto, and baked goods, nut-free option
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 pasta work as a pesto base or crushed topping only when you toast them at 300°F for 6 minutes first — raw nuts give a grassy, chalky taste that fights the salt and starch balance of the sauce. For pesto, blend 1 cup toasted pistachios with 1/3 cup olive oil and 2 tablespoons reserved pasta water; the starchy water helps the nut oils emulsify and cling to noodles instead of pooling at the bowl bottom.
Drain pasta 1 minute before al dente (target 8 minutes for dried spaghetti), reserve 1 cup of cooking water, then toss with pesto over low heat for 90 seconds so the sauce coats each strand. Unlike pistachios in salad which stay whole and crunchy over cold leaves, pistachios in pasta get pounded into a paste that must stay loose — over-blending past 45 seconds heats the nuts and turns the sauce brown and bitter.
Finish with a handful of crushed whole nuts for bite and a grating of hard cheese; skip the cheese step if you're serving cold pasta salad since pistachios already provide the richness.
Don't blend the pesto longer than 45 seconds — friction heats the pistachio oil, turns the sauce brown, and kills the emulsify step that holds it to the noodle.
Avoid skipping the starchy reserved water; without it the pesto breaks and the sauce pools rather than clings to each strand.
Drain the pasta 1 minute before al dente, not at al dente, so the toss time in the pan finishes cooking without making the bite mushy.
Don't salt the pasta water lightly — pistachios are rich but low in salt, and a bland cooking water leaves the whole dish flat.
Skip adding grated cheese if you're serving cold since pistachios already deliver the richness, and cheese clumps on cooled noodles.