Homemade Pesto

4.89 from 27 votes
↓ Jump to Recipe 22

This post may contain affiliate links | disclosure policy

Learn how to make pesto for use as a sauce, spread, or dip. This Italian condiment adds a burst of fresh flavor to any dish! I’ve laid out some helpful tips to elevate the taste of a traditional pesto sauce.

Bowl of homemade pesto with toasted pine nuts on top.

Jessica’s Recipe Science

  • Pounding basil and parsley before blending ruptures their cell walls, releasing aromatic oils that intensify flavor.
  • Adding a few tablespoons of Italian Parsley to the pesto helps keep the sauce bright green and helps with structure.
  • Toasting whole garlic cloves softens harsh sulfur compounds, encouraging natural sugars to develop for a mellow, sweet taste.

Why It Works

Making homemade pesto sauce from scratch elevates everyday meals. This classic Italian condiment is traditionally made with fresh basil, grated Pecorino Romano cheese, pine nuts, garlic, and high-quality olive oil. While there are plenty of ways to customize the ingredients, it’s important to first master the traditional method to build a balanced, flavorful foundation.

Pesto may seem simple, as blending everything together, but technique matters. The way you combine the ingredients affects the texture, aroma, and overall flavor. A few key steps, like properly incorporating the oil and balancing the salt and acidity, help create a smooth, vibrant sauce with depth. Once you understand the basics, you can confidently experiment with delicious variations.

Ingredients You’ll Need

Pesto recipe ingredients laid out on a table.
  • Basil – Fresh basil leaves are the primary herb of choice for their robust, aromatic notes and an anise flavor. If you enjoy this herb, you’ll love mybasil pesto recipe.
  • Parsley – Adding parsley to pesto balances basil’s intense sweetness and peppery notes with a fresh, clean flavor that makes the sauce taste brighter and more vibrant. It also helps maintain a vivid green color and adds a bit more structure to the texture.
  • Garlic – Adding pungency to the mix, it brightens the flavor and adds dimension. Although the sharp bite from the sulfurous compounds may be too intense at times. Toasting whole garlic cloves in the pan can help tame the harshness and the dreaded garlic breath. Use 1 to 2 garlic cloves if keeping raw, 3 if toasting.
  • Nuts – Pine nuts are the traditional and most expensive choice. Other nut options are walnuts, pecans, and almonds. Sunflower seeds are an excellent nut-free option. The nuts add a little creaminess and interesting texture to the pesto.
  • Cheese – Freshly grated Pecorino Romano, which is a raw sheep’s milk cheese, adds a pungent and savory flavor, while Parmesan cheese from cow’s milk adds a smoother and nuttier flavor.
  • Oil – Extra-virgin olive oil adds richness and a slightly bitter flavor. Milder types of cooking oils, such as light olive oil, grape seed oil, or avocado oil, are also good choices.

See the recipe card below for all ingredients and measurements (US and metric).

Ingredient Substitutions

This pesto sauce recipe is easy to customize! Try these delicious options:

  • Herbs and Greens: Try other greens like spinach, arugula, kale, mint, or cilantro. If not using 100% basil, I like to make sure at least 50% of the mix is basil and substitute the remainder with the other greens.
  • Nut Swaps: Walnuts, almonds, pecans, or pistachios all add their own subtle flavor variations, from earthy to buttery-sweet, while maintaining a creamy texture.
  • Nut-free Pesto: Sunflower seeds, hemp seeds, or pumpkin seeds are excellent nut-free alternatives.
  • Cheese Options: Parmesan, Parmigiano Reggiano, Asiago, or Grana Padano offer similar salty, nutty depth with slight differences in sharpness. Nutritional yeast is a good dairy-free option, adding savory, umami flavor without cheese.
  • Oil Substitutes: Avocado oil or grapeseed oil provides a more neutral flavor while keeping the texture smooth.
  • Flavoring: Add red pepper flakes for a spicy kick! Lemon juice adds a tangy brightness to the sauce. Add sun-dried tomatoes for sweetness.

How to Make Pesto Sauce

Wooden rolling pin sitting on top of a plastic bag of basil leaves.

Step 1: Bruise the Herbs

Classic pesto in Italy is traditionally made with a large mortar and pestle. Pounding the basil ruptures the plant’s cell walls, releasing essential oils like eugenol and linalool that carry its signature sweet, peppery aroma. Because much of what we perceive as flavor comes from smell, breaking down the leaves mechanically intensifies the overall taste experience.

To mimic this effect at home, add the basil and parsley to a large resealable plastic bag and gently pound with a rolling pin to bruise the leaves before adding them to the food processor. This extra step boosts aroma and creates a more vibrant, flavorful pesto.

Quick Substitution: This bruising technique can be replaced with faster tools like a food processor or blender. The taste is still acceptable and saves time.

Three garlic cloves being heated on a pan.

Step 2: Toast the Garlic

Toasting cloves of garlic has been the ultimate game-changer! Spending less than 10 minutes to toast whole in their peel until brown spots appear on the surface does two things: tames the pungency and bitterness, while bringing out the sweetness. It tastes like roasted garlic, making the pesto less aggressive.

Stainless steel pan with pine nuts that have toasted surfaces.

Step 3: Toast the Nuts

Since you already have the pan out, toast the pine nuts too! The oils in the nuts start to warm, with the aromas becoming more fragrant and strong, which transfers right to the sauce.

Garlic, pine nuts, and basil leaves inside a food processor.

Step 4: Process the Ingredients

Add the basil, parsley, toasted garlic, pine nuts, and salt to a food processor and pulse briefly to break down the leaves. This ruptures the plant cell walls and releases aromatic oils without over-oxidizing them. Scraping down the sides ensures even particle size for balanced flavor in every bite.

Jessica pouring olive oil into a food processor.

Step 5: Add the Olive Oil

With the food processor running, slowly drizzle in the olive oil to create a stable emulsion. This allows the fat to coat the herb particles and carry fat-soluble flavor compounds.

Grated cheese added to a food processor filled with pesto.
Food processor with homemade pesto.

Step 6: Add the Cheese

Add the Pecorino Romano cheese and pulse just until combined, so its proteins and salt enhance the sauce’s savoriness without making it pasty. Keep the texture slightly chunky for better mouthfeel and flavor release, then taste and adjust seasoning to fine-tune salt perception and overall balance.

Plate of spaghetti with homemade pesto.

Step 7: To Serve

Once you’ve made pesto sauce, add it to pasta, pizza, sandwiches, a dip for crisp vegetables, hummus, soup, grilled chicken, or fish. My favorite way to use pesto is on top of my soft scrambled eggs in the morning, or I grill a juicy steak and add a spoonful on top.

Make-Ahead Tips: Cover the pesto surface well to reduce exposure to oxygen and prevent browning. Place in an air-tight container in the refrigerator for up to 5 days. You can even freeze the pesto in ice cube trays, defrost it, and use it anytime.

Frequently Asked Questions

How do you properly store basil?

Fresh basil leaves are delicate and quite a treat to have on hand. To properly store them and extend the shelf life, do not rinse first! Simply wrap the leaves in a damp paper towel, place them in a plastic bag, and do not seal the bag. The damp towel keeps them fresh without too much condensation, which could otherwise cause leaf darkening. This should keep them fresh for 3 to 7 days.

What are the ingredients in pesto sauce?

Pesto sauce is traditionally made with fresh herbs, garlic, nuts, olive oil, and cheese. My base ratio is 2 cups herbs or greens (like basil, parsley, arugula, or spinach), 2 to 3 garlic cloves, ¼ cup nuts (such as pine nuts, walnuts, or almonds), ½ cup oil (typically extra-virgin olive oil), and ¼ cup grated cheese (like Parmesan or Pecorino Romano), which you can easily customize while keeping the same proportions and adjusting to taste.

Should I blanch the basil before making pesto sauce?

A great debate is whether basil should be blanched and shocked in cold water before processing. The reason to do this is that as soon as basil is cut, the leaves release an enzyme that turns the pesto dark within minutes. To keep bright green, inactivate the enzymes by heating in hot water for 20 seconds, then plunge into ice water to stop the cooking process and help prevent darkening. However, I find that you lose some of those wonderful fresh aromatics. If you’re going to consume the pesto right away and aren’t worried about appearance, you can skip blanching.

Serve This With

If you enjoyed learning how to make Homemade Pesto, please leave a 🌟 star rating and let me know how it went in the 📝 comments below!

Homemade Pesto

Learn how to make pesto for use as a sauce or dip. This Italian condiment adds a burst of fresh flavor to any dish!
4.89 from 27 votes
Prep Time10 minutes
Cook Time12 minutes
Total Time22 minutes
Servings 8 Servings
Course Condiment
Cuisine Italian

Ingredients 
 

  • 2 cups basil leaves, packed
  • 2 tablespoons Italian parsley leaves
  • 3 cloves garlic, unpeeled
  • ¼ cup pine nuts, raw
  • ½ teaspoon kosher salt
  • ½ cup extra-virgin olive oil
  • ¼ cup grated pecorino romano cheese
  • black pepper, as needed for seasoning

Instructions 

  • Bruise the Herbs – Place the basil and parsley in a resealable plastic bag. Use a rolling pin or a meat cleaver to lightly bruise the herbs. Transfer to a food processor or blender.
  • Toast the Garlic – Heat a skillet over medium heat. Toast garlic until the outsides are lightly browned, shaking the pan occasionally, about 8 minutes. Peel the garlic and add it to a food processor.
  • Toast the Nuts – Place pine nuts in the same pan and toast over medium heat, shaking the pan occasionally, 3 to 4 minutes. Transfer to the food processor.
  • Process the Ingredients – Add ½ teaspoon salt to the food processor. Process by pulsing five times to help break down the basil and garlic.
  • Add the Olive Oil – Turn the food processor to low speed, as it's running slowly, drizzle in ½ cup olive oil until a smooth pesto with some small pieces forms, about 10 seconds from start to finish.
  • Add the Cheese – Add the Pecorino Romano cheese and process on low speed for 5 seconds. Taste and season with salt and pepper as desired.
  • To Serve – Transfer the pesto to a small bowl and serve immediately, or cover tightly and refrigerate until ready to serve.

Recipe Video

YouTube video

Notes

  • Recipe Yield: ½ cup
  • Serving Size: 1 tablespoon
  • Storing: Transfer the pesto to an airtight container. Press a piece of plastic wrap directly onto the surface to prevent exposure to air, then cover and refrigerate for up to 5 days.
  • Using Pesto for Pasta: Mix in 3 to 4 tablespoons of the starchy hot pasta water to thin out the sauce.

Nutrition Facts

Serves: 8 Servings
Calories 140kcal (7%)Carbohydrates 2g (1%)Protein 1g (2%)Fat 15g (23%)Saturated Fat 2g (10%)Polyunsaturated Fat 1gMonounsaturated Fat 9gCholesterol 1mgSodium 86mg (4%)Potassium 6mgFiber 1g (4%)Sugar 0.1gVitamin C 0.8mg (1%)Calcium 10mg (1%)Iron 0.2mg (1%)

Percent Daily Values are based on a 2000-calorie diet. All nutritional information is based on estimated third-party calculations. Each recipe and nutritional value will vary depending on the brands you use, measuring methods, and portion sizes per household.

Tried this recipe?

Tag me on Instagram. I'd love to see how it turns out!

Tag @jessica_gavin

Jessica Gavin

I'm a culinary school graduate, cookbook author, and a mom who loves croissants! My passion is creating recipes and sharing the science behind cooking to help you gain confidence in the kitchen.

Quick & Easy Meals in Under 30 Minutes!
Get 25 simple meals your whole family will love.
Jessica Gavin standing in the kitchen

You May Also Like

Reader Interactions

4.89 from 27 votes (19 ratings without comment)

Leave a Comment

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

Recipe Rating




22 Comments Leave a comment or review

  1. Russell Martino says

    Thank you Jessica. I have 6 grown Basil leave bushes…my Sept.
    garden. Will be making your recipe & freezing in ice cube trays.
    My favorite is Pesto w/Fettucini, Linguine.

    • Jessica Gavin says

      Wow, you’re so lucky to have so much basil! I love that you will freeze the pesto and use it with your favorite pasta.

  2. David G Michael says

    Can I place it in small canni g jars and pressure seal them as i do other canning each year?

    • Jessica Gavin says

      Hi David- I haven’t tried canning the pesto sauce. The herbs will darken in color when cooked. However, if you do try it, I would love to hear your feedback!

  3. Bee says

    I love making and eating pesto. I use it in so many different dishes and I love the vibrant color and fresh taste. Now I’m craving pesto!

  4. Vidya says

    Wonderful recipe Jessica. Going to try it with almonds as I do not have pine nuts at home. I may skip cheese in the sauce and add to the pasta directly? Is that OK? Would it affect too much?
    I have mozzarella and some pasta cheese at home which is not the ingredient you mentioned hence worried to add to the sauce.
    Would it be OK?
    Thank you for sharing a clear and well explained receipe.

  5. Sue says

    When storing the pesto, do you put it in the refrigerator or in a cool place? I grew up eating pesto, but could never make it to taste that good. Your trick about bruising the leaves makes sense. Can’t wait to make it! Thank you!!

    • Jessica Gavin says

      Hi Sue- Great question! Because pesto has fragile herbs and cheese, I always store in the refrigerator. I can’t wait to hear what you think about the bruising technique 🙂

      • Sue says

        The bruising went great! Made a big difference.

        I meant the basil: how do you store it if you can’t process it right away?

        • Jessica Gavin says

          Hi Sue! To store basil leaves I would do the following: Do not rinse first! Simply wrap the leaves in a damp paper towel, place them in a plastic bag and do not seal. The damp towel keeps them fresh without too much condensation which could cause darkening of the leaves. This should keep them fresh for 3 to 7 days.

          • Cilla Wilson says

            For what? They’re two different things. Guacamole is made from avocados, a fat veggie. Pesto is made from basil, an herb.

  6. Simone says

    Hi Jessica, please note that your first instruction mentions spinach whereas your ingredient list mentions parsley. Just FYI :O) Will be trying this recipe soon and thanks for all your efforts with the posts. You have taught me some great new recipes!

    • Jessica Gavin says

      Thank you for catching that error Simone! I’ve updated the recipe to reflect parsley instead of spinach. Much appreciated!