This post may contain affiliate links. Learn more.

Whether you’re craving a bright, bold walnut pesto or would rather riff on our flexible basic pesto formula with whatever ingredients you have on hand, we’ve got you covered. Here’s how to make perfect pesto every time.

Want to save this recipe?
Enter your email below and I’ll send it to your inbox. Plus get great new recipes every week!
Please enable JavaScript in your browser to complete this form.

Why we love this recipe

I’m hardly exaggerating when I say I want to dive right into a bowl walnut pesto. This recipe:

  • Balances the creaminess and earthiness of walnuts with
  • Basil’s fresh flavors
  • The deep umami of grated parmesan or pecorino
  • The astringency of good olive oil
  • And plenty of bright, tangy lemon juice

It’s also a really good idea to have a basic, flexible formula for pesto that can accommodate a variety of nuts, greens, and cheeses and still come out great every time.

Once you’ve got that, you’ve pretty much got a meal in your back pocket.

Ingredients

Here’s all you need to make walnut pesto. You can pop down to the section below to learn about the basic pesto formula to use other ingredients.

pesto ingredients in bowls
  • Walnuts add an unbeatable creaminess and an earthiness to pesto. Since you’ll be chopping them up in the food processor, opt for less-expensive walnut pieces rather than whole nuts.
  • Basil makes classic pesto. It’s a great one to grow rather than buy if you can. You can even do it in a container on your balcony.
  • Garlic is classic and always available, but I also LOVE to swap in garlic scapes when they’re in season. Either one is great!
  • Cheese — when we’re going classic, I use either parmesan or pecorino.
  • This recipe uses fresh lemon juice, which adds an exceptional brightness to pesto that I really miss when it’s not there.

How to make it

Here’s all you need to do to have walnut pesto on the table in about 10 minutes. You can see all the steps in action in the video that accompanies this post.

cutting garlic scapes, adding ingredients to food processor, stirring in cheese
  1. First you’ll prep all the ingredients: chop garlic or scapes (those are scapes in the photo) // toast the nuts in a dry pan // pick the basil leaves off the stems and wash and dry them // juice the lemon // grate the cheese
  2. Then you’ll add all the ingredients except the oil and cheese to the food processor and pulse
  3. Drizzle in the oil with the motor running to help it emulsify into a creamy, dreamy pesto
  4. Stir in the grated cheese

A flexible basic formula for pesto

Creamy, tangy, herbaceous pesto is a beautiful way to use up the ingredients you actually have. Here are the elements you’ll need, along with some of our favorite options.

  • Nuts: Use 1/2 cup of nuts, toasted in a dry pan until fragrant and lightly browned. You guys, there are SO many great options for nuts. Try pine nuts // walnuts // almonds // pistachios // pepitas // hazelnuts // pecans // brazil nuts // or a combination
  • Greens: Use 6 gently packed cups of greens, and feel free to combine them. Some of our favorites: basil // ramps // arugula // spinach // flat leaf parsley // cilantro // lacinato kale // sorrel // mint
  • Alliums: You need something garlicky (or garlic-ish) to make pesto glimmer. As a rough guide for quantity, try 2 tablespoons of stronger ingredients or 1/2 cup of bulkier ingredients. Some of these double as greens! Some of our favorites: garlic // garlic scapes // ramps // chives // scallion // shallot
  • Acid: A little bit of acid goes a long way in pesto. It balances the other flavors and adds a delightful brightness. Use 3 tablespoons freshly squeezed juice or 1 tablespoon vinegar. Some of our favorites: lemon juice // Meyer lemon juice // lime juice // champagne vinegar // sherry vinegar
  • Oil: Use a good-quality oil for pesto, since you can really taste the difference. Half a cup makes a nice, creamy pesto. Some of our favorites: extra-virgin olive oil // avocado oil // walnut oil // hazelnut oil // safflower oil (for a neutral taste)
  • Cheese: Aged hard cheeses work best for both flavor and texture. Use 1/2 cup. For vegan pesto, omit the cheese or substitute a few tablespoons of nutritional yeast or a teaspoon of white miso paste (to add umami). Some of our favorites: Parmigiano-Reggiano // Pecorino // Manchego // Cave-aged Gouda // Cave-aged Gruyere // Piave Vecchio

Expert tips and FAQs

Is pesto better with pine nuts or walnuts?

It’s really up to you! Pine nuts are super-traditional and have a nuanced, inimitable flavor profile. They can be very expensive.

Walnuts are earthier and less expensive and are also a classic ingredient in this sauce.

Both nuts make a creamy, satisfying pesto.

Can I make it in advance?

Pesto is at its absolute best when just made. Since it doesn’t take very long, I like to make it just before serving when possible.

That said, this recipe actually keeps very well due to its acid content, which prevents oxidation. You can make walnut pesto up to a week in advance and store it tightly sealed in the fridge. A thin layer of olive oil poured overtop before storing helps it keep even better.

Can you freeze walnut pesto?

Yes! It keeps well tightly sealed in the freezer for up to a year. I sometimes freeze the whole batch in a pint-size takeout container. Or freeze it in ice cube trays (and then transfer to a sealed container or zip-top bag) to use in smaller portions.

How to serve pesto

Pesto elevates so many meals. Here are some of our favorite ways to use it:

  • Tossed with boiled pasta (long or short). Protip: add a little bit of the pasta cooking water to loosen it up.
  • Dolloped onto a baked pasta dish like this one.
  • Dolloped onto pizza (like this one or this one) either before or after baking
  • Stirred into a dip like this one (or stir it into Greek yogurt or sour cream for an instant dip)
  • Spooned onto cooked chicken, eggs, or fish
  • Straight from the spoon (kidding/not kidding)

Hungry for more?

Subscribe to Umami Girl’s email updates, and follow along on Instagram.

walnut pesto in a bowl
4.72 from 7 votes

Walnut Pesto

By Carolyn Gratzer Cope
This bright, bold, creamy walnut pesto recipe makes a great all-purpose pesto for pasta, pizza, and more.
Prep: 10 minutes
Cook: 3 minutes
Total: 13 minutes
Want to save this recipe?
Enter your email and I’ll send it to your inbox. Plus get great new recipes every week!
Please enable JavaScript in your browser to complete this form.

Ingredients 

  • ½ cup shelled walnut pieces
  • 3 large garlic cloves or 1/2 cup chopped garlic scapes
  • 6 gently packed cups fresh basil leaves
  • 1 teaspoon fine sea salt
  • ¼ teaspoon freshly ground black pepper
  • 3 tablespoons freshly squeezed lemon juice
  • ½ cup extra-virgin olive oil
  • ½ cup grated Parmigiano-Reggiano or Pecorino Romano cheese

Instructions 

  • Toast the walnuts in a small, dry pan over medium heat until they are fragrant and a little darker brown than they started out (3 to 5 minutes).
  • Let cool slightly and pour into the bowl of a food processor fitted with the blade attachment.
  • Add the garlic scapes or cloves, basil, salt, pepper, and lemon juice and pulse just until a thick paste forms. Stop to press any stray or stubborn basil leaves into the whirling action of the blade as necessary.
  • With the motor running, pour the olive oil through the feed tube in a slow stream. Transfer pesto to a mixing bowl and stir in the grated cheese.

Step-by-step video

Notes

  1. If you don’t have a food processor, you can use a mortar and pestle or a mezzaluna. This is actually a more traditional method of pesto making, but it takes a lot longer.
  2. This pesto keeps well tightly sealed in the fridge for up to a week due to the acid content. You can cover it with a thin layer of olive oil for extra protection against oxidation.
  3. You can also freeze it! It keeps for up to a year. I sometimes freeze the whole batch in a pint-size takeout container. Or freeze it in ice cube trays (and then transfer to a sealed container or zip-top bag) to use in smaller portions.
  4. For a vegan pesto, you can omit the cheese or swap in a few tablespoons of nutritional yeast.
  5. Check out the post above to learn all about substitutions.

Nutrition

Serving: 1/4 cup, Calories: 218kcal, Carbohydrates: 2.7g, Protein: 4g, Fat: 22.7g, Fiber: 0.7g

Nutrition information is automatically calculated, so should only be used as an approximation.

Additional Info

Cuisine: Italian
Tried this recipe?Mention @umamigirl or tag #umamigirl!

Hungry for more?

Subscribe to Umami Girl’s email updates, and follow along on Instagram.

Hungry for More?
Subscribe to Umami Girl's email updates, and follow along on Instagram.
Please enable JavaScript in your browser to complete this form.

More Recipes

Carolyn Gratzer Cope Bio Photo

About Carolyn Gratzer Cope

Hi there, I'm Carolyn Gratzer Cope, founder and publisher of Umami Girl. Join me in savoring life, one recipe at a time. I'm a professional recipe developer with training from the French Culinary Institute (now ICE) and a lifetime of studying, appreciating, and sharing food.

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating




15 Comments

  1. We also pretty much never go out unless it is for friends or something i can’t make at home. Pesto is a fave and also freezes well. Your recipe sounds yummy!

  2. You are a genius – my husband has always been disappointed by my apathy towards pesto; it’s always too garlicky, or too oily, not basil-y enough, or missing “zing.” I made your recipe tonight, and it hit ALL the right notes. Consider me a pesto convert!

  3. I’m totally into it! I agree whole heartedly about food at home tasting better, although sometimes I’m tired and I’d like to say, oh I don’t know, whip out a batch of homemade pesto from the freezer 😉

    And I can empathize with those quiet Friday nights (although, for me, it’s because of a 2 year-old in bed, so we need to stay home – no family within 200 miles to babysit) Anyway, I feel ya on the homemade pesto and the blender. Fun post! 😀

  4. Yum! Love the garlic scapes in this, I totally need to try those in pesto! It looks so yummy 🙂

  5. Sounds like a familiar conversation. Lenny likes to say, we already eat at the best restaurant in town! I love pesto but do not make often enough. Whenever I have an overload of basil, I think, I should make pesto and put away in the freezer for a rainy day. I really should!!

    1. Denise, it is so worth it. I guess this may be a little less true where you live than where I do (for the next week, anyway!), but in the middle of February, there is nothing more gorgeous than a container of pesto defrosting on the countertop. xx

  6. Can I still call it pesto if I don’t add the cheese? I don’t think soymage will quite be a good enough substitute.

    1. Definitely, and I think it will taste great without it, too. Some pestos don’t even have nuts in them, so as far as I’m concerned, you’re covered.

    1. It seems so essential to me that I’m always surprised to remember it’s not part of the traditional recipe. Glad I’m not the only one!

  7. I have a fridge full of scape and a garden full of basil. To top it off, I’ve been on the search for the perfect pesto. Needless to say, this post is quite timely. 🙂 Thanks for yet another wonderful recipe!