All Substitution Guides

9 Best Substitutes for Pine Nuts (for Pesto, Salads, and Baking)

Substitution Guide
9 Best Substitutes for Pine Nuts (for Pesto, Salads, and Baking)

The basil is washed, the garlic is peeled, the Parmesan is grated, and the jar in the pantry that you were sure held pine nuts turns out to hold three of them and a lot of air. Or you made it to the store, saw the price on a tiny bag, and quietly put it back.

Pine nuts are hard to justify buying for one recipe. They are small, soft and buttery, with a mild resinous sweetness, and they are among the most expensive nuts on the shelf. The good news is that in most recipes they are doing one of only three jobs: giving pesto its body and richness, adding a toasty crunch to a salad or grain dish, or sitting on top of a cookie or tart looking elegant. Each of those jobs has a cheaper understudy, and a couple of them are nut-free.

Here is what works for each use, with ratios, toasting times, and honest notes on how each one changes the dish.

The Quick List

  • Walnuts — the best all-purpose swap, and the traditional pesto alternative in Liguria itself
  • Sunflower seeds — the best nut-free and budget pick; excellent in pesto, but they can turn green in baking
  • Cashews — the closest match for pine nuts' soft, buttery creaminess in pesto
  • Blanched slivered almonds — the best stand-in for baking and for topping cookies and tarts
  • Pistachios — for salads, grain bowls and a bright green pesto; a little sweeter
  • Pepitas (hulled pumpkin seeds) — nut-free crunch for salads and roasted vegetables; also a good pesto
  • Hemp hearts — nut-free, no toasting or chopping, and the most protein per ounce of anything here
  • Macadamia nuts — the richest, most buttery option; best in baking and creamy sauces
  • Toasted breadcrumbs — for when you just need crunch on pasta and every nut and seed is off the table

First: Measuring and Toasting

Every ratio below is by volume, measured after chopping. Pine nuts are small and pack tightly into a measuring cup, so 1/4 cup of whole walnut halves contains noticeably less nut than 1/4 cup of pine nuts. Chop larger nuts to roughly pine-nut size first, then measure, and a 1:1 swap works for almost everything. The base unit used throughout is 1/4 cup of pine nuts, which is a bit over an ounce. For pesto the base is the common 1/3 cup of pine nuts per 2 packed cups of basil.

Toast whatever you use. Most of the flavor people associate with pine nuts comes from toasting, and the same is true of every substitute here. Toast in a dry skillet over medium-low heat, shaking the pan often, until fragrant and lightly golden. Rough times: pine nuts and sunflower seeds 3 to 5 minutes, slivered almonds 4 to 6, walnuts and cashews 5 to 7, pepitas until most of them puff and start to pop. In the oven, spread them on a sheet pan at 350°F and start checking at 5 minutes. Pull them a shade before they look done, because they keep cooking on the hot pan. Hemp hearts are the exception: they scorch fast and have little to gain from toasting, so add them raw.

For Pesto

In pesto, pine nuts supply body, fat and a gentle sweetness that rounds off the sharp garlic and raw basil. They are not meant to be tasted on their own, which is why so many swaps work here. What matters is how creamy the nut blends and how loud its own flavor is.

Walnuts

  • Swap: 1/3 cup pine nuts → 1/3 cup toasted, chopped walnuts (1:1)
  • Best for: Basil pesto, kale or arugula pesto, pasta with nuts and greens, grain salads
  • Skip it for: Anywhere you want a very pale, delicate sauce; walnuts read darker and earthier
  • Health notes: About 2.6 g of plant omega-3 (ALA) per ounce, versus almost none in pine nuts

Walnuts are the most useful single answer to this question. Liguria, the region pesto comes from, has its own walnut sauce for pasta, and walnut pesto tastes like a slightly heartier, more rustic version of the original rather than an imitation of it. Most people will not notice the difference on a plate of pasta.

The one thing to watch is bitterness. The thin papery skin on walnuts is high in tannins, and it can make a pesto taste faintly astringent. Toasting tames most of it. If your walnuts taste bitter even after toasting, rub them in a clean kitchen towel while still warm and some of the loose skin will flake off. Walnuts also go rancid faster than most nuts, so taste one before it goes in the blender; a stale walnut ruins a whole batch of sauce.

Cashews

  • Swap: 1/3 cup pine nuts → 1/3 cup unsalted cashews, toasted (1:1)
  • Best for: Basil pesto when you want it as close to the original as possible, creamy pesto pasta, cilantro or herb sauces
  • Skip it for: Toppings that need crunch; cashews are soft and slightly waxy

If the goal is a pesto that tastes like the one you planned, cashews are the closest match. They share pine nuts' mild sweetness and soft, buttery texture, and they blend into a smoother, creamier sauce than walnuts do. Their flavor is quiet enough that basil and garlic stay in charge.

Use unsalted cashews if you can, because pesto already carries salt from the cheese. If all you have are roasted and salted, use them, skip any added salt, and taste at the end. Cashews do not need a long toast; a few minutes until they turn pale gold is enough.

Sunflower Seeds

  • Swap: 1/3 cup pine nuts → 1/3 cup hulled sunflower seeds, toasted (1:1)
  • Best for: Nut-free pesto, budget pesto, school-lunch pasta, salads and grain bowls
  • Skip it for: Baked goods made with baking soda, where they can turn green (see below)
  • Health notes: About 10 mg of vitamin E per ounce, roughly two thirds of the Daily Value and almost four times what pine nuts provide

Sunflower seeds are the swap that makes the most sense for most kitchens. They cost a fraction of what pine nuts do, they keep well, they are free of tree nuts, and once toasted they have a mild, nutty, slightly earthy flavor that disappears into pesto surprisingly well. Untoasted, they taste a bit raw and grassy, so this is the one swap where toasting is not really optional.

Buy hulled, unsalted kernels, not the in-shell snacking kind. If you only have salted ones, rinse and dry them first or cut the salt elsewhere in the recipe. A sunflower seed pesto made with a squeeze of lemon tastes bright and complete on its own terms, and nobody at a school-safe lunch table will know what it replaced.

Blanched Almonds

  • Swap: 1/3 cup pine nuts → 1/3 cup blanched slivered or sliced almonds, lightly toasted (1:1)
  • Best for: Pesto, Sicilian-style tomato pesto, romesco-adjacent sauces, baking (see below)
  • Skip it for: Very smooth sauces in a weak blender; almonds stay a little gritty
  • Health notes: About 3.5 g of fiber and 6 g of protein per ounce, versus about 1 g and 4 g in pine nuts

Almonds are a perfectly good pesto nut and a classic one in Sicily, where pesto alla trapanese blends almonds with tomatoes and basil. Use blanched almonds rather than skin-on, for the same reason as with walnuts: the skins add bitterness and a brownish fleck. Slivered or sliced almonds blend faster than whole ones.

Almonds are firmer and drier than pine nuts, so the pesto comes out a little more textured. Blend a bit longer and add an extra tablespoon of olive oil if it seems thick. Pistachios, below, also make a lovely pesto, especially if you want the color to stay vividly green.

Hemp Hearts

  • Swap: 1/3 cup pine nuts → 1/3 cup hemp hearts, untoasted (1:1)
  • Best for: Nut-free pesto, quick blender sauces, sprinkling over salads and bowls
  • Skip it for: Anywhere you want crunch or a toasty flavor; hemp hearts are soft and grassy
  • Health notes: About 9 g of protein per ounce, more than double pine nuts, plus nearly half the Daily Value for magnesium

Hemp hearts are hulled hemp seeds, and they are the lowest-effort swap on the list: no chopping, no toasting, and they blend almost instantly into a smooth sauce. Their flavor is mild with a faintly grassy, sunflower-like note that fits naturally with basil.

The tradeoff is that they bring no roasted depth at all, and the pesto can taste a little flat. A spoonful of nutritional yeast or a bit more Parmesan fixes that. They are also an easy way to stretch an expensive batch: half pine nuts and half hemp hearts tastes very close to the original.

No Nuts at All

Pesto does not strictly need a nut. Plenty of home cooks and plenty of recipes simply leave them out. The sauce will be thinner, sharper and more herbal, so blend in an extra 2 tablespoons of grated Parmesan to make up some of the body, and use slightly less oil. If you are making pesto for someone with a nut allergy and dairy is also off the table, our Parmesan substitutes guide covers the cheese side.

For Salads, Grain Bowls, Roasted Vegetables, and Pasta

Here pine nuts are a garnish: little toasty bites of crunch and richness scattered over spinach salads, couscous, roasted squash, or a bowl of pasta. Texture matters more than anything, and the substitute needs to stay crisp.

Pepitas (Hulled Pumpkin Seeds)

  • Swap: 1/4 cup pine nuts → 1/4 cup toasted pepitas (1:1)
  • Best for: Salads, roasted vegetables, grain bowls, soups, tacos and anything with squash
  • Skip it for: Delicate desserts; pepitas taste distinctly savory
  • Health notes: About 8.6 g of protein, 168 mg of magnesium (40% DV) and 2.2 mg of zinc per ounce

Pepitas are the best nut-free garnish swap. They are about the same size as pine nuts, they stay crunchy in a dressed salad, and when toasted they puff slightly and turn nutty and a little popcorn-like. Their green color also looks great against roasted vegetables and grains.

Make sure you buy hulled pepitas, which are green and flat, not whole pumpkin seeds in their white shells. The whole seeds are crunchy in a very different, chewy-fibrous way and do not work as a pine nut stand-in. Toss them into a dry skillet and pull them off as soon as they start popping and smelling toasty.

Pistachios

  • Swap: 1/4 cup pine nuts → 1/4 cup shelled pistachios, roughly chopped (1:1)
  • Best for: Grain salads, couscous, roasted carrots or cauliflower, yogurt bowls, Middle Eastern-style dishes, pistachio pesto
  • Skip it for: Dishes where a sweet, distinctive nut flavor would fight the other ingredients
  • Health notes: About 3 g of fiber and 5.7 g of protein per ounce, with fewer calories than pine nuts

Pistachios are the most attractive swap, with their green and purple flecks, and their slightly sweet flavor fits naturally in the Mediterranean and Middle Eastern dishes where pine nuts often show up. They are firmer than pine nuts, so chop them coarsely rather than leaving them whole.

Most shelled pistachios come roasted and salted. That is fine for a garnish, but adjust the salt in the dressing. Raw pistachios toast in about 4 to 5 minutes and stay greener than long-roasted ones.

Toasted Sunflower Seeds

Everything said about sunflower seeds in pesto applies here too, and they are the cheapest crunchy topping you can buy. Use 1:1, toast until golden, and scatter on salads, grain bowls, or roasted vegetables. They are smaller than pine nuts, so they read as a sprinkle rather than a bite, but they add a very similar toasted richness.

Toasted Breadcrumbs

  • Swap: 1/4 cup pine nuts → 1/4 cup coarse breadcrumbs or panko, toasted in 1 to 2 teaspoons olive oil with a pinch of salt
  • Best for: Pasta, roasted vegetables, gratins, and anything topped with pine nuts mainly for crunch
  • Skip it for: Pesto, salads that sit after dressing (breadcrumbs go soggy), and gluten-free cooking unless you use gluten-free crumbs

Southern Italian cooks have a name for this: pangrattato, sometimes called "poor man's Parmesan." Golden, garlicky breadcrumbs scattered over pasta at the last minute give you almost exactly the crunch and toasty richness pine nuts would have, at a fraction of the cost. Toast them in a skillet with olive oil over medium heat, stirring constantly, until deep golden, about 3 to 4 minutes. A grated garlic clove or some lemon zest added in the final 30 seconds makes them even better.

If you are out of breadcrumbs too, our breadcrumb substitutes guide has options, and torn day-old bread pulsed in a food processor works perfectly.

For Baking: Pignoli Cookies, Tarts, and Breads

In baking, pine nuts usually sit on top, where they toast in the oven and form a crunchy, pretty crust. Pignoli cookies, Italian pine nut tarts, and some sweet breads all use them this way. The substitute needs to look the part and stand up to oven heat without burning.

Blanched Slivered Almonds

  • Swap: 1/4 cup pine nuts → 1/4 cup blanched slivered almonds (1:1), used raw since they will toast in the oven
  • Best for: Pignoli-style cookies, tart toppings, biscotti, sweet breads, crumble toppings
  • Skip it for: Nut-allergy baking, obviously

Slivered almonds are the natural baking swap, and pignoli cookies make the case for themselves: the cookie underneath is already made from almond paste, so almonds on top are a perfect flavor match. Slivered almonds are similar in shape and color to pine nuts, they toast to the same pale gold, and they press neatly into a sticky cookie dough or tart filling.

Do not pre-toast nuts that go on top of a baked good. They spend the entire bake exposed to the oven and will burn if they go in already golden. If you need ground almonds for the dough itself, our almond flour substitutes guide covers that side.

Macadamia Nuts

  • Swap: 1/4 cup pine nuts → 1/4 cup chopped macadamia nuts (1:1)
  • Best for: Cookies, blondies, sweet breads, and creamy sauces where you want maximum richness
  • Skip it for: Topping a cookie or tart; whole macadamias are too large and chopped ones look rough
  • Health notes: About 204 calories and 21.5 g of fat per ounce, slightly more than pine nuts, with half the protein

Macadamias are the only substitute here that is as rich and buttery as pine nuts, or more so. Chopped and folded into a cookie dough or a sweet bread, they carry that same soft, luxurious bite. They are also expensive, so this is the swap for when you have a bag on hand rather than a reason to buy one.

Walnuts

Chopped walnuts are a fine 1:1 swap when pine nuts are folded into a dough or batter (zucchini bread, banana bread, and many cookies) rather than placed on top. They are softer, more bitter and more strongly flavored, so they change the character of a delicate cookie, but in a sturdy quick bread you will not miss anything.

A Warning About Sunflower Seeds in Baking

Sunflower seeds are wonderful in pesto, but in baked goods they come with a strange side effect. They are high in chlorogenic acid, which reacts with amino acids to form green pigments under alkaline conditions, which is exactly the environment baking soda creates. The result is cookies, muffins, or bars that come out of the oven, or turn a day later, with vivid green or blue-green spots around every seed. It is harmless, and the treats are perfectly safe to eat, but it can be alarming the first time. If you use sunflower seeds or sunflower butter in a recipe with baking soda, expect it, or choose pepitas instead.

If You Are Swapping Because of a Nut Allergy

Pine nuts are botanically seeds from pine cones, but for labeling purposes the FDA treats them as tree nuts. When the agency trimmed its tree nut allergen list in January 2025 and removed coconut, among others, pine nut stayed on the list alongside almond, cashew, pistachio, walnut and macadamia. So if you are cooking for someone with a tree nut allergy, every nut in this guide is out too, and the nut-free choices are:

  • Sunflower seeds — the best all-around nut-free pine nut swap, in pesto and as a topping
  • Pepitas — the best nut-free crunchy garnish
  • Hemp hearts — the easiest nut-free pesto, no toasting needed
  • Toasted breadcrumbs — crunch for pasta and vegetables

Two cautions. Seeds are often packed in facilities that also handle tree nuts, so check the label for a "may contain" statement if the allergy is severe. And the allergy itself is a medical question: some people with a tree nut allergy tolerate pine nuts and some people with a pine nut allergy tolerate other tree nuts, but that is for an allergist to sort out, not a recipe swap.

Healthier Upgrades: What Each Swap Adds

Pine nuts are not an unhealthy ingredient, and you do not need to replace them for nutritional reasons. Per ounce, USDA data puts them at about 191 calories, 3.9 g of protein, just over 1 g of fiber, and a generous dose of magnesium and manganese. But several of the substitutes bring something pine nuts do not, so if you are making the swap anyway, it is worth knowing what you are getting. Per ounce:

  • Walnuts: about 2.6 g of plant omega-3 (ALA), around 50 times more than pine nuts, plus nearly twice the fiber
  • Sunflower seeds: about 10 mg of vitamin E, roughly two thirds of the Daily Value and almost four times what pine nuts supply, with 2.4 g of fiber and 25 fewer calories
  • Hemp hearts: about 9 g of protein, 2.8 g of ALA, and nearly half the Daily Value for magnesium, at around 157 calories
  • Pepitas: about 8.6 g of protein, 40% of the Daily Value for magnesium and 2.2 mg of zinc, at 158 calories
  • Almonds: about 3.5 g of fiber, 6 g of protein, and 7.3 mg of vitamin E, at 164 calories
  • Pistachios: about 3 g of fiber and 5.7 g of protein at 159 calories, among the lowest-calorie nuts

To be fair to pine nuts, they lead this whole list on manganese, with more than a full day's worth in an ounce, and they hold their own on magnesium and zinc. In a pesto split across four servings, the differences per plate are modest. The bigger, easier win is in what pesto goes on: whole wheat pasta, a bowl of beans and roasted vegetables, or a piece of fish rather than a plate of plain white spaghetti.

Variety is its own upgrade, too. If you track which nuts do which job or count plant points toward the 30-plants-a-week idea, rotating walnuts, sunflower seeds, pepitas and hemp hearts through your pesto gives you four different plants instead of one.

Take the Guesswork Out of Eating Well

Eat Well Planner helps you organize your favorite recipes, plan balanced meals, and automatically generate shopping lists — all in one place. Whether you're tracking macros, managing dietary restrictions, or just trying to stop asking "what's for dinner?", we've got you covered.

Our AI-powered tools can adapt any recipe to your dietary needs, help you discover new meals you'll love, and even log your nutrition effortlessly. It's meal planning made simple.

Start Organizing Your Meals — Free

What Not to Use

  • Peanuts: Their flavor is loud and unmistakable, and a peanut pesto tastes like a different sauce entirely. Peanuts are also a major allergen in their own right, so they are no help for a nut-free kitchen.
  • Brazil nuts: Their texture is close, but a single Brazil nut can contain more than a full day's selenium, so a 1/3 cup batch of pesto is not where they belong.
  • Chia seeds or ground flax: They absorb liquid and turn pesto gummy and gelatinous within minutes, and they add no toasty flavor.
  • Skin-on almonds or untoasted walnuts in a delicate sauce: Both work in a pinch, but the skins add bitterness and murky color. Blanch or toast first.
  • Sesame seeds as a 1:1 swap: Their flavor is strong and they are too small to give pesto body. A teaspoon of tahini blended into a sunflower seed pesto, though, is a nice touch, if sesame is not an allergy concern.

A Note on "Pine Mouth"

If you do go back to buying pine nuts, know about "pine mouth." Some people develop a bitter, metallic taste a day or two after eating pine nuts that can make everything taste off for days. In a review of 197 complaints reported to the FDA between 2008 and 2010, the taste change began 4 to 48 hours after eating pine nuts and lasted on average 5 to 10 days, and all cases resolved without serious health consequences. The cause is still not settled, but most of the nuts involved were imported and eaten raw. Buy from a source you trust, taste one before you use a whole bag, and do not eat a batch that tastes bitter or stale. Any of the substitutes above, of course, sidesteps the issue entirely.

Which Swap Fits Your Recipe?

Most of the time the answer is simple: walnuts or cashews for a classic pesto, sunflower seeds for a nut-free or budget one, pepitas or pistachios for salads, and slivered almonds for baking. Where it gets tricky is the specific recipe in front of you, with its own balance of herbs, cheese, acid and heat.

That is what the AI recipe chat in Eat Well Planner is for. Ask it "I'm making this pesto pasta and only have sunflower seeds, what should I change?" and it answers with your actual recipe in context. If you are cooking for someone with a nut allergy, Recipe Variations can rewrite the whole recipe nut-free in one step, and Make It Healthier will suggest and verify swaps like walnuts for pine nuts or whole grain pasta for white, so you can see what each change really does to the dish before you cook it.

Weekly Tips, Free Forever

Eat Better Without
Overthinking It

More budget-friendly kitchen swaps like these — plus gut-friendly recipes and meal plans that put them to work.