Pesto spaghetti is a classic Italian dish that’s both simple and incredibly flavorful. With fresh basil, nutty Parmesan, and toasty pine nuts, this pasta dish comes together in just 20 minutes, making it perfect for busy weeknights or when you need a quick yet satisfying meal.
Why You’ll Love This Recipe
- Quick and Easy: Ready in just 20 minutes, this recipe is perfect for busy evenings.
- Flavorful and Fresh: The homemade pesto sauce brings a burst of fresh basil flavor to every bite.
- Customizable: Easily adjust the ingredients to suit your taste or dietary needs.
- Versatile: Serve as a main dish or a side, and it pairs well with various proteins and vegetables.
- Nutritious: Packed with healthy fats from olive oil and pine nuts, plus vitamins from fresh basil.
Ingredients & Preparation Notes
- Spaghetti: Opt for bronze-cut pasta for better sauce adhesion. Cook until al dente for the perfect texture.
- Basil Leaves: Use fresh, vibrant leaves for the best flavor. Wash and dry thoroughly before using.
- Parmesan Cheese: Grate fresh for the best taste. You can substitute with Pecorino Romano if desired.
- Pine Nuts: Toast lightly in a dry pan to enhance their nutty flavor. You can use walnuts or almonds as a substitute.
- Garlic: Fresh cloves provide the best flavor. Adjust to your preference.
- Olive Oil: Use extra-virgin for the richest taste. Slowly drizzle into the food processor to emulsify the pesto.
- Salt and Pepper: Season to taste. Start with the suggested amounts and adjust as needed.
Professional Tips & Techniques
- When making pesto spaghetti, timing is key. Start boiling the water for the pasta before you begin preparing the pesto. This ensures the pasta will be ready just as the sauce is finished.
To achieve the perfect pesto consistency, slowly drizzle the olive oil into the food processor while it’s running. This helps emulsify the oil with the other ingredients, creating a smooth and cohesive sauce.
Reserve some pasta water before draining the spaghetti. The starchy water can be used to adjust the sauce’s thickness, helping it cling to the pasta better. Start with a few tablespoons and add more as needed.
Watch the color of your pesto. Over-processing can lead to a dull, brownish hue, so pulse until just combined to maintain that vibrant green color.
Recipe Variations
- Vegan Pesto: Substitute nutritional yeast for Parmesan and use sunflower seeds instead of pine nuts.
- Spinach Pesto: Add a handful of spinach to the basil for a nutrient boost and a different shade of green.
- Sun-Dried Tomato Pesto: Include sun-dried tomatoes for a richer, more complex flavor.
- Lemon Pesto: Add zest and juice of one lemon for a bright, citrusy twist.
- Kale Pesto: Use kale instead of basil for a hearty, earthy pesto.
- Herb Pesto: Combine basil with other herbs like parsley or cilantro for a unique flavor profile.
- Spicy Pesto: Add a pinch of red pepper flakes for some heat.
- Creamy Pesto: Stir in a tablespoon of heavy cream for a richer sauce.
Serving Suggestions
- Pesto spaghetti is versatile and can be served in various ways. For a simple meal, pair it with a green salad and crusty bread. If you’re looking for something heartier, add grilled chicken or shrimp on top.
For a more elegant presentation, twirl the spaghetti into nests on the plate and drizzle with a bit of extra-virgin olive oil. Garnish with fresh basil leaves and a sprinkle of Parmesan.
If serving at a dinner party, consider making individual portions in small bowls or plates, topped with a cherry tomato and basil leaf for a pop of color.
Storage & Make-Ahead Tips
- Storage: Store leftover pesto spaghetti in an airtight container in the refrigerator for up to 3 days.
- Make-Ahead: You can make the pesto sauce ahead of time and store it in the fridge for up to a week. Just toss with freshly cooked pasta when ready to serve.
- Freezing: Pesto sauce freezes well. Portion into ice cube trays, freeze, then transfer to a freezer bag. It will keep for up to 3 months. Thaw in the fridge before using.
- Reheating: Reheat gently on the stove, adding a splash of water or cream to loosen the sauce if needed.
Frequently Asked Questions
Q: Can I make this ahead of time?
A: Yes, you can make the pesto sauce ahead and store it in the fridge. Cook the pasta fresh when ready to serve.
Q: What can I substitute for pine nuts?
A: Walnuts, almonds, or sunflower seeds can be used as substitutes for pine nuts.
Q: How do I know when the pasta is al dente?
A: Taste the pasta about a minute before the package suggests. It should be firm but not hard in the center.
Q: Can I use store-bought pesto?
A: Yes, but homemade pesto will have a fresher flavor. If using store-bought, choose a high-quality brand.
Q: How can I make this dish gluten-free?
A: Use gluten-free pasta and ensure all other ingredients are gluten-free.
Q: What if I don’t have a food processor?
A: You can make pesto by finely chopping the ingredients and mixing with olive oil, though the texture will be chunkier.
Q: Can I add protein to this dish?
A: Yes, grilled chicken, shrimp, or even tofu can be added for extra protein.
Q: How do I prevent the pesto from turning brown?
A: Pulse the ingredients until just combined and serve immediately. The acid in lemon juice can also help preserve the color.
Conclusion
Pesto spaghetti is a delightful dish that’s easy to make and full of flavor. The combination of fresh basil, nutty Parmesan, and toasty pine nuts creates a sauce that perfectly coats the pasta. Whether you’re cooking for a quick weeknight meal or entertaining guests, this recipe is sure to impress.
Give it a try and share your experience on social media. Enjoy your delicious pesto spaghetti!

Pesto Spaghetti
Equipment
- Large pot for boiling pasta
- Food processor or blender
- Colander
- Tongs or pasta fork
Ingredients
- 8 oz spaghetti preferably bronze-cut for better sauce adhesion
- 2 cups fresh basil leaves packed
- 1/2 cup grated Parmesan cheese plus extra for serving
- 1/3 cup pine nuts toasted
- 2 cloves garlic peeled
- 1/2 cup extra-virgin olive oil
- 1/2 tsp salt
- 1/4 tsp black pepper freshly ground
Instructions
- Bring a large pot of salted water to a boil. Add the spaghetti and cook according to package instructions until al dente, usually about 8-10 minutes.
- While the pasta cooks, prepare the pesto. In a food processor, combine the basil leaves, Parmesan cheese, pine nuts, garlic, salt, and pepper. Pulse until coarsely chopped.
- With the food processor running, slowly drizzle in the olive oil until the pesto is smooth and well combined.
- Once the spaghetti is cooked, reserve about 1 cup of pasta water, then drain the pasta.
- Return the drained spaghetti to the pot and add the pesto sauce. Toss to coat, adding reserved pasta water as needed to achieve your desired consistency.
- Serve immediately, garnished with additional Parmesan cheese.