Pesto Without Pine Nuts: What to Use Instead
| ~7 min read | Pasta Sauces
Sections
Yes, you can make pesto without pine nuts, and many cooks do. Traditional basil pesto (pesto alla genovese) calls for pine nuts, but almost any mild, oily nut or seed can stand in for them, and some versions skip nuts entirely. The substitute changes texture and flavor slightly, but the basic method stays the same: pound or blend basil, garlic, salt, a hard cheese like Parmigiano-Reggiano or Pecorino, olive oil, and your chosen nut or seed into a bright green paste.
Why Pine Nuts Are Traditional but Not Essential
Pine nuts are the edible seeds of pine trees, and the ones used in pesto are usually Mediterranean stone pine nuts, which are small, soft, and mildly sweet. They emulsify with olive oil and give pesto its characteristic creaminess without overwhelming the basil. But pine nuts are expensive, spoil quickly because of their high fat content, and are a known trigger for a condition called pine mouth, a temporary bitter or metallic taste that some people experience after eating them. They are also a tree nut allergen concern for some households.
None of that makes them mandatory. Pesto is a technique as much as a recipe: an herb, a fat, a cheese, an aromatic, and something nutty for body. Once you understand that structure, you can swap the nut freely. Cooks in many regions make pesto-like sauces with almonds, walnuts, or even breadcrumbs, and the result is still recognizably pesto.
Best Substitutes and How They Taste
The right substitute depends on what you want from the sauce. Softer nuts blend smoother; harder nuts give a coarser, more rustic texture. Toast them first for deeper flavor, but let them cool before blending so they do not scorch the basil.
- Walnuts: Slightly bitter and earthy; the most common and affordable swap. Use the same weight as pine nuts. Best with a little extra cheese to balance the tannins.
- Almonds: Mildly sweet and firm. Blanched almonds blend smoother; skin-on almonds add a touch of bitterness and color. Good for a richer, denser pesto.
- Cashews: Very soft and creamy, almost sweet. They make a smoother, less assertive pesto and are a good choice if you want a dairy-free version with nutritional yeast.
- Sunflower seeds: Cheap, mild, and widely available. Toast them for depth. The pesto will be slightly grainier.
- Pumpkin seeds (pepitas): Green and slightly grassy, which keeps the color vivid. A good nut-free option.
- Pistachios: Sweet and distinctive; use unsalted ones and reduce added salt.
- Breadcrumbs: A traditional nut-free thickener in some Italian versions. Soak stale bread in a little water or vinegar, squeeze it out, and blend it in for body.
A rough guide is to use the same weight of substitute as the pine nuts the recipe calls for, then adjust oil by eye until the sauce is loose enough to coat pasta but thick enough to cling. For a batch using about 2 cups packed basil leaves, 1/2 cup olive oil, 1/2 cup grated cheese, and 1 to 2 garlic cloves, start with 1/3 cup of nuts or seeds.
Making Pesto Without Nuts at All
If you are avoiding nuts for allergy reasons, you can leave them out entirely, but the sauce will be thinner and less creamy. Compensate with one of these:
- Add 2 to 3 tablespoons of soft breadcrumbs soaked in water and squeezed dry.
- Blend in a small cooked potato, which thickens without changing the flavor much.
- Use a little more cheese and slightly less oil.
- For a dairy-free, nut-free version, use nutritional yeast and a few tablespoons of white beans or cooked cauliflower for body.
Nut-free pesto also freezes well, so make a larger batch and portion it.
Method: Blender, Food Processor, or Mortar
A food processor is the practical choice for most home cooks. A mortar and pestle gives a more textured, aromatic result but takes time. A high-speed blender works but can heat the sauce and dull the color if run too long.
- Toast the nuts or seeds in a dry skillet over medium heat until fragrant, 3 to 5 minutes, stirring often. Cool completely.
- Pulse the garlic and salt first, then add the nuts and pulse to a coarse paste.
- Add the basil in batches and pulse, scraping down the sides, until chopped but not pureed.
- With the machine running, drizzle in the olive oil until the sauce is loose and glossy.
- Pulse in the grated cheese at the end, just to combine. Taste and adjust salt.
Work quickly and keep the processor from running hot; prolonged blending oxidizes the basil and turns the pesto brown. If you are not using it right away, press plastic wrap directly onto the surface and refrigerate.
Using Pesto With Pasta
Pesto is not a sauce you boil. Cook your pasta in well-salted water (about 1 tablespoon of salt per 4 quarts of water) until al dente, following the package time, usually 8 to 11 minutes for dried spaghetti or fusilli. Before draining, save about 1/2 cup of the starchy cooking water.
Drain the pasta and return it to the warm pot off the heat. Add a few spoonfuls of pesto and a splash of pasta water, then toss until the sauce coats every strand. The water loosens the pesto and helps it cling. Serve immediately with extra cheese. Pesto is best uncooked; heating it in a pan dulls the basil, so let the hot pasta do the warming.
For a creamier version, stir a spoonful of pesto into a little warmed cream or ricotta off the heat. For a cold pasta salad, toss pesto with cooled pasta, cherry tomatoes, and mozzarella; keep it chilled and eat within 3 to 4 days.
Storage, Freezing, and Food Safety
Fresh pesto keeps in the fridge for about 3 to 4 days in a sealed container with a film of olive oil or plastic wrap on the surface. It does not keep long because fresh basil and garlic are perishable and the oil can go rancid.
- Freezing: Spoon pesto into ice cube trays, freeze until solid, then transfer the cubes to a freezer bag. Use within 3 months for best quality. Thaw in the fridge overnight or drop the cube directly into hot pasta.
- Refrigerator: Store leftovers at 40°F (4°C) or below and refrigerate within 2 hours of making.
- Reheating: Reheat leftover pesto pasta to 165°F (74°C) and eat within 3 to 4 days.
Two safety points matter with pesto. First, do not store garlic or herb oil infusions at room temperature; garlic in oil can support the growth of Clostridium botulinum, so keep any garlic-oil mixture refrigerated and use it quickly. Second, if you add raw egg (some versions do for richness), use pasteurized eggs or skip it, especially for anyone pregnant, elderly, or immunocompromised. Never taste raw dough or raw egg mixtures.
Common Problems and Fixes
- Pesto turns brown: Oxidation from blending too long or exposure to air. Keep the surface covered and blend briefly; a little lemon juice can slow it.
- Too thick: Add pasta water or a little more olive oil a spoonful at a time.
- Too bitter: Walnuts or skin-on almonds can be harsh; add more cheese or a pinch of sugar, or switch to cashews.
- Too salty: The cheese and added salt add up; use unsalted nuts and taste before adding salt.
- Grainy texture: Nuts were not processed enough before the basil went in, or the seeds were too hard. Pulse longer at the start.
Frequently Asked Questions
Can I use peanuts in pesto?
Yes, though peanuts have a stronger, more distinct flavor and are a common allergen. Use unsalted roasted peanuts and expect a bolder, less delicate sauce.
Is pesto without pine nuts still authentic?
Pesto alla genovese traditionally uses pine nuts, so a swap is a variation rather than the classic. It is still a legitimate pesto and widely made that way.
Can I make pesto without cheese?
Yes. Omit the cheese and add a little extra salt and a spoonful of nutritional yeast or miso for savory depth. The sauce will be thinner, so use less oil.
How long does homemade pesto last?
About 3 to 4 days in the fridge, or up to 3 months frozen. Discard it if it smells sour or looks moldy.
Do I have to toast the nuts?
No, but toasting deepens the flavor and removes some raw bitterness. Cool them fully before blending so the basil stays green.
Can pesto be heated?
It is best added to hot pasta off the heat. Boiling pesto directly dulls the basil and can split the sauce.