This easy pesto pasta recipe makes fresh basil pesto from scratch and tosses it with hot penne and starchy pasta water. Bright green, glossy, and full of flavour, it is ready in 25 minutes and tastes like summer in a bowl.
Pesto pasta is one of the fastest dinners I know, but it is easy to get wrong. Heat the pesto and it turns dark and dull. Skip the pasta water and the sauce slides off the pasta. Use too little pesto and the whole dish tastes bland.
I have made this pesto pasta many times in my own kitchen, and the method below fixes all three problems. The pesto never touches direct heat. The pasta water turns it into a silky sauce. And the ratio is generous enough that every piece of pasta is coated.

Why You’ll Love This Pesto Pasta
This is the pasta I make when the basil is growing fast and dinner needs to be on the table in half an hour. It is fresh, it is fast, and it feels special.
- Ready in 25 minutes. The pesto comes together while the pasta boils.
- Fresh, not jarred. Homemade pesto tastes brighter, greener, and more alive than any jar.
- Only a handful of ingredients. Basil, pine nuts, parmesan, garlic, olive oil, and lemon. That is the whole sauce.
- Endlessly flexible. Swap the nuts, add vegetables, or top it with chicken. The method stays the same.
- Great hot or as a salad. Serve it warm for dinner, or chill it for a pasta salad the next day.
- Cheap for what it gives. A bunch of basil and a packet of penne feed four people beautifully.
If you love a creamy Italian pasta, our cacio e pepe is another favourite. It uses the same pasta-water trick to make a silky sauce, with pecorino and black pepper instead of basil.
Ingredients
This pesto pasta has two parts: the pesto and the pasta. The pesto is basil, pine nuts, parmesan, garlic, lemon, and good olive oil. Buy a big bunch of basil and the best olive oil you can afford. There is nowhere for a poor ingredient to hide in a sauce this simple.
- 400 g penne pasta (about 14 oz)
- 2 cups fresh basil leaves, lightly packed (about 50 g)
- 40 g pine nuts (about 1/3 cup)
- 50 g parmesan, finely grated (about 1/2 cup), plus extra to serve
- 2 garlic cloves, roughly chopped
- 1 tablespoon lemon juice
- 1/2 teaspoon fine sea salt, plus 1 tablespoon for the pasta water
- 80 ml extra-virgin olive oil (about 1/3 cup)
- 250 ml reserved starchy pasta water (about 1 cup)
- Ground black pepper, to taste
- Fresh basil leaves, to serve
Equipment you need: a large pot, a food processor or blender, a small dry frying pan for the nuts, a mug for the pasta water, and tongs. A food processor gives the best texture. A blender works too, but stop and scrape the sides often so it blends evenly.
Pine Nuts, Walnuts, or Almonds?
Pine nuts are the classic choice. They are buttery and mild, and they give pesto its traditional flavour. But they are expensive, and they are not the only option.
Walnuts are the best swap. They are cheaper, they are easy to find, and they give a slightly earthier pesto that many people prefer. Almonds work too, and they give a lighter, cleaner flavour. Use the same weight, toast them the same way, and the recipe works exactly the same. Avoid peanuts. They are too strong and they make the pesto taste like satay.
How to Make Pesto Pasta
This pesto pasta moves fast at the end, so get everything ready first. Toast the nuts, dry the basil, and put the mug by the stove. Then start the pasta.
- Toast the pine nuts. Tip 40 g of pine nuts into a dry frying pan over medium heat. Toast for 2 to 3 minutes, shaking the pan often, until they are golden and smell nutty. Tip them onto a plate to cool at once. They burn fast, and they keep cooking in the hot pan if you leave them there.
- Start the pasta. Bring a large pot of water to a rolling boil. Add 1 tablespoon of fine sea salt. Add the penne and cook for 1 minute less than the packet says. Stir once at the start so the pasta does not stick. The pasta will finish cooking in the sauce.
- Make the pesto. While the pasta cooks, put the basil, cooled pine nuts, parmesan, garlic, lemon juice, and 1/2 teaspoon of salt into the food processor. Pulse 8 to 10 times until it forms a coarse, bright green paste. Scrape down the sides once. With the motor on low, drizzle in the olive oil in a slow stream over 30 seconds. Stop when the pesto is smooth but still has a little texture. Do not over-process it. A pesto with some texture tastes better than a perfectly smooth one.
- Save the pasta water. Just before the pasta is ready, scoop out about 250 ml of the hot pasta water into a mug. This starchy water is the secret of the sauce. Drain the pasta, but do not rinse it. Rinsing washes off the starch that helps the sauce cling.

- Loosen the pesto. Tip the pesto into a large bowl. Add 125 ml of the hot pasta water, a splash at a time, and stir until the pesto turns silky and slightly runny. It should look a little too thin in the bowl. It will thicken as soon as it meets the pasta. This step is the whole trick. Never heat pesto in a pan. Warm water is the only heat it should ever meet.
- Toss the pasta and sauce. Add the drained penne to the bowl with the loosened pesto. Toss hard with tongs for 1 to 2 minutes, lifting and turning so every piece is coated. Add more pasta water a splash at a time if the sauce feels tight. Taste and season with salt and black pepper.

- Serve at once. Divide the pasta between warm bowls. Top each bowl with extra shaved parmesan, a drizzle of olive oil, and a few fresh basil leaves. Serve right away, while the sauce is still glossy and the pasta is hot.

The Pasta Water Trick (Why This Works)
Pesto and pasta do not mix on their own. Pesto is oily, and oil slides off pasta. Starchy pasta water is the bridge between them. The starch thickens the sauce slightly and helps it cling to every piece.
That is why this recipe loosens the pesto with hot pasta water in a bowl, off the heat, instead of cooking the pesto in a pan. The water warms the pesto gently, so the basil stays bright green and the flavour stays fresh. Cook pesto in a pan and it turns dark, oily, and bitter. Warm it with pasta water and it stays vivid.
If the Pesto Pasta Goes Wrong
Almost every pesto pasta failure comes down to heat, water, or ratio. Here is how to fix each one.
- The pesto turned dark. It got too hot. Basil oxidises fast when it meets heat or too much air. Next time, keep the pesto off the stove and work quickly. A squeeze of lemon in the pesto also helps guard the colour.
- The sauce is oily and slides off. There was not enough pasta water, or the pasta was rinsed. Toss in a splash of hot pasta water and keep tossing. The starch is what makes the sauce cling.
- The pasta is dry. Not enough pesto, or not enough water. Add another spoonful of pesto and a splash of pasta water. The sauce should look slightly loose in the bowl. It tightens as it sits.
- The pesto tastes bland. It needs salt, lemon, or more parmesan. Taste the finished pasta, not the pesto on its own. Pasta water and parmesan are both salty, so season at the end and adjust from there.
- The pesto is bitter. The garlic was too strong, or the basil was over-processed. Use smaller garlic cloves next time, and pulse the processor instead of running it non-stop. A pinch of sugar will soften the bitterness in this batch.
Helpful Tips
➤ Never heat the pesto. Basil pesto turns dark and loses its fresh flavour when it hits direct heat. Warm it only with hot pasta water, off the stove.
➤ Save the pasta water before you drain. You cannot make more once the pasta is in the colander, and that starchy water is what turns pesto into a glossy sauce.
➤ Dry the basil properly. Wet basil thins the pesto and dulls the colour. Spin it dry or pat it between clean tea towels before it goes in the processor.
➤ Toast the pine nuts. Three minutes in a dry pan makes them taste buttery and rich instead of flat and raw. Let them cool before they go in, or they will cook the basil.
➤ Season at the end, not the start. Parmesan and pasta water are both salty, so taste the finished pasta first. Add salt only if it still needs it.
Variations
Once you have the classic pesto pasta down, try one change at a time, so you can tell what worked.
- Pesto pasta with chicken. Top the pasta with sliced grilled chicken for a heartier dinner. Our creamy chicken garlic parmesan pasta shows how well chicken and a cheese sauce work together, and the same idea works here.
- Pesto pasta with vegetables. Stir in halved cherry tomatoes, steamed green beans, or roasted pumpkin. The Genovese classic adds boiled potatoes and green beans to the pasta. It sounds odd, and it is wonderful.
- Sun-dried tomato pesto pasta. Swap half the basil for sun-dried tomatoes in oil, drained. The sauce turns red, rich, and deeply savoury. Use the same method and the same ratio.
- Creamy pesto pasta. Stir 2 tablespoons of cream cheese or a splash of cream into the loosened pesto. It makes a richer, silkier sauce that clings even better. This is the version to make when you want comfort food.
- Jarred pesto rescue. If you use jarred pesto, stir in a squeeze of lemon, a handful of fresh basil, and a spoonful of grated parmesan. Then loosen it with pasta water the same way. It will taste much closer to homemade.
What to Serve With Pesto Pasta
This pasta needs very little beside it. A simple green salad and some garlic bread are enough. The salad cuts the richness, and the bread is there for the last of the sauce. Serve it with sparkling water and lemon, or a crisp white wine if you drink.
For a bigger Italian-style dinner, serve the pasta as the main course with a light soup to start. If you want another baked pasta on the table another night, our lasagne is the one to make when you have more time.
Storage
Pesto pasta is best eaten fresh, but leftovers are still worth saving. The sauce will thicken as it cools, so it needs a little help when you reheat it.
- Fridge: Cool quickly and refrigerate in a sealed container for up to 3 days. The pesto will darken a little. That is normal.
- Reheating: Warm gently in a pan over low heat with a splash of water, tossing often. Do not microwave it on high. The pesto will go dark and oily.
- Freezer: Freeze the pesto on its own, not the finished pasta. Spoon it into ice cube trays, freeze, then transfer to a bag for up to 3 months. Thaw a cube or two and toss with fresh pasta.
- Make-ahead: Make the pesto up to 3 days ahead and refrigerate it with a thin layer of olive oil on top. The oil stops the surface going dark. Cook the pasta fresh.
Frequently Asked Questions
Why did my pesto turn dark?
Basil oxidises when it meets heat or too much air. The most common cause is cooking the pesto in a pan. Never heat pesto directly. Loosen it with hot pasta water in a bowl, off the stove. A squeeze of lemon in the pesto also helps guard the colour, and a thin layer of olive oil on stored pesto stops the surface going dark.
Can I use jarred pesto for pesto pasta?
Yes. Use a good-quality jar, and rescue it with a squeeze of lemon, a handful of fresh basil, and a spoonful of grated parmesan. Loosen it with hot pasta water the same way as homemade pesto. It will not taste exactly like fresh pesto, but it will be much better than jarred pesto on its own.
How much pesto do I need for 400 g of pasta?
About 1 cup of finished pesto, which is what this recipe makes. The ratio is roughly 1 cup of pesto to 400 g of pasta, loosened with about 125 ml of pasta water. If you like a richer pasta, make half as much pesto again. If the sauce feels tight, add pasta water, not more pesto.
Can I use walnuts instead of pine nuts in pesto?
Yes. Walnuts are the best swap for pine nuts. They are cheaper, easy to find, and they give a slightly earthier pesto. Almonds work too. Use the same weight and toast them the same way. Avoid peanuts. They are too strong and they make the pesto taste like satay.
What pasta shape is best for pesto pasta?
Short shapes with ridges or twists work best, because the sauce clings to them. Penne, fusilli, and farfalle are all excellent. Trofie is the traditional Genovese shape. Spaghetti works too, but the sauce slides off smooth strands more easily. Use what you have, but short shapes are better.
Can I freeze pesto pasta?
Freeze the pesto, not the finished pasta. Spoon leftover pesto into ice cube trays, freeze, then transfer the cubes to a bag for up to 3 months. Thaw a cube or two and toss with freshly cooked pasta. Finished pesto pasta does not freeze well. The sauce goes dark and the pasta turns soft.
Try These Next
If you loved this pesto pasta, try one of these next:
- Easy Goulash — a quick, hearty pasta dinner with a rich tomato and beef sauce.
- Rice Pudding — creamy, slow-cooked comfort dessert to finish the meal.
- Cheesy Cottage Cheese Mozzarella Bites — golden, gooey, high-protein bites for snacking.
- Buffalo Chicken Cheese Bake — spicy, cheesy, and made for sharing.
Did you make this pesto pasta recipe? Leave a star rating and a comment below. We love hearing how it turned out for you!
If you try it, tell us in the comments. Did your pesto stay bright green? Did the pasta-water trick work for you? Your notes help the next cook get it right the first time.

Easy Pesto Pasta Recipe
Ingredients
- 400 g penne pasta about 14 oz
- 2 cups fresh basil leaves lightly packed (about 50 g)
- 40 g pine nuts about 1/3 cup
- 50 g parmesan finely grated (about 1/2 cup), plus extra to serve
- 2 garlic cloves roughly chopped
- 1 tablespoon lemon juice
- 1/2 teaspoon fine sea salt plus 1 tablespoon for the pasta water
- 80 ml extra-virgin olive oil about 1/3 cup
- 250 ml reserved starchy pasta water about 1 cup
- Ground black pepper to taste
- Fresh basil leaves to serve
Instructions
- Toast the pine nuts. Tip 40 g of pine nuts into a dry frying pan over medium heat. Toast for 2 to 3 minutes, shaking the pan often, until they are golden and smell nutty. Tip them onto a plate to cool at once. They burn fast, and they keep cooking in the hot pan if you leave them there.
- Start the pasta. Bring a large pot of water to a rolling boil. Add 1 tablespoon of fine sea salt. Add the penne and cook for 1 minute less than the packet says. Stir once at the start so the pasta does not stick. The pasta will finish cooking in the sauce.
- Make the pesto. While the pasta cooks, put the basil, cooled pine nuts, parmesan, garlic, lemon juice, and 1/2 teaspoon of salt into the food processor. Pulse 8 to 10 times until it forms a coarse, bright green paste. Scrape down the sides once. With the motor on low, drizzle in the olive oil in a slow stream over 30 seconds. Stop when the pesto is smooth but still has a little texture. Do not over-process it. A pesto with some texture tastes better than a perfectly smooth one.
- Save the pasta water. Just before the pasta is ready, scoop out about 250 ml of the hot pasta water into a mug. This starchy water is the secret of the sauce. Drain the pasta, but do not rinse it. Rinsing washes off the starch that helps the sauce cling.
- Loosen the pesto. Tip the pesto into a large bowl. Add 125 ml of the hot pasta water, a splash at a time, and stir until the pesto turns silky and slightly runny. It should look a little too thin in the bowl. It will thicken as soon as it meets the pasta. This step is the whole trick. Never heat pesto in a pan. Warm water is the only heat it should ever meet.
- Toss the pasta and sauce. Add the drained penne to the bowl with the loosened pesto. Toss hard with tongs for 1 to 2 minutes, lifting and turning so every piece is coated. Add more pasta water a splash at a time if the sauce feels tight. Taste and season with salt and black pepper.
- Serve at once. Divide the pasta between warm bowls. Top each bowl with extra shaved parmesan, a drizzle of olive oil, and a few fresh basil leaves. Serve right away, while the sauce is still glossy and the pasta is hot.
