This homemade basil pesto takes five minutes and tastes nothing like the stuff in a jar. Fresh basil, toasted pine nuts, garlic, a squeeze of lemon, parmesan, and good olive oil in a food processor. Make a batch on Sunday and you’ll reach for it all week — on pasta, on pizza, on chicken, on a spoon.
This pesto is the base for baked pesto chicken, grilled chicken margherita, pesto roasted potatoes, lemon orzo pasta salad, salmon pesto pasta, and the summer orzo pasta salad. Once it’s in the fridge, you’ll find a use for it daily.

Why This Homemade Basil Pesto Recipe Works

Most recipes tell you to add everything at once and blend. This one builds in order, and that order matters more than you’d expect. The pine nuts and garlic go in first. The basil goes in last. That sequence keeps the basil from over-processing, which is what turns pesto brown and bitter instead of vibrant and fresh.
The lemon is the other thing. It’s not traditional, but it keeps the pesto greener longer and brightens the flavor in a way that makes people ask what’s different about yours.
Pesto alla genovese is traditionally made with mortar and pestle to press the herbs, garlic, and pine nuts together. It gets its name from pestar, which means to pound in Italian.
Homemade Pesto Ingredients
Here are the simple ingredients for this basil pesto recipe. Jump to the recipe card for exact measurements.

- Fresh basil: Two packed cups. Use bright green leaves and pull off any large stems. Wilted or yellowed leaves make the pesto flat.
- Pine nuts: Toasted. Two to three minutes in a dry pan over medium heat until golden. This step adds depth and nuttiness. Don’t skip it.
- Garlic: Two cloves. Raw garlic is sharp, so start with two. Add more once you taste it if you want.
- Lemon: Juice from half a lemon. Not traditional but it brightens everything and helps the pesto stay green longer.
- Parmesan: Freshly grated, using the fine holes on your grater. Pre-grated cheese won’t blend as smoothly.
- Extra-virgin olive oil: Use a good one. This is the majority of the sauce.
- Kosher salt and black pepper: Season after blending and taste as you go.
How to Make Basil Pesto
Here are the simple steps to make homemade basil in a few minutes with food processor or blender. Jump to the recipe card for the full instructions.
- Toast the pine nuts: Add pine nuts to a dry skillet over medium heat. Stir for two to three minutes until golden. Watch closely — they go from golden to burnt in about 30 seconds.
- Blend the base: Add the toasted pine nuts, lemon juice, garlic, salt, pepper, olive oil, and parmesan to the food processor. Pulse until finely chopped, about one minute. Scrape down the sides.
- Add the basil: Add the fresh basil leaves on top and pulse for one to two minutes until you reach the consistency you like. I go slightly chunky, not completely smooth. Taste and adjust salt.
Success tip: Don’t over-process after you add the basil. Pulse in short bursts and stop when it looks right. Over-processing generates heat and oxidizes the basil, which turns it brown and bitter.


Pine Nut Substitutes
Pine nuts are classic but expensive and sometimes hard to find. Here’s what works:
Walnuts: The most common swap. Toast them the same way. They add a slightly earthier, more bitter note.
Pistachios: Slightly sweeter and a more vibrant green. Great in pesto.
Almonds: Blanched almonds are mild and blend smoothly.
Pumpkin seeds: For a nut-free version. Same texture, slightly earthier.
More Pesto Variations
- Another herb: add in mint, cilantro, or parsley instead of basil.
- Mix in greens: try try arugula pesto or add in some kale or zucchini to mix it up.
- Roasted garlic: use a few cloves of roasted garlic instead of fresh.
- Dairy-free/vegan: replace the parmesan cheese with nutritional yeast.
What to Use Basil Pesto On
This pesto goes on everything. Here are the WMM recipes that use it:
- Pesto pasta: Use it as a sauce over cooked pasta, like tortellini, penne or even spaghetti squash. You’ll love it in this burrata pasta.
- Pizza: use it in place of the sauce on this homemade sheet pan pizza.
- Vegetables: toss it with vegetables before roasting. It’s delicious with roasted broccoli and carrots, pesto roasted potatoes, and roasted mini peppers.
- Stir in soup: Swirl a tablespoon or two into Italian meatball soup or corn chowder.
- Pesto sandwich: spread it on toasted bread or cottage cheese flatbread with your favorite cheese, meat, lettuce, and tomato.
- With eggs: add some to a pan then scramble or fry eggs. You’ll love it on fluffy egg sandwiches or cheesy breakfast sliders.
- Pesto marinade: place it in a plastic bag and use it as a chicken marinade or salmon marinade, then grill or bake it.
- Spoon over salads: spoon it over caprese salad or tomato peach burrata salad.
- Mix into dressings: Add fresh flavor to homemade dressings with a Tablespoon or two of basil pesto. It’s amazing in the dressing for summer orzo salad, grilled zucchini salad, grilled peach salad, or summer corn salad.
- As a topping: spoon it over cooked chicken, fish, eggs, or veggies. You’ll love this pesto chicken and grilled chicken margherita.

Storage + Freezing
Refrigerator: Store in a sealed jar with a thin layer of olive oil poured over the top to prevent browning. Keeps for up to one week.
Freezer: Spoon into an ice cube tray and freeze until solid, then transfer to a zip bag. Keeps for up to three months. Pull out a cube and thaw in the fridge overnight or at room temperature for 20 minutes.
Pro tip: Freeze it in small portions so you can thaw exactly what you need. One cube is about two tablespoons, which is perfect for a single serving of pasta.
Can You Freeze It?
You can freeze basil pesto for up 6 months. Thaw it overnight in the fridge before you use it. Here are two options:
- In a jar: cover with a layer of olive oil and freeze. This is great if you plan to use all of the olive oil in one large dish, like pasta.
- In ice cube trays: pour it into an ice cube tray and freeze until solid, 1-2 hours, just like freezing fresh basil. Transfer to freezer bags. Thaw ice cubes individually to use a little bit of pesto at a time. I

If you make this recipe, I’d love for you to give it a star rating ★ below. You can also tag me on Instagram so I can see it!
Basil Pesto Recipe
Save this Recipe!
Ingredients
- ½ cup toasted pine nuts
- Juice from 1/2 lemon (1 1/2 Tablespoons)
- 2 garlic cloves
- 1/4 teaspoon Kosher salt
- Black pepper to taste
- 1/3 cup quality extra-virgin olive oil plus more as needed
- 1/3 cup finely grated parmesan cheese
- 2 cups basil leaves
Instructions
- Add the pine nuts, lemon juice, garlic, salt, pepper, olive oil, and parmesan cheese to a food processor or high-speed blender. Blend until smooth with some chunks left, about 1 minute.½ cup toasted pine nuts, Juice from 1/2 lemon, 2 garlic cloves, 1/4 teaspoon Kosher salt, Black pepper to taste, 1/3 cup quality extra-virgin olive oil, 1/3 cup finely grated parmesan cheese

- Add the fresh basil and blend again, 1-2 minutes. Taste and add more salt and pepper as needed. You can add up to 2 Tablespoons more of olive oil for a thinner pesto sauce.2 cups basil leaves

- Store leftover basil in a jar and drizzle olive oil on top to prevent it from turning brown. Pesto stays fresh for up to 2 weeks. Freeze the jar for up to 6 months or freeze in ice cube trays for individual servings. Thaw overnight in the fridge.
Notes
Equipment
- Food processor or high-speed blender (I used my Vitamix ONE)
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.
This post may contain affiliate links. Read our disclosure policy.












This is my go-to recipe! Thank you!
You’re welcome!!
Pesto turns dark on upper layer in n hour, have to keep removing upper layer for application…
Doesn’t stay fresh … need to know reason
Hi there! The last step in the recipe says the following: Store leftover basil in a jar and drizzle olive oil on top to prevent it from turning brown. This should help!
Simple yet informative.. Looking forward to your next post!馃憤
Love this fresh and simple recipe! By this time in the summer, my basil plants have taken over the garden and I am always looking for ways to use it up. This is just perfect and I love changing up the nuts. It is delicious with walnuts as well!
#whatwemade
Thanks Adrienne!!
Just made as part of #whatwemade and turned out great! I froze in an ice cube tray to have perfect little serving sizes!
Thanks Alison!
Delicious! There is something so satisfying about making your own pesto, and this recipe makes it super simple. We used for homemade pizzas. #WhatWeMade
Thank you Olivia! I agree!
I could eat this by the spoonful it is so good! I have put this on everything: salad, rice bowls, noodles, chicken, etc. Bookmarking this recipe for sure.
Delicious!
#whatwemade
Haha I love this. Thank you so much Molly!
I have always wanted to make homemade pesto, recently came across this recipe, and decided now was the time to try it!
This pesto is AMAZING!!!! Very simple ingredients and instructions, but man is it delicious!
I toasted my own pine nuts, which was easy.
We used our pesto on a sheet pan dish with chicken, tomatoes, zucchini, red onion, broccoli, and bell pepper. We were saying we want to use the next round for homemade pizzas!
Thank you, Molly, for another great recipe!
Wow, thank you so much Jill! So glad you loved it!
I forgot to include #whatwemade!
This is the best pesto recipe I have tried! I made pizzas with it and added mozzarella, chicken, tomatoes, and spinach! I also froze some of it and I am super excited to have it over pasta. I didn’t have enough pine nuts, so I used a combination of those and walnuts. Thank you Molly! #WhatWeMade
Wow, thank you so much Colleen!!
Wanted to make this but I don’t have pine nuts. Anybody use another nut as a sub and if so how did it turn out?
I’m so pumped I was able to get some basil at the farmer’s market to make this! It’s such a beautiful color and adds such flavor to so many recipes so easily! #whatwemade
Thanks Nikki!!
LOVE This Pesto Recipe!
The ingredients and directions were wonderful! So easy to make.
We had this with our italian dinner last night. Some of my family spooned this over their pasta and others just wanted to add to the toasted french bread. Nothing was left.
I definitely will use this on sandwiches, salads, pizza, and grilled meat(s).
Thank you for sharing this recipe!
Thank you so much for sharing this, Jackie! I’m so glad everyone loved it.
Wow! What an easy to make, delicious recipe. My days of store bought pesto are done! We used this on a chicken pesto pizza and then used the rest for pesto grilled cheese the next night! Thanks for sharing! #WhatWEMade
Thank you so much Melanie!
I made this the other day for dinner. I used it as a sauce with pasta and it was really good! It was a great way to use the abundance of basil I have growing in my garden right now. Thanks so much!! #WhatWEMade
Thanks Nicole!
We made the grilled chicken margherita and had pesto pasta on the side. It was delicious! Happy to have a yummy pesto recipe! #whatwemade
Yum! Thanks Megan!
I made the basil pesto using fresh basil from my garden. We tossed it with pasta, chicken, and sweet cherry tomatoes, it was delicious. Having recently retired, I am enjoying spending time in the kitchen learning and experimenting. This is the first time I’ve ever made pesto, first time gardener, and first time I have ever posted. Thank you for the recipe and inspiration. #WhatWEMade
I love this so much. Thank you Teresa!
I was surprised by how easy this recipe was to make! Picked fresh basil out of our herb garden and made this recipe – it will be a staple on our fridge from now on. It is a must make! #whatwemade
Thank you Sarah!!
I forgot to use the hashtag!
#whatwemade
Love your weekly menus Molly! Keep’em coming!
Sooooo fresh so tasty!! So easy to make! I made a double batch and froze into ice cubes!
Thanks Jen!!
I adore ordering homemade pesto at restaurants, but it took me a long time to realize I don’t like store-bought pesto. They are just not the same. I’m so happy to have a recipe to make at home now. This recipe is sooo freaking good. The perfect balance of refreshing basil, bright lemon, and a little toasty flavor from the pine nuts & cheese. Yum! I will keep making this again & again. I just started growing basil this year, so I was excited to be able to use homegrown basil, too! I’m also excited to see that this freezes well, but I haven’t tried that yet. #whatwemade
What a great compliment. Thank you Elizabeth!
Awesome pesto! First time making it as I had quite a lot of basil from my garden! Froze it in ice cube trays!
Thank you Patricia!
My first time making pesto! It was super simple and tasty. Since I’ll be harvesting basil from the garden, this recipe will be used frequently this summer.
##whatwemade
Oh boy. Got to use some organic basil we grew in our garden, toasted some raw pine nuts, and wow is this good pesto 🙌🏼.
Thanks Dylan!!
Super tasty and quick to make! Will make again!
I made this for the first time and it was amazing. I added a little more EVOO but that’s all I changed. I will definitely make this again!
Love it! Thanks Stacy!
So easy and such a delish flavour.
Great flavor! I made the recipe exactly and toasted my own pine nuts. I had my husband (chef) taste it before I put in refrig.. he said perfect just as it is!
WOW—such a compliment. Thank you!
so delicious and so easy! i used it for my pesto pasta and it was just amazing
Thank you so much!
Is there something I can use instead of Garlic. The family I married into has allergies to garlic and onions.
Any suggestions welcomed.
Thank you,
Former Garlic Lover
hello! I would probably say to leave it out. I was going to suggest green onion, but that’s an onion lol. Let me know if you try it this way!
Great recipe! 🌿