Homemade Walnut Pesto Recipe

I’m this close to never buying pine nuts again — this walnut pesto is just as rich and garlicky at a fraction of the cost. It comes together in a single food processor in about 10 minutes and is a fantastic option when you want pesto without pine nuts.

Love pesto? Try creamy pesto pasta, classic basil pesto sauce, or a colorful pesto pasta salad for more ways to use this versatile sauce.

img 52634 1

Why you’ll love this basil walnut pesto recipe

img 52634 2

Pesto is one of those summer staples I make again and again when basil is abundant. Walnuts have become my go-to substitute for pine nuts — they blend into a creamy, nutty base and are usually already in my pantry. This fresh basil walnut pesto far surpasses store-bought jars in brightness and flavor.

It’s also ideal when someone at the table prefers to avoid pine nuts; swapping in walnuts keeps the classic pesto character while saving money.

Why you’ll love it:

  • Versatile — toss with pasta, spread on sandwiches, or spoon over roasted vegetables.
  • Budget-friendly — walnuts are less expensive than pine nuts.
  • Ready in 10 minutes — a few pulses in the food processor and you’re done.
  • No cooking required — everything is combined raw in the processor, though toasting the walnuts adds depth.
Overhead shot of walnut pesto ingredients labeled on a marble counter, including fresh basil, parmesan cheese, walnuts, garlic cloves, lemons, and olive oil

Ingredients needed

The recipe uses simple pantry ingredients. Below are the essentials and a few substitution ideas so you can adapt the pesto to what you have on hand.

  • Walnuts – the primary nut here instead of pine nuts. Toast briefly in a dry skillet for a deeper, roasted flavor if you like.
  • Garlic – adds a sharp, pungent kick. Start with 3 cloves and adjust up to 5 if you prefer a bold garlic presence.
  • Lemon juice – brightens the sauce and helps the basil retain color. Lemon zest can be added for extra brightness.
  • Fresh basil – the defining herb. Pack the leaves tightly for maximum flavor.
  • Parmesan cheese – delivers savory, salty richness. Freshly grated parmesan blends into the sauce better than pre-shredded; use nutritional yeast instead for a vegan version.
  • Extra virgin olive oil – use a good-quality oil because its flavor is prominent. Adjust the amount to reach your desired texture; other neutral oils like avocado or grapeseed can be used if preferred.
  • Salt and black pepper – add to taste at the end. Parmesan contributes saltiness, so season carefully.
Close-up of walnut pesto in a white bowl garnished with basil, with lemons blurred in the background

How to Make Walnut Pesto

Below is a concise overview of the method. The full ingredient amounts and notes appear in the recipe card further down.

Walnuts and garlic cloves in the bowl of a food processor before pulsing
  1. Pulse the walnuts, garlic, and lemon juice. Place them in the food processor and pulse about 10 times until the nuts are broken down.
Fresh basil leaves and grated parmesan added to the food processor on top of the pulsed walnut mixture
  1. Add basil and parmesan. Pulse about 10 more times until the basil is chopped into small pieces. Scrape down the bowl as needed.
Blended walnut pesto in the food processor bowl before the olive oil is drizzled in
  1. Stream in the olive oil and finish. With the processor on low, slowly drizzle in the olive oil until the mixture forms a sauce. Add more oil for a thinner consistency. Season with salt and pepper to taste. Serve with your favorite pasta, spread on sandwiches, or spoon over roasted vegetables. Store leftovers in an airtight container with a thin layer of olive oil on top to preserve the color.
Close-up of a wooden spoon scooping thick walnut pesto from a bowl garnished with fresh basil

Walnut Pesto Tips

  • Toast the walnuts for a deeper, more complex flavor if you have a few extra minutes.
  • Pulse, don’t over-blend — short pulses keep the basil bright and prevent bitterness.
  • Adjust oil to texture — use less oil for a thick spread or more for a pourable sauce.
  • Taste before salting — parmesan adds salt, so season carefully at the end.
  • Store to maintain color — press plastic wrap or a thin layer of oil against the surface before sealing to limit air exposure and keep the pesto green.
Walnut pesto in a white bowl on a wooden board with a wooden spoon resting inside, surrounded by fresh basil, lemons, and walnuts

Frequently Asked Questions

Can I use a different nut instead of walnuts?

Yes. Pine nuts, almonds, pistachios, or even sunflower seeds will work. Walnuts are often the most affordable and easy to find, but feel free to experiment.

Why is my pesto bitter?

Bitterness usually comes from over-processing the basil or using a low-quality olive oil. Pulse the ingredients and use a good extra virgin olive oil for the best flavor.

Can I make this pesto nut-free?

Yes. Substitute sunflower seeds or pepitas for a nut-free version; they provide a similar texture and nutty flavor.

Is walnut basil pesto healthy?

Walnuts add heart-healthy fats and some protein, and there’s no added sugar in this recipe. However, pesto is calorie-dense due to oil and cheese, so enjoy it in moderation.

Easy Walnut Pesto

By Brita Britnell
Prep:
10
Total:
10
Servings: 4 servings
Walnut pesto in a white bowl on a wooden board with a wooden spoon resting inside, surrounded by fresh basil, lemons, and walnuts
This Walnut Pesto Recipe swaps expensive pine nuts for walnuts without losing any of the rich, garlicky flavor. It comes together in one food processor in about 10 minutes and is perfect tossed with pasta, spread on bread, or spooned over roasted vegetables.

Ingredients

  • ½ cup walnuts
  • 3–4 cloves garlic
  • 1 lemon, juiced (about 2–3 tablespoons)
  • 3 cups fresh basil leaves, tightly packed
  • cup parmesan cheese, grated or shredded
  • ½–⅔ cup extra virgin olive oil, plus more as desired

Instructions

  • Optional but recommended: toast the walnuts in a dry skillet for a few minutes until they darken slightly. This enhances the nutty flavor, though the recipe works without toasting.
  • Add walnuts, garlic, and lemon juice to the food processor and pulse about 10 times until broken up. Add the basil and parmesan, then pulse about 10 more times until the basil is in small pieces. Scrape down the sides as needed.
  • With the processor on low, slowly drizzle in ⅓ cup of olive oil. Add more oil for a smoother, thinner consistency.
  • Season with salt and pepper to taste and serve. Store any leftover pesto in an airtight container with a thin layer of oil on top to preserve color and freshness for 5–7 days.

Notes

Garlic: Omit or increase according to taste. Anywhere from 1 to 5 cloves works well depending on how garlicky you like your pesto.

Storage: Homemade pesto stays fresh for about 5–7 days in the refrigerator when stored in an airtight container. A thin layer of olive oil pressed onto the surface helps prevent browning and preserves the vibrant green color.

Nutrition

Calories: 382 kcal
,
Carbohydrates: 6 g
,
Protein: 6 g
,
Fat: 39 g

Nutrition information is an approximation and should be used as a general guide.