Pesto Pasta Recipe: Classic Basil Pesto in 20 Minutes
| ~7 min read | Pasta Sauces
Sections
Pesto pasta is one of the fastest and most satisfying dishes in the Italian repertoire: hot pasta tossed with a raw sauce of basil, garlic, pine nuts, Parmesan, and olive oil. It works because the sauce is barely cooked, so the basil stays bright and the garlic sharp, and the heat of the drained pasta is enough to melt the cheese into a glossy coating. Get the ratio of oil to cheese right, loosen it with a splash of starchy pasta water, and the dish comes together in the time it takes the water to boil.
Ingredients
Serves 4 as a main course, or 6 as a starter. Use a digital scale if you have one, since basil and pine nuts are hard to measure by eye.
- 400 g (14 oz) dried spaghetti, linguine, or trofie — any long or short shape that will catch the sauce
- 60 g (2 packed cups) fresh basil leaves, stems removed, washed and thoroughly dried
- 30 g (1/4 cup) pine nuts
- 2 garlic cloves, peeled
- 60 g (2/3 cup) freshly grated Parmesan, plus extra for serving
- 20 g (2 tbsp) freshly grated pecorino romano (optional; can be replaced with more Parmesan)
- 120–150 ml (1/2 to 2/3 cup) extra virgin olive oil
- 1/2 tsp fine sea salt, plus about 1 tbsp for the pasta water
- 1/4 tsp freshly ground black pepper
- A squeeze of lemon juice, only if your basil is tired or very mild
Note on salt: Parmesan and pecorino are salty. Salt the pasta water generously — it should taste like a light sea — but taste the finished sauce before adding more salt.
Instructions
- Toast the pine nuts. Put a dry skillet over medium-low heat. Add the pine nuts and stir constantly for 3–4 minutes, until golden and fragrant. Tip them onto a plate to cool. Watch them closely: pine nuts go from pale to burnt in under a minute, and they must not be left in the hot pan.
- Boil the water. Fill a large pot with at least 4 litres (4 quarts) of water and bring it to a rolling boil over high heat. A big pot keeps the pasta from sticking and keeps the water from turning cloudy with starch before you need it.
- Make the pesto. While the water heats, put the basil, cooled pine nuts, garlic, 1/2 tsp salt, and pepper in a food processor or blender. Pulse 8–10 times until finely chopped but still speckled — a smooth paste loses the basil's texture. Add the grated cheeses and pulse twice to combine.
- Add the oil slowly. With the machine running on low, pour the olive oil in a thin stream through the feed tube. Stop as soon as the oil is absorbed and the pesto looks like a thick, glossy paste; over-processing makes it bitter. If you are working by hand with a mortar and pestle, pound the garlic and salt first, then the basil, then nuts and cheese, and drizzle in the oil while stirring. Scrape the pesto into a bowl and taste it. Adjust salt and pepper.
- Salt and cook the pasta. Once the water boils, add 1 tbsp salt, then the pasta. Stir immediately for the first 30 seconds so strands do not clump. Cook to al dente according to the package time, usually 8–11 minutes for dried spaghetti. Start checking 2 minutes before the stated time: bite a strand — it should be tender with a firm centre, no chalky raw core.
- Save the pasta water. Just before draining, scoop out about 250 ml (1 cup) of the cloudy cooking water. It is full of starch and is what makes the sauce cling.
- Assemble off the heat. Drain the pasta but do not rinse it. Put the pasta back in the warm (but now off the heat) pot, add the pesto and a splash of the pasta water, and toss firmly with tongs for 30–60 seconds. Add more water a tablespoon at a time until the sauce coats every strand and pools slightly at the bottom. Never cook pesto over direct heat — the basil turns dull and the cheese can string.
- Serve immediately. Divide between warm bowls, top with extra Parmesan and a few whole basil leaves, and finish with a drizzle of olive oil if it looks dry.
Tips
- Keep the basil dry and cool. Wet basil makes pesto taste grassy and watery; dry the leaves in a salad spinner or a clean tea towel. If the blender is getting warm, chill the bowl first or pulse in short bursts, because heat drives off the basil's aroma.
- Loosen leftovers with water, not oil. Pesto thickens and darkens in the fridge. Stir in a spoonful of hot water (or a little of the reserved pasta water) to bring it back to a pourable consistency.
- Watch the salt. Cheese varies a lot in saltiness. Grate and taste the cheese first, then adjust the pesto's salt, and only salt the pasta water moderately if the pesto is already salty.
- Don't drown the pasta. 400 g pasta with this quantity of pesto is a generous but balanced ratio. If you cook more pasta, make a second batch of pesto rather than stretching the same sauce with oil.
Serving Suggestions
Pesto pasta is a meal on its own, but it is even better with a small amount of contrast: halved cherry tomatoes, blanched green beans and diced potato (the classic Genoese pairing), or a handful of arugula. Add sliced grilled chicken, canned tuna drained and flaked, or white beans for extra protein. It also works as a side with roast chicken or fish, where the fresh basil cuts through the richness of the main dish. Serve it warm, not piping hot — pesto is at its best just below a boil.
Variations
- Nut variations: replace pine nuts with blanched almonds, walnuts, or pistachios. Toasting them first gives a deeper flavour.
- Leaf variations: swap half the basil for parsley or arugula for a peppery, less sweet sauce. Spinach works but needs more salt and Parmesan.
- Vegan pesto: use nutritional yeast or a vegan hard cheese in place of the Parmesan and pecorino.
- Sun-dried tomato pesto (pesto rosso): use 100 g drained sun-dried tomatoes blended with almonds, garlic, oil, and a little red wine vinegar; skip the basil.
- Sicilian-style: add 2 tbsp ricotta and a pinch of red pepper flakes to the finished pesto for a creamier sauce that clings to short pasta.
- Green bean and potato pasta: cook diced potato and green beans in the pasta water for the last 8 minutes, then toss everything with the pesto.
Storage and Reheating
Pesto itself keeps in a sealed jar in the fridge for up to 1 week. Press plastic wrap directly onto the surface or float a thin layer of olive oil on top to slow oxidation. Freeze it in ice cube trays, then transfer the cubes to a freezer bag; use within 3 months. Thaw overnight in the fridge, not on the counter.
Cooked pesto pasta should be refrigerated within 2 hours (1 hour if the room is above 90°F/32°C), in a covered container at 40°F (4°C) or below, and eaten within 3–4 days. The texture will soften and the basil will darken; that is normal, but the flavour is best in the first 24 hours.
To reheat: warm in a covered skillet over medium-low heat with a splash of water, tossing until steaming. In the microwave, add 1 tbsp water per portion, cover, and heat in 30-second bursts until hot, stirring between bursts. If reheating for anyone in a high-risk group, ensure the food is steaming hot throughout. Do not reheat pasta more than once.
Frequently Asked Questions
Can I make pesto in advance?
Yes. Pesto can be made up to 3 days ahead and refrigerated, or frozen for up to 3 months. Make it just before you cook the pasta if you can, since fresh basil loses its bright edge within hours.
Why is my pesto bitter?
Over-processing is the usual cause: the blades tear the basil and the garlic, releasing bitter compounds. Use short pulses, keep the machine cool, and avoid adding the cheese until the end. Old garlic, garlic with a green sprout, and burnt pine nuts also turn pesto bitter.
Can I use dried basil instead of fresh?
Not for classic pesto — dried basil is dull and dusty and needs a very different quantity. If fresh basil is unavailable, try parsley, arugula, or kale, which all make a workable pesto.
Is the pesto raw?
Yes, the classic version is uncooked, but the sauce is only basil, nuts, garlic, oil, and aged cheese — no eggs, and Parmesan and pecorino are hard aged cheeses. If you are concerned about the garlic for a sensitive stomach, use roasted garlic instead. Never add raw egg to pesto, and if you add raw egg elsewhere in a dish, use pasteurized eggs.
Do I have to use pine nuts?
No. Almonds and walnuts are the most common substitutes, and pistachios or sunflower seeds also work. Avoid cashews if you want a less sweet sauce.
How much salt goes in the pasta water?
About 1 tbsp per 4 litres (4 quarts) is a good average. The water should taste like a light sea, not the ocean, and the pesto adds significant salt from the cheese, so do not overdo it.