Short Answer
Homemade pesto from spinach, arugula or parsley is the closest pesto sauce substitute, and chimichurri or salsa verde replace it spoon for spoon.
- On pasta, salsa verde or chimichurri goes in with a splash of pasta water.
- On sandwiches and pizza, sun-dried tomato pesto or olive tapenade stays thick.
- Sunflower seeds make it nut-free, and nutritional yeast makes it dairy-free.
- Homemade sauces keep 4 days refrigerated.
Pesto packs fresh herb, olive oil, salty hard cheese and nuts into one spoonful, so whatever you use instead has to bring herb and fat at the least, plus salt and body when it can. How thick the stand-in must be depends on your dish, because a pasta toss, a sandwich spread and a pizza base each need a different kind of sauce swap.
What Does Pesto Sauce Do in a Recipe?
Classic Genovese pesto crushes basil, garlic, pine nuts, hard cheese and olive oil into a coarse paste. In that paste, the basil brings a sweet, slightly peppery flavor, the oil carries it onto the pasta or bread, the cheese adds salt and savoriness, and the nuts give the paste its body.
Three traits decide how close a swap gets, and which one matters most depends on your dish.
- Fresh herb flavor is what makes pesto taste like pesto, so a swap with no green taste at all reads as a different dish.
- Salt and savoriness come from the cheese, so a swap without cheese, such as avocado sauce, needs salt or grated Parmesan added.
Thickness sets where you can use the sauce: pesto is thick enough to cling to pasta and sit on bread, while chimichurri and salsa verde run looser.
Best Substitutes for Pesto Sauce
No maker or extension service publishes a swap ratio for pesto, so every amount in this section is a starting amount for 1 part of pesto. Taste after you mix it in, then add more a spoonful at a time.
| Substitute | Start with | Best for | What changes |
|---|---|---|---|
| Spinach, kale or arugula pesto | Same amount | Pasta, sandwiches, pizza | Milder than basil, arugula peppery |
| Chimichurri | Same amount | Pasta, grilled meat | Thinner, tangy, no cheese or nuts |
| Italian salsa verde | Same amount | Pasta, vegetables, fish | Salty, sharp, no cheese or nuts |
| Garlic oil with Parmesan | Half the amount as oil, same as grated Parmesan | Hot pasta only | No herb flavor, oily coat |
| Sun-dried tomato pesto | Same amount | Sandwiches, pizza, pasta | Sweet, tangy, no basil taste |
| Olive tapenade | Same amount, spread thin | Sandwiches, pizza | Salty and briny, needs no added salt |
| Avocado sauce | Same amount | Toast, sandwiches, pasta | Creamy, mild, browns within hours |
1. Homemade Green Pesto from Spinach, Kale or Arugula
When basil is the only thing missing, the quickest swap is the same pesto made with other greens, because garlic, oil, cheese and nuts do most of the flavoring.
The greens go in at the same amount as the basil, blended as you normally would, and each green changes the taste in its own way:
- Baby spinach makes a mild, smooth sauce that tastes less herby than basil.
- Arugula adds a peppery bite, so use less garlic if you are sensitive to heat.
- Parsley tastes grassy and bright, and it keeps its green color well.
- Kale adds a bitter edge and blends gritty when raw, so strip the stems and chop it fine, or give the leaves a quick blanch first.
Mixed salad greens also work when they have some flavor, but plain lettuce adds volume and very little taste, so pair it with a handful of parsley or mint. For a hint of basil's sweet, anise-like note, add a few mint or tarragon leaves to the blender.
Oregano and thyme replace basil in cooked dishes, but they taste harsh in a raw blended sauce, so skip them in the blender.
As a starting formula, you blend 2 packed cups of leaves with ⅓ cup toasted nuts or seeds, ½ cup grated Parmesan, 2 garlic cloves, ½ cup olive oil, salt and a squeeze of lemon. Walnuts replace pine nuts well, and roasted walnuts from the air fryer take 8 to 10 minutes at 350°F.
Blend in stages, so the oil does not coat the leaves before the machine has chopped them.
- Toast. Warm the nuts or seeds in a dry skillet over medium heat until they smell nutty, then let them cool.
- Chop. Pulse the garlic, nuts and leaves into a coarse paste before any oil goes in.
- Stream. Pour in the oil with the machine running until the sauce turns glossy and spoons thickly.
- Season. Stir in the Parmesan, salt and lemon by hand, then taste, because the cheese is already salty.
2. Chimichurri
No cheese or nuts go into chimichurri, so it tastes tangy and herby, and its red wine vinegar gives it a sharper bite than pesto. In Argentina it is chopped parsley, garlic, oregano, red wine vinegar and olive oil, with a pinch of chili.
- On pasta, you toss it with hot noodles off the heat and add grated Parmesan to bring back the cheese, because it runs thinner than pesto.
- Bread needs a thick spread such as sun-dried tomato pesto, because chimichurri runs off it.
- On chicken, coat pounded breasts with half the sauce, cook them to 165°F, and serve the other half clean at the table.
Your own batch starts with 1 cup of finely chopped parsley, stirred together with:
- 3 minced garlic cloves
- ½ cup olive oil
- 2 tablespoons red wine vinegar
- 1 teaspoon dried oregano
- ½ teaspoon salt and a pinch of chili flakes
3. Italian Salsa Verde
You get a salty, sharp sauce from Italian salsa verde, which chops parsley, capers, garlic and olive oil together, often with an anchovy and a splash of vinegar or lemon. It spreads thinner than pesto, so you can use it the way you use chimichurri: toss it with hot pasta and a splash of pasta water.
Capers and anchovy already season the sauce, so taste before you add salt. You can spoon it over roasted vegetables, grilled meat or boiled potatoes.
To make it, chop 1 cup of packed parsley with 2 tablespoons of capers and 1 garlic clove, then stir in ½ cup of olive oil and 1 tablespoon of red wine vinegar or lemon juice. Rinse brined capers first, because the brine adds a lot of salt.
Mash an anchovy fillet into the oil for the classic version. For a fish-free sauce, leave it out: the capers still carry the salt, and a few drops of soy sauce add the savory depth.
Chopped green olives stand in for capers but taste saltier, so start with a small spoonful.
4. Garlic Oil with Parmesan
You need nothing beyond the pantry for this swap, though it works only on hot pasta. Its amounts replace ¼ cup of pesto, which is about enough for 8 ounces of dry pasta.
- Gentle heat. Warm 2 tablespoons of olive oil with 2 sliced garlic cloves over low heat for 1 to 2 minutes and stop at pale gold, because browned garlic turns bitter.
- Hot pasta. Toss the oil with drained pasta, ¼ cup of grated Parmesan and a few spoonfuls of pasta water.
- Green on top. With no herb flavor, the sauce needs chopped parsley or arugula on top.
Garlic oil suits a single meal, because any leftover has to go in the fridge and be used within 4 days.
5. Sun-Dried Tomato Pesto
For sandwiches, wraps and pizza, sun-dried tomato pesto stays where you spread it, and it tastes thick, sweet and tangy, with no basil taste at all.
Drained oil-packed sun-dried tomatoes blend with garlic, toasted almonds or sunflower seeds, Parmesan and enough of their own oil to turn the blades. Dry-packed tomatoes work after a soak in hot water until they soften.
For one batch, blend ½ cup of drained tomatoes with these, adding the jar oil last:
- 1 garlic clove
- ¼ cup of toasted almonds or sunflower seeds
- ¼ cup of grated Parmesan
- Oil from the jar, 1 tablespoon at a time, until the blades move freely
It goes in at the same amount as pesto, and on pasta a splash of pasta water loosens it first.
6. Olive Tapenade
Tapenade mashes olives with capers, garlic and olive oil, sometimes with anchovies. Because it tastes salty, briny and chunky, it suits Mediterranean dishes and pizza best, and you need no added salt.
Black olives make a mellow tapenade, and green olives make a sharper one.
Pulse 1 cup of pitted olives with 1 tablespoon of capers, 1 garlic clove and 2 tablespoons of olive oil in short bursts, because a long run purees it and you lose the chunky bite.
You spread it thin on toasted bread, crostini or a pizza crust. Without the anchovy, tapenade works as a vegetarian version, and a spoonful of olive oil stirred in loosens it enough for pasta.
7. Avocado Sauce
With a ripe avocado, olive oil, a minced garlic clove, lime juice and salt, you get a creamy, mild sauce that replaces pesto at the same amount. It has no cheese, so taste for salt.
Lime juice slows browning without stopping it, so make the sauce right before you serve it.
For a cold lunch, spread it straight onto toasted bread, which you can crisp in the air fryer in 3 to 5 minutes at 400°F. If you toss it with warm pasta instead, the avocado melts into a creamy coat.
Which Substitute Should You Use for Pasta, Sandwiches or Pizza?
A sauce for pasta has to loosen with a splash of pasta water, while a sauce for bread has to stay put on the slice.
Loose Green Sauce: Chimichurri or Salsa Verde
It coats hot pasta after a splash of pasta water and cuts through grilled meat.
It runs off bread and pizza, and with no cheese or nuts it needs Parmesan.
Thick Spread: Sun-Dried Tomato Pesto or Tapenade
It stays on a toasted slice or pizza crust with a deep, salty flavor.
Noodles need it thinned with oil or pasta water.
For hot pasta, you add salsa verde, chimichurri or garlic oil with Parmesan after the noodles come off the heat, which keeps the herbs green. Garlic oil and Parmesan suit spaghetti and linguine best, and the two green sauces cling to short shapes such as penne.
On sandwiches and wraps, tapenade or sun-dried tomato pesto goes on thin, and avocado sauce suits a toasted slice you will eat at once. On pizza, a thin layer of sun-dried tomato pesto or tapenade replaces the tomato sauce under the cheese, and tapenade brings enough salt that the pizza needs no more.
After baking, you spoon on chimichurri or salsa verde, because chopped fresh herbs scorch in a hot oven.
Two swaps fail on pasta and bread alike. Tomatillo salsa verde, the Mexican green sauce, is thin, tart and water-based, so it neither coats pasta nor holds on a slice of bread.
You get only a seasoned oil from dried basil stirred into olive oil, because dried basil has little of the fresh leaf's aroma and none of its bulk.
Pasta Salad
Cold pasta keeps absorbing oil as it sits, so a swap for salad needs body. Sun-dried tomato pesto thinned with a spoonful of olive oil clings to rotini or penne in a cherry tomato and mozzarella pasta salad, while thin chimichurri pools at the bottom of the bowl.
How Do You Make a Pesto Substitute Nut-Free or Dairy-Free?
Pesto usually holds pine nuts or walnuts, and FARE lists pine nut among the 12 tree nuts on the FDA allergen labeling list.
Because FARE describes sunflower seeds as a seed allergen that is separate from tree nuts, sunflower seeds replace the nuts in a homemade sauce at the same amount, toasted first, and pumpkin seeds work the same way.
Warning
Check the label of any seed or sauce for nut cross-contact when you cook for someone with a nut allergy, and ask about seed allergies too.
For a dairy-free sauce, leave the cheese out and stir in nutritional yeast at about half the volume of the Parmesan, plus extra salt and a squeeze of lemon, because the cheese carried most of the salt. When the Parmesan is the only missing piece, Parmesan stand-ins such as Grana Padano go in 1:1, and saltier Pecorino Romano takes about three-quarters of the amount.
Four of the seven swaps contain no nuts and no cheese in their usual recipes, while the two pesto-style sauces and the garlic oil each need a change.
| Swap | Nut-free as written | Dairy-free as written | Change to make |
|---|---|---|---|
| Green pesto from spinach, kale or arugula | Only with seeds | No | Sunflower or pumpkin seeds, and nutritional yeast for the cheese |
| Chimichurri | Yes | Yes | None |
| Italian salsa verde | Yes | Yes | None |
| Garlic oil with Parmesan | Yes | No | 2 tablespoons of nutritional yeast for the ¼ cup of Parmesan, plus extra salt |
| Sun-dried tomato pesto | Only with sunflower seeds | No | Use sunflower seeds, and nutritional yeast for the cheese |
| Olive tapenade | Yes | Yes | None |
| Avocado sauce | Yes | Yes | None |
FDA requires packaged foods to name the type of tree nut, such as almonds, pecans or walnuts, and it lists sesame as its own major allergen, so for a sesame allergy skip tahini and sesame seeds as nut stand-ins too.
Because FDA does not require advisory statements such as "may contain," a label without one does not prove a seed bag or sauce jar was kept clear of nuts.
How Long Do Homemade Pesto and Garlic Oil Keep?
Fresh garlic and herbs packed in oil sit without air, which is the setting where Clostridium botulinum can grow. Oregon State University Extension says herbs and vegetables in oil go in the fridge and get used within 4 days, or get frozen for longer storage.
If you make pesto, chimichurri, salsa verde, garlic oil or tapenade at home, each one packs fresh herbs or garlic in oil, so the same 4-day rule is the safe one for your batch.
Warning
Never leave homemade garlic oil or pesto on the counter. Only commercial, acidified products keep at room temperature, and a splash of vinegar in chimichurri does not follow Oregon State's acidification directions.
To keep extras, spoon the sauce into an ice cube tray, freeze it, and take out one cube per serving.
Once the cubes are solid, move them to a freezer bag, and drop one straight into hot pasta with a splash of pasta water.
Avocado sauce needs a different plan: it browns within hours, so make it fresh.
Oregon State applies the same 4-day limit to dried tomatoes in oil that are seasoned with garlic or herbs, so sun-dried tomato pesto, which blends in garlic, keeps for 4 days like the other sauces.
After you open a jar of store-bought pesto, a different clock applies. USDA FoodKeeper lists opened jarred pesto at 3 days in the refrigerator and 1 month in the freezer, and the maker's label wins when it gives other times.
How Do You Keep Homemade Green Sauces from Browning?
A blender cuts and bruises leaves at once, which activates polyphenol oxidase, an enzyme that turns the leaf's colorless compounds into brown pigments. In Cook's Illustrated testing, pesto from unblanched basil began to darken as soon as it was scooped out of the processor, while blanched basil stayed bright green.
- Blanch. Drop whole leaves into boiling water for 20 to 30 seconds, then move them to ice water.
- Dry. Squeeze the leaves in a towel, because extra water thins the sauce.
- Acidify. Blend in 4 teaspoons of lemon juice for every 2 cups of packed leaves, in place of the squeeze in the formula.
- Seal. Store it in an airtight container under a thin film of olive oil, 1 to 2 tablespoons, as Cook's Illustrated does.
The blanching and lemon amounts come from tests on basil, so for spinach, kale or parsley they are a starting point. For arugula, start with the lemon alone.
Color says nothing about safety: you still count 4 days in the refrigerator from the day you made the sauce, green or not.
Frequently Asked Questions
Yes, a few spoonfuls of starchy pasta water loosen pesto or any swap into a light, creamy coat. For a richer sauce, fresh ricotta works too: pesto orzo stirs 1 cup of ricotta and a splash of pasta water into 12 ounces of orzo.
Walnuts, almonds, sunflower seeds and pumpkin seeds go in at the same amount as the pine nuts. Toast them first, since raw nuts taste flat and a little bitter in a sauce.
It works on grilled meat, vegetables and pasta, but olive tapenade is the closer Mediterranean match for bread, pizza and roasted vegetables, because it brings the same salty, savory depth that pesto gets from its cheese.
Sources
- Herbs and vegetables in oil (SP 50-701), Oregon State University Extension
- Tree nut, Food Allergy Research & Education (FARE)
- Food Allergies, U.S. Food and Drug Administration (FDA)
- FoodKeeper (pesto, jarred), USDA FoodSafety.gov
- Keeping basil green in pesto, Cook's Illustrated

Andrew Gray is a seasoned food writer and blogger with a wealth of experience in the restaurant and catering industries. With a passion for all things delicious, Andrew has honed his culinary expertise through his work as a personal chef and caterer.
His love for food led him to venture into food writing, where he has contributed to various online publications, sharing his knowledge and insights on the culinary world. As the proud owner of CooksCrafter.com, Andrew covers a wide range of topics, including recipes, restaurant reviews, product recommendations, and culinary tips.
Through his website, he aims to inspire and educate fellow food enthusiasts, offering a comprehensive resource for all things food-related.









