Pesto is one of the quickest sauces to make at home, and leaving out dairy does not mean giving up its fresh basil flavor or creamy texture. This dairy-free version uses nutritional yeast and toasted nuts for savory depth, then comes together in minutes in a food processor or blender.
What Makes Pesto Dairy-Free?
Traditional basil pesto usually contains Parmesan or another hard aged cheese. Dairy-free pesto replaces that salty, umami-rich ingredient with nutritional yeast, miso, capers, or simply extra toasted nuts. The goal is to balance four main elements:
- Fresh basil for herbal flavor and color
- Nuts or seeds for richness and body
- Olive oil for a smooth, spoonable texture
- Garlic, lemon, and salt for brightness and seasoning
Nutritional yeast is especially useful because it adds a mild, cheese-like savoriness without containing milk. It is not essential, however. You can make excellent pesto with nuts, garlic, basil, olive oil, and lemon alone.
Ingredients
Makes about 1 cup, enough for approximately 12 ounces of pasta or four to six servings as a sauce or spread.
- 2 packed cups fresh basil leaves, about 2 ounces
- 1/3 cup pine nuts, walnuts, cashews, or sunflower seeds
- 1 to 2 garlic cloves, peeled
- 2 tablespoons nutritional yeast
- 1 tablespoon fresh lemon juice
- 1/2 teaspoon fine sea salt, plus more to taste
- 1/3 cup extra-virgin olive oil, plus more as needed
- 1 to 3 tablespoons water, only if needed for blending
For the best texture, use basil leaves that are fresh, dry, and free of dark spots. Tender stems are fine, but thick stems can make the pesto fibrous. If your basil is very mild, you may want an extra garlic clove or a little more lemon juice.
Choosing the Best Dairy-Free Ingredients
Nuts and seeds
Pine nuts produce the classic pesto flavor, but they can be expensive. Walnuts create a deeper, slightly earthy sauce, while cashews make the pesto especially smooth and creamy. Almonds work well but produce a firmer, more textured pesto unless they are finely ground.
Sunflower seeds are a practical nut-free option. Pumpkin seeds add a stronger green, roasted flavor and can slightly darken the sauce. If you need the pesto to be safe for a particular allergy, check every packaged ingredient, especially nutritional yeast and seed products, for cross-contact information.
Basil
Sweet Italian basil is the traditional choice. Use only the leaves if the stems are tough. Wash the basil gently, then dry it thoroughly. Excess water dilutes the flavor and can make the pesto watery. A salad spinner is helpful, but you can also pat the leaves dry between clean kitchen towels.
Olive oil
Use a mild or medium-bodied extra-virgin olive oil. Very peppery olive oil can overpower the basil, especially when the pesto is served cold. You can use part olive oil and part neutral oil, such as avocado or grapeseed oil, if you prefer a softer flavor.
Nutritional yeast
Nutritional yeast gives the sauce a savory, slightly nutty taste. Start with two tablespoons, then add more after blending if you want a stronger cheese-like flavor. Do not confuse it with active dry yeast or baking yeast; those will not work in this recipe.
How to Make Dairy-Free Pesto Step by Step
1. Toast the nuts or seeds
Place the nuts or seeds in a dry skillet over medium-low heat. Toast for three to five minutes, stirring or shaking the pan frequently, until fragrant and lightly golden. Remove them immediately and let them cool for a few minutes.
Toasting is optional, but it adds much more flavor. Watch carefully because nuts can go from lightly browned to burnt quickly. If you are using pine nuts, stay close to the pan; they brown rapidly.
2. Process the aromatics
Add the cooled nuts or seeds, garlic, nutritional yeast, lemon juice, and salt to a food processor. Pulse several times until the mixture resembles coarse crumbs.
Starting with the nuts and garlic helps distribute the garlic evenly and prevents the basil from being pulverized before the other ingredients are ready. If you are using a small blender, stop to scrape the sides frequently.
3. Add the basil
Add the basil leaves in two or three batches, pulsing after each addition. Scrape down the sides as needed. Process just until the leaves are finely chopped and the mixture looks evenly combined.
Avoid running the machine continuously for a long time. Excessive processing can warm the pesto and cause the basil to lose some of its bright color. A slightly textured pesto usually tastes fresher than a completely smooth puree.
4. Stream in the oil
With the food processor running, slowly pour in the olive oil. Continue blending until the pesto is cohesive but still has a little texture. Add one tablespoon of water if it seems too thick, then add more only as needed.
If you are using a blender, pulse between additions rather than blending continuously. This makes it easier to control the texture and prevents the sauce from becoming hot.
5. Taste and adjust
Taste the pesto with a clean spoon and adjust the seasoning. Add salt if it tastes flat, lemon juice if it needs brightness, nutritional yeast for more savory depth, or olive oil for a looser sauce.
Remember that pesto served with pasta often needs slightly more seasoning than pesto eaten from a spoon because the pasta and cooking water will dilute its flavor.
Ingredient Alternatives at a Glance
| If you need… | Use this | What to expect |
|---|---|---|
| A classic flavor | Pine nuts | Mild, buttery, traditional taste |
| A lower-cost option | Walnuts | Earthier flavor and more texture |
| Extra creaminess | Cashews | Smooth, rich consistency |
| A nut-free pesto | Sunflower seeds | Mild flavor and good body |
| A cheese-free savory note | Nutritional yeast | Slightly nutty, umami-rich flavor |
| An oil-free version | Water or white beans | Less rich and more hummus-like |
| A basil substitute | Parsley, arugula, or spinach | Different flavor and color |
How to Make Pesto Without Nuts
For nut-free pesto, replace the nuts with sunflower seeds in an equal amount. Toast them just as you would nuts. You can also use pumpkin seeds, hemp hearts, or a combination of seeds.
If you want a completely seed-free sauce, use 1/3 cup cooked white beans instead. Add them after pulsing the garlic and basil, then blend until smooth. White-bean pesto is creamier and less oily than traditional pesto, making it useful as a sandwich spread or vegetable dip. It will not taste exactly like classic pesto, but lemon and nutritional yeast help maintain a savory balance.
Always consider the needs of the people eating the dish. “Dairy-free” only means the recipe contains no milk ingredients; it does not automatically mean nut-free, gluten-free, soy-free, or suitable for every allergy.
How to Make Oil-Free Pesto
To make oil-free pesto, replace the olive oil with cold water, one tablespoon at a time. You can also blend in a few tablespoons of white beans or avocado for a thicker texture. Use less liquid than you think you need at first; the basil releases some moisture as it is processed.
Oil-free pesto is best used immediately because it can become watery as it sits. It also has a fresher, lighter mouthfeel and will not have the same richness or glossy texture as olive-oil pesto. For a balanced version, use half the usual olive oil and replace the rest with water or beans.
Serving Ideas
Dairy-free pesto is most often tossed with pasta, but it is useful far beyond noodles. Try it in these ways:
- Toss it with hot pasta and a splash of pasta water.
- Spoon it over roasted potatoes, carrots, zucchini, or cauliflower.
- Spread it on toast with tomato, avocado, or grilled vegetables.
- Use it as a sauce for grain bowls with rice, quinoa, or farro.
- Stir a spoonful into white bean, lentil, or vegetable soup.
- Add it to a dairy-free sandwich or wrap.
- Mix it with hummus for a basil-flavored dip.
- Spoon it over grilled chicken, fish, tofu, or beans.
- Add a little to scrambled eggs or a chickpea breakfast scramble.
- Thin it with lemon juice and water to make a salad dressing.
For pasta, reserve about 1/2 cup of cooking water before draining. Toss the cooked pasta off the heat with pesto and add the water a tablespoon at a time until the sauce coats every strand. Heating pesto aggressively can dull the basil, so stir it in after the pan is removed from the burner.
Troubleshooting Common Problems
The pesto tastes bitter
Bitter flavor may come from very strong olive oil, over-toasted nuts, old basil, or too much garlic. Add a little more lemon juice and a pinch of salt. If the oil is the main problem, dilute the pesto with more basil, nuts, or a mild oil.
The pesto is too thick
Blend in olive oil or water one teaspoon at a time. For pasta, pasta cooking water is particularly useful because its starch helps the sauce cling to the noodles.
The pesto is too thin
Add more basil, nuts, seeds, nutritional yeast, or a spoonful of white beans. Chill it for 15 to 20 minutes if it is only slightly loose; the nuts may firm the texture as they cool.
The pesto turned dark
Basil naturally darkens when exposed to air. Thoroughly drying the leaves, avoiding excessive heat during blending, and adding lemon juice can help preserve a greener color. A darker pesto is usually still safe and flavorful if the ingredients were fresh and properly stored.
The pesto tastes flat
It probably needs more salt, acid, or both. Add salt in small pinches and lemon juice by the teaspoon. If it still lacks depth, add another tablespoon of nutritional yeast or a small amount of white miso.
The garlic is too strong
Raw garlic becomes more pronounced as pesto sits. Start with one clove if you are sensitive to garlic. To soften the flavor, use roasted garlic, briefly blanch the clove in boiling water, or balance the pesto with more basil, nuts, lemon, and oil.
Storage and Food Safety
Transfer the finished pesto to a clean airtight container and press a piece of parchment or plastic wrap directly against the surface to limit air exposure. Refrigerate promptly and use within three to four days for the best quality.
The top may darken slightly in the refrigerator. Stir it before serving and check for an unpleasant smell, visible mold, bubbling, or a slimy texture. Discard it if any signs of spoilage appear rather than trying to remove only the affected portion.
For longer storage, freeze pesto in ice cube trays. Once solid, move the portions to a freezer-safe container or bag. Frozen pesto is best used within two to three months for bright flavor, although it may remain safe longer if continuously frozen. Thaw portions in the refrigerator or stir them directly into hot pasta, soup, or vegetables.
Final Tips for the Best Results
Use dry basil, toast the nuts carefully, and add liquid gradually. Keep the mixture slightly textured instead of blending it into a completely smooth puree. Taste after blending because the exact amount of salt, lemon, and garlic depends on the basil, nuts, and olive oil you use.
For a reliable everyday version, start with basil, sunflower seeds or walnuts, one garlic clove, nutritional yeast, lemon, salt, and olive oil. Once you know the basic balance, you can adjust the recipe with arugula, parsley, roasted garlic, chili flakes, sun-dried tomatoes, or white beans to suit the dish.