Homemade basil pesto is a classic Italian recipe you can have as a sauce with pasta or as a spread in a sandwich, wrap, or pizza.

This recipe is based on the authentic Pesto alla Genovese recipe with fresh basil, pine nuts, parmesan cheese, and olive oil.

You can make it in 10 minutes in a food processor and keep it in the fridge or freezer for months, ready for your next meal.

basil pesto in a marble mortar with a spoon

Dietary Note: this basil pesto recipe is suitable for a gluten-free diet. Vegetarians and vegans might need to adapt the recipe using vegetarian or vegan cheese.

Don’t have time to read the full blog post? JUMP TO RECIPE HERE!

What is basil pesto?

Basil pesto in a stone bowl with a silver spoon

The name pesto comes from the Italian word “Pestare,” which means to pound.

That’s because pesto, in its traditional and authentic form, is made in a marble mortar, patiently pounding the ingredients with a wooden pestle until they turn into a beautifully creamy sauce.

Homemade basil pesto, sometimes called pesto alla Genovese, was first made in Genova, Liguria.

homemade trofie pasta with basil pesto

The most common way to serve it is with homemade trofie pasta, sometimes with added green beans and potatoes. But you can also use it in a delicious caprese sandwich.

Here, we reproduce the authentic Genovese recipe and make pesto with fresh basil leaves, pine nuts, garlic, extra virgin olive oil, parmesan, and pecorino.

Of course, you can make a pesto sauce with many other herbs and vegetables and make a delicious vegan pesto without cheese.

eggplant pizza with vegan pesto

We tried arugula pesto, sun-dried tomato pesto, kale pesto, artichoke pesto, parsley pesto, zucchini pesto, and red pepper pesto sauce.

They are all easy-to-make, meal-prep-friendly recipes for pasta, pizza, bread, focaccia sandwiches, roasted and grilled vegetables, and salads.

pesto pasta salad

The classic basil pesto recipe uses cheese like parmigiano reggiano and pecorino to add flavor and texture. Substitutions are listed below.

If you are vegan, we have developed a delicious vegan pesto recipe for you.

Ingredients and substitutions for basil pesto

ingredients for pesto

Quantities are in the recipe box at the bottom of the page.

Basil

Try to get the freshest Italian basil to make the best pesto sauce.

You can substitute other herbs to make a different type of pesto, but in this case, please refer to our other pesto recipes, as the ratios of ingredients might change.

Parmesan cheese

Ideally, parmigiano reggiano DOP or grana padano DOP should be used to make an authentic basil pesto recipe.

If you can’t access those, substitute them with regular parmesan cheese.

For vegans, please refer to our vegan basil pesto recipe, in which we use nuts and nutritional yeast to recreate the parmesan texture and flavor.

Pecorino cheese

Pecorino is a bold, savory Italian sheep’s cheese. In the traditional recipe for pesto, pecorino fiore sardo is recommended.

Substitute more common pecorino romano for pecorino fiore sardo.

If you don’t have pecorino, then add more parmesan cheese.

Pine nuts

Pine nuts are the only nuts used in basil pesto, and we recommend using them for this recipe.

The pine nuts should be raw, not toasted.

Substitute macadamia nuts, almonds, cashews, or walnuts for pinenuts.

Garlic

Fresh garlic cloves. Italians often make pesto without garlic as they are highly concerned about their breath at work.

So, if you prefer, you can make pesto without garlic.

Extra virgin olive oil

Extra virgin olive oil is an essential ingredient in basil pesto, and its quality will affect the flavor of your pesto sauce.

Salt

We recommend using sea salt. Start with a pinch, taste, and add more if necessary.

Note: Classic pesto does not contain lemon juice, black pepper, or red pepper flakes. However, you can definitely add lemon juice if you like more acidity in your homemade pesto sauce.

pesto pasta with green beans

How to make basil pesto

US cups + grams measurements in the recipe box at the bottom of the page.

If your basil has not been washed, rinse it with cold water and gently pat it dry with a clean kitchen cloth.

Add grated parmesan cheese, grated pecorino cheese, chopped garlic, fresh basil leaves, raw pine nuts, sea salt, and extra virgin olive oil to a blender or food processor.

cheese and fresh basil leaves in a food processor

Pulse a few times until creamy but with a coarse texture. You might have to scrape down the sides of the food processor once or twice.

Tip: Avoid continuously blending, as this will heat the basil and olive oil and deteriorate the pesto’s color and flavor.

basil pesto after blending in a food processor

Taste and adjust for salt. Add more olive oil for a thinner pesto.

Basil pesto in a stone bowl with a silver spoon

How to eat pesto with pasta?

The most common and traditional way of eating basil pesto is as a pasta sauce. Making pesto pasta is easy, but there are a couple of things to keep in mind:

Tip 1: Avoid direct heat

Pesto doesn’t like direct heat, so avoid heating it up on a pan. Direct heat damages the basil and negatively affects its color and aroma. It’s best to add the pesto to a mixing bowl and dilute it with hot pasta cooking water.

pesto with pasta water

Tip 2: Cook the pasta al dente.

Al-dente means with a bite, not overcooked. Taste the pasta one minute before the time written on the package.

Then, instead of draining the pasta in a sift, fish it out of the pot with a slotted spoon or spider, add it to the bowl with the pesto, and toss.

This way, you’ll have reserved pasta water to add to the pasta if needed.

cavatelli pasta with green pesto

Tip 3: Cook the pasta in plenty of salted boiling water. Here’s a quick summary:

  • 8 ounces of pasta (230 grams): cook pasta in 2 quarts of boiling water (8 cups or 2 Liters) with 1 tablespoon of salt (15 grams). Serves 2 – 3 people.
  • 12 ounces of pasta (340 grams): cook pasta in 3 quarts of boiling water (12 cups or 3 Liters) with 1 ½ tablespoons of salt (21 grams). Serves 4 people.
  • 1 pound of pasta (450 grams): cook pasta in 1 gallon of boiling water (16 cups or 4 Liters) with 2 tablespoons of salt (30 grams). Serves 5-6 people.

Serving suggestions

This basil pesto recipe is a versatile sauce. Most commonly, it is served with pasta. We recommend:

Basil pesto with homemade cavatelli pasta

You can also use pesto for sandwiches, wraps, pasta salads and bowls, and with vegetables.

Variations

Vegan pesto

Basil Pesto with hands and basil leaves

Vegan pesto is a delicious dairy-free alternative to traditional pesto. You’ll need to substitute nutritional yeast and almonds, macadamia, or walnuts for the cheeses to make it.

Here’s our vegan pesto recipe if you are interested.

Nut-Free Pesto

eggplant pizza with vegan pesto

Nut-free pesto is very easy to make. Substitute sunflower seeds for pine nuts, and you’re good to go!

Storage & Make ahead

Make ahead: This basil pesto recipe is excellent for meal prep. It keeps well for days in the fridge and months in the freezer. We recommend freezing it right after it’s made.

Refrigerator: Transfer the pesto to a small airtight glass jar and cover it with a thin layer of extra virgin olive oil. Close the jar and keep in the fridge for 3 to 5 days.

Freezer: Freezing pesto is the best method for preserving its freshness. To do so, transfer the pesto to small airtight jars or clean ice-cube trays and freeze for three months.

Thaw: Defrost pesto at room temperature for 10 to 15 minutes. Avoid direct heat.

storage of basil pesto

More Pesto recipes

Basil pesto in a marble mortar

Basil Pesto

5 from 2 votes
Homemade basil pesto is a classic Italian recipe you can have as a sauce with pasta or as a spread in a sandwich, wrap, or pizza.
You can make it in 10 minutes in a food processor and keep it in the fridge or freezer for months, ready for your next meal.
Prep Time: 10 minutes
Cook Time: 0 minutes
Total Time: 10 minutes
Servings: 6 people
Course: Dressing & Sauces
Cuisine: Italian

Equipment

  • Food processor or blender

Ingredients 

  • ¼ cup extra virgin olive oil or more for a thinner pesto
  • 2 packed cups fresh basil leaves
  • ½ cup Parmigiano Reggiano grated
  • ¼ cup Pecorino Romano grated / substitute more parmesan
  • 3 tablespoons pine nuts
  • ½ teaspoon sea salt or more to taste
  • 1 small garlic clove

Instructions 

  • If your basil has not been washed, rinse it with cold water and gently pat it dry with a clean kitchen cloth.
    To a food processor, add: ¼ cup extra virgin olive oil, 2 packed cups fresh basil leaves, ½ cup Parmigiano Reggiano, ¼ cup Pecorino Romano, 3 tablespoons pine nuts, ½ teaspoon sea salt, and 1 small garlic clove (chopped).
    cheese and fresh basil leaves in a food processor
  • Pulse a few times until creamy but with a coarse texture. You might have to scrape down the sides of the food processor once or twice.
    basil pesto after blending in a food processor
  • Taste and adjust for salt. Add more olive oil for a thinner pesto.
    Basil pesto with a silver spoon

MAKE IT A MEAL

  • Toss with your favorite pasta, or have it as a spread in a sandwich, on pizza, roasted veggies, or stuffed veggies.
    For more ideas, check out our "Serving suggestions" chapter linked in the notes below.
    Basil pesto with homemade cavatelli pasta

Notes

Nutrition information is an estimate for 1 serving of basil pesto out of 6 servings.
STORAGE & MAKE AHEAD
Make ahead: This basil pesto recipe is excellent for meal prep. It keeps well for days in the fridge and months in the freezer. We recommend freezing it right after it’s made.
Refrigerator: Transfer the pesto to a small airtight glass jar and cover it with a thin layer of extra virgin olive oil. Close the jar and keep in the fridge for 3 to 5 days.
Freezer: Freezing pesto is the best method for preserving its freshness. To do so, transfer the pesto to small airtight jars or clean ice-cube trays and freeze for three months.
Thaw: Defrost pesto at room temperature for 10 to 15 minutes. Avoid direct heat.
ALSO ON THIS PAGE

Nutrition

Calories: 171kcal, Carbohydrates: 1g, Protein: 5g, Fat: 17g, Saturated Fat: 4g, Polyunsaturated Fat: 3g, Monounsaturated Fat: 9g, Trans Fat: 0g, Cholesterol: 9mg, Sodium: 368mg, Potassium: 72mg, Dietary Fiber: 0.4g, Sugar: 0.3g, Vitamin A: 608IU, Vitamin B6: 0.04mg, Vitamin C: 2mg, Vitamin E: 2mg, Vitamin K: 50µg, Calcium: 154mg, Folate: 9µg, Iron: 1mg, Manganese: 1mg, Magnesium: 24mg, Zinc: 1mg
Tried this recipe?Leave a comment below or mention @nicoandlouise on Instagram. We are also on Facebook, Pinterest, YouTube, and TikTok.

If you liked this basil pesto, you might also enjoy:


Nico and Louise in front of the Consolazione church in Todi

Hi! We are Nico & Louise

Welcome to The Plant-Based School, a food blog with vegetarian and vegan recipes.

5 from 2 votes (2 ratings without comment)

Leave a comment

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

Recipe Rating