Homemade Pesto Recipe
This post may contain affiliate links. Read my full disclosure policy.
This homemade pesto comes together in minutes and is one of the easiest ways to make the most of summer basil. Toss it with pasta, spread it on sandwiches, spoon it over grilled meats and vegetables, or swirl it into soups.

Pesto, or pesto alla Genovese, is a vibrant, garlicky green sauce from Genoa, Italy. Made with fresh basil, nuts, garlic, Parmigiano-Reggiano, and olive oil, it’s one of the easiest and most versatile sauces you can make at home. While pesto is traditionally made with a mortar and pestle, a food processor makes quick work of it.
This homemade pesto recipe uses walnuts instead of the traditional pine nuts, making it more affordable without sacrificing flavor. Once everything is blended together, you’d be hard-pressed to tell the difference. I make a batch whenever basil is overflowing in the garden, and since it freezes beautifully, I always stash a few containers away for quick meals later on.
“Simply, my favorite pesto recipe!”
What You’ll Need To Make Pesto Sauce

- Walnuts: Traditional pesto is made with pine nuts, but I almost always reach for walnuts. They’re easier to find, much less expensive, and have a rich, buttery flavor that works beautifully.
Almonds, pecans, and pistachios work well too. Pro tip: Toast the nuts in the oven or a dry skillet for a few minutes to deepen their flavor. - Garlic Cloves: Bring bold, punchy flavor that is key to the flavor of pesto.
- Fresh Basil Leaves: Use vibrant, fragrant leaves with no dark spots. Be sure to wash and dry them thoroughly—wet basil can dilute the pesto and dull the flavor.
- Extra Virgin Olive Oil: Binds everything together and adds smooth, fruity richness. Use one you enjoy the flavor of since it’s a major component of the sauce.
- Grated Parmigiano-Reggiano: Adds salty, nutty flavor. Always use authentic Parmigiano-Reggiano from Italy—look for the name stamped on the rind or clearly labeled on pre-grated packages. Avoid shelf-stable grated cheese or anything labeled “Parmesan” or “Parmesan cheese.”
- Jump to the printable recipe for precise measurements
Step-by-Step Instructions
Pulse the walnuts and garlic first, then add the basil and seasonings. As you slowly drizzle in the olive oil, the pesto will come together into a smooth, vibrant green sauce. Taking your time with the oil helps it emulsify for the best texture.
Pro Tip: If you don’t have a food processor, a blender works too, though you may need to stop and scrape down the sides a few times to keep everything moving.




Add the cheese and blend just until incorporated. It’ll thicken the pesto slightly and give it a rich, creamy texture.


How To Store & Freeze Pesto

Pesto keeps well in the refrigerator for about a week. To help prevent browning, smooth the surface and pour a thin layer of olive oil over the top before refrigerating (this seals out the air and prevents the sauce from oxidizing).
For longer storage, freeze pesto in ice cube trays. Once frozen, transfer the cubes to a freezer bag so you can thaw exactly as much as you need.
Best Ways to Use Homemade Pesto

Homemade pesto is far more versatile than just pasta. Here are some of my favorite ways to use it:
- Toss it with homemade pasta to make pesto pasta
- Make zucchini noodles
- Spoon over grilled chicken, shrimp, salmon, or steak
- Spread on focaccia, sandwiches and smash burgers
- Drizzle over roasted vegetables
- Stir into minestrone or vegetable soup
- Spread on pizza instead of tomato sauce
- Swirl into scrambled eggs or omelettes
- Mix into mayonnaise for sandwiches
- Spoon onto burrata with fresh tomatoes
- Drizzle over baked potatoes
Video Tutorial
You May Also Like
Homemade Pesto Recipe

Ingredients
- ⅓ cup walnuts, toasted if desired (see note)
- 2 large cloves garlic, roughly chopped
- 2 cups packed fresh basil leaves
- ½ teaspoon salt
- ¼ teaspoon freshly ground black pepper
- ⅔ cup extra-virgin olive oil
- ½ cup grated Parmigiano-Reggiano
Instructions
- Place the walnuts and garlic in the bowl of a food processor fitted with a steel blade. Process until coarsely chopped, about 10 seconds. Add the basil leaves, salt, and pepper and process until mixture resembles a paste, about 1 minute. With the processor running, slowly pour the olive oil through the feed tube and process until the pesto is thoroughly blended. Add the Parmesan and process a minute more. Use pesto immediately or store in a tightly sealed jar or air-tight plastic container, covered with a thin layer of olive oil (this seals out the air and prevents the pesto from oxidizing, which would turn it an unappetizing brown color). It will keep in the refrigerator for about a week.
Notes
- Toasting the walnuts isn't essential, but it brings out their flavor. To toast them, preheat the oven to 350°F. Arrange the walnuts on a baking sheet in a single layer. Bake, checking frequently, until lightly toasted and fragrant, 6 to 8 minutes. Transfer immediately to a plate to cool.
- Freezing Instructions: Pesto can be frozen in an airtight container for up to 6 months. You can also divide your prepared pesto into the compartments of an ice cube tray and freeze. Once it’s frozen, remove the pesto cubes from the tray and put in a sealable plastic bag or an airtight container. You can add the defrosted pesto cubes to soups, pasta dishes, eggs, sandwiches, and potatoes.
Nutrition Information
This website is written and produced for informational purposes only. I am not a certified nutritionist and the nutritional data on this site has not been evaluated or approved by a nutritionist or the Food and Drug Administration. Nutritional information is offered as a courtesy and should not be construed as a guarantee. The data is calculated through an online nutritional calculator, Edamam.com. Although I do my best to provide accurate nutritional information, these figures should be considered estimates only. Varying factors such as product types or brands purchased, natural fluctuations in fresh produce, and the way ingredients are processed change the effective nutritional information in any given recipe. Furthermore, different online calculators provide different results depending on their own nutrition fact sources and algorithms. To obtain the most accurate nutritional information in a given recipe, you should calculate the nutritional information with the actual ingredients used in your recipe, using your preferred nutrition calculator.
Gluten-Free Adaptable Note
To the best of my knowledge, all of the ingredients used in this recipe are gluten-free or widely available in gluten-free versions. There is hidden gluten in many foods; if you're following a gluten-free diet or cooking for someone with gluten allergies, always read the labels of your ingredients to verify that they are gluten-free.




Fantastic recipe! I didn’t have much basil on hand and so I halved it (and had to fudge the amount of parmesan, too), and it was still delicious. So quick and easy, thank you!
Loved it! Easy to follow directions, small enough units, & turned out excellent.
After visiting Liguria, Italy (home of REAL pesto) I have searched to find something I could make at home that tasted the same. BOOM! Here it is. Thank you, Jenn, for this amazing and oh-so-simple recipe. It doesn’t take 5 minutes to make this mouth-watering and healthy addition to pasta, sauces, and my favorite: add it to the mayo on your BLT for a classy step up… yum.
I usually make enough for one meal and put the left-overs in an ice cube tray and freeze it… I’ve found numerous truly great recipes on your site, and I appreciate you!
After years of delaying too long, I was so proud to finally remember to harvest the basil before the cold weather starts. But, I forgot to check the pantry and ended up a bit short on olive oil and Parmesan in the triple batch of pesto with walnuts. No worries! It is delicious with a wonderful texture and consistency. As for the comments about bitterness, sometimes raw garlic can be bitter. I also had two varieties of basil and one was definitely more bitter all summer than the other. That one literally did not make the cut for this recipe. Oh, and I can’t remember the last time we had an ice cube tray, so I used the mini cupcake pan and mini donut pans to freeze the batches. Perfect size!
This is a simple but excellent pesto recipe. Thanks for sharing another wonderful recipe Jen!
This is the best ever pesto ….. our basil plants were lovely this year and we have made seven batches ….. some for us, some for family. Freezing in the trays is a great tip. Thanks
I followed this exactly and it was too salty, too garlicky and too oily for us. Next time, I will put 1/4 tsp salt or even less, half the oil, and only half a garlic clove.
Perfect proportions of ingredients. Just like Nonna used to make… really!
Just made my first ever batch of pesto to be used in another recipe I’m making for dinner – this turned out amazing! I was looking for a basic pesto recipe that used walnuts, and this one worked wonderfully.
Outstanding Recipe! Pesto was so yummy, I could just lick the jar. The fresh basil leaves from my garden found a perfect place! Other than pasta and pizza topping, what else can I use the pesto for?
Hi Prajakta, Glad you liked it! Pesto is also nice stirred into or dolloped on top of soup like in this recipe. It’s also great spread onto bread for sandwiches or grilled cheese. You can also freeze pesto for future use if you have more than you can use now.