Basil Pesto Without Pine Nuts: Swaps, Method and Storage
6 min read · by Grace Lin · Last updated: November 26, 2026
Basil pesto without pine nuts is made the same way as classic pesto, with almonds, walnuts, sunflower seeds or cashews standing in for the pine nuts. Pine nuts are expensive and add a creamy, slightly gritty texture, so a swap changes the flavor a little but keeps the sauce recognizable. Most substitutes work at about a quarter to half a cup per batch, and the rest of the recipe stays the same.
Why People Leave Out Pine Nuts
Most people who skip pine nuts do it for one of three reasons: cost, allergies, or simply not having them in the pantry. Pine nuts are one of the pricier items in a basil pesto, and the price can climb quickly when a recipe calls for a full cup.
Allergies are the other main concern. Food Republic notes that roughly 0.5 to 1 percent of Americans have a tree nut allergy, which is why nut-free pesto is a common request. Pine nuts are a tree nut, so a seed-based pesto is the usual route for guests with that allergy. Food Republic’s nut-free swap suggests raw sunflower seeds for this reason.

If you cannot eat or serve nuts at all, check the package labels for cross-contact warnings, because nuts and seeds are often processed on shared equipment.
Best Substitutes for Pine Nuts in Basil Pesto
Almonds, walnuts, sunflower seeds and cashews are the most common swaps, and each one changes the flavor and texture in a different way.
| Substitute | Flavor and texture | Best for |
|---|---|---|
| Blanched almonds | Mild and slightly sweet, with a firm bite | A classic-tasting pesto for pasta |
| Walnuts | Earthy and slightly bitter, with a soft texture | A deeper pesto that pairs with roasted vegetables |
| Raw sunflower seeds | Earthy, with a creamy texture once ground | Nut-free versions and budget batches |
| Cashews | Buttery and smooth, the softest of the group | A spread or a creamy sauce for chicken |
Sunflower seeds are the closest match to the creamy texture of pine nuts, according to Food Republic. Almonds and walnuts give more crunch and more flavor, so they suit a pesto that will be tossed with a sturdy pasta such as fusilli.
How to Make Basil Pesto Without Pine Nuts
Replace the pine nuts gram for gram by volume, and keep the basil, garlic, cheese and oil the same. Real Food Whole Life’s version uses half a cup of blanched almonds or walnuts for two cups of packed basil leaves, which is a one-to-one swap by volume.

The method is the same as a classic pesto. Work through these steps:
- Add 3 garlic cloves to a food processor and mince them on high, then scrape down the sides.
- Add 2 cups of packed fresh basil leaves and pulse until coarsely chopped.
- Add the nut or seed substitute, half a cup of freshly grated Parmesan, a quarter teaspoon of kosher salt and an eighth teaspoon of black pepper, then pulse until just combined.
- Set the processor to low and slowly stream in half a cup of extra virgin olive oil until the sauce is combined.
- Taste, then add salt if needed. Use fresh basil and whole garlic cloves rather than pre-minced garlic.
Toasting the seeds or nuts first deepens their flavor. Spread them in a dry pan over medium heat and toss until they smell fragrant and just start to darken, which takes only a few minutes. Let them cool before adding them to the processor, or they will warm the basil and dull its color. For more on this topic, see Best Pine Nuts for Pesto.
Tips for Better Results
The biggest difference between a good pesto and a flat one is the oil and the basil. Use a fresh, bright green basil, add the oil slowly so the sauce emulsifies, and keep the processor on low for the final step so the leaves do not heat up and turn dark.
Pecorino Romano can replace the Parmesan for a sharper flavor, and extra cheese helps a nut-free pesto taste fuller. Adjust the salt after the cheese goes in, because Parmesan and Pecorino both bring their own salt.
Storing Pesto Without Pine Nuts
A nut-free pesto stores the same way as a classic one. Real Food Whole Life gives about one to two weeks in the refrigerator, and notes that covering the top with a thin layer of extra olive oil helps prevent the color from darkening.
For longer storage, freeze the pesto in portions. The same source says it keeps up to three months in the freezer. Use an ice cube tray or small containers, then transfer the frozen cubes to a sealed bag so you can take out only what you need.
Frequently Asked Questions
Can you use walnuts instead of pine nuts in pesto?
Yes. Walnuts give an earthy, slightly bitter flavor and a softer texture than pine nuts. Use about the same volume, and toast them first if you want a deeper taste.
Is sunflower seed pesto as good as the classic?
It is a close match. Raw sunflower seeds have a creamy texture once ground and an earthy taste, which is similar to pine nuts in the way they coat the leaves. Taste is a matter of preference, so a small test batch is the simplest way to decide.
Does pesto need nuts at all?
Nuts or seeds give pesto its body. Without them the sauce is thinner and more like a basil oil. Use more cheese or a splash of pasta water if you want to skip them entirely.
Which nut is closest to pine nuts?
Sunflower seeds and blanched almonds are the most common choices for a neutral flavor, while cashews give the most similar creamy texture. Pick by the flavor you want, since none of them tastes exactly like pine nuts.
Basil pesto without pine nuts is an easy adjustment once you know the swap ratio and the right texture for your nut or seed. Pick the substitute that fits your budget and your guests, toast it lightly, and keep the oil and basil fresh for the best color and flavor.
6 min readLearnCavolo Nero Pesto: Recipe, Nut Swaps and StorageUpdated Nov 19, 2026
6 min readLearnBeetroot Pesto Recipe: Roasted Beet, Basil and ParmesanUpdated Nov 27, 2026
8 min readLearnTrofie al Pesto Recipe: Potatoes, Green Beans and BasilUpdated Nov 27, 2026
6 min readLearnArugula Pesto: Easy Recipe, Variations and StorageUpdated Nov 27, 2026
6 min readLearnSpinach Pesto: Easy Recipe, Storage and UsesUpdated Nov 27, 2026
6 min readLearnCreamy Pesto Gnocchi: Recipe, Storage and TipsUpdated Nov 26, 2026