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!)

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

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.

homemade basil pesto

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.


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

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. (Here’s 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. You can find the kale variation I like to use in this pesto pasta salad recipe.


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 45 reviews
  • Author: Sally
  • 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 (roasted garlic or fresh)*
  • 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. 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. Patricia says:
    November 22, 2025

    Thankyou , I will do the recipe , looks so good .

    Reply
  2. peg says:
    November 11, 2025

    So easy and delicious! 10 stars!!!

    Reply
  3. Beth says:
    October 7, 2025

    We made pesto pizza. EXCELLENT!

    Reply
  4. Erin Mauck says:
    October 4, 2025

    I made mine with Pistachios and fresh garlic. Delicious! I put mine in ice-cube trays to freeze, then place them in a labeled baggy in the freezer. It is so nice to have pesto at the ready whenever I want it. Love the lemon.

    Reply
  5. Elena jenner says:
    September 29, 2025

    Blanch basil in boiling water with baking soda first. Basil stays bright green!!!!!

    Reply
  6. linda says:
    September 29, 2025

    Thank you We have wanting a simple but yummy Pesto recipe

    Reply
  7. Hana says:
    September 22, 2025

    I tried it and I made it a bit dry on purpose with just a pinch of salt to prolong its shelf-life and keep basil green from one week to roughly 2 weeks. When I needed a few spoons I added olive oil to them and a bit of salt. Note: Quality of taste does grow less by the pase of days. Instead of pine seeds I used almonds.. the only nut I had on hand.

    Reply
  8. Beth says:
    September 11, 2025

    This is a fantastic recipe! I typically don’t like pesto because the raw garlic is too harsh for me. Using roasted garlic in genius! I have a bumper crop of basil, so I’ve already made two batches – I froze one – we’ll see how that goes.

    Reply
  9. Lindsay Young says:
    September 7, 2025

    This is the best pesto recipe Iโ€™ve ever used. It is a little saltier and more garlicky than some other recipes, which I honestly prefer. I put this on everything but my favorite is to put it inside of a cheese omelette. I had harvested 3 basil plants taller than me at the end of summer and made about 30 jars of pesto with it using this recipe. I have gone through 6 jars so far! Absolutely love it!

    Reply
  10. Theresa Lacko says:
    September 6, 2025

    Sounds delicious. I make pesto every year with the basil I grow. Do you recommend toasting the pine nuts?

    Reply
    1. Michelle @ Sally's Baking says:
      September 6, 2025

      Hi Theresa, we usually don’t, but you certainly could!

      Reply
  11. Mrs.Francesca PumaMoore says:
    August 30, 2025

    I made this for me & my son. It came out better than I expected! I used the Ganiza immersion blender. So well mixed, smells great! Thank you for the extra tips!

    Reply
  12. Molly says:
    August 15, 2025

    Yummy. Made it 2x love this. Use with Salmon and tomato

    Reply
  13. Judy Edward says:
    August 6, 2025

    Sally, should the 2C of basil be packed into the cup, or more โ€˜fluffyโ€™ ?

    Reply
    1. Lexi @ Sally's Baking says:
      August 6, 2025

      Hi Judy, it shouldn’t be tightly packed (like brown sugar), but just lightly packed. Hope this helps!

      Reply
  14. Jim Reddin says:
    August 5, 2025

    I found a recipe book at the library and discovered that one can replace basil with other greens. My first experiment was using nettles. Pretty good as well have a lot of them growing in our woods (but be sure to wear long sleeve clothing and gloves). I experimented with several crops but the most interesting one was when I used beets, which I first roasted in the oven.
    I think it has become my favorite. Really nice flavor, even if it does look a bit like Pepto Bismo. I encourage folks to try it.

    Reply
  15. Barb says:
    August 2, 2025

    Delicious and easy! I added pasta and shrimp. Everyone loved it. Also added red pepper, olives and sun-dried tomatoes.

    Reply
  16. Janese Andrews says:
    July 28, 2025

    I canโ€™t find the amount for the ingredients????

    Reply
    1. Stephanie @ Sally's Baking says:
      July 29, 2025

      Hi Janese, You can scroll to the bottom of the page to see the full written recipe (with a gray background). Or to get there faster you can use the โ€œjump to recipeโ€ button at the top of the page.

      Reply
  17. Thaddeus says:
    July 26, 2025

    Recipe produces an overly salty pesto. I even backed off the parmesan cheese to only 3 tablespoons. Just a sprinkle of coarse sea salt So, in order to have the right pesto for dinner (it’s 10:30 am), a trip to the supermarket is required for the pine nuts. And there will be no parm in my next batch.

    Reply