Yes, you can make pesto without nuts. This easy nut-free pesto recipe uses basil, olive oil, garlic, Parmesan cheese, and lemon juice to create a flavorful pesto that is safe for families managing nut allergies.
As a registered dietitian and mom of two children with food allergies, I am always looking for simple ways to make traditional recipes allergy-friendly. Every summer, our basil plants seem to take over the garden, leaving us with more fresh basil than we know what to do with.

The first year we grew it, I started looking for ways to use all that extra basil. Pesto quickly rose to the top of the list, but nearly every recipe included pine nuts, walnuts, or other tree nuts that were not safe for our family.
Like many parents managing food allergies, I wanted a way to enjoy a classic recipe without worrying about allergen exposure. After a little experimenting in the kitchen, we created this simple nut-free pesto recipe, and it has been a summer staple ever since.
Today, we use it far beyond pasta. We drizzle it over fresh mozzarella and tomatoes, spread it on sandwiches and wraps, add it to homemade pizza, and mix it into roasted vegetables or spoon it onto grilled chicken. It is one of those versatile recipes that adds fresh flavor to meals while still being allergy-friendly.

Why Traditional Pesto May Not Be Safe for Food Allergies
Traditional pesto is typically made with basil, olive oil, garlic, Parmesan cheese, and tree nuts such as pine nuts or walnuts. For families managing tree nut allergies, traditional pesto is not a safe option.
In addition to the ingredients themselves, cross contamination can also be a concern depending on the brand or where the pesto is prepared.
Making homemade nut-free pesto allows families to control the ingredients and adjust the recipe based on their individual allergy needs and it can be made in minutes.
Why This Nut-Free Pesto Works

One of the reasons I love this recipe is that it keeps the fresh flavor of traditional pesto without relying on tree nuts. Basil, garlic, olive oil, Parmesan cheese, and lemon juice create a simple combination that is flavorful enough to stand on its own.
Another benefit is that it comes together in just a few minutes. During the summer, when gardens are overflowing with basil and schedules are busy, having a quick recipe that can be used in multiple meals is a huge advantage.
Nut-Free Pesto Recipe
This recipe is also easy to customize based on your family’s dietary needs. If dairy is a concern, the Parmesan cheese can be replaced with nutritional yeast or a dairy-free alternative. Families who safely consume seeds may also choose to add sunflower seeds or pumpkin seeds for texture and additional nutrition.

Nut-Free Pesto
Ingredients
Equipment
Method
- Add the basil, lemon juice, garlic, and olive oil to a food processor. Pulse until smooth, scraping down the sides as needed.
- Add additional olive oil, if desired, to reach your preferred consistency.
- Add the Parmesan cheese and pulse briefly until combined.
Notes
- This recipe yields approximately 1 cup of pesto.
- When used as a condiment, spread, or topping, one serving is about 2 tablespoons, which provides approximately 8 servings per batch.
- If using pesto as a pasta sauce, plan on about 3 tablespoons per serving, which will yield approximately 5 servings per batch.
- For a thinner consistency, add additional olive oil 1 tablespoon at a time until the desired texture is reached.
- Families who safely consume seeds may add sunflower seeds or pumpkin seeds for additional texture and flavor.
Ways to Use Nut-Free Pesto

One of my favorite things about pesto is how versatile it is. Here are some of the ways we use it throughout the summer:
- Tossed in a warm pasta meal
- Drizzled over mozzarella and tomatoes
- Spread onto sandwiches or wraps
- Added to homemade pizza
- Mixed into roasted vegetables
- Spooned onto grilled chicken
- Stirred into rice or quinoa bowls
- Used as a dip for bread or vegetables
- Added to cold pasta salad
If your family gets stuck in meal repetition during the summer months, pesto can be an easy way to add flavor and variety without much extra work.
Can You Make Nut-Free Pesto Dairy-Free?
Yes. Traditional pesto contains Parmesan cheese, which is not safe for individuals with a dairy allergy.
To make this recipe dairy-free, you can substitute the Parmesan cheese with nutritional yeast or a dairy-free Parmesan alternative, such as Follow Your Heart. Nutritional yeast gives the pesto a savory flavor, although the taste is slightly different from traditional pesto.
As always, check ingredient labels carefully based on your family’s specific allergy needs.
Tips for Storing Homemade Pesto
Homemade pesto stores well in the refrigerator for several days and can also be frozen for later use.
One of my favorite ways to freeze pesto is in silicone trays. Once frozen, you can transfer the cubes into a freezer-safe container or bag and pull out small portions whenever needed.
This makes busy weeknight meals much easier.
Living with food allergies often means learning how to recreate favorite foods in ways that work safely for your family. This nut-free pesto has become one of those recipes for us.
Simple recipes like this can help families add more flavor, variety, and flexibility to meals without feeling limited by food allergies. And if you happen to grow basil in your garden like we do, it is also a great way to use up a summer harvest.
If you’ve been wondering whether pesto can be made without nuts, the answer is yes. With just a few simple ingredients, you can create a flavorful pesto that works for many families managing food allergies while still enjoying all the fresh flavors of summer.
Looking for more allergy-friendly recipes?
My cookbook, The Allergy-Friendly Cookbook, includes family-friendly recipes designed for households managing food allergies. From meals and snacks to desserts and everyday favorites, you’ll find practical recipes that help make meal planning easier and less stressful.
You may also enjoy these popular allergy-friendly resources:
• 22 Allergy-Friendly Snacks for Kids and Adults
• Egg-Free Mexican Breakfast Recipes
• Summer Camp Food Allergy Tips for Parents
These articles are packed with practical ideas to help make everyday meals and snacks safer and less stressful for food allergy families.
Frequently Asked Questions About Nut-Free Pesto
Can pesto be made without nuts?
Yes. Traditional pesto often contains pine nuts or walnuts, but pesto can be made without nuts while still maintaining a flavorful, creamy texture.
Is pesto safe for people with tree nut allergies?
Not always. Traditional pesto often contains tree nuts, and store-bought varieties may have cross-contact risks. Always read labels carefully.
Can people with peanut allergies eat pesto?
Traditional pesto does not typically contain peanuts, but it often contains tree nuts such as pine nuts or walnuts. Always check ingredient labels carefully and verify ingredients when eating away from home.
What can I substitute for pine nuts in pesto?
Some recipes use sunflower seeds, pumpkin seeds, or hemp seeds. Others simply omit nuts entirely.
Can I freeze homemade pesto?
Yes. Nut-free pesto freezes well in small portions and can be stored for several months.
Is pesto dairy-free?
Traditional pesto contains Parmesan cheese. However, nutritional yeast or dairy-free Parmesan alternatives can be used.
About the Author
This article was written by Liz Pecoraro, MS, RDN, a registered dietitian nutritionist, cookbook author, and food allergy specialist. As a parent of children with multiple food allergies, she regularly develops allergy-friendly recipes and meal plans for families navigating food allergies.
