There’s something truly satisfying about swapping out heavy pasta for a lighter, veggie-packed alternative—especially when it’s as simple and delicious as spaghetti squash with pesto. One evening, craving something fresh yet comforting, I pulled a bright orange spaghetti squash from my basket and decided to pair it with a vibrant, homemade basil pesto. The result? A dish that’s bursting with flavor, surprisingly easy to make, and perfect for anyone looking to ditch takeout without sacrificing taste. Whether you’re a seasoned chef or just someone who loves cozy homemade meals, this recipe brings a fresh twist to your dinner table that’s as wholesome as it is irresistible.

Why choose Spaghetti Squash with Pesto?
Light and Nourishing: This dish offers a vibrant, veggie-packed alternative to traditional pasta without weighing you down. Easy to Prepare: Minimal ingredients and simple steps make it perfect for any skill level. Bursting with Fresh Flavors: The homemade basil pesto delivers herbaceous, zesty notes that brighten every bite. Versatile and Adaptable: Customize with your favorite nuts, cheeses, or veggies for endless variety. Perfect for Busy Nights: Quick to make yet satisfying enough to keep you full and happy. Impresses Every Palate: A delightful crowd-pleaser that feels cozy and gourmet all at once.
Spaghetti Squash with Pesto Ingredients
For the Spaghetti Squash
- Spaghetti squash – Choose one medium-sized squash with firm skin for the best noodle-like strands.
- Olive oil – Use extra virgin olive oil to drizzle for roasting and add a subtle fruity flavor.
- Salt – Enhances the squash’s natural sweetness and balances the pesto’s herbs.
- Black pepper – Freshly ground for a gentle kick that complements the dish’s freshness.
For the Basil Pesto
- Fresh basil leaves – Pick bright, tender leaves for that signature fragrant punch in every spoonful.
- Pine nuts – Toast lightly to deepen the pesto’s nutty flavor, or swap with walnuts for a twist.
- Garlic – Use fresh cloves for a sharp, aromatic edge that lifts the pesto.
- Parmesan cheese – Grate finely for creamy texture and rich umami notes in the pesto.
- Olive oil – Slowly drizzle in to bring the pesto together into a silky, spreadable sauce.
- Lemon juice – Adds a zesty brightness that balances the rich, herby pesto perfectly.
Optional Add-Ins
- Cherry tomatoes – Halved and roasted for sweet bursts of flavor that contrast the pesto’s herbaceousness.
- Red pepper flakes – Sprinkle for subtle heat that enlivens each bite.
- Grilled chicken or shrimp – Protein options to make this veggie dish a complete meal.
In this recipe, Spaghetti Squash with Pesto shines as a fresh, nutrient-rich alternative that transforms humble ingredients into something extraordinary.
How to Make Spaghetti Squash with Pesto
- Preheat your oven to 400°F, ensuring racks are in the middle position for even cooking. This sets the perfect heat for roasting the squash until tender.
- Halve the squash lengthwise, scoop out seeds with a spoon, then drizzle olive oil and season with salt and pepper. Place cut-side down on a baking sheet.
- Roast the squash in your preheated 400°F oven until tender and golden at the edges, about 40–45 minutes, letting the strands develop a slight caramelization for deeper flavor.
- Shred the cooked squash with two forks, fluffing strands into spaghetti-like noodles. Transfer to a warm bowl to keep them soft and ready for tossing with pesto.
For the Basil Pesto:
- Toast the pine nuts in a dry skillet over medium heat for 3–5 minutes until fragrant and lightly golden, stirring frequently to prevent burning.
- Blend fresh basil leaves, garlic cloves, Parmesan, toasted nuts, and lemon juice in a food processor. Slowly stream in olive oil until the pesto reaches a silky, spreadable consistency.
- Toss the warm spaghetti squash strands with a few generous spoonfuls of pesto, mixing until each strand is coated in vibrant green sauce. Serve immediately, garnished as desired.
Optional: Top with cherry tomatoes or extra pine nuts for color and crunch.
Exact quantities are listed in the recipe card below.

Make Ahead Options
Spaghetti Squash with Pesto is a fantastic choice for meal prep that can save you precious time on busy weeknights! You can roast the spaghetti squash and prepare the basil pesto up to 3 days in advance. After roasting the squash, allow it to cool before shredding and storing in an airtight container in the refrigerator. For the pesto, blend and refrigerate it separately to maintain its vibrant green color and fresh flavor. When you’re ready to serve, simply reheat the squash and toss it with the pesto for a delicious dish that’s just as satisfying as when it was freshly made. Enjoy the convenience of having a hearty, homemade meal ready to go!
How to Store and Freeze Spaghetti Squash with Pesto
- Room Temperature: Enjoy spaghetti squash with pesto fresh from the oven for the best taste; however, it can stay out for up to 2 hours before needing refrigeration.
- Fridge: Store leftovers in an airtight container for up to 3 days. Keep the spaghetti squash and pesto separate until ready to serve to maintain the squash’s texture.
- Freezer: For longer storage, freeze the spaghetti squash strands in a sealed bag for up to 3 months. Use frozen pesto separately, storing it in ice cube trays for easy portioning.
- Reheating: To reheat, gently warm the spaghetti squash in the microwave or on the stovetop. Stir in fresh pesto just before serving for the best flavor.
What to Serve with Spaghetti Squash with Pesto?
Looking to create the perfect meal around your vibrant spaghetti squash dish? Here are some delightful pairings to elevate your dining experience.
- Garlic Bread: The buttery, garlicky warmth complements the fresh pesto, creating a comforting side that’s hard to resist.
- Mixed Green Salad: Light, crisp greens with a lemon vinaigrette bring a bright contrast, enhancing the dish’s herbaceous notes.
- Roasted Vegetables: Seasonal veggies caramelized to perfection add a deliciously earthy flavor and textural balance to the meal.
- Lemon Sorbet: This refreshing, tangy dessert cleanses the palate after the rich pesto, offering a light, sweet finish to your meal.
- Grilled Chicken: Lean protein adds substance and works beautifully with the squash, making the meal heartier without overwhelming the flavors.
- Chardonnay: A chilled glass of this white wine harmonizes with the dish’s herbal and nutty elements, enhancing the overall dining experience.
- Parmesan Crisps: These crunchy bites add a delightful texture contrast while echoing the flavors from the pesto and cheese.
- Artisan Cheese Board: Include a variety of cheeses and nuts, perfect for nibbling while the main dish is being enjoyed, adding layers of taste to your evening.
- Herb-Infused Oil: Drizzling this atop your dish elevates flavor while highlighting the fresh ingredients used in the recipe.
Variations & Substitutions for Spaghetti Squash with Pesto
Feel free to explore these tasty variations and make this dish your own with exciting flavors and ingredients!
-
Garlic-Free:
Swap the garlic in the pesto for a pinch of garlic powder or just leave it out entirely for a milder sauce. -
Nut-Free:
Use sunflower seeds in place of pine nuts for a nut-free alternative that still brings crunch and flavor. -
Vegan:
Omit the Parmesan and substitute with nutritional yeast for a cheesy flavor without dairy. -
Creamy Pesto:
Add a tablespoon of cream cheese or cashew cream to the pesto for a richer, creamier consistency. -
Add Color:
Mix in vibrant veggies like bell peppers or zucchini, sautéed beforehand to enhance flavors and add texture.
Feel the freedom to make this recipe uniquely yours. Cooking is all about experimenting and enjoying the process!
-
Spicy Kick:
For heat lovers, toss in some red pepper flakes or a dash of hot sauce to the pesto—ignite those taste buds. -
Citrus Twist:
Add zest from a lemon or orange to the pesto for a refreshing and bright flavor that complements the basil beautifully.
Each variation not only lends a new taste but also brings its own flair to the table, making your spaghetti squash with pesto an endless canvas for creativity!
Expert Tips for Spaghetti Squash with Pesto
- Pick the right squash: Choose a medium-sized spaghetti squash with firm, unblemished skin to ensure tender, noodle-like strands after roasting.
- Avoid overcooking: Roast the squash until just tender; overcooking can make it mushy and lose its signature texture.
- Toast nuts carefully: Pine nuts burn quickly—stir constantly and remove from heat as soon as they turn golden to keep pesto flavorful.
- Use room-temp ingredients: Let your basil, nuts, and olive oil sit at room temperature before blending to help the pesto emulsify smoothly.
- Coat immediately: Toss the spaghetti squash strands with pesto while warm to help the sauce cling better and infuse each bite with flavor.
- Customize confidently: Feel free to add grilled chicken or veggies to make this spaghetti squash with pesto dish perfectly suit your taste and lifestyle.

Easy Spaghetti Squash with Pesto Recipe FAQs
How do I pick the best spaghetti squash for this recipe?
Choose a medium-sized squash with firm, unblemished skin that feels heavy for its size. Look for no soft spots or dark patches, as these may indicate overripeness or spoilage. A fresh squash will have vibrant, smooth skin and a slightly sweet aroma.
Can I store spaghetti squash with pesto leftovers together?
I recommend storing them separately to keep the squash strands from becoming soggy. Place the cooked squash in an airtight container and the pesto in a small jar or container, each refrigerated for up to 3 days. Combine right before serving for the best texture and flavor.
Is it possible to freeze both spaghetti squash and pesto?
Absolutely! Freeze the cooked spaghetti squash strands in a tightly sealed freezer-safe bag, removing as much air as possible to prevent freezer burn. They keep well for up to 3 months. For pesto, pour it into ice cube trays and freeze; once solid, transfer cubes to a bag. This allows portion control and helps preserve that fresh basil flavor.
What if my spaghetti squash turns out mushy instead of noodle-like?
This usually means it was overcooked or the squash chosen was too large or old. To avoid mushiness, roast the squash just until tender—about 40 to 45 minutes at 400°F—and remove it promptly. Also, try to pick a medium, fresh squash as mentioned for best “al dente” strands.
Is this dish safe for pets if they want a taste?
While the ingredients are generally safe individually, I don’t recommend sharing pesto with pets. Garlic and onion in pesto can be toxic, and pine nuts might cause digestive upset. It’s best to keep this flavorful dish just for your family. Instead, offer your pet pet-friendly treats that are safe and healthy!

Easy Spaghetti Squash with Pesto: A Fresh Twist on Dinner
Ingredients
Equipment
Method
- Preheat your oven to 400°F, ensuring racks are in the middle position for even cooking.
- Halve the squash lengthwise, scoop out seeds with a spoon, then drizzle olive oil and season with salt and pepper. Place cut-side down on a baking sheet.
- Roast the squash in your preheated 400°F oven until tender and golden at the edges, about 40–45 minutes.
- Shred the cooked squash with two forks, fluffing strands into spaghetti-like noodles. Transfer to a warm bowl.
- Toast the pine nuts in a dry skillet over medium heat for 3–5 minutes until fragrant and lightly golden, stirring frequently.
- Blend fresh basil leaves, garlic cloves, Parmesan, toasted nuts, and lemon juice in a food processor. Slowly stream in olive oil until silky.
- Toss the warm spaghetti squash strands with a few generous spoonfuls of pesto, mixing until coated. Serve immediately.




