Homemade Basil Pesto

Géraldine Leverd
By Géraldine Leverd
•
September 4, 2026
Homemade Basil Pesto

If there’s one recipe I now always make from scratch, it’s basil pesto. It’s the classic version— pesto alla genovese, which originated in Genoa, Liguria in Italy with simply basil, pine nuts, garlic, Parmesan, and olive oil. It takes just 5 minutes, and the result so much better from store-bought jars.

I often make a large batch of this homemade basil pesto because it keeps for a good week. And then I serve it with pasta, salads, or even in sandwiches. You’ll see—this recipe is really easy; all you need are the ingredients and a food processor!

A white ramekin filled with green pesto sits on a wooden board, surrounded by fresh basil leaves and a spoon topped with pesto.

Homemade Basil Pesto Recipe

Homemade Basil Pesto

0.00
My recipe for homemade basil pesto—ready in 5 minutes and so much better than any store-bought version.
Un petit ramequin blanc rempli de pesto vert trône sur une planche en bois, entouré de feuilles de basilic frais et de pignons de pin.
Prep Time 5 minutes
Servings 6

Kitchen equipment

  • 1 food processor or 1 immersion blender

Ingredients 

  • 75 g fresh basil leaves
  • 50 g pine nuts
  • 50 g Parmesan cheese grated
  • 2 cloves garlic
  • 80 ml extra virgin olive oil
  • 1 tbsp lemon juice
  • Salt

Instructions 

  1. Remove the basil leaves from the stems.
  2. Toast the pine nuts in a dry skillet over medium heat for 2 to 3 minutes, stirring constantly, until they are golden brown. Remove them immediately and let them cool.
  3. Place the basil leaves, Parmesan, pine nuts, garlic cloves, lemon juice, and a pinch of salt in the bowl of your food processor or in a large bowl.
  4. Pulse the blender several times until the ingredients are chopped.
  5. With the food processor or immersion blender running, add the olive oil in a steady stream until you have a smooth pesto.
  6. Taste and adjust the seasoning before transferring.

Notes

  • Let the pine nuts cool before blending them; otherwise, they’ll slightly cook the basil and dull its color.
  • Pour a thin layer of olive oil over the pesto in the jar before closing it: it will stay green longer and keep for a week in the refrigerator.
  • Pesto freezes very well in portions in an ice cube tray for up to three months. For a vegan version, replace the Parmesan with a little malted yeast.

Nutrition facts

Calories: 286kcal | Carbohydrates: 3g | Protein: 5g | Fat: 30g | Saturated Fat: 4g | Polyunsaturated Fat: 6g | Monounsaturated Fat: 17g | Cholesterol: 5mg | Sodium: 121mg | Potassium: 126mg | Fiber: 1g | Sugar: 1g | Vitamin A: 696IU | Vitamin C: 5mg | Calcium: 113mg | Iron: 1mg

Ingredients for Homemade Basil Pesto

You only need 5 ingredients to make authentic Italian pesto, so the quality of each one really comes through in the jar. Here are my tips for choosing them wisely:

  • Basil: This is the key ingredient. Choose nice, bright green leaves without any black spots, and use only the leaves—not the stems, since they make the pesto bitter.
  • Pine nuts: These are what give pesto its creamy texture and nutty flavor. Toast them dry—I’ll explain how to do that below.
  • Parmesan: It adds a salty, creamy flavor. Sometimes I substitute it with Pecorino Romano, which has a slightly stronger flavor.
  • Garlic: For a mild pesto, use fresh garlic. Personally, I only use one clove (or none at all on days when I don’t want to eat garlic), but you can use more if you like it that way.
  • Olive oil: Use a good-quality olive oil here, as it adds flavor to the pesto.
  • Lemon juice: I recommend using fresh lemon juice—never bottled. This helps prevent oxidation and keeps your pesto nice and green.
  • Salt and pepper

How to Make Pesto (Step by Step)

I know, the classic method is to use a mortar and pestle. But I find that the result is just as good when using a food processor, and it’s so much quicker:

  1. Pick the basil leaves, keeping only the leaves.
  2. (Optional) Toast the pine nuts in a dry skillet over medium heat for two to three minutes, stirring constantly. Be careful—they burn quickly, so stay close to the stove.
  3. Place the basil, Parmesan, cooled pine nuts, garlic, lemon juice, and a pinch of salt in the food processor bowl.
  4. Pulse several times until everything is chopped.
  5. Then, slowly drizzle in the olive oil while the food processor is running, until you have a smooth pesto.
  6. Taste it and adjust the seasoning before transferring it to a clean jar.
A bowl of green pesto resting on a wooden cutting board, surrounded by basil leaves, pine nuts, and a spoonful of pesto.

Should You Toast the Pine Nuts?

Technically, no, you can add the pine nuts without roasting them before. But I, personally recommend toasting them first, because this brings out their essential oils and gives them a more pronounced nutty flavor.

The only thing is, you have to let them cool before blending them; otherwise, the basil might cook slightly when it comes into contact with the other ingredients, and your pesto will lose its vibrant color.

How to Store Homemade Pesto

The great thing about homemade pesto is that it keeps really well. Here’s how you can store it:

  • In the refrigerator, one week. In a jar, add a thin layer of olive oil on top, then close the jar with a lid. The oil seals the pesto off from the air and prevents it from oxidizing and losing its color.
  • In the freezer, three months. Freeze it in portions in an ice cube tray, then transfer the cubes to a freezer bag. That way, you can take out just what you need, and a cube will melt in a few minutes in a skillet with a little pasta cooking water.

My advice: Use a small jar—not too big. It’s better to have a small jar that’s full than a large one that’s half-empty, because the less air there is on top, the less oxidation will occur.

How to Use Homemade Pesto

At my house, this homemade basil pesto never lasts long—and not just on pasta, because you can serve it with just about anything.

FAQ About Homemade Pesto

Can you substitute another herb for basil in pesto?

Yes, you can replace all or part of it with parsley, cilantro, or even arugula. If you want to try something else, I also have a tarragon pesto and a kale pesto on my blog.

How do you make vegan pesto?

Just leave out the Parmesan and replace it with a little malted yeast.

Can you freeze homemade pesto?

Yes, and that’s what I do when I make a large batch. Freeze your pesto in an ice cube tray for 2 to 4 hours, then transfer the cubes to a freezer bag. They’ll keep for three months.

How long does pesto last in the refrigerator?

About a week in a sealed jar, with a layer of olive oil on top.

What can I use instead of pine nuts in pesto?

It’s true that pine nuts can sometimes be pretty expensive. You can substitute them with almonds, cashews, or even pistachios. Check out my recipe for homemade almond pesto and my pistachio pesto on the blog. Cashews work well, too, and make for a very mild pesto.

More Pesto Recipes to Try

My other pestos, from the most classic to the most unexpected:

And here are the recipes in which I use it:

author
About me

Hi, I’m Géraldine!

I’m the face and the recipe developper behind La Cuisine de Géraldine. Cooking has been my biggest passion since childhood, and now that I’m living abroad, I’ve made it my mission to prove to you that French cuisine can be simple, healthy, quick, and modern all at once!

Read more

Leave a Reply