Skip to main content

Spaghetti Pesto Pasta: A Simple Guide

| ~7 min read | Pasta Sauces

Sections
  1. What Pesto Actually Is
  2. How to Make Spaghetti Pesto Pasta
  3. Choosing Ingredients and Substitutions
  4. Common Problems and How to Fix Them
  5. Storage, Reheating, and Food Safety
  6. Variations Worth Trying
  7. Frequently Asked Questions

Spaghetti pesto pasta is a dish of long, thin spaghetti tossed with pesto, a cold uncooked sauce traditionally made from basil, pine nuts, garlic, Parmesan or Pecorino, and olive oil. It is one of the fastest pasta dinners there is: the sauce is made in a food processor or mortar while the water boils, and the whole dish comes together in the time it takes to cook the spaghetti to al dente.

What Pesto Actually Is

Pesto alla Genovese comes from Liguria, the coastal region of northwest Italy around Genoa. The classic ingredients are fresh basil (traditionally small-leafed Genovese basil), pine nuts, garlic, coarse salt, olive oil, and a hard aged cheese — Parmigiano-Reggiano, Pecorino, or a blend of both. The name comes from pestare, "to pound," because the sauce was traditionally crushed in a marble mortar with a wooden pestle rather than blended.

Pounding matters more than nostalgia suggests. A blade or processor blade cuts the basil, and cut basil oxidizes and bruises, which is why machine-made pesto often turns dark and tastes slightly bitter. A mortar crushes the leaves against the walls and releases oils more gently. That said, a food processor is what most home cooks use, and with a few tricks (cold ingredients, short pulses, adding the cheese at the end) it produces a very good sauce.

The core ratio is roughly: 2 packed cups of basil leaves, 1/3 cup pine nuts, 1 to 2 garlic cloves, 1/2 cup grated hard cheese, and 1/2 to 2/3 cup extra-virgin olive oil, plus salt. That makes enough for about 400 g (14 oz) of dried spaghetti, serving four.

How to Make Spaghetti Pesto Pasta

The method is short, but the order matters. Pesto is a raw sauce, so it never goes into a hot pan to cook — it is loosened with hot pasta water and tossed with drained pasta off the heat.

  1. Boil the water. Use a large pot with plenty of water — roughly 4 to 6 quarts (4 to 6 liters) for 400 g (14 oz) of spaghetti. Salt it with about 1 to 1 1/2 tablespoons of coarse salt once it boils. Pasta water should taste mildly seasoned, like the sea but not aggressively salty.
  2. Make the pesto. Toast the pine nuts in a dry pan over low heat until fragrant and lightly golden, then cool them. Pulse nuts and garlic in a processor until finely chopped, add basil and a pinch of salt, and pulse in short bursts, scraping down the sides. With the machine running, drizzle in the olive oil in a thin stream until the sauce is loose but still textured. Stir in the grated cheese by hand. Taste and adjust salt.
  3. Cook the spaghetti. Add it to the boiling water and stir immediately so strands don't stick. Check the package time, then start tasting 1 to 2 minutes before it ends. Al dente means tender with a slight firmness at the center — for dried spaghetti that is usually 8 to 10 minutes.
  4. Save pasta water. Before draining, scoop out about 1 cup (240 ml) of the starchy cooking water. This is the key to a sauce that clings rather than sits in a puddle.
  5. Toss off the heat. Drain the spaghetti (do not rinse it), return it to the warm pot with the burner off, add the pesto, and toss with a splash of pasta water. Add water a tablespoon at a time until the sauce coats every strand. Serve immediately with extra cheese.

Choosing Ingredients and Substitutions

Pesto is forgiving, and the version you make should reflect what you have. A few practical notes:

  • Basil: Sweet Italian basil is standard. If basil is expensive or out of season, a mix of basil and parsley, or blanched spinach added for body, works. Arugula pesto is sharper and peppery; kale pesto is earthier and needs a little more oil.
  • Nuts: Pine nuts are traditional and expensive. Walnuts, almonds, pistachios, or sunflower seeds (for a nut-free version) all substitute well. Toast any nut first for flavor.
  • Cheese: Parmesan is nutty and mild; Pecorino is saltier and sharper. If using Pecorino alone, cut back on added salt.
  • Oil: Use a good extra-virgin olive oil. It is the main body of the sauce, so a bland oil makes bland pesto.
  • Garlic: Raw garlic is potent. One small clove per batch is plenty for most palates; two if you like it assertive.

Jarred pesto is a legitimate shortcut, but check the label: many commercial versions contain more sunflower oil and cashew than basil, and some are quite sweet. Stir a spoonful of fresh lemon zest or extra grated cheese into jarred pesto to brighten it.

Common Problems and How to Fix Them

Most pesto pasta disappointments come down to a handful of avoidable mistakes.

  • Pesto turns brown. Cut basil oxidizes. Keep the processor bowl and blade cold, pulse briefly, and press plastic wrap directly onto the surface of stored pesto. A thin layer of olive oil on top also slows browning. Browning is cosmetic, not unsafe.
  • Sauce is oily and separates. The pasta was too dry or the pesto was too cold. Toss with hot pasta water off the heat and stir firmly; the starch and heat emulsify the oil.
  • Sauce tastes bitter. Over-processed basil, old nuts, or raw garlic that has been sitting. Use fresh nuts and pulse less.
  • Pasta is bland. Under-salted water. The pasta absorbs salt while cooking; it cannot be added later in the same way.
  • Sauce is gluey. Too much cheese or too little oil. Loosen with pasta water and a drizzle of oil.

Storage, Reheating, and Food Safety

Pesto keeps well in the refrigerator for about a week in a sealed container with a film of oil on top, and freezes for several months in ice-cube trays or small jars. Because pesto contains raw garlic and cheese, treat it as a perishable food and keep it cold.

Cooked pesto pasta leftovers should be refrigerated within 2 hours (1 hour if the room is above 90°F/32°C) and kept at 40°F (4°C) or below. Eat them within 3 to 4 days. Reheat in a covered pan or microwave with a splash of water to 165°F (74°C), stirring so it heats evenly. Pesto pasta is also good cold as a pasta salad, in which case keep it chilled until serving.

Pesto itself is not cooked, so anyone in a higher-risk group — pregnant people, young children, older adults, and anyone immunocompromised — should be aware that it contains raw garlic and raw cheese. Use pasteurized cheese if that is a concern. Never taste raw dough or raw flour, and do not leave pesto sitting at room temperature for long periods.

Variations Worth Trying

Pesto pasta adapts to add-ins easily. Cherry tomatoes halved and tossed in raw, blanched green beans and cubed potato (the classic Ligurian combination), grilled chicken, shrimp, or cannellini beans all work. For a creamier version, stir a spoonful of ricotta or a splash of cream into the pesto before tossing — but add it off the heat so it doesn't split. Pesto also dresses pasta salads, spreads on sandwiches, and thins with more oil into a dressing.

Frequently Asked Questions

Can I use spaghetti for pesto?

Yes. Spaghetti is a common and excellent choice because its surface holds the sauce well. Linguine, trenette, trofie, fusilli, and penne all work; short shapes with ridges trap pesto nicely.

Should I rinse spaghetti after cooking?

No. Rinsing washes away the surface starch that helps the pesto cling. Drain it and toss it immediately with the sauce.

Why does my pesto pasta taste dry?

Almost always a lack of pasta water. The starchy water thins the pesto and helps it emulsify into a coating. Add it a spoonful at a time while tossing off the heat.

Can I make pesto without pine nuts?

Yes. Walnuts, almonds, pistachios, and sunflower seeds are all good substitutes. Toast them first for the best flavor.

How long does pesto last in the fridge?

About a week in a sealed container with a layer of oil on top. Freeze it for longer storage, and use within 3 to 4 days once tossed with pasta.

Is pesto pasta healthy?

It contains olive oil, nuts, cheese, and basil, but it is also calorie-dense. Portion size and what you serve alongside it matter more than the sauce itself.

Similar articles