Basil Pesto Without Pine Nuts: Best Swaps
| ~8 min read | Pasta Sauces
Sections
- What Pesto Actually Is, and Where the Pine Nuts Come From
- How the Nuts Function in the Sauce
- Nut Substitutes and How They Compare
- Nuts, Seeds and Pesto Without Any of Them
- Making the Pesto: Method and Proportions
- Common Problems and How to Fix Them
- Storage, Freezing and Reheating
- Frequently Asked Questions
Yes, you can absolutely make basil pesto sauce without pine nuts. Traditional pesto alla genovese calls for pine nuts, but just about any mild, oily nut or seed works as a substitute, and some versions of pesto are made with no nuts at all. Walnuts, almonds, cashews, pistachios, sunflower seeds and pumpkin seeds are all common swaps, and the sauce still tastes like pesto: the basil, garlic, salt and hard cheese carry the flavor, while the nuts mostly add body, richness and a slight sweetness. If you are avoiding nuts for allergy reasons, seed-based pesto is the standard solution, and it holds up well on pasta, in sandwiches and as a dressing.
What Pesto Actually Is, and Where the Pine Nuts Come From
Pesto is a raw, uncooked sauce from Liguria, the coastal region of northwestern Italy. Its name comes from pestare, the Italian verb meaning to pound or crush, because the sauce was traditionally made with a mortar and pestle rather than a blender. The classic ingredients are fresh basil, garlic, coarse salt, pine nuts, extra-virgin olive oil and a hard grating cheese.
Pine nuts entered the recipe because they grew in the region and because their high oil content helps bind the sauce into a smooth paste. The most prized are the long, slender Mediterranean pine nuts from stone pine cones. They are expensive, they go rancid fairly quickly because of their fat content, and they are the reason many cooks look for alternatives. Pine nuts are also a known trigger of a short-lived condition some people call "pine mouth," a bitter or metallic taste that can linger for days after eating them, which is another practical reason to swap them out.
A secondary point that surprises home cooks: not all "pesto" on supermarket shelves contains pine nuts, and not all traditional recipes agree on proportions. Regional Italian variants use different cheeses, sometimes no cheese, and occasionally a different nut entirely. Substituting is not a modern compromise so much as an extension of a recipe that was always somewhat flexible.
How the Nuts Function in the Sauce
Understanding what pine nuts do explains why the swap works so well. They play three roles:
- Body and texture. Ground nuts give pesto its thick, spreadable consistency. Remove them with no replacement and the sauce turns thin.
- Richness and mild sweetness. Their fat and slight sweetness round off the sharpness of raw garlic and the saltiness of the cheese.
- Binding. The oils in the nuts emulsify with the olive oil and cheese, helping the sauce cling to pasta instead of pooling at the bottom of the bowl.
Because these roles are structural rather than flavor-defining, any nut or seed with a similar fat content can take over. What changes is the flavor accent, which is why the choice of substitute matters far more than whether you use one.
Nut Substitutes and How They Compare
Here is how the most common replacements behave in a standard batch of pesto (roughly 2 cups of packed basil, ½ cup of nuts or seeds, ½ cup olive oil, ½ cup grated Parmesan or Pecorino, 1 to 2 garlic cloves and a pinch of coarse salt):
- Walnuts. The most popular swap and the closest in texture. Slightly more bitter than pine nuts, which can be an asset against sweet basil. Toasting them for 5 to 8 minutes at 350°F (175°C) tames the bitterness.
- Almonds. Mild and slightly sweet, with a firmer grind. Blanched almonds give a smoother sauce; skin-on almonds add a little depth and a touch of grit. Excellent with parsley-based pesto.
- Cashews. The creamiest of the bunch, producing a rich, almost buttery pesto. They absorb salt readily, so taste before adding more cheese.
- Pistachios. Sweeter and more distinctive, and more expensive than walnuts or almonds. They push the sauce toward a brighter, more pronounced flavor. Shelled unsalted pistachios are the practical choice.
- Hazelnuts. Earthy and sweet, especially good with arugula or mint instead of basil. Toasting and rubbing off the skins improves the texture.
- Sunflower seeds. The most common seed option and by far the cheapest. Mild enough to stay out of the way; toast them lightly for more flavor.
- Pumpkin seeds (pepitas). Firmer and slightly green-tasting, giving pesto a denser body and a deeper color. Best blended longer.
Some cooks mix two kinds, such as half walnuts and half sunflower seeds, to balance cost against flavor. That technique gives a result closer to pine nuts than either alone.
Nuts, Seeds and Pesto Without Any of Them
If you are cooking for someone with a tree nut allergy, sunflower and pumpkin seeds are generally the safest structural substitutes, though anyone with a serious allergy should confirm their own tolerances with a clinician rather than rely on a recipe. Note that pine nuts are technically seeds from pine cones, but they are commonly grouped with tree nuts in allergen labeling and should be avoided by anyone managing a tree nut allergy unless their doctor says otherwise.
Pesto can also be made with no nuts or seeds whatsoever. In that case, the sauce needs help from elsewhere to avoid being watery:
- Reduce the oil slightly so the sauce does not separate.
- Add a small amount of grated cheese and mash the basil thoroughly so the leaves break down.
- Consider a spoonful of ricotta or a few softened breadcrumbs for body, both of which are used in some Italian variants.
These nut-free versions are lighter and more herbal, closer to a basil sauce than to a rich pesto. They are best used the day they are made.
Making the Pesto: Method and Proportions
The method is the same whether you use pine nuts or a substitute. A food processor is fastest; a mortar and pestle gives a coarser, more traditional texture and keeps the basil from bruising.
- Toast the nuts or seeds if you like: spread in a single layer and bake at 350°F (175°C) for 5 to 8 minutes, until fragrant. Let them cool completely; hot nuts will cook the basil.
- Pulse the nuts or seeds with the garlic and a pinch of coarse salt until coarsely chopped.
- Add the basil in batches and pulse, scraping down the sides, until the leaves are finely chopped. Stop before the mixture becomes a smooth paste if you want texture.
- With the machine running, drizzle in about ½ cup of extra-virgin olive oil until the sauce comes together.
- Pulse in ½ cup of finely grated Parmesan or Pecorino Romano, or stir it in by hand so the cheese does not overheat.
- Taste and adjust salt. Remember that the cheese is salty, so add salt last.
Yield: about 1 cup of pesto, enough to sauce roughly 1 pound (450 g) of pasta. Use 2 to 3 generous tablespoons per serving of pasta.
For the pasta itself, cook 1 pound of spaghetti, linguine or trenette in well-salted water (about 1 tablespoon of salt per gallon) for the time on the package, stopping 1 minute early to keep it al dente. Before draining, save about ½ cup of the starchy cooking water. Toss the drained pasta with the pesto off the heat and loosen it with splashes of pasta water until the sauce coats every strand. Heat makes basil pesto turn dull and bitter, which is why pesto is stirred in or served at the table rather than cooked into the sauce.
Common Problems and How to Fix Them
- Bitter pesto. Usually old or bruised basil, raw garlic that has been crushed too long, or overly toasted walnuts. Use fresh leaves, remove thick stems, and toast nuts lightly rather than darkly.
- Sauce turns dark. Basil oxidizes when exposed to air. Press plastic wrap directly onto the surface and refrigerate; a thin layer of olive oil on top also helps.
- Thin, oily pesto. Too much oil, too little basil, or too much pasta water added at once. Add water by the tablespoon, not by the splash.
- Gritty texture. Nuts that were not chopped first, or a blender that is not running long enough. Pulse the nuts before adding any other ingredient.
- Overpowering garlic. Raw garlic intensifies over time. Start with one small clove and add more only after tasting.
Storage, Freezing and Reheating
Pesto made with or without pine nuts is a fresh, perishable sauce. Refrigerate it in a sealed container with plastic wrap pressed to the surface for up to 5 days. Because it contains raw garlic and cheese, keep it cold; do not leave it at room temperature for more than 2 hours, or 1 hour if the room is above 90°F (32°C).
Pesto freezes well, especially without the cheese, which can turn grainy. Spoon the pesto into ice cube trays, freeze, then transfer the cubes to a freezer bag at 0°F (-18°C) for up to 3 months. Stir cheese into thawed pesto if you left it out, and use the sauce without heating it further. Leftover pesto pasta keeps 3 to 4 days in the refrigerator and is best eaten cold or at room temperature as a pasta salad rather than reheated, since reheating dulls the basil flavor.
Frequently Asked Questions
Can I use peanuts in pesto?
Yes, though peanuts have a more assertive flavor than most other nuts and will give the pesto a distinctly different character. Unsalted roasted peanuts work best, and they are a good budget option.
Is pesto without pine nuts still called pesto?
Yes, it is still pesto. Pesto is a category of crushed sauce, and Italian cooks use the term for many combinations of greens, nuts, garlic and cheese, not just the Genoese version.
Does store-bought pesto contain pine nuts?
Many brands do, often blended with cheaper nuts such as cashews or sunflower seeds, so check the label if you are avoiding a specific nut or seed.
Can I make pesto without any cheese?
Yes. The result is a looser, more herbal sauce, and you will want a little extra salt since the cheese normally supplies much of it. Dairy-free versions often add nutritional yeast for a savory note.
How much pesto should I use per serving of pasta?
About 2 to 3 tablespoons per serving. If the pasta absorbs the sauce and looks dry, loosen it with reserved pasta water rather than more oil.