Dinners

How to Make Garlic Basil Pesto

Updated · By Stir & Share

Save

Garlic basil pesto is a vibrant, no-cook sauce made by blending fresh basil, garlic, pine nuts, Parmesan, and olive oil into a thick, spoonable paste. It suits quick weeknight pastas, sandwich spreads, or a spoonful stirred into soups. This method uses a food processor for a classic texture in about 10 minutes.

Before you start, gather your ingredients and equipment. You will need a food processor (or blender), a rubber spatula, and a jar or container for storing. The recipe below makes about 1 cup (240 ml) of pesto, enough for 4 servings of pasta.

Before You Start: What to Have Ready

  • 2 cups (40 g) fresh basil leaves, loosely packed (about 1 large bunch)
  • 1/2 cup (60 g) pine nuts (or walnuts for a less expensive, slightly bitter swap)
  • 1/2 cup (50 g) grated Parmesan cheese (freshly grated is best)
  • 2–3 cloves garlic, peeled (start with 2, add the third if you like it punchy)
  • 1/2 cup (120 ml) extra-virgin olive oil, plus more for storing
  • 1/4 teaspoon fine salt, plus more to taste
  • Optional: 1 tablespoon lemon juice to brighten and slow browning

Have a food processor with the standard metal blade attached. If using a blender, you will need to scrape down the sides more often. Toast the pine nuts in a dry skillet over medium heat for 2–3 minutes, shaking often, until fragrant and lightly golden. Let them cool completely before blending.

Step-by-Step: Blend the Pesto in 10 Minutes

  1. Place the basil leaves, pine nuts, Parmesan, garlic, and salt in the food processor bowl.
  2. Pulse 8–10 times, about 1 second each, until the mixture is coarsely chopped and looks like a rough paste.
  3. With the motor running, pour the olive oil through the feed tube in a steady stream. Process for 20–30 seconds, stopping once to scrape down the sides with a spatula, until the pesto is smooth but still has a little texture. You should see tiny flecks of basil, not a completely pureed liquid.
  4. Stop the processor and taste. Add more salt if needed, or the third garlic clove if you want more heat. If it seems too thick, add 1–2 teaspoons of water or more oil and pulse again.
  5. If using lemon juice, stir it in by hand after processing. This helps keep the basil bright green.
  6. Spoon the pesto into a clean jar or bowl. Press plastic wrap directly onto the surface to prevent browning, then cover with a lid.

Use immediately or refrigerate. Pesto keeps in the refrigerator for up to 4 days. For longer storage, freeze in an ice cube tray, then transfer the frozen cubes to a zip-top bag for up to 3 months.

Worked Example: Making a Single Serving

For one pasta portion, reduce the recipe to: 1/2 cup (10 g) basil, 2 tablespoons (15 g) pine nuts, 2 tablespoons (12 g) Parmesan, 1 small garlic clove, 2 tablespoons (30 ml) olive oil, and a pinch of salt. Blend in a small food processor or use a mortar and pestle. This makes about 1/4 cup (60 ml), enough to coat 2 ounces (57 g) of cooked pasta.

What Goes Wrong: Three Common Mistakes and Their Causes

Bitter or Sharp Pesto

Over-processing the basil releases bitter compounds from the leaves. Process only until just combined, not until smooth. Also, if you use old olive oil, it can taste rancid; use fresh, high-quality oil.

Watery or Thin Pesto

Adding too much oil or not draining washed basil properly causes a thin sauce. Dry the basil thoroughly after washing—spin in a salad spinner and pat with a towel. Start with less oil and add more only if needed.

Brown Pesto After a Few Hours

Basil oxidizes when exposed to air. Press plastic wrap directly onto the surface before refrigerating, or add a thin layer of olive oil on top. Lemon juice also slows browning. Never leave pesto at room temperature for more than 2 hours.

How to Use Garlic Basil Pesto

Stir 1/4 to 1/3 cup (60–80 ml) of pesto into 8 ounces (225 g) of hot, cooked pasta, adding a splash of pasta water to loosen. Spread it on sandwiches, swirl into tomato soup, or dollop onto grilled chicken. For a lighter sauce, mix pesto with an equal amount of plain yogurt or sour cream.

Pesto also works as a marinade for fish or vegetables. Brush it on salmon before baking at 375°F (190°C) for 12–15 minutes, until the fish flakes easily with a fork and reaches 145°F (63°C) as measured with a food thermometer.

Storing Pesto: Refrigerate or Freeze

Pesto contains raw garlic and basil in oil. It must be refrigerated and used within 4 days to prevent the risk of botulism. Never leave it at room temperature. To freeze, spoon pesto into ice cube trays, freeze until solid, then transfer cubes to a freezer bag. Frozen pesto keeps for up to 3 months. Thaw in the refrigerator overnight or add frozen cubes directly to hot pasta.

Swaps That Change the Flavor

Replace pine nuts with walnuts for a more assertive, slightly bitter taste. Use almonds for a sweeter, crunchier pesto. Substitute arugula for half the basil for a peppery kick. For a dairy-free version, omit the Parmesan and add 1 tablespoon nutritional yeast for a savory note. Each swap changes the texture and flavor, so adjust salt to taste.

Can You Make Pesto Without a Food Processor?

Yes. Use a mortar and pestle: pound the garlic and salt into a paste, then add the basil leaves and grind until they break down, then work in the pine nuts, cheese, and oil. This takes about 15 minutes and yields a coarser, more rustic texture. A blender works too, but you may need to add more oil and scrape down often.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).