Easy Appetizers

Simple appetizers, snacks and home cooking answers

Spaghetti With Basil Pesto Sauce Recipe (20 Minutes)

· 4 min read · Mains

In this article
  1. What Pesto Tastes Like
  2. Ingredients
  3. Instructions
  4. Doneness Cues for the Pasta and Sauce
  5. Where Pesto Goes Wrong
  6. Leftover Pesto and Storage
  7. Serving and Easy Variations

Time: 20 min · Serves: 4 · The key step: toss the pesto off the heat with hot pasta water so it coats instead of breaking. Spaghetti with basil pesto is a bright, garlicky weeknight dinner built from fresh basil, olive oil, Parmesan, and pine nuts pounded into a paste, then swirled through hot pasta. The sauce is uncooked, so the whole dish comes together in about the time it takes to boil water.

What Pesto Tastes Like

Classic pesto is a raw sauce: basil leaves, garlic, pine nuts, Parmesan, salt, and olive oil blended until smooth. It tastes grassy and herbal, rich from the oil and cheese, with a peppery bite from raw garlic. Because it never cooks, the basil stays green and fresh-tasting, which is exactly why it suits a fast spaghetti dinner, a warm-weather lunch, or a potluck dish served at room temperature within two hours.

Serves 4 · Prep 10 min · Cook 10 min · Total 20 min

Ingredients

  • 12 oz (340 g) dried spaghetti
  • 2 cups (about 50 g) fresh basil leaves, packed
  • 2 medium garlic cloves, peeled
  • 3 tbsp (about 25 g) pine nuts
  • 1/2 cup (50 g) grated Parmesan cheese
  • 1/2 cup (120 ml) extra-virgin olive oil
  • 1/2 tsp salt, plus more for the pasta water
  • 1/4 tsp black pepper
  • About 1/2 cup (120 ml) reserved pasta cooking water

Swaps: walnuts replace pine nuts one-to-one and make the sauce slightly more bitter; toasted almonds work too but give a coarser texture. Grana Padano or Pecorino Romano stand in for Parmesan, with Pecorino adding a sharper, saltier edge. For a dairy-free version, use 3 tbsp nutritional yeast instead of the cheese and check the label if allergies are a concern.

Instructions

  1. Bring a large pot of water (about 4 quarts / 3.8 liters) to a rolling boil and add 1 tbsp salt.
  2. While the water heats, make the pesto: in a food processor or blender, combine the basil, garlic, pine nuts, Parmesan, salt, and pepper. Pulse until roughly chopped, about 10-15 seconds.
  3. With the machine running, slowly pour in the olive oil and blend until smooth, about 20-30 seconds, scraping down the sides once. Set aside; do not cook the pesto.
  4. Cook the spaghetti in the boiling water according to the package time, typically 9-11 minutes, until al dente (tender but with a slight bite when tasted).
  5. Just before draining, scoop out about 1/2 cup (120 ml) of the starchy pasta water.
  6. Drain the spaghetti and return it to the pot off the heat. Add the pesto and about 1/4 cup (60 ml) of the pasta water, then toss vigorously with tongs for 30-60 seconds, adding more water a splash at a time until every strand is coated in a glossy sauce.
  7. Taste and adjust the salt, then serve immediately, topped with extra Parmesan and a few whole basil leaves if you like.

Doneness Cues for the Pasta and Sauce

The spaghetti is done at 9-11 minutes when it bends without snapping and still has a firm center when bitten; start checking 2 minutes before the package time. The sauce is right when it looks glossy and clings to the strands rather than pooling at the bottom of the bowl. If it looks dry or pastey, it needs more pasta water, not more oil.

Where Pesto Goes Wrong

Adding pesto over direct heat: high heat turns the basil dark and dull-tasting and can make the cheese clump. Always toss it with the pasta off the burner, using the pasta's own heat to warm it through.

Skip the pasta water: plain pesto on plain noodles is thick and greasy. The starchy water emulsifies the oil into a silky sauce, so reserve it before draining.

Over-blending: running the processor too long heats the basil and bruises it, turning the sauce olive-brown and slightly bitter. Pulse in short bursts and stop as soon as the texture is smooth.

Leftover Pesto and Storage

Refrigerate leftover spaghetti with pesto within 2 hours; it keeps 3-4 days in the fridge in a sealed container. Reheat on the stove or in the microwave until steaming hot, adding a splash of water to loosen the sauce. Extra pesto sauce keeps about 4 days refrigerated because it contains garlic in oil, which carries a botulism risk if kept longer or at room temperature. For longer keeping, freeze pesto in small portions for up to 3 months and thaw overnight in the fridge.

Serving and Easy Variations

Stir in halved cherry tomatoes, blanched green beans, or shredded rotisserie chicken (add it already cooked and reheat the dish to 165°F / 74°C, the USDA FSIS safe minimum for leftovers). Lemon zest brightens the sauce, and a pinch of red pepper flakes balances the richness. Pesto also works with linguine, trofie, or short shapes that hold sauce in their curves.