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.

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:

- 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

- Step 1: Place all ingredients into a food processor or high-speed blender.

- 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.

Vegan walnut pesto FAQs
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.
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.
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.
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.
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
-
Parsley Pesto with Cashews (dairy-free) -
Dairy-free Spinach and Artichoke Dip (paleo & vegan) -
Easy Dairy-Free Sour Cream with Cashews -
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
Vegan Walnut Pesto
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
- Add all ingredients to a food processor or high-speed blender.
- Blend until smooth, stopping to scrape down the sides. Adjust seasoning and oil to reach your desired consistency and taste.
Notes
- This recipe makes just over one cup of pesto; servings and nutrition are approximate.
- Store leftover pesto in an airtight container in the refrigerator for up to 7 days. Stir in a little oil if it thickens.
- For longer storage, freeze in ice cube trays or a freezer-safe container for up to 3 months.