12 Great Pine Nut Substitutes for Pesto You’ll Love

The Italians knew what they were doing when they created pesto alla Genovese. This vibrant green sauce relies on a handful of high-quality, fresh ingredients and delivers intense flavor with minimal fuss.

Traditional basil pesto is made from crushed fresh garlic, European pine nuts, coarse sea salt, fresh basil leaves, and finely grated hard cheese such as Pecorino or Parmigiano-Reggiano, all emulsified with extra-virgin olive oil.

But pine nuts can be expensive, and some people avoid them because of allergies or the uncommon pine mouth syndrome. If you’re skipping pine nuts for any reason, here are the best alternatives that work beautifully in pesto.

My favorite direct substitute for pine nuts in classic basil pesto is cashews. If you need a nut-free option, sunflower seeds or pepitas (pumpkin seeds) are great choices. Read on to find the right substitute for your pantry and taste.

Top down view of a bowl of basil pesto surrounded by basil leaves with a slice of toasted sourdough in the upper left corner.

In this post

  • What are pine nuts?
  • The best substitutes for pine nuts in pesto
  • How to substitute pine nuts in pesto
  • How to use pesto
  • Frequently asked questions

What are pine nuts?

Pine nuts, also called pignoli, are the edible seeds removed from pine cones. Harvesting and extracting these small seeds is time-consuming, which contributes to their higher cost.

The seeds are ivory-colored, soft, and offer a sweet, buttery flavor with a pleasant nutty crunch.

Some people avoid pine nuts because of allergies or concerns about pine nut mouth syndrome, a temporary taste disturbance that a few individuals experience. Others simply look for more economical options. Whatever the reason, there are plenty of excellent pine nut alternatives for pesto.

Top down view of pine nuts and basil pesto ingredients.

The best pine nut substitutes for pesto

Although traditional pesto alla Genovese uses pine nuts, many homemade versions swap in other nuts or seeds with great results. The goal is to replace pine nuts’ soft, buttery texture and mild sweetness with something similar in flavor and mouthfeel.

Below are reliable, budget-friendly, and allergy-conscious alternatives that make delicious pesto.

1. Cashew nuts

Soaked cashew nuts in a bowl next to a smaller glass bowl of nutritional yeast powder.

Raw, unsalted cashews are the closest match to pine nuts in both texture and sweet, buttery flavor. For more depth, roughly chop and toast them briefly in a dry pan until just golden—about one minute—watching carefully so they don’t burn.

Use cashews in a 1:1 substitution by volume (a tablespoon of chopped cashews for a tablespoon of pine nuts).

2. Macadamia nuts

Macadamias bring a rich, buttery mouthfeel thanks to their high fat content. Their sweet, creamy character works well in pesto—lightly roast them to accentuate their buttery notes and use them as a direct 1:1 substitute by volume.

3. Unsalted pistachios

Pistachios add a distinctive, slightly sweet flavor and a vibrant color to pesto. Use unsalted pistachios as a straight swap for pine nuts or as a finishing garnish on dishes that call for pine nuts.

4. Almonds

Almonds don’t replicate the exact buttery flavor of pine nuts but make a delicious pesto. Sicilian pesto variations traditionally use almonds—try pesto alla Trapanese for a tomato-and-almond profile—or substitute chopped almonds directly for pine nuts in classic pesto recipes.

Quinoa salad with basil, kale and almond pesto topped with avocado and a lemon dressing.

5. Pecan nuts

Pecans provide a rich, buttery flavor but will darken the color of your pesto. If appearance isn’t critical, pecans make a creamy, flavorful paste when pounded and work well both in the sauce and as a toasted garnish.

6. Walnuts

Walnuts have a comparable fat content to pine nuts but can introduce a slight bitterness from their skins. For a milder flavor, you can remove skins, though using whole walnuts is perfectly acceptable and produces a hearty, flavorful pesto.

Related recipes

  • Try labneh with sweet and spicy cherry tomato sauce using walnuts instead of pine nuts.
  • Or make a red pepper and walnut sauce (muhammara) as an alternative to pesto.

7. Blanched hazelnuts

Blanched hazelnuts offer an intense, toasty nuttiness. Remove the skins and roast them lightly to enhance flavor. They won’t be as soft as pine nuts, but chopped and toasted hazelnuts make a deeply flavorful pesto.

Substitute by volume: one tablespoon chopped hazelnuts for one tablespoon pine nuts.

8. Brazil nuts

Brazil nuts add creaminess and a distinct nutty flavor. Because they’re large, roughly chop them to pine nut size and substitute by equal volume for a robust, creamy pesto.

9. Sunflower seeds

Sunflower seeds are an excellent nut-free substitute. They provide texture and fat to balance basil’s herbaceousness. Use hulled sunflower seeds as a 1:1 swap by volume; toasting them briefly brings out more flavor.

Broccolini and preserved lemon pesto in a bowl.
Leftover broccoli and sunflower seed pesto
Broccolini pesto with labneh on sourdough toasts.
Sunflower seed pesto on toast

10. Pepitas (pumpkin seeds)

Pepitas are another solid nut-free choice. These shell-free pumpkin seeds blend into a creamy texture and make a flavorful pesto. Use them as a direct 1:1 substitute by volume.

11. Sesame seeds

Hulled sesame seeds can replace pine nuts by volume and add a toasty, subtle flavor—toast them for extra depth. If you prefer a shortcut, stir a tablespoon or two of tahini into your basil paste to create a creamy, nut-free pesto; adjust olive oil to reach the desired consistency.

12. Nut butter

Nut butter is a convenient kitchen hack that saves time. Choose unsweetened, unsalted, and unflavored nut butter—peanut, cashew, or pistachio butter all work—to replace whole nuts. Use one tablespoon of nut butter for each tablespoon of pine nuts the recipe calls for, and reduce the olive oil slightly, adjusting to taste.

Why not make nut-free pesto instead?

Pistou, a French cousin to pesto, is simply basil, garlic, and olive oil—no nuts and sometimes no cheese. If you’d rather skip nuts entirely, pistou is a flavorful, traditional alternative.

How to make pesto without pine nuts

The word pesto comes from the Italian for “pounded.” Classic pesto is traditionally made in a mortar and pestle, but a food processor produces excellent results quickly. Use your chosen substitute in the same quantity called for pine nuts, then adjust texture and olive oil to taste.

For nut butter or tahini, reduce the olive oil slightly and add more if needed. For whole nuts or seeds, toasting and rough chopping often improves flavor and texture. Blend with garlic, basil, cheese (or a vegan alternative), salt, and olive oil until you reach the desired consistency.

How to use pesto

Pesto is versatile beyond pasta—use it to elevate many dishes. Here are practical serving ideas:

  1. Pesto pasta: Toss pesto with hot pasta and a splash of reserved pasta water for a silky sauce. Finish with lemon zest or a squeeze of lemon for brightness.
  2. Pesto pizza: Use pesto in place of tomato sauce as a flavorful base for pizza, then top with mozzarella, cherry tomatoes, or your favorite toppings.
  3. Savory sandwiches: Spread pesto on sandwiches or wraps with grilled chicken, roasted vegetables, or fresh greens.
  4. Egg dishes: Mix pesto into scrambled eggs, omelets, or frittatas for a fragrant lift.
  5. Soups and stews: Stir a spoonful of pesto into soups—especially tomato-based or minestrone—just before serving.
  6. Salad dressing: Thin pesto with lemon juice and a little extra olive oil to dress salads or grain bowls.
Heirloom tomato salad with homemade vegan basil pesto.

Frequently asked questions

What can I use instead of pine nuts for pesto?

Cashews are the closest match in flavor and texture. Walnuts and almonds also work well. For nut-free pesto, opt for sunflower seeds or pepitas.

What other nuts can you use in pesto?

Walnuts, almonds, pistachios, hazelnuts, and macadamias are all popular choices that add distinct nutty flavors and creamy textures to pesto.

How important are pine nuts in pesto?

Pine nuts are traditional and contribute a mild, buttery richness, but they are not essential. Many nuts and seeds can provide similar depth—try cashews or sunflower seeds depending on your preference and dietary needs.

Whether you make a sun-dried tomato pesto with walnuts or a classic basil pesto using cashews, pesto’s versatility makes it easy to adapt to ingredients on hand. Store homemade pesto in the refrigerator and use it to brighten meals throughout the week.

More substitutes to explore

  • Italian seasoning substitutes (& recipe)
  • The best Dijon mustard substitutes (+ DIY recipe)
  • The best gochujang substitutes (+ what not to use)
  • Spice blends to substitute Chinese five-spice (+ easy recipe)
  • Substitutes for gochugaru (Korean chilli flakes)