This vegan Pesto Spaghetti Squash with homemade pesto and roasted tomatoes is perfect for a healthy meal or side dish that’s packed with flavour.

Bowl of spaghetti squash topped with pesto and roasted tomatoes.


Pesto spaghetti squash “pasta” makes a tasty meal you can easily customizable with different veggies and proteins.

The homemade pesto recipe is nut-free and made with basil, parsley and spinach for lots of flavour, texture and colour while balsamic roasted tomatoes add a pop of colour and sweetness.

This is the same pesto recipe as my Pesto Orzo Pasta Salad with Chickpeas so you could always double up and make both at the same time! Extra spaghetti squash? Try this Vegan Spaghetti Squash with Tofu and Peanut Sauce recipe.

Ingredient Notes

All the ingredients for making a vegan pesto spaghetti squash recipe with homemade pesto and tomatoes.
  • Spaghetti Squash: I used a 1500g spaghetti squash or about a medium-sized squash. If you can only find smaller squashes, you can two. It doesn’t have to be an exact amount. Cooking time will vary based on size.
  • Olive Oil: You’ll need a bit of oil for roasting the squash and tomatoes and the pesto.
  • Pumpkin Seeds: You can substitute walnuts, pine nuts or almonds.
  • Basil: You can use all basil or a mix of basil and parsley. I used a mix.
  • Spinach: Spinach can be be substituted with another green like kale or arugula.
  • Tomatoes: Cherry or grape tomatoes work well.

This list is not complete. Please see the recipe card at the end of the post for the complete ingredient list with measurements and detailed instructions.

Variations & Additions

  • Serve with roasted chickpeas or cooked green lentils for more protein.
  • For another protein option, pan-fry some vegan Italian sausage while the squash bakes and mix in at the end.
  • Roasted broccoli makes a good addition.
  • The pesto and roasted tomatoes also work well with orzo or any pasta you enjoy.
  • Store-bought pesto can be used for convenience, you’ll need about 1 cup or roughly 1/4 cup per serving.
  • Serve topped with vegan parmesan cheese or feta cheese, chili flakes and/or pepper.
  • Other garnishes could be pine nuts, fresh basil leaves or pumpkin seeds.

Step-by-Step Photos

Two halves of a spaghetti squash sprinkled with salt and pepper.

Step 1: Cut the squash into two halves lengthwise. Scoop out the seeds, rub with oil and sprinkle with salt and pepper.

Place cut-side down on a baking sheet at roast at 425 F for 30-45 minutes, depending on size, until easily pierced with a fork.

Pesto in a food processor container with a small spatula resting in it.

Step 2: Add all of the pesto ingredients except for the oil to a food processor or high-speed blender. Pulse a few times to combine.

Let it run and slowly pour in the oil. Blend until fully combined but leave some texture.

Spaghetti squash noodles in a colander on a baking sheet.

Step 3: Once the squash is done, use a fork to scrape the strands into “noodles”. Place the strands in a colander in the sink and let sit for 5-10 minutes to allow any excess water to drip out.

Chopped tomatoes tossed in herbs and balsamic vinegar on a baking sheet.

Step 4: When the squash is half way through roasting, add the tomatoes to a baking sheet and toss with the salt, pepper, thyme, oregano, balsamic and olive oil and roast 14-16 minutes until tender and blistered.

You have a couple of options for serving. You can add all of the spaghetti squash strands and pesto to a large bowl and toss to combine then serve topped with the tomatoes, or divide the squash between bowls or plates and top with pesto and tomatoes.

Bowl of spaghetti squash noodles topped with basil pesto sauce and tomatoes.

Chef’s Tips

  • Avoid overcooking the squash or it will be more mushy than individual strands. As soon as you can poke through the skin with a knife, it should be done.
  • Smaller squashes could be done in 25-30 minutes while a large squash may take up to 50 minutes.
Save This Recipe Form

Want to save this recipe?

Enter your email below & I’ll send it straight to your inbox. Plus you’ll get new recipes from me every week!

clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
Bowl of spaghetti squash topped with pesto and roasted tomatoes.

Pesto Spaghetti Squash with Roasted Tomatoes

5 Stars 4 Stars 3 Stars 2 Stars 1 Star 5 from 1 review
  • Author: Deryn Macey
  • Prep Time: 10 mins
  • Cook Time: 40 mins
  • Total Time: 50 minutes
  • Yield: 4
  • Category: Main Dish
  • Cuisine: World
  • Diet: Vegan
Save Recipe


Light and healthy but still satisfying, enjoy nutritious spaghetti squash noodles with a nut-free homemade basil pesto and tangy balsamic roasted tomatoes for a tasty meal any day of the week.


For the Spaghetti Squash

  • 1 medium or two small spaghetti squash, about 1500g
  • Salt and pepper

For the Pesto

  • ¾ cup pumpkin seeds (pepitas, 85g)
  • 2 cloves of garlic
  • 2 tbsp nutritional yeast
  • 1 tbsp light miso paste
  • 1 tbsp lemon juice
  • 2 cup lightly packed basil or a mix of basil and parsley (35 g total)
  • 1 cup spinach (25g)
  • 1/3 cup olive oil
  • Salt

For the Roasted Tomatoes

  • 2 cups grape or cherry tomatoes, halved (300g) 
  • 1 tbsp balsamic vinegar
  • 2 tsp olive oil
  • ¼ tsp thyme
  • ¼  tsp oregano
  • Salt and pepper


  1. Prepare the Squash: Preheat the oven to 425 F. Using a sharp knife cut the spaghetti squash in half, lengthwise. To do this, cut the ends off the squash so you have flat surfaces on either end. Place the squash on one flat end, then cut the knife into the squash and slice downwards to cut in half. Scoop out seeds with a spoon.
  2. Roast the Squash: Season the inside of the squash with salt and pepper. Roast, cut-side down for 30-45 minutes on a sheet pan or baking dish until the squash is easily pierced with a knife. The time will depend on size of squash. Avoid overcooking or the flesh will be mushy rather than singular stands.
  3. Scrape Squash: Let the squash cool slightly then use a fork to scrape the noodle-like strands from the squash. You can serve the squash left in the skin or transfer the “noodles” to a colander in the sink for 5 minutes to allow any excess water to drip out. This is not essential but does help and you may have some water pool on your plate when you serve.
  4. Make the Pesto: Add all of the pesto ingredients except the oil to a food processor or high-speed blender. Pulse to combine. With the machine running, slowly pour in the oil and blend until full combined. Season with salt.
  5. Roast Tomatoes: When the squash is more than halfway done, add the tomatoes to a baking sheet lined with parchment paper. Add the balsamic vinegar, olive oil, thyme, oregano and salt and pepper. Toss to coat and spread out in an even layer. Roast for 14-16 minutes until tender and blistered.
  6. Serve: To serve you can either add all of the spaghetti squash strands and pesto to a large bowl and toss to coat before dividing between bowls or plates to serve or divide the spaghetti squash between servings and top each with desired amount of pesto. Either way, top with the roasted tomatoes. Serve with black pepper, red chili flakes and vegan parmesan cheese, if you like.


Servings depend on size of squash used. One medium or large squash or two small squashes will serve 4. The pesto makes about 1.25 cups so you may have extra. 

Extra spaghetti squash and tomatoes can be stored in a container in the fridge for up to 3 days in an airtight container. Leftover pesto will keep for 2-3 days or can be frozen. 

Nutrition facts include using all of the pesto and tomatoes between 4 servings of squash. You may prefer to use a bit less pesto, depending on size of squash, and save the rest for another use.


  • Serving Size: 1
  • Calories: 438
  • Fat: 35g
  • Carbohydrates: 22g
  • Fiber: 8g
  • Protein: 21g

Original Low-Fat Pesto Recipe

I updated this recipe in 2024. The original recipe had a low-fat pesto sauce made with tofu was as follows.

  • 6 cups (550 g) fresh spinach
  • 1/2 package (150 g) soft tofu
  • 1 bunch or package of (50 g, approx. 1 cup lightly packed) fresh basil
  • 1/3 cup (30 g) nutritional yeast
  • 6 cloves garlic
  • 1/2 teaspoon sea salt
  • 2 tablespoons fresh lemon juice

Originally published May 3, 2017.