Basil Walnut Pesto

Made with just five fresh whole-food ingredients, this homemade Basil Walnut Pesto recipe is light, flavorful, and chock full of healthy fats. Turn fresh basil into the best sauce and topper in a matter of mere minutes. Our recipe adaptions make for a delicious fresh pesto that is also dairy-free, Paleo, and Whole30 friendly.

This recipe was originally published April 2, 2019; Updated July 8, 2021. 

Overhead view of spaghetti squash noodles topped with homemade basil walnut pesto on a white plate

Basil Walnut Pesto is the Healthy Sauce You Need To Try

This recipe for Basil Walnut Pesto is magical for two reasons. First, all you have to do to make some is toss a few ingredients into a food processor. Let ‘er rip and you’ll have a delicious homemade pesto sauce within mere seconds.

Secondly, we consider this easy Basil Walnut Pesto recipe to be magic because it truly turns something ordinary into something extraordinary. For example, let’s take spaghetti squash, pasta, a plain ‘ol chicken breast, or zucchini noodles. A little bland, right? Well, just add a spoonful of Basil Walnut Pesto to those base foods and you’ll have a pleasing and healthy dinner with very little effort.

Our Basil Walnut Pesto is Dairy-Free Pesto and Budget Friendly

Traditionally, pesto is a simple sauce made of fresh basil, garlic, pine nuts, Parmesan cheese, and olive oil. Our version veers slightly from the traditional recipe and employs walnuts as a healthy and budget-friendly option (we love pine nuts but they sure are expensive) and we omitted the Parmesan to make this a dairy-free, paleo, and Whole30 pesto. Lastly, we added lemon juice for some subtle zing that brightens all of the flavors.

If you’re in need of a nut-free pesto, simply substitute raw pumpkin seeds for the walnuts.

Vibrant green homemade basil walnut pesto in a food processor

Ingredients to Make Dairy-Free Walnut Pesto

With just a few ingredients and less than five minutes of your time, you can have homemade vegan pesto. Here’s what you’ll need:

  • Fresh basil – you’ll need about 2 cups packed leaves; can sub other fresh herbs or use a combination of a few herbs, such as parsley, sorrel, tarragon, mint, cilantro, dill, or chervil
  • Walnuts – can use walnut halves or pieces, or sub pecans or pine nuts
  • Garlic – you’ll need one clove, peeled and smashed
  • Lemon juice – or use a teaspoon of white vinegar
  • Olive oil – we recommend extra-virgin olive oil or avocado oil
  • Sea salt and black pepper

Basil walnut pesto in a small jar topped with lemon zest, basil sprig, and red pepper flakes.

How to Make Homemade Basil Walnut Pesto

You need one piece of equipment to get this recipe done: a handy food processor or blender. Then, it’s as simple as adding all of the dairy-free pesto ingredients and giving it a whirl until your beautiful bright and light green sauce appears.

Is Pesto Healthy?

Many people wonder if pesto is a good and healthy choice. As registered dietitians, we give this Basil Walnut Pesto all of our thumbs up because it is chock full of healthy fats and helps make other nutritious foods more craveable.

In this recipe, we use walnuts because they’re a great source of heart-healthy monounsaturated fats and plant-based omega-3 fatty acid. Plus, they’re rich in phenols and flavonoids giving them an anti-inflammatory and antioxidant edge over the pine nuts traditionally used in pesto. Beyond using walnuts in pesto, you can also enjoy them on a salad, oatmeal, yogurt, or add to cookie and muffin recipes.

The fact that we’ve eliminated cheese from this pesto helps this delicious saucy condiment fit in special diets, making it a vegan, Paleo, and Whole30 pesto recipe.

Fresh basil walnut pesto in a small jar topped with lemon zest and red pepper flakes.

Ideas for How To Serve Pesto

Wondering what you can serve pesto on? This Basil Walnut Pesto makes everything you put it on so insanely delicious and flavorful that you’ll never want to stop. Here are just a few ways you can enjoy Walnut Basil Pesto:

  • Serve this walnut-based pesto over roasted spaghetti squash for a comforting bowl of “noodles” you can really tuck into.
  • Drizzle our dairy-free pesto over grilled or sautéed chicken breast, fish, shrimp, or steak for a mind-blowing boost of flavor.
  • Toss this vegan pesto with your favorite roasted or grilled vegetables for a fresh, flavorful, and easy side dish, such as these easy Oven-Roasted Carrots.
  • Dollop this easy walnut pesto over zucchini noodles or another spiralized vegetable noodle for a 100% plant-based meal
  • Toss our homemade basil-walnut pesto with gluten-free pasta for a hearty and healthy, comfort-food pasta dish

Spaghetti squash noodles topped with basil walnut pesto plated on a cream colored plate

How to Store and Freeze Pesto

Yes, pesto freezes well, and since this basil walnut pesto recipe is made without cheese, it freezes even more nicely!

We love to freeze pesto in 1- or 2-tablespoon portions by dividing leftovers into the compartments of an extra ice cube tray. Once the pesto is frozen, you can pop the solid pesto cubes into a freezer-safe bag for up to 3 months. Simply add a frozen pesto cube to a pile of hot-cooked pasta and let it melt into the dish (it will melt quickly). Or, for other uses, let the pesto melt at room temperature before adding to a dish.

To store pesto in the refrigerator: Place pesto in a small glass jar or other small container with lid for up to one week. To prevent the pesto from browning, pour a thin layer of oil on top to completely cover the surface of the pesto.

Hungry for More? Subscribe to get our newsletter delivered straight to your inbox! And be sure to stay in touch on Facebook, Twitter, Pinterest and Instagram for all of the latest updates.

/*h3{flex:0 0 100%}.tasty-recipes-equipment .tasty-link-card{flex:0 0 50%;padding:1.5rem 1rem;text-align:center}@media screen and (min-width:500px){.tasty-recipes-equipment .tasty-link-card{flex:0 0 33%}}.tasty-recipes-equipment .tasty-link-card p{font-weight:700;font-size:1em;margin-bottom:0}.tasty-recipes-equipment .tasty-link-card p a{color:initial}.tasty-recipes-equipment .tasty-link-card span{font-size:.9em}.tasty-recipes-nutrition ul{list-style-type:none;margin:0;padding:0}.tasty-recipes-nutrition ul:after{display:block;content:” “;clear:both}.tasty-recipes-nutrition li{float:left;margin-right:1em}.tasty-recipes-plug{text-align:center;margin-bottom:1em;display:flex;flex-wrap:wrap;align-items:center;justify-content:center}.tasty-recipes-plug a{text-decoration:none;box-shadow:none}.tasty-recipes-plug a img{width:150px;height:auto;margin:5px 0 0 8px;display:inline-block}.tasty-recipes-footer-content{text-align:center;padding:1.5em}.tasty-recipes-footer-content .tasty-recipes-footer-copy{margin-left:0}.tasty-recipes-footer-content img,.tasty-recipes-footer-content svg{width:60px}.tasty-recipes-entry-content .tasty-recipes-entry-footer h3{font-size:1.25em;margin:0 0 .25em;padding:0}.tasty-recipes-entry-footer p{font-size:.75em;margin:0}.tasty-recipes-entry-footer p a{text-decoration:underline;box-shadow:none;border-bottom:none}.tasty-recipes-flash-message{display:inline-block;margin-left:10px;padding:4px 10px;background-color:#fff;box-shadow:0 .3px .4px 0 rgba(0,0,0,.024),0 .9px 1.5px 0 rgba(0,0,0,.05),0 3.5px 6px 0 rgba(0,0,0,.1);border-radius:4px;color:#313135;font-size:13px;letter-spacing:0;line-height:1.2em}@media screen and (min-width:500px){.tasty-recipes-flash-message{padding:4px 10px}}.tasty-recipes-flash-message p{padding:0;margin:0;text-transform:none}@media screen and (min-width:500px){.tasty-recipes-footer-content{display:flex;justify-content:center;align-items:center;padding:1.5em 0;text-align:left}.tasty-recipes-footer-content .tasty-recipes-footer-copy{margin-left:.8em}}@media print{.tasty-recipes-no-print,.tasty-recipes-no-print *{display:none!important}}/* [Recipe] */ .recipe-cta{margin-top:25px}.tasty-recipes{border:15px solid #f7f6f5;margin:25px auto 20px;padding:15px}.single .tasty-recipes p{font-size:14px;font-size:1.4rem}@media screen and (min-width:768px){.tasty-recipes{border-width:25px;padding:30px}}.tasty-recipes-print-button{display:none}.tasty-recipes-entry-header{text-align:center;position:relative}.tasty-recipes-entry-header .tagline{display:none}@media screen and (min-width:1024px){.tasty-recipes-entry-header .tagline{display:block;width:110px;height:110px;border-radius:100%;font-weight:900;padding:25px 15px;-webkit-transform:rotate(-12deg);transform:rotate(-12deg);position:absolute;top:-10px;left:-85px;font-size:13px;font-size:1.3rem;/* Print */ background:#ebf4f2;margin-top:-50px;text-align:center;text-transform:uppercase;letter-spacing:0.2em;line-height:1.4}.tasty-recipes-entry-header .tagline::before{content:”;display:block;width:30px;height:28px;background:url(/wp-content/themes/once-coupled-real-food-dietitians/assets/images/embellish-circle.png) no-repeat;background-size:30px;position:absolute;top:5px;left:5px}}@media (-webkit-min-device-pixel-ratio:2) and (min-width:1024px),(min-resolution:192dpi) and (min-width:1024px){.tasty-recipes-entry-header .tagline::before{background-image:url(/wp-content/themes/once-coupled-real-food-dietitians/assets/images/embellish-circle@2x.png)}}.tasty-recipes-entry-header h2{font-size:19px;font-size:1.9rem;font-weight:900;margin-bottom:0;margin-top:0;padding:0 30px}@media screen and (min-width:768px){.tasty-recipes-entry-header h2{font-size:21px;font-size:2.1rem}}.tasty-recipes-entry-header .tasty-recipes-details{margin-top:1em;letter-spacing:0.2em}.tasty-recipes-entry-header .tasty-recipes-details ul{list-style-type:none;margin:0}@media screen and (min-width:768px){.tasty-recipes-details ul{display:flex;align-items:center}}.tasty-recipes-entry-header .tasty-recipes-details ul li{margin-bottom:5px;font-size:10px;font-size:1rem;line-height:1.2;font-weight:900;text-transform:uppercase}@media screen and (min-width:768px){.tasty-recipes-entry-header .tasty-recipes-details ul li{display:inline-block;padding:0 5px;border-left:1px solid #414042;flex:1}.tasty-recipes-details ul li:first-of-type{border-left:0}.tasty-recipes-entry-header .tasty-recipes-details .tasty-recipes-label{display:block;font-size:12px;font-size:1.2rem;letter-spacing:0.12em}}.tasty-recipes-entry-content{margin-top:30px}.tasty-recipes-entry-content .right{float:none}@media screen and (min-width:768px){.tasty-recipes-entry-content .right{float:right;width:162px;margin-left:30px;position:relative;z-index:1}}.tasty-recipes-entry-content .right .tasty-recipes-image{float:none}.tasty-recipes-entry-content .right img{display:block;width:100%;position:relative;z-index:1}.tasty-recipes-entry-content .tasty-recipes-buttons a{text-transform:uppercase;text-align:center;display:block;color:#fff;background:url(/wp-content/themes/once-coupled-real-food-dietitians/assets/images/button-recipe-print.png);width:150px;height:61px;line-height:61px;background-size:150px;padding:0;text-decoration:none;margin:-10px auto 0;font-size:13px;font-size:1.3rem;letter-spacing:0.1em;opacity:0.8}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.tasty-recipes-entry-content .tasty-recipes-buttons a{background-image:url(/wp-content/themes/once-coupled-real-food-dietitians/assets/images/button-recipe-print@2x.png)}}.tasty-recipes-buttons a:hover{opacity:1;cursor:pointer}.tasty-recipes-rating{text-align:center}.tasty-recipes-rating a{text-decoration:none}.tasty-recipes-rating a:hover{opacity:0.8}.tasty-recipes-rating-label{display:block}.tasty-recipes-entry-content h3{font-size:17px;font-size:1.7rem}.tasty-recipes-entry-content h4{font-size:15px;font-size:1.5rem}.tasty-recipes-entry-content .tasty-recipes-ingredients ul{list-style-type:none;margin-left:0}.tasty-recipes-entry-content .tasty-recipes-instructions ul,.tasty-recipes-entry-content .tasty-recipes-instructions ol{margin-left:15px}.tasty-recipes-entry-content .tasty-recipes-ingredients ul li{list-style-type:none;position:relative;margin-left:15px}.tasty-recipes-entry-content .tasty-recipes-ingredients ul li:before,.tasty-recipes-entry-content .tasty-recipes-instructions ul li:before{content:’+’;display:block;left:-15px;position:absolute}.tasty-recipes-entry-content .tasty-recipes-ingredients ul li,.tasty-recipes-entry-content .tasty-recipes-instructions ul li,.tasty-recipes-entry-content .tasty-recipes-ingredients ol li,.tasty-recipes-entry-content .tasty-recipes-instructions ol li{margin-bottom:2px}.tasty-recipes-entry-content .tasty-recipes-notes p:last-child{margin-bottom:0}.tasty-recipes-nutrifox{text-align:center;margin:0}.tasty-recipes-nutrifox iframe{width:100%;display:block;margin:0}.tasty-recipes-nutrition{border-top:3px solid #f7f6f5;margin-top:30px;text-align:center}@media screen and (min-width:768px){.tasty-recipes-entry-content .tasty-recipes-nutrition{padding:10px 20px 0}}.tasty-recipes-nutrition ul{margin-left:0;margin-bottom:0}@media screen and (min-width:768px){.tasty-recipes-nutrition ul{overflow:auto}}.tasty-recipes-nutrition li{float:none;list-style-type:none;font-size:11px;font-size:1.1rem;text-transform:uppercase;font-weight:900;letter-spacing:0.1em}@media screen and (min-width:768px){.tasty-recipes-nutrition li{display:block;float:left;line-height:1.2;margin:0;width:33%;border-left:1px solid #f7f6f5;border-top:1px solid #f7f6f5;padding:5px 2px}.tasty-recipes-nutrition li:nth-of-type(1),.tasty-recipes-nutrition li:nth-of-type(2),.tasty-recipes-nutrition li:nth-of-type(3){border-top:0}.tasty-recipes-nutrition li:nth-of-type(3n+1){border-left:0;clear:both}}

Let’s Get Cookin’

Basil Walnut Pesto

This light and fresh dairy-free pesto makes an ideal topping for roasted or grilled vegetables, meat, or fish or just a simple side dish when tossed with a bowl of zucchini “noodles” or spaghetti squash. Made without cheese so it is Whole30, Vegan, and Paleo friendly pesto.

  • Author: The Real Food Dietitians
  • Prep Time: 10 mins
  • Total Time: 10 mins
  • Yield: 1/2 cup 1x
  • Category: Sauces & Condiments


  • 4 ounces fresh basil (about 2 cups packed leaves)
  • ¼ cup walnut halves or pieces
  • 1 garlic clove, peeled and smashed
  • 1 teaspoon lemon juice
  • ¼ cup + 2 tablespoons extra-virgin olive oil or avocado oil
  • Sea salt and fresh ground black pepper to taste


  1. To the bowl of a food processor or high-speed blender, please the basil walnuts, garlic, lemon juice, and ¼ cup of the oil.
  2. Blend until smooth, then add the final 2 tablespoons oil through the chute in the lid while the food processor motor is running. Taste, then add salt and pepper to taste.


To store pesto in the refrigerator: Place pesto in a small glass jar or other small container with lid for up to one week. To prevent the pesto from browning, pour enough oil into the jar to completely cover the surface of the pesto.

For longer storage, freeze leftover pesto in ice cube trays then transfer the frozen pesto cubes to a freezer-safe bag for up to 3 months. Thaw and use as a sauce or add frozen to soups or stews.


  • Serving Size: 2 tablespoons
  • Calories: 93
  • Sugar: 0 g
  • Sodium: 30 mg
  • Fat: 10 g
  • Saturated Fat: 1 g
  • Carbohydrates: 1 g
  • Fiber: 0 g
  • Protein: 0 g
  • Cholesterol: 0 mg

Pin It Now, Make It Later!

Basil walnut pesto in three stages; all ingredients in a food processor, freshly processes and smooth, in a small jar topped with red pepper flakes and fresh basil.

Photo Credit: The photos in this blog post were taken by Plays Well with Butter.

All photos and content are copyright protected. Please do not use our photos without prior written permission. If you wish to republish this recipe, please rewrite the recipe in your own unique words and link back to the source recipe here on The Real Food Dietitians. Thank you!

About Stacie Hassing

Stacie is a Licensed and Registered Dietitian from rural southern Minnesota where she, her husband and daughter reside with their two pups. She’s a co-founder of The Real Food RDs and content creator of simple and wholesome recipes. She loves all kinds of fitness and has a passion to inspire as many as she can live a healthier and happier life both in and out of the kitchen – the driving force behind the co-development of the The Real Food RDs brand.

You May Also Like