Running out of pesto mid-recipe is frustrating, but finding a workable swap is harder than it sounds.
Understanding what pesto sauce brings to a dish - that bright herb-forward flavor, creamy emulsion, and rich olive oil body - helps you pick a substitute that holds up rather than falls flat.
Classic Genovese pesto uses a 2:1 basil-to-parmesan weight ratio and between ½ and ¾ cup olive oil per 2 cups of fresh basil, so any replacement needs to match that fat content and consistency.
Fresh basil is only widely available a few months of the year, and pine nuts spike in price and availability depending on the season.
They're also a common allergy trigger, which rules out traditional pesto for a growing number of home cooks.
Seasonality and nut allergies are the two constraints that push most people toward a substitute in the first place. Each swap below addresses one or both.
Spinach-walnut pesto is the closest overall swap for basil pesto - use it 1:1 by volume in cooked dishes. It matches the green color and creamy texture, though it lacks basil's distinctive aroma. For nut-free needs, roasted pumpkin-seed pesto replaces pine nuts at a 1:1 nut mass ratio with nearly identical emulsion.
5 Best Substitutes for Pesto Sauce to Try
Here's a fast-reference breakdown of all five swaps before we get into the details.
| # | Substitute | Best For | Ratio | Key Note |
|---|---|---|---|---|
| 1 | Spinach-Walnut Pesto | 🍳 Cooking | 1:1 | Milder aroma, darkens when heated |
| 2 | Arugula Pesto | 🥗 Raw | ¾:1 | Peppery bite, bitter if over-blended |
| 3 | Cilantro-Lime Pesto | ✨ Both | 1:1 raw / ¾:1 warm | Different profile, citrus-forward |
| 4 | Sun-Dried Tomato Pesto | 🍳 Cooking | ¾:1 or 1:1 | Higher sodium, no green color |
| 5 | Pepita (Pumpkin-Seed) Pesto | ✨ Both | 1:1 | Nut-free, slightly earthier flavor |
1 - Spinach-Walnut Pesto
Spinach-walnut pesto is the most structurally similar replacement for classic basil pesto. Spinach has a comparable moisture content and neutral green flavor that doesn't fight the Parmesan or olive oil.
Use it 1:1 by volume in hot pasta, gnocchi, or spread on sandwiches - it holds its emulsion reliably.
To make a batch, blend 3 cups packed raw spinach, ¾ cup toasted walnuts, ½ cup grated Parmesan, ½ cup olive oil, and 2 tablespoon lemon juice.
For making fresh basil pesto sauce at home as a comparison, the construction method is nearly identical - the spinach just replaces the basil leaves cup for cup.
One hard limit: spinach-based pesto darkens noticeably when heated above 160°F, so avoid prolonged stovetop cooking.
Spinach-Walnut Pesto
Works for: hot pasta, gnocchi, sandwich spreads, meal-prep batches
Skip if: you need basil's distinctive aroma or a bright green finish after cooking
2 - Arugula Pesto (Peppery Green Pesto)
Arugula pesto delivers a sharp, peppery bite that sets it apart from milder greens. It has a slightly higher water content than basil, so the emulsion is a touch thinner.
Start at a ¾:1 arugula pesto to basil pesto ratio for a milder result, and go up to 1:1 only if you want the full peppery punch.
For a standard 2-cup batch, add 1-2 tablespoon extra lemon juice to balance arugula's natural bitterness.
This swap works best on cold pasta, pizza after it comes out of the oven, and salad dressings - anywhere the heat stays low and the peppery flavor reads as intentional.
3 - Cilantro-Lime Pesto
Cilantro-lime pesto is a genuinely different flavor profile, but it works where basil pesto is used as a fresh herb drizzle rather than a sauce base.
It's citrusy and bright, commonly made with almonds or pepitas instead of pine nuts.
A standard batch uses 2 cups packed cilantro leaves, ½ cup pepitas, ⅓ cup olive oil, and 2 tablespoon lime juice.
For raw applications - sandwiches, grain bowls, salsa-style toppings - use it at a 1:1 volume swap.
Drop to ¾:1 when adding to warm cooked grains, since cilantro loses much of its aroma above 140°F.
If you need to adjust the acid balance and don't have lime on hand, the lemon juice substitutes that work in pesto-style blends carry over here too.
Tacos, grilled fish, and roasted vegetables are where this swap earns its place. It won't fool anyone expecting basil pesto, but it fills the same structural role - fat, acid, herb, and crunch - with a distinctly different result.
4 - Sun-Dried Tomato Pesto (Pesto Rosso)
Sun-dried tomato pesto - also called pesto rosso - trades the herb-forward brightness of basil pesto for a concentrated, umami-rich tomato flavor. It's thicker, saltier, and deeper in color.
A typical blend uses 1 cup packed oil-packed sun-dried tomatoes, ⅓ cup grated Pecorino or Parmesan, and ¼-1/3 cup olive oil.
Use it at ¾:1 in dishes where basil pesto serves mainly as a color and herb accent - you don't want the tomato to dominate.
Go 1:1 when the recipe can carry a pronounced tomato presence, like pasta with cream sauce or sandwich spreads for grilled meats.
Watch sodium closely: sun-dried tomato pesto often contains 200-400 mg more sodium per 2-tablespoon serving than standard basil pesto.
Sun-Dried Tomato Pesto
Works for: pasta with cream sauces, grilled meat sandwiches, savory tart fillings
Skip if: the recipe relies on green color or fresh herb aroma from the pesto
5 - Nut-Free Pumpkin-Seed (Pepita) Pesto
Roasted pepitas are the most reliable nut-free base for pesto because their oil content closely mirrors pine nuts, which means the emulsion behaves the same way.
Toast them 6-8 minutes at 350°F until fragrant before blending.
A standard batch calls for 1 cup toasted pepitas, ½ cup grated Parmesan or nutritional yeast, ⅓-1/2 cup olive oil, and 1 tablespoon lemon juice.
The finished pesto has a slightly earthier, grassier flavor and a deeper green hue than basil pesto. It works across pasta, dressings, and spreads without modification.
For nut allergy households, this is the only substitute on this list with no cross-contamination risk from tree nuts.
Picking the Right Pesto Swap
Choosing comes down to application first, flavor second.
- Hot pasta or gnocchi: Spinach-walnut pesto at 1:1 - holds heat best without breaking
- Raw or cold plates: Arugula pesto at ¾:1, or cilantro-lime at 1:1 for citrus-forward dishes
- Baked dishes: Avoid fresh-herb pestos entirely - oils separate above 350°F; use sun-dried tomato pesto at ¾:1 instead
- Nut-free priority: Pepita pesto at 1:1 - same emulsion properties, no allergy risk
- Fastest fix: Jarred basil pesto at 1:1, no prep, refrigerates up to 7-10 days after opening
Frequently Asked Questions
Yes - all five substitutes freeze well for up to 3 months when stored in ice cube trays and transferred to a sealed bag. Freezing softens the emulsion slightly, so expect a thinner consistency after thawing. Stir in a small drizzle of olive oil to bring it back together before using.
Sun-dried tomato pesto is the safest choice for baked applications because its lower water content and oil-packed base don't separate at oven temperatures. Fresh-herb pestos - spinach, arugula, cilantro - tend to weep oil and lose color once exposed to sustained heat above 350°F. If you use a green pesto in focaccia, apply it as a swirl rather than a surface layer to minimize direct heat exposure.
Each standard batch yields about 1 cup of finished pesto, which sauces roughly 2-3 pasta servings. For 5-10 people, make 3-5 batches and blend them in stages - most home blenders handle a doubled recipe cleanly, but a tripled batch overloads the blade and produces uneven texture. Scale cheese and salt last, tasting after each addition.
Transfer leftovers to a small jar, press a layer of olive oil across the surface to block air contact, seal tightly, and refrigerate. Green-herb pestos (spinach, arugula, cilantro) stay fresh for 4-5 days this way; sun-dried tomato pesto holds up to 7 days. For anything beyond that window, freeze in small portions rather than risking oxidation in the fridge.
For store-bought versions, thin the pesto with unsalted olive oil at roughly a 1:4 oil-to-pesto ratio to dilute sodium without altering texture significantly. When making sun-dried tomato pesto from scratch, use water-packed sun-dried tomatoes instead of oil-packed and skip added salt entirely, letting the Parmesan carry the seasoning. A squeeze of lemon or lime juice sharpens flavor so the lower salt level is less noticeable.

Carrie is a food writer and editor with more than 15 years of experience. She has worked for some of the biggest names in the food industry, including Bon Appétit, Food & Wine, and Martha Stewart Living.
As the Editor in Chief of EpicureDelight, Carrie oversees all of the content on the site. She also manages the team of contributing writers and editors, who help to create delicious recipes, helpful tips, and informative articles that you’ll find on the site.
A native of the Chicago area, Carrie is passionate about all things food. She loves trying new restaurants and experimenting with new recipes in her kitchen. She’s also a graduate of the Culinary Institute of America, so she knows a thing or two about food!




