Best Homemade Basil Walnut Pesto From Your Garden
If you’re looking for the best homemade basil walnut pesto, you’ve come to the right place. Made with fresh basil, walnuts, Parmesan cheese, garlic, and olive oil, this simple recipe comes together in about 10 minutes and is one of my favorite ways to preserve the abundance of basil growing in the garden. Whether you’re tossing it with warm pasta, spreading it onto sandwiches, or spooning it over grilled chicken, this vibrant pesto is packed with fresh flavor that instantly makes any meal feel special.

Reader Summary
If you’re in a hurry, here’s what you need to know:
- Ready in just 10 minutes.
- Uses simple pantry ingredients.
- A great way to use fresh garden basil.
- Walnuts are an affordable alternative to pine nuts.
- Delicious on pasta, sandwiches, pizza, grilled chicken, seafood, and roasted vegetables.
- Freezer-friendly for preserving summer basil.
- Naturally vegetarian.
- Easy to customize with different herbs, nuts, or spice levels.
*This post may contain affiliate links. As an Amazon Associate, I earn from qualifying purchases at no additional cost to you.
From My Garden to My Kitchen
Every year I look forward to basil season.
It is always incredibly satisfying walking outside with a pair of kitchen scissors, snipping off handfuls of fragrant basil leaves, and bringing them straight into the kitchen. It feels like one of the simplest pleasures of summer.
This year, though, my basil almost didn’t make it.
I started my basil from seed during the late winter, carefully tending the tiny seedlings until it was finally warm enough to plant them outside. They were growing beautifully, and I couldn’t wait to start cooking with them.
Then we were hit with what felt like a once-in-a-lifetime hailstorm.
The hail absolutely destroyed my basil plants. After spending months growing them, I honestly wasn’t sure I’d have much of a harvest at all.
Thankfully, I found a couple healthy basil plants at a local nursery. They quickly took off and eventually became full, beautiful bushes overflowing with fragrant leaves. Before long I was harvesting armfuls of basil and wondering what to make first.
The answer came almost immediately: pesto.
I’ve always loved basil pesto because it’s amazing how just a handful of fresh ingredients can become something so rich, vibrant, and full of flavor. It tastes like summer in a jar!
Traditionally, pesto is made with pine nuts, but one day I came across a version using walnuts instead. Since I almost always have walnuts in my pantry for sourdough banana bread and baking, it made perfect sense. Not only are walnuts easier to find, but they add a rich, earthy flavor that pairs beautifully with fresh basil.
Now this recipe has become one I’ll make again and again every summer.

Why You’ll Love This Homemade Basil Walnut Pesto
- Ready in about 10 minutes.
- Budget-friendly because walnuts are often less expensive than pine nuts.
- Perfect for preserving an abundance of basil.
- Freezes beautifully.
- Packed with fresh garden flavor.
- Extremely versatile.
- Great for beginner cooks.
- Naturally gluten-free.

Ingredients You’ll Need
Before you begin, gather these fresh ingredients.
Fresh Basil
Fresh basil is the star of this recipe. Look for bright green leaves without brown spots. Garden basil offers the best flavor, but store-bought basil works wonderfully too.
Walnuts
Walnuts give this pesto a rich, slightly earthy flavor that’s absolutely delicious. They’re also much easier to find and often more affordable than pine nuts.
For even deeper flavor, lightly toast the walnuts before blending.
Parmesan Cheese
Freshly grated Parmesan melts into the pesto much better than the pre-shredded variety and gives the sauce a richer texture.
Garlic
Fresh garlic provides the bold, savory bite that makes pesto so irresistible.
Olive Oil
A good-quality extra virgin olive oil helps create a smooth, silky consistency while adding its own wonderful flavor.
Lemon Juice
A squeeze of fresh lemon brightens the pesto and helps balance the richness.
Salt & Pepper
Simple seasonings that bring all of the flavors together.

How to Make Homemade Basil Walnut Pesto
Making pesto couldn’t be easier.
- Add the basil, walnuts, garlic, Parmesan cheese, lemon juice, salt, and pepper to a food processor or high-powered blender. I personally cannot say enough good things about my Ninja blender!
- Add about two tablespoons of the olive oil and pulse a few times until everything begins breaking down.
- With the machine running, slowly drizzle in the remaining olive oil until the pesto becomes smooth and creamy.
- Pause several times during blending to scrape down the sides with a rubber spatula. This helps everything blend evenly and prevents large chunks from being left behind.
- Taste and adjust the seasoning if needed.
That’s it!
Fresh pesto is one of the quickest recipes you can make, but the flavor tastes like something that took far longer.




Homemade Basil Walnut Pesto
Ingredients
- 2 cups fresh basil leaves packed, rinsed, and dried
- 2 garlic cloves I used minced garlic
- 1/4 cup walnuts can also use pine nuts
- 1/4 cup freshly grated parmesan cheese
- 1 tsp lemon juice
- 1/4 cup olive oil divided
- salt and pepper to taste
Instructions
- In a food processor or mixer, add basil, walnuts, garlic, parmesan cheese, lemon juice, salt, pepper, and 2 tbsp olive oil. Blend slightly.
- While mixing, drizzle in the remaining olive oil until a finely chopped sauce is formed. Add more oil if desired to reach the consistency of your liking. Do NOT overmix or you will end up with a paste. Enjoy!
Notes
How to Store Basil Walnut Pesto
Pesto stores surprisingly well, making it perfect for meal prep.
Refrigerator
Transfer the pesto to a glass jar or airtight container. These 8 oz Ball Jars work perfectly for this! Pour a thin layer of olive oil over the surface before sealing to help reduce oxidation. Store in the refrigerator for up to one week.
Freezer
Freeze pesto in ice cube trays until solid, then transfer the cubes to a freezer-safe bag. Frozen pesto keeps for about three months and makes it easy to thaw only what you need.
Flavor Variations
One of my favorite things about homemade pesto is how customizable it is.
Try one of these variations:
- Toast the walnuts before blending.
- Swap walnuts for pine nuts.
- Add crushed red pepper flakes.
- Blend in a fresh jalapeño.
- Use roasted garlic instead of raw garlic.
- Try a garlic-infused or lemon-infused olive oil.
- Mix in spinach for a milder flavor.
- Replace some of the basil with radish greens.
- Add parsley for an herbaceous twist.
- Sprinkle in extra Parmesan for a richer sauce.
Ways to Use Homemade Pesto
This pesto is incredibly versatile.
Some of my favorite ways to use it include:
- Tossed with pasta
- Spread on toasted sourdough
- Chicken pesto sandwiches
- Pizza sauce
- Bruschetta
- Mixed into pasta salad
- Grilled vegetables
- Baked potatoes
- Grilled chicken
- Salmon
- Eggs
- Homemade vinaigrettes

Frequently Asked Questions
Can I substitute walnuts for pine nuts in pesto?
Absolutely. Walnuts are one of the most popular substitutes and create a rich, delicious flavor while being more budget-friendly.
Can you freeze homemade pesto?
Yes. Freeze it in ice cube trays for easy portions that thaw quickly.
Why does homemade pesto turn brown?
Exposure to air causes basil to oxidize. A thin layer of olive oil over the top helps keep it greener longer.
Do I have to toast the walnuts?
No. It’s optional, but toasting brings out more flavor.
Can I make pesto without Parmesan cheese?
Yes. You can omit it or substitute Pecorino Romano or a dairy-free Parmesan alternative.
Can I use a blender instead of a food processor?
Definitely. A high-powered blender like a Ninja works well. Just stop occasionally to scrape down the sides so everything blends evenly.
What can I do with lots of fresh basil?
Besides pesto, basil is wonderful in homemade tomato sauce, herb butter, salads, compound butter, infused oils, homemade pizza, sandwiches, soups, and even lemonade.
Final Thoughts
It truly amazes me every time that you can turn a basket of fresh basil into a jar of delicious homemade pesto. It’s one of those recipes that reminds me why I love gardening in the first place. Even after losing my original basil plants to a devastating hailstorm, this recipe became a celebration of the second chance my little herb garden received.
Whether you’re harvesting basil from your backyard or picking up a bunch at the farmers market, I hope this homemade basil walnut pesto becomes one of those recipes you reach for all summer long. If you give it a try, I’d love to hear how you used it. Did you toss it with pasta, spread it on sandwiches, or create something completely unique?
Happy cooking!
XO, Bri
Ways To Use Your Homemade Basil Walnut Pesto
If you are looking for delicious ways to use your fresh homemade basil walnut pesto, here are some ideas for you. Baste roasted chicken, put a little in homemade alfredo sauce to make pesto alfredo, or even use as a sauce over homemade crust for the perfect pizza. These dinner options will surely be a hit!
Let’s Stay Connected!
Follow along for more homemade recipes, homesteading inspiration, and everyday moments from Our Manor on Main.




