This post may contain affiliate links. Please read our disclosure policy.

Basil pesto recipe is one of the easiest ways to turn fresh basil into something bright, flavorful, and incredibly useful. Made with basil, pine nuts, parmesan, garlic, lemon, and olive oil, this quick homemade pesto comes together in about 5 minutes and is perfect for pasta, sandwiches, chicken, and freezing for later.

Basil Pesto in a glass jar with a wooden spoonful of basil pesto on a white striped napkin and basil leaves in the background

Kellie’s Note
The Only Pesto You Need

Every summer, basil is the one thing in my garden that really thrives, so I make this basil pesto recipe on repeat. After making and freezing batch after batch over the years, I’ve found that a few small tricks – like toasting the pine nuts, adding a little lemon, and processing the ingredients in stages – make the pesto taste brighter, stay greener, and have a better texture than a one-note blended paste.

If you’ve only had jarred pesto before, this homemade version is a game changer. It’s fresher, more vibrant, and easy to keep on hand in the fridge or freezer for quick meals anytime.

Basil Pesto in a small jar with a wooden spoon on the table.

What Is Pesto?

Basil pesto, also called pesto Genovese, is a classic Italian sauce made with fresh basil, garlic, pine nuts, olive oil, and parmesan cheese. This version stays close to the classic but uses a few simple tricks, like toasted pine nuts and a little lemon, for brighter flavor, better texture, and a more vibrant green color.

There are plenty of store-bought pesto sauces out there, but once you make basil pesto from scratch, the fresh flavor is hard to beat. It’s quick, freezer-friendly, and one of the best ways to use up extra basil before it goes to waste.

Overhead shot of the Very Best Basil Pesto in a glass jar with a teak spoon on a white napkin

How To Make Basil Pesto

This is the method I use for a basil pesto that’s flavorful, bright, and slightly textured instead of completely smooth and paste-like.

  1. Toast the pine nuts in a dry skillet over medium heat until lightly golden and fragrant. Keep a close eye on them—they can go from perfect to burnt quickly.
  2. Add half of the basil, pine nuts, garlic, cheese, and lemon zest to a food processor or blender and process until finely chopped. Starting with only part of the ingredients helps build flavor and keeps the pesto from turning into one flat puree.
  3. Slowly drizzle in some of the olive oil while the processor is running until a loose paste begins to form.
  4. Add the remaining basil, pine nuts, garlic, and cheese and pulse just until combined. This keeps the texture a little chunkier, with more visible bits of basil, cheese, and nuts throughout the pesto.
  5. Transfer to a bowl and stir in the remaining olive oil. Season with kosher salt and black pepper to taste, then use right away or store in an airtight container.

How to Freeze Basil Pesto

Yes, basil pesto freezes beautifully, which is one of my favorite reasons to make a big batch. If I know I’m freezing it, I like to portion the pesto into ice cube trays so I can thaw only what I need later. Once the cubes are frozen solid, transfer them to a freezer bag or airtight container and keep them in the freezer for up to 3 months for the best flavor.

You can freeze pesto with the cheese already mixed in, but for the very best texture, some people prefer to leave the cheese out and stir it in after thawing. Either way works well, especially if the pesto is sealed tightly.

To thaw, let the pesto sit in the refrigerator overnight or on the counter while still sealed so it doesn’t oxidize too quickly. You can also warm it gently in a saucepan over low heat or stir it straight into hot pasta, soups, or sauces.

Pasta with Basil Pesto Sauce in a white bowl with a jar of basil pesto in the background

Kellie’s Tips for the Best Basil Pesto

  • Toast the pine nuts first. This simple step gives the pesto a deeper, nuttier flavor and makes it taste more homemade than anything from a jar.
  • Add a little lemon zest and lemon juice. It’s not the most traditional addition, but it brightens the flavor and helps keep the pesto greener longer.
  • Process the ingredients in stages. I like to blend half of the ingredients until smooth, then pulse in the rest so the pesto has more texture and bigger bites of flavor.
  • Use fresh, bright green basil leaves. Avoid wilted or blackened leaves, which can dull both the flavor and the color.
  • Store it with a thin layer of olive oil on top. This helps protect the surface from air and slows browning in the fridge.
  • Don’t over-process it. Pesto should be blended enough to come together, but not so much that it turns into a completely uniform paste.

Basil Pesto Variations

One of the best things about homemade pesto is how easy it is to adjust based on what you have on hand. Here are a few simple ways to change it up:

  • Swap the pine nuts: Walnuts are one of the easiest substitutes and still make a delicious pesto.
  • Make it nut-free: Try sunflower seeds or pepitas for a similar texture.
  • Use a mix of greens: Replace part of the basil with arugula, spinach, or kale for a slightly different flavor.
  • Make it dairy-free: Leave out the parmesan or use a spoonful of nutritional yeast for a more cheese-like flavor.
  • Add a little heat: A pinch of crushed red pepper flakes adds a subtle kick.

No matter which variation you use, keep the same basic method and adjust the olive oil as needed until the pesto reaches the consistency you like.

How to Use Homemade Pesto

Beyond pasta, this basil pesto recipe is one of the handiest sauces to keep in the fridge. It’s great for tossing with pasta, spreading on sandwiches, spooning over grilled chicken or salmon, stirring into soups, or using as a quick flavor boost for roasted vegetables and grain bowls.

I love to use the Basil Pesto sauce in many recipes like this super easy Caprese Tortellini Salad and this Grilled Chicken recipe. It’s so totally easy and extra cheesy, a big hit with the kids!

It’s also fantastic as a sandwich spread like in this Chicken Cutlet Sandwich or these super simple Meatball Sliders….both great recipes for game day!

Spaghetti with basil pesto sauce on a white plate with a rainbow napkin

More Pesto Variations to Try

Want to see what else we have NOT growing in our garden…..check us out on Facebook!

Homemade Basil Pesto Recipe

5 from 94 votes
Prep: 5 minutes
Total: 5 minutes
Servings: 12
Made with fresh basil, toasted pine nuts, parmesan, garlic, lemon, and olive oil, this basil pesto recipe is bright, flavorful, and easy to make in just a few minutes. It’s perfect for pasta, sandwiches, chicken, and freezing for later.

Equipment

  • 1 food processor
  • spatula
  • measuring spoons
  • measuring cups

Ingredients 

  • 4 ounces pine nuts
  • 4 cups fresh basil , lightly packed
  • 3 garlic cloves
  • 1 cup coarsely grated parmesan cheese
  • 1 tbsp lemon zest
  • 1 cup olive oil
  • kosher salt and fresh ground pepper, to taste

Instructions 

  • Add the pine nuts to a small skillet over medium heat and toast until lightly golden brown and fragrant, about 2 to 3 minutes. Set aside to cool slightly.
  • In the bowl of a food processor, add half of the pine nuts, 3 cups of basil, 2 garlic cloves, 1/2 cup of parmesan, and the lemon zest. Process for about 30 seconds, or until finely chopped.
  • With the food processor running on low speed, slowly drizzle in 3/4 cup of olive oil and continue processing until a loose, mostly smooth paste begins to form. Stop and scrape down the sides of the bowl as needed.
  • Add the remaining pine nuts, basil, garlic, and parmesan to the bowl. Pulse until combined but still slightly textured.
  • Transfer the pesto to a bowl with a rubber spatula and stir in the remaining olive oil. Season with kosher salt and black pepper to taste.
  • Store the basil pesto in an airtight container in the refrigerator for up to 5 days, or freeze for longer storage.

Video

Notes

  • Walnuts can be used instead of pine nuts.
  • For a brighter flavor, don’t skip the lemon zest.
  • Use fresh, vibrant basil leaves for the best color and flavor.
  • To help prevent the pesto from oxidizing, smooth the surface and add a thin layer of olive oil before storing.
  • To freeze, spoon the pesto into ice cube trays and freeze until firm. Transfer the cubes to a freezer bag or airtight container.
  • Freeze for up to 3 months for the best flavor.
  • Walnuts work well as a substitute for pine nuts.
  • For the best texture, avoid over-processing the pesto into a completely smooth paste.

Nutrition

Calories: 115kcal, Carbohydrates: 2g, Protein: 4g, Fat: 10g, Saturated Fat: 2g, Cholesterol: 5mg, Sodium: 134mg, Potassium: 90mg, Fiber: 0g, Sugar: 0g, Vitamin A: 485IU, Vitamin C: 2.4mg, Calcium: 116mg, Iron: 0.8mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Like this recipe?Leave a comment below!
How do you keep pesto from turning brown?

To help prevent browning, store pesto in an airtight container and smooth a thin layer of olive oil over the top before refrigerating. Lemon also helps keep the color bright.

Can I use walnuts instead of pine nuts?

Yes. Walnuts are one of the easiest and best substitutes for pine nuts in pesto.

How long does homemade pesto last in the fridge?

Homemade basil pesto will keep in the refrigerator for about 5 days if stored in an airtight container.

Should basil be packed or loosely measured?

It should be lightly packed, enough to fill the measuring cup without smashing the leaves down tightly.

Free email guide

Your “Healthy-ish” Meal Plan
Healthy meals don’t have to be difficult. Let me show you.

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating:




This site uses Akismet to reduce spam. Learn how your comment data is processed.

187 Comments

  1. Kim says:

    Have you tried using different types of basil?  Thinking of using 3/4 of the basil italian and the other quarter Thai for the anise flavor….

    1. Kellie says:

      I have used different varieties of basil but just know the color won’t be as vibrant if you use like a purple basil.

  2. Tracy says:

    Just tried this .  It was delicious and super easy.

    1. Kellie says:

      So glad you liked it! Thank you for your comment.

  3. Jan says:

    Just made this!  Wow!!  Delish. Did half pine nuts and half walnuts. $. Toasted both.   Added juice of half a squeezed lemon.  The thing I like most about this recipe is that amounts are subjective.   I  varied amounts somewhat , and still amazing.   I am using it tonight to make  pesto baked chicken.  
    Thank you for teaching me how to use my fresh basil. 

    1. Kellie says:

      You are so welcome! Thank you for your kind comment!

  4. Chris N. says:

    Hi there, I trimmed my 3 basil plants and had a lot of basil that I needed to find a use for.  Well, I searched for a pesto recipe and landed on yours.  I never have success with recipes posted on-line but  I gave it a shot and well …………. it is ……… AMAZING.  I love it.  All of the ingredients were handy (except the pine nuts, which I had to get) and super easy to make.  Thanks for sharing the recipe.  It is getting filed in my favorites folder.

    1. Kellie says:

      You’re very welcome! This was a recipe I developed years ago and make every single year since then. Thank you for your kind comment!

  5. Joann Deeb says:

    This is a GREAT pesto! Love the lemon in it and extra garlic!

    1. Kellie says:

      I’m so glad you liked it! And YES to extra garlic.

  6. Beth Green says:

    Can you suggest a different nut to be used? Pine nuts are $$$ through the roof. Thanks

    1. Kellie says:

      Walnuts make a great substitute!

  7. Kell says:

    Excellent – this will be my go-to pesto now. I didn’t do the lemon, I wanted it just original pesto as I really haven’t had it before (which is amazing but true). Once I got thru ALL the photos to the recipe — it was great. Thanks!

    1. Kellie says:

      Thanks for enduring all the photos….there are great tips in there, as well! This is my favorite, too. Thanks for your lovely comment!

  8. Gill says:

    I found the information for your recipe difficult to read because of the distressing number of adverts and a strip of buttons on the left distractingly covering the content. 
    Can I visit a website to read your recipe ad free? I’m not going to save this one because I don’t want a repeat of the experience. Sorry to be negative but ads every few lines was a bit too much! 

    1. Kellie says:

      Hi Gill, Thank you for your feedback. Unfortunately, if I strip my site of ads the recipes can no longer be offered for free. The ads pay for the cost of running the site, testing the recipes, etc. I also have to pay my own bills to live and feed my family. I do have good news that my site is being redesigned so that strip of buttons on the left you’re seeing, I am assuming you’re on mobile, will be going away soon! In the meantime, you can print the recipe card and the FREE recipe card will not contain any ads. My suggestion is to save the recipe card as a PDF and store them in a file on your phone or take a picture with your phone and save them that way. Then you have a digital version if you don’t want to store a paper copy in your recipe box. Again, I understand the ads are frustrating but they make it possible for me to provide free content to my loyal subscribers. Thanks again for your time and stay safe!

  9. Rene says:

    Second time I made this basil pesto.  Absolutely delicious.

    1. Kellie says:

      I’m so glad you love it! Thank you for your kind comment.

  10. DeniH says:

    Hello, Im going to make this recipe for my family at the weekend but we are too much people. Im wondering how many cups makes this recipe in order to know how many ingredients I will need. I know you said 12 servings, but could you please tell me in cups? Thanks in advance

    1. Kellie says:

      Hi! You can adjust the serving size so the recipe will tell you how much of each ingredient you will need. If you need to make more, click on the 2x in the recipe card to double the recipe.