Homemade Basil Pesto Recipe

Homemade basil pesto is a wonderfully versatile and tasty sauce/spread made from a handful of flavorful ingredients. It comes together in minutes and tastes worlds better than store-bought because it’s so fresh. (Just like with lemon curd, store-bought pesto is nothing like real, FRESHLY made pesto!)

homemade basil pesto

I originally published this recipe in 2015 and have since added new photos and more helpful success tips.


Today’s homemade basil pesto recipe is my absolute favorite. It’s classic, simple, flavorful, and completely fresh. You’ll appreciate how easily it comes together and that it tastes infinitely better than store-bought versions. Homemade pesto can be a dip, sauce, or spread and pairs wonderfully with so many flavors. Bottom line? Pesto is an easy way to instantly elevate any savory dish.

Originating in Genoa, Italy, pesto was traditionally made by crushing the ingredients with a mortar and pestle. Now it’s typically done with the convenience of electric tools like a food processor or blender. You don’t need to cook it at all, unless you want to roast the garlic first. (See recipe Notes for instructions on how to roast garlic.)

The uses for pesto are virtually endless, and you can use it in recipes like pesto pull-apart bread, pesto pizza, and this 25-minute pesto shrimp. Or use it as pasta sauce, drizzle it over grilled chicken, eggs, or roasted vegetables, spread it on sandwiches or homemade bread, or even swirl into hummus or minestrone soup.


This Homemade Basil Pesto Is:

  • Fresh and flavorful
  • Incredibly versatile
  • Ready in minutes
  • Made with just a few ingredients
  • Easy to customize with what you have on hand
  • Extra flavorful with roasted garlic (see recipe Notes for instructions on how to roast garlic)

One reader, Trink, commented:This is by far the best pesto recipe I’ve used or had. Made 8 cups of homemade pesto 2 weeks ago using this recipe and everyone loves it. I wish I could post a picture of my dinner—it was the bomb. I love your baking recipes and now this! Winner winner! ★★★★★

Another reader, Mary, commented:Wow. This is the best pesto I’ve ever eaten. I like pesto, and I make pesto, but I didn’t know it could ever be this good. It is SO fresh and flavorful! ★★★★★

fresh basil
parmesan cheese, roasted garlic, pine nuts, olive oil, lemon, and basil on countertop.

Key Ingredients You Need & Why

  1. Basil: Fresh basil leaves are the base of this pesto recipe. Rinse and pat dry before using.
  2. Pine Nuts: Pine nuts add structure and a light nutty flavor to the pesto. If I’m having trouble finding pine nuts, sometimes I’ll swap them for walnuts, pistachios, or almonds.
  3. Parmesan Cheese: Fresh parmesan cheese adds a little saltiness and helps the pesto stick together. In place of parmesan (aka parmigiano-reggiano), you can use any Italian-style hard cheese, such as pecorino romano, asiago (and enjoy spread on asiago-crusted skillet bread), or grana padano.
  4. Garlic: It goes without saying that garlic adds incredible flavor to homemade pesto. I urge you to try using roasted garlic because the flavor isn’t as harsh as raw garlic. See recipe Note below for instructions on how to roast garlic.
  5. Olive Oil: Olive oil is the main liquid and helps create a creamy, rich consistency.
  6. Lemon Juice: 1 teaspoon of fresh lemon juice brightens everything up and really helps the other flavors shine. Many recipes don’t call for it, but I highly recommend it.
  7. Salt & Pepper: Both add flavor and you can add them to taste.

Make it your own: For a twist, try adding your favorite herbs like cilantro, mint, or parsley; your favorite spices like cayenne, ground ginger, paprika, or crushed red pepper flakes; or add a dash of your favorite hot sauce.


FAQ: What Can I Use Instead of Basil?

When fresh basil isn’t in season, it can be really pricey or even impossible to find. I like to use kale, spinach, or arugula in its place.


FAQ: What Can I Use Instead of Pine Nuts?

Pine nuts can be really expensive, not to mention hard to find! Walnuts, pistachios, and almonds are all great 1:1 substitutes and you can’t really detect a flavor difference in the finished pesto.

For nut-free pesto, try pumpkin seeds, hemp seeds, sunflower seeds, or cooked and cooled edamame.

pesto in food processor

Overview: How to Make Homemade Basil Pesto

Basil pesto comes together in a matter of minutes using a food processor or blender; just a few pulses and you’re done. The ingredients blend together rather easily, so if you don’t have a fancy food processor, don’t worry. It will still taste like pesto and it will still be good. (It’s hard to mess this up.)

  • Blend the basil, pine nuts, cheese, and garlic together in a food processor or blender. Add the olive oil and pulse/process to blend. Scrape down the sides of the blender bowl, then add the lemon juice, salt, and pepper. Pulse this mixture until everything is blended together and relatively smooth. Taste and add more seasoning and any extra herbs/spices if desired.

Can I double or triple the recipe? Yes, you can easily scale up this recipe if your food processor/blender has the room!

spoonful of homemade basil pesto coming out of a jar.

How to Use Homemade Pesto

If you need inspiration, here are MANY ways you can use this basil pesto:

  • Pesto Tortellini: Use as a sauce over cooked tortellini with parmesan cheese and fresh diced tomatoes.
  • Shrimp: Try my creamy pesto shrimp for dinner—it’s super quick!
  • Pizza: Use it in place of pizza sauce on pizza crust; here is my pesto pizza recipe.
  • Pesto Bruschetta: Bake slices of a fresh baguette in a 400°F (204°C) oven until golden. Top with pesto, parmesan cheese, and diced fresh tomatoes.
  • Stuffed Peppers: Use pesto in my sausage stuffed peppers recipe instead of the chicken broth. (Same amount—tastes fantastic.)
  • Focaccia: Skip the herbed olive oil topping on focaccia (step 8) and spread 1/2 cup of pesto all over the dough instead.
  • Star Bread: Use my star bread recipe and reduce the amount of sugar in the dough to 1 Tablespoon. Spread 1 heaping Tablespoon of pesto onto each of the 3 circles. (3 Tbsp. total.) Top each with a light layer of shredded cheese, herbs, and/or chopped pepperoni.
  • Pesto Sandwich: Spread pesto on toasted bread, and add your favorite cheese or meat, greens, and tomato. You’ll love it on my caprese pesto chicken burger.
  • Pesto Grilled Cheese: Brush 2 slices of thick-cut crusty bread (like artisan bread or ciabatta bread) with pesto, add provolone or cheddar cheese, butter the outside of the bread, and cook both sides on a griddle or skillet until golden brown.
  • Swirl in Soup: Swirl a few spoonfuls into a bowl of minestrone soup.
  • Hummus: Blend 2 Tablespoons of pesto with your favorite hummus.
  • As a Dip: Use it as a dip for homemade bread, breadsticks, crackers, or pizza pull apart rolls. (This homemade Italian dressing is one of my most favorite “dipping sauces,” too!)
  • As a Spread: Spread it on olive bread or seeded oat bread.
  • As a Topping: Drizzle over cooked meats, fish, eggs, chicken meatballs, or roasted vegetables. Or try it as a savory topping on your Dutch baby pancake.

FAQ: How Long Does Homemade Pesto Last?

You can store this basil pesto in a jar or sealable container, then tightly seal and refrigerate for up to 1 week or freeze for up to 2–3 months. Let it thaw at room temperature or in the refrigerator.

To prevent your pesto from browning in the fridge, pour a layer of olive oil on top before tightly covering or sealing the pesto.

You could also freeze the fresh pesto in small amounts, in a greased ice cube tray, and then thaw the amount you need for a recipe when you need it, so you don’t have as much leftover to store in the fridge.

Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
spoonful of homemade basil pesto coming out of a jar.

Easy Homemade Pesto Recipe

5 Stars 4 Stars 3 Stars 2 Stars 1 Star 4.8 from 47 reviews
  • Author: Sally McKenney
  • Prep Time: 10 minutes
  • Cook Time: 0 minutes
  • Total Time: 10 minutes
  • Yield: 1 cup
  • Category: Appetizer
  • Method: Cooking
  • Cuisine: Italian
Save Recipe

Description

This is how I make classic basil pesto at home. It’s incredibly simple and flavorful and uses only a handful of fresh ingredients.


Ingredients

  • 2 cups (60g) fresh basil leaves*
  • 1/3 cup (48g) pine nuts*
  • 1/3 cup (25g) freshly grated or shredded parmesan cheese
  • 3 small cloves garlic (raw or roasted, see recipe Note below)
  • 1/3 cup (80ml) olive oil
  • 1 teaspoon fresh lemon juice
  • 1/4 teaspoon salt
  • freshly ground black pepper, to taste


Instructions

  1. Pulse the basil, pine nuts, cheese, and garlic together in a food processor or blender. Scrape down the sides, then add the oil, lemon juice, and salt. Pulse until everything is blended together and relatively smooth. Add a drizzle more olive oil to thin out, if desired. Taste and add pepper (and/or more salt) if desired. I always add a pinch of pepper.
  2. Store pesto in a jar or sealable container, tightly seal, and refrigerate for up to 1 week.

Notes

  1. Storing & Freezing Instructions: You can store this basil pesto in a jar or sealable container, then tightly seal and refrigerate for up to 1 week. To prevent browning, pour a layer of olive oil on top of the pesto before sealing. Freeze the pesto for up to 2–3 months. You can freeze it in greased ice cube trays and thaw small portions at a time. Let it thaw at room temperature or in the refrigerator.
  2. Special Tools (affiliate links): Food Processor or Blender
  3. Basil or Other Greens: Instead of basil, try other greens like spinach, kale, or arugula. No matter which greens you choose, rinse and pat dry before using.
  4. Nuts: If I’m having trouble finding pine nuts, sometimes I’ll swap them for walnuts, pistachios, or almonds. For a nut-free version, try cooked and cooled edamame, pumpkin seeds, hemp seeds, or sunflower seeds.
  5. Parmesan Cheese: In place of fresh parmesan (aka parmigiano-reggiano), you can use any Italian-style hard cheese, such as pecorino romano, asiago, or grana padano.
  6. Garlic: If you don’t have fresh garlic cloves, use 3 teaspoons minced garlic from the jar.
  7. How to Roast Garlic: Preheat oven to 375°F (190°C). Using a sharp knife, slice off the top of the fresh garlic head to expose the cloves inside. Pour 2 Tablespoons of olive oil inside a round or square baking pan (I usually use a 9-inch round pan) and coat the pan evenly. Place garlic head inside, exposed side up. Sprinkle the garlic head with a little salt and pepper and drizzle 1 additional Tablespoon of olive oil on top. You want them to have a nice coating of oil so they don’t burn easily. Cover the pan with aluminum foil and roast for 40 minutes. Remove the pan from oven. To remove the roasted cloves, grab the bottom of the garlic head and gently squeeze until the cloves pop out—they will be mushy and ready to use in the pesto.
  8. Other Pesto Variations: Try adding your favorite herbs like cilantro, mint, or parsley. Add your favorite spices like cayenne, ground ginger, paprika, or crushed red pepper flakes. Or add a dash of your favorite hot sauce.
sally mckenney headshot purple shirt.
About the Author

Sally McKenney

Sally McKenney is a baker, food photographer, and New York Times best-selling author. Her kitchen-tested recipes and step-by-step tutorials have given millions of readers the knowledge and confidence to bake from scratch. Sally’s work has been featured on TODAY, Good Morning America, Taste of Home, People, and more.

Read More

Leave a Comment

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

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star

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

Reader Comments and Reviews

  1. Kathleen says:
    July 15, 2025

    Super easy, beautiful color and delicious. I substituted with walnuts instead of pine nuts. Using it in the Creamy Pesto Shrimp recipe tonight.

    Reply
  2. Carol Owen says:
    July 13, 2025

    I appreciate the substitution tips at the end of the recipe. Refreshingly and set the site apart

    Reply
  3. David says:
    July 12, 2025

    Thank you for the recipe—and especially for including weight measurements. I’ve often seen just “2 cups of basil leaves”. But what’s a cup of basil leaves? How tightly packed? Many thanks.

    Reply
  4. Kristin says:
    July 11, 2025

    Such an easy recipe, but olive oil was off. I had to double it, otherwise all I had was basil paste. I used pistachios instead of pine nuts, and it came out great!

    Reply
  5. Sofie Maddox says:
    June 28, 2025

    This recipe is truly amazing. The directions were easy to follow. I am definitely going to make this again. Thank you Sally for all the amazing recipes you post on your website.

    Reply
  6. Debra L Paessler says:
    June 26, 2025

    Holy pesto, Batman! I left out the garlic for my family. If you have too much basil, pop some in the freezer, and you will weep for joy in January.

    Reply
  7. Ruth says:
    June 19, 2025

    Excellent recipe. I used walnuts and it was super delicious! Have tried other recipes and this one is the best!

    Reply
  8. Julie says:
    May 8, 2025

    Delicious pesto! I have a bunch of pesto growing so I used that. I didn’t have pine nuts so I substituted walnuts. And I didn’t have lemon so I used fresh lime instead. Perfect! I have saved this one. Thank you.

    Reply
  9. Kevin Gould says:
    April 6, 2025

    I used the suggested weights of ingredients rather than the cup measures, and found the resulting mixture off-balance; far too much cheese, and insufficient olive-oil. After tweaking the measures, I ended up with a delicious pesto for topping over pasta.

    Reply
  10. Joann Piatt says:
    February 25, 2025

    Tried this tonight and we loved it. The full recipe would make 4 generous servings when added to angel hair pasta. I added sautéed mushrooms to the pasta. Will definitely make often. Thanks.

    Reply
  11. Susan says:
    February 4, 2025

    Wow is this flavorful! Used walnuts (toasted) as was listed in your suggestions and home grown garlic. Have never made such a tasty pesto. Thank you for sharing the recipe!

    Reply
  12. Kerry Magurren says:
    January 17, 2025

    As usual a perfect result from Sally. I live in Australia .Anyone asks me for a recipe I tell them go straight to Sally’s site. It never fails

    Reply
  13. byGeorge says:
    January 2, 2025

    This pesto is very delicious. I did have problems making it in that I couldn’t get my processor to properly chop up these leaves, but there is probably another way that I am not familiar with that works better. I only needed a quarter of the recipe to make creamy pesto gnocchi, which my family loved. I froze the rest and brought some of it out for another serving of creamy pesto gnocchi, which turned out just as good as the fresh pesto.

    Reply
  14. Cheryl says:
    October 8, 2024

    I loved the homemade pesto recipe!!!! Didn’t substitute any ingredients.
    I used 1/2 fresh then frozen half. Perfect both ways!

    Reply
  15. Kim says:
    September 3, 2024

    I have an insane amount of basil from my garden and decided to try making pesto. I came across your recipe and it sounded easy enough and I had most of the ingredients on hand. I had to substitute pine nuts for pistachios. It turned out absolutely delicious! I can’t wait for dinner to have some with pasta. Thank you for the recipe.

    Reply
  16. GeorgieC says:
    August 26, 2024

    This is the best recipe and so easy!! Great on pasta. Pesto pasta has been request Ted twice in 2 weeks

    Reply
  17. Cindy Marsden says:
    August 19, 2024

    How much of the other herbs and red pepper would you add? any suggestions? Love your recipes so much!!! You have an anamazing gift!

    Reply
    1. Lexi @ Sally's Baking says:
      August 19, 2024

      Hi Cindy, it really depends on your personal preference. We’d start small (say, about 1/2 teaspoon or so) and then adjust further as needed for future batches. Hope you enjoy it!

      Reply
  18. Nancy says:
    August 15, 2024

    Yum! I made this with toasted walnuts.

    Reply
  19. Tanya says:
    August 12, 2024

    Perfect easy-basil-pesto/

    Reply
  20. Ann Berggren says:
    August 11, 2024

    When you say “two Cups” basil, is that loosely packed? I struggle with this. Thank you!

    Reply
    1. Sally @ Sally's Baking says:
      August 12, 2024

      Hi Ann, yes, it’s loosely packed. After the basil is finished, you can taste it and add more basil if you’d like.

      Reply
  21. Carla says:
    August 7, 2024

    My new favorite pesto recipe. I used roasted garlic, aged pecorino and walnuts. Thanks for a fabulous recipe!

    Reply
  22. Ciara says:
    August 4, 2024

    Hi! My sister is vegan and i was wondering if i could replace the cheese with nutritional yeast?

    Reply
    1. Michelle @ Sally's Baking says:
      August 4, 2024

      Hi Ciara, we haven’t test this, but let us know how it turns out if you do!

      Reply
  23. Chithra Binoy says:
    July 31, 2024

    Thank you for this recipe!!! Could I use Feta cheese instead of Parmesan Cheese?

    Reply
    1. Lexi @ Sally's Baking says:
      July 31, 2024

      Hi Chithra, feta cheese is too soft for this recipe. In place of the parmesan, you can use another Italian-style hard cheese, such as pecorino romano, asiago, or grana padano.

      Reply
  24. mpotter says:
    July 31, 2024

    I’ve never tasted pesto but this sounds delicious! And I trust your site. Thanks for the uses. I can’t wait to try it but I know I’ll have to end up freezing it. Every comment says to freeze & “use in a recipe”. Does this mean you need to use it in a cooked recipe? Could it still be a dip or spread?

    Reply
    1. Lexi @ Sally's Baking says:
      July 31, 2024

      You can certainly freeze it and then use as a dip or spread once thawed. Hope you enjoy the pesto!

      Reply
  25. Beth Getz says:
    July 31, 2024

    I love pesto and would like to try this recipe — however my husband is allergic to nuts and seeds — any other suggestions for a substitute? Thank you…

    Reply
    1. Lexi @ Sally's Baking says:
      July 31, 2024

      Hi Beth, we have only tested this recipe with the other seed recommendations in the recipe Notes. It may be best to search for another recipe that is specifically nut free and seed free. Let us know if you find one you love, or try this one with any other substitutions!

      Reply
    2. Grace says:
      July 31, 2024

      Hey Beth – we have nut allergies here and if we don’t have seeds on hand we make it without! Can use a little more cheese if you want to compensate for the nuts/seeds but don’t have to. Pesto is delicious enough to be verrry flexible!

      Reply
  26. Angelina Daries says:
    July 31, 2024

    We love pesto. When my grandkids were young I decided to add sundried tomatoes (reconstituted in olive oil n garlic, basil) to the mix . I thought it would make it more colorful n not just GREEN! They are now grown up n make their own pesto!

    Reply
  27. Kathy Kleeman says:
    July 31, 2024

    My husband just mixed up a batch, and he claims it’s the best pesto he’s ever tasted. Looking forward to making a meal with it!

    Reply
  28. Sharon says:
    July 19, 2024

    This pesto recipe is delicious with fresh basil from the garden.

    Reply
    1. Erin @ Sally's Baking says:
      July 19, 2024

      We are so glad you enjoy it, Sharon!

      Reply
  29. CA says:
    June 30, 2024

    Love this recipe, thank you.! Being Italian, we grow an abundance of basil every growing season. I blanch it first and then use a salad spinner to dry it-This prevents it from turning brown. I then freeze it in ice cube trays. It does the trick!

    Reply
    1. Erin @ Sally's Baking says:
      June 30, 2024

      CA, we’re so happy to read this!

      Reply
  30. Gretchen says:
    May 14, 2024

    How do you measure the basil leaves? Just place them in a measuring cup?

    Reply
    1. Trina @ Sally's Baking says:
      May 14, 2024

      Hi Gretchen, yes, pack them into a measuring cup – weighing is the most accurate way to measure, if you have a kitchen scale!

      Reply