Homemade Walnut Pesto Sauce

This post contains affiliate links. As an Amazon Associate, I earn from qualifying purchases.

Homemade walnut pesto sauce brings you the best of summer. Use this easy-to-make condiment for pasta, salads, pizza, and more.

Is it even summer if you haven’t made pesto yet?

Every spring I plant basil in my herb garden. It’s hard to wait until I have enough to make pesto; those fragrant leaves are just too tempting to not be adding them to summer salads.

Homemade pesto sauce only requires a few ingredients for a ton of flavor.

Sure, not everyone has a basil plant in their yard, but still — homemade pesto sauce is one of those summer requirements, like fresh tomatoes and juicy peaches. Both of which taste terrific with pesto. Nature knows what it is doing with the produce season cycles, folks.

Homemade pesto sauce is one of those foods that always feels fancy to me, and yet in truth it is ready in a matter of minutes. The step that takes the longest is grating the cheese. Or maybe scraping the sauce out of your food processor.

If you’re not a fan of pine nuts, this recipe uses walnuts instead. They are a bit milder in flavor and more economical!

Ingredients for walnut pesto

Full list of ingredients including quantities is located in the recipe card.

You’ll need:

Fresh basil leaves – You can use store-bought basil, or basil fresh from your garden. Either way, make sure it is clean and not wilted or browned.

Walnuts – English walnuts are the main kind of walnut found in grocery stores. If you want to use black walnuts, keep in mind that they are a stronger taste.

Garlic – You’ll want about 3 cloves of garlic.

Olive oil – Use a good-tasting olive oil. 

Parmesan cheese – We use grated parmesan for pesto, not granules. I prefer freshly grated, but packaged parmesan will also do. Note that due to the anti-caking agents in bagged shredded cheese, you might need to add a little more liquid to your pesto.

Salt – To lift up all the flavors.

Lemon juice – Lemon balances the bitterness that can be found in walnuts, and also lightens the pesto.

A note on garlic

Garlic is one of those ingredients that varies quite a bit in size, and yet is silly to measure after chopping. Use your gut when it comes to determining how much garlic to use. The cloves we get tend to be a bit smaller, so I use extra. If you’re a garlic lover, do the same! Or if you prefer, you can use less. Don’t be afraid to adjust to your liking.


A mini food processor works wonderfully for making pesto, but a larger-capacity is just fine as well.

You can also use a blender, though you will likely need to scrape down the sides more than with a food processor.

If you’re really into doing some extra work, a mortar and pestle will create a silky pesto.

Homemade pesto sauce is made in the food processor so it's quick and easy!

How to make this recipe

Combine the basil, walnuts, and garlic in the bowl of a food processor fitted with the chopping blade. 

Pulse until everything is uniformly chopped. You may have to open the food processor and push the ingredients off the sides (turn off first!) to get it all nicely chopped.

Now, turn the processor on and slowly pour the olive oil in through the feeder tube at the top. Keep it going until it’s all nice and smooth. 

Add in the parmesan, salt, and lemon juice, and pulse a few times to mix.

That’s it! Taste your pesto and add more salt or lemon juice if you like. You can also add pinch of ground black pepper or crushed red pepper flakes.

If you want your pesto thinner, you can add a small amount of water instead of adding more oil. Keep in mind, though, that the water could separate from the sauce a little as it sits.

Homemade pesto sauce brings you the best of summer. Use this easy-to-make condiment for pasta, salads, pizza, and more.

Recipe suggestions

Traditional pesto calls for pine nuts, but when I make homemade pesto sauce, I use whatever nuts I have on hand.

Usually this means walnuts, though I have also used almonds as in my recipe for carrot top pesto. You can substitute virtually any nut for pine nuts in pesto and it always turns out beautifully.

For the cheese, you can use parmesan, asiago, pecorino, or Grana Padano. Using other cheeses veers from the classic recipe, but again, I prefer to use the ingredients already available to me, so I encourage you to do the same.

Just stick to a hard, grate-able Italian cheese — no cheddar substitutions please!

Use kale or spinach for half the basil, especially if you only have a little basil on hand.

Storage tips

If you’re not using your pesto immediately, it needs to be stored in the refrigerator.

Scoop it into an airtight container. Add a thin layer of olive oil on top. This will help the pesto stay fresh and prevent browning. Close up the container and store for up to 1 week.

Toward the end of the summer I also make extra pesto to freeze it into ice cube trays, again with a bit of oil on top. Once frozen pop out the cubes and store them in freezer bags. You’ll have perfectly portioned sauce to enjoy through the winter!


Whether you want chunkier pesto or a smooth sauce, the decision is up to you. I like mine a little more coarse, while others want a more uniform end result. Keep in mind what you plan to use the pesto for. Chunky works well for spreading onto bread or pizza, while smooth is excellent with pasta.

I encourage you to go with your gut!

Pesto is traditionally made with fresh basil, pine nuts, parmesan cheese, olive oil, salt, and pepper.

This version uses walnuts instead of pine nuts.

Walnuts are naturally slightly bitter in taste. We add lemon juice to the pesto to even this out.

Make sure your olive oil is not past its prime as well. Old olive oil can have a rancid, bitter taste.

Finally, if your basil was harvested toward the end of the season after it has already flowered, the leaves themselves might be bitter. Be sure to harvest before flowers form and taste a leaf to ensure a good flavor.

Depends on your point of view! While pesto does have a high fat content, it’s not really any worse than other condiments, in my opinion. Plus, you can’t fault that fresh flavor!

Jarred pesto lasts longer than homemade, and once opened, will last for about 2 weeks without loss of quality.

Homemade pesto has a shorter life due to the fresh ingredients. I recommend using it as soon as possible, and storing for no longer than a week.

Homemade pesto is not shelf stable.

Yes! Freezing pesto is a great way to preserve it for longer.

Portion the pesto into small cups like an ice cube tray or mini muffin pan. Add a small layer of olive oil on the top.

Freeze until solid, then pop out of the tray and transfer to an airtight container or freezer bag. Label and use within 3 months.

You do not need to thaw the pesto if you are using it in pasta dishes or sautés as the cubes will melt in the pan, but you can also thaw the cubes overnight in the refrigerator.

Uses for walnut pesto

You can use walnut pesto anywhere you’d use a traditional pesto sauce.

This pesto is great for making pesto shrimp or creamy pesto pasta. I love it as the base on chicken pesto pizza, too.

In the height of summer you’ve gotta make my cucumber tomato salad with pesto.

Add homemade pesto sauce to your salad for a ton of flavor.

Try it as a spread for sandwiches like pressed Italian sandwiches, or mixed into mayonnaise for an herby aioli.

You’ll love this easy and versatile basil sauce!

Love this recipe? Please leave a 5-star review below!
It means so much when you enjoy my recipes, so let me know how it goes and leave a comment if you have any questions.

Homemade pesto sauce brings you the best of summer. Use this easy-to-make condiment for pasta, salads, pizza, and more.

Homemade Walnut Pesto Sauce

Walnut pesto sauce is easy to make and livens up all your favorite summery dishes.
Author : Megan Myers
4.91 from 41 votes
Print Pin Save
Prep Time 5 minutes
Cook Time 0 minutes
Total Time 5 minutes
Course Condiments
Cuisine Italian
Servings 8
Calories 165 kcal


  • 2 cups fresh basil
  • 2 tablespoons chopped walnuts
  • 3 cloves garlic
  • 1/2 cup extra-virgin olive oil
  • 1/2 cup grated Parmesan cheese
  • 1 teaspoon lemon juice
  • Pinch salt


  • In the bowl of a food processor, combine basil, walnuts, and garlic. Cover and pulse until uniformly chopped.
  • With the processor running, slowly pour in olive oil through the feeder opening until smooth.
  • Stir in cheese, lemon juice, and salt. Taste and adjust seasoning if needed.
  • Use immediately, or store in a covered jar in the refrigerator with extra olive oil on top.


Makes about 1 cup


Serving: 2 tablespoonCalories: 165 kcalCarbohydrates: 2 gProtein: 2 gFat: 17 gSaturated Fat: 3 gCholesterol: 5 mgSodium: 110 mgPotassium: 45 mgFiber: 1 gSugar: 1 gIron: 1 mg

Nutrition information is provided as a courtesy and is an estimate based on online calculators. Any nutritional information found on Stetted should be used as a general guideline only.

Tried this recipe?Share on Instagram and mention @stetted or tag #stetted!

About Megan

I focus on fresh ingredients and easy methods, with spins that keep meals interesting. Dinnertime shouldn’t be stressful or complicated, and I’m here to help you enjoy the time spent in the kitchen. Read more…

Leave a Reply

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

Recipe Rating

This site uses Akismet to reduce spam. Learn how your comment data is processed.