Homemade Vegan Walnut and Basil Pesto Recipe

This is the best vegan walnut pesto recipe—bright, fresh, and ready in minutes. Made with walnuts, basil, garlic, avocado (or olive) oil, lemon juice and nutritional yeast for a cheesy, dairy-free finish, this pesto is naturally plant-based and versatile. Use it as a sauce for pasta, a spread for sandwiches, a dip for vegetables, or a flavour booster for roasted vegetables and mashed potatoes.

A bowl of walnut pesto topped with walnuts and fresh basil leaves.

Homemade sauces and dips are an easy way to add flavour to everyday meals. Like my other condiments and dips, this walnut pesto keeps well and transforms simple dishes into something special. It’s dairy-free, gluten-free, and suitable for vegan and many elimination-style diets when made with compliant ingredients.

Why you will love this pesto

  • Rich, layered flavour: creamy walnuts, bright basil, garlic and nutritional yeast create a satisfying, cheesy taste without dairy.
  • Fast to make: one quick blend and the sauce is ready in under five minutes.
  • Budget-friendly: walnuts replace pine nuts, giving great texture and flavour at a lower cost.
  • Diet-friendly: naturally dairy-free and vegan; easily adapted to paleo, Whole30, gluten-free and low-sugar needs by choosing compliant ingredients.

Ingredient notes

Exact ingredient amounts are available in the recipe card below. Notes on the key components:

The ingredients needed to make pesto separated into bowls including basil leaves, walnuts, oil, garlic and spices.
  • Fresh basil: both leaves and tender stems work—use as much as you can for a fresh green flavour.
  • Raw walnuts: use raw, unsalted walnuts for best results. You can swap cashews, sunflower seeds or pine nuts if preferred.
  • Avocado or olive oil: avocado oil yields a neutral, smooth texture; extra-virgin olive oil gives a more pronounced olive flavour. Choose based on taste.
  • Garlic: fresh garlic adds brightness—adjust the amount to your preference.
  • Nutritional yeast: provides a savory, cheese-like depth while keeping the pesto vegan. You may omit it if desired; add a few extra nuts for body.
  • Lemon juice: adds acidity and brightness; apple cider vinegar can be used as an alternative.

Recipe variations and add-ins

  • Add an extra clove of garlic for a bolder garlic profile.
  • Season to taste with salt and pepper; adjust lemon for acidity.
  • Blend for less time if you prefer a chunkier pesto.
  • For extra heat, add 1/4 teaspoon red pepper flakes or a pinch of smoked paprika.
  • Stir in other greens or herbs—parsley, spinach or kale work well for a different flavour and extra nutrients.

How to make vegan walnut pesto

A food processor filled with walnuts, basil leaves and nutritional yeast.
  1. Step 1: Place all ingredients into a food processor or high-speed blender.
A food processor filled with a green sauce.
  1. Step 2: Pulse or blend until combined and smooth, scraping down the sides as needed. Stop when the pesto reaches your preferred texture.

Top tips

  • Use the freshest basil you can find for the brightest flavour.
  • Avoid over-processing for too long; extended blending can make the pesto bitter, especially with extra-virgin olive oil and basil.
  • If you don’t have a food processor, a high-speed blender works—pulse and scrape often to avoid overheating.

Serving ideas

This walnut pesto is extremely versatile. Try it in these ways:

  • Toss with pasta for a quick dinner.
  • Stir through warm or chilled pasta salads.
  • Drizzle as a dressing over mixed greens or roasted vegetables.
  • Serve as a dip for raw vegetables, crackers or toasted bread.
  • Mix into mashed potatoes or use as a finishing sauce for baked potatoes.
  • Spread on sandwiches, paninis, burgers, pitas or wraps.
A bowl of green pesto topped with walnuts and fresh basil leaves.

Vegan walnut pesto FAQs

Why is my walnut pesto bitter?

Over-blending basil and extra-virgin olive oil can release bitter notes. Blend only until smooth—about 1–2 minutes depending on your machine. Using avocado oil or a milder olive oil can reduce bitterness.

Can I make this vegan pesto without nutritional yeast?

Yes. Nutritional yeast adds a cheesy umami note, but you can omit it. The pesto will be a little thinner and less “cheesy”; add extra nuts if you want more body.

Is pesto vegan?

Traditional pesto includes parmesan cheese, so it’s not vegan. This version replaces cheese with nutritional yeast to keep it vegan while preserving savory depth.

How should I store this pesto?

Store leftover pesto in an airtight container in the refrigerator for up to 7 days. The mixture may thicken when cold—stir in a little oil to loosen before serving.

Can I freeze this pesto?

Yes. Freeze in a freezer-safe container or in ice cube trays for up to 3 months. Thaw in the refrigerator and stir in a small amount of oil if needed.

Other vegan sauces and dips you will love

  • A glass jar filled with a green pesto sauce with a lemon wedge next to the jar.

    Parsley Pesto with Cashews (dairy-free)
  • A white casserole dish filled with a vegan spinach artichoke dip with crushed crackers on top.

    Dairy-free Spinach and Artichoke Dip (paleo & vegan)
  • A bowl of dairy free sour cream with a spoon in it and a lemon slice on top.

    Easy Dairy-Free Sour Cream with Cashews
  • A bowl of vegan mascarpone with a fresh strawberry in it.

    Easy Vegan Mascarpone with Cashews

Follow the recipe notes below and adjust seasoning to taste. If you try this pesto, consider saving the recipe card for easy reference and enjoy experimenting with different herbs and nuts to make it your own.

Recipe

A bowl of vegan walnut pesto topped with fresh basil leaves and walnuts.

Vegan Walnut Pesto

A simple, dairy-free pesto made with basil, raw walnuts, nutritional yeast and oil. Ready in minutes and infinitely versatile.
Course: condiment, dips, dressings, sauces
Cuisine: American, Italian-inspired
Diet: Diabetic-friendly, Gluten Free, Vegan, Vegetarian
Prep Time: 3 minutes
Blend time: 2 minutes
Total Time: 5 minutes
Servings: 16
Calories: 112kcal
Author: Dr. Erin Carter

Equipment

  • food processor or high-speed blender

Ingredients

  • 1 cup packed fresh basil leaves
  • 1 cup raw walnuts
  • 1/2 cup avocado oil (or olive oil)
  • 1 clove garlic, chopped
  • 2 tablespoons nutritional yeast
  • 1 tablespoon lemon juice
  • 1/4 teaspoon salt (more or less to taste)
  • 1/4 teaspoon ground black pepper (more or less to taste)

Instructions

  1. Add all ingredients to a food processor or high-speed blender.
  2. Blend until smooth, stopping to scrape down the sides. Adjust seasoning and oil to reach your desired consistency and taste.

Notes

  1. This recipe makes just over one cup of pesto; servings and nutrition are approximate.
  2. Store leftover pesto in an airtight container in the refrigerator for up to 7 days. Stir in a little oil if it thickens.
  3. For longer storage, freeze in ice cube trays or a freezer-safe container for up to 3 months.

Nutrition (per serving, approximate)

Calories: 112 kcal | Carbohydrates: 2 g | Protein: 2 g | Fat: 12 g | Fiber: 1 g