
Whole Wheat Spaghetti with Zucchini and Walnut Pesto
Whole wheat spaghetti tossed with tender zucchini ribbons and a bright homemade basil walnut pesto.
How to make it
Boil the pasta
Bring a large pot of water to a boil with the salt. Cook the spaghetti until just tender.
Make the pesto
While it cooks, blend the basil, walnuts, Parmesan, garlic, olive oil, lemon juice and salt until mostly smooth, scraping down the sides.
Add the zucchini
Use a vegetable peeler to cut the zucchini into long ribbons. Add them to the pot for the last 1 minute of cooking. Save 1/2 cup pasta water, then drain.
Toss
Return the pasta and zucchini to the pot. Add the pesto and a few spoonfuls of pasta water and toss until glossy and evenly coated.
Serve
Top with the chopped walnuts and a little extra Parmesan if you like.
This is our go to summer pasta, when basil and zucchini are everywhere. The pesto is made with walnuts instead of pricey pine nuts, and it comes together in the blender while the pasta boils.
Thin zucchini ribbons cook for just a minute in the pasta water, so they twirl right in with the spaghetti.
Why you will love it
- Whole grain. Whole wheat spaghetti adds fiber and a nutty taste.
- Ready in 30 minutes. Pesto blends while the water boils.
- Walnut pesto. Budget friendly with healthy fats.
- Extra veggies. Zucchini ribbons stretch the pasta.
What you need







Full amounts are in the recipe card below.
Tips for the best results
- Pack the basil firmly into the cup when measuring.
- Toast the walnuts for 3 minutes in a dry pan for more flavor.
- Add the pesto off the heat so it stays bright green.
Swaps and substitutions
| Instead of | Use | Good to know |
|---|---|---|
| Whole wheat spaghetti | Lentil or chickpea spaghetti | Adds a lot more protein. |
| Walnuts | Pine nuts or sunflower seeds | Use seeds for a nut free pesto. |
| Parmesan | 2 tbsp nutritional yeast | Makes the pesto vegan. |
Storage and reheating
Keep leftovers in the fridge for up to 4 days. Extra pesto keeps 1 week in a jar with a thin layer of olive oil on top, or freeze it in an ice cube tray.
What to serve with it
- Cherry tomato and white bean salad
- Grilled or roasted chickpeas
- Arugula with lemon and olive oil
Questions people ask
How do I keep pesto from turning dark?
Make it right before using and add a squeeze of lemon. Cover leftover pesto with a little oil.
Can I use spiralized zucchini only?
Yes, but you will need about 4 medium zucchini and it will be a much lighter meal.
Whole Wheat Spaghetti with Zucchini and Walnut Pesto
Whole wheat spaghetti tossed with tender zucchini ribbons and a bright homemade basil walnut pesto.

Ingredients
Pasta
Pesto
Equipment
- Large pot
- Blender or food processor
- Vegetable peeler for ribbons
Instructions
- Bring a large pot of water to a boil with the salt. Cook the spaghetti until just tender.
- While it cooks, blend the basil, walnuts, Parmesan, garlic, olive oil, lemon juice and salt until mostly smooth, scraping down the sides.
- Use a vegetable peeler to cut the zucchini into long ribbons. Add them to the pot for the last 1 minute of cooking. Save 1/2 cup pasta water, then drain.
- Return the pasta and zucchini to the pot. Add the pesto and a few spoonfuls of pasta water and toss until glossy and evenly coated.
- Top with the chopped walnuts and a little extra Parmesan if you like.
Nutrition per serving
| Calories | 555 |
| Protein | 17g |
| Carbs | 69g |
| Fiber | 9.9g |
| Sugar | 5.3g |
| Fat | 27g |
| Saturated fat | 4.2g |
| Cholesterol | 6.5mg |
| Sodium | 440mg |
| Potassium | 741mg |
| Calcium | 140mg |
| Iron | 4.3mg |
Nutrition is an estimate worked out from USDA FoodData Central for the exact ingredients and amounts listed. It changes with brands and swaps.
Sources: USDA Food Safety and Inspection Service, Leftovers and Food Safety (refrigerate within 2 hours, eat within 3 to 4 days, reheat to 165 F). Nutrition from USDA FoodData Central.
General education, not medical advice. Talk to your doctor or dietitian about your own needs.





