How to Cook Spaghetti Squash: Roast, Microwave, Air Fry

This step-by-step guide shows how to cook spaghetti squash in the oven, air fryer, or microwave. Each tested method yields tender, tasty spaghetti squash you can serve as a low-carb pasta alternative or a simple side dish.

cooked spaghetti squash on plate with fork

Table of contents

  • Preparing squash for cooking
  • Tips for cutting spaghetti squash
  • How to cook spaghetti squash in the oven
  • How to microwave spaghetti squash
  • How to cook spaghetti squash in an air fryer
  • What’s the best way to cook spaghetti squash?
  • Recipes to make with it
  • Pro tips
  • Storing and freezing
  • Tools for this recipe
  • More kitchen tutorials

Spaghetti squash naturally separates into long, noodle-like strands when cooked, making it an excellent gluten-free and lower-carb substitute for pasta. This guide covers selecting squash, safely cutting it, and three reliable cooking methods—roasting for deep flavor, air frying for a slightly crisp top, and microwaving for speed. After cooking, scrape the flesh with a fork into “noodles,” then dress them with olive oil, herbs, or your favorite pasta sauce.

spaghetti squash cut in half on cutting board

Preparing squash for cooking

Cooking a spaghetti squash whole is possible, but cutting it in half before roasting yields more caramelized edges and allows you to season the flesh directly. Follow these simple preparation steps:

  • Choose a firm squash that feels heavy for its size, with smooth, intact skin and a solid stem.
  • Wash the exterior to remove dirt and debris.
  • If you plan to microwave the whole squash, poke several holes in the skin with a sharp knife or fork to let steam escape and avoid pressure buildup.
  • Or cut the squash in half and scoop out the seeds with a fork or spoon.
  • Brush the cut flesh with a little olive oil and season as desired—salt and pepper are classic. Garlic powder, onion powder, oregano, thyme, or a pinch of warm spices like cinnamon and nutmeg also work depending on the flavor direction.
spaghetti squash in microwave
spaghetti squash on cutting board with knife slicing through the middle

Tips for cutting spaghetti squash

Cutting spaghetti squash can be intimidating because of the tough skin, but these steps make it easier and safer.

  1. Lay the squash on its side and trim a small slice off one end to create a flat surface.
  2. Stand the squash on the trimmed end for stability, then slice downward lengthwise with a sharp chef’s knife. Take your time and use steady pressure.
  3. If the squash resists, microwave it whole for 3–5 minutes to loosen the skin and make slicing simpler.
  4. For longer noodle strands, slice the squash crosswise (horizontally). For shorter strands, cut it lengthwise.

How to cook spaghetti squash in the oven

Roasting produces the richest flavor. This method caramelizes the edges and gives a naturally sweet taste that pairs beautifully with savory sauces.

spaghetti squash cut in half on cutting board, with seeds removed on the side of the board

Step 1: Preheat oven to 400°F (200°C). Cut the squash in half lengthwise and scoop out seeds with a fork or spoon.

seasoned spaghetti squash halves on cutting board

Step 2: Brush the flesh with olive oil and season with salt and pepper or your chosen spices.

spaghetti squash cut in half on wire rack on top of baking sheet

Step 3: Place the halves cut-side down on a wire rack set over a rimmed baking sheet (or directly on a foil-lined sheet). The rack helps any moisture drain away so the flesh roasts instead of steams. Roast for 30–40 minutes.

roasted spaghetti squash half sitting on wire rack on top of a baking sheet

Step 4: Remove from oven and test with a fork. If the flesh pulls away easily into strands, it’s done. If still firm, return to the oven for 5-minute increments until tender.

roasted spaghetti squash on plate with fork

How to microwave spaghetti squash

Microwaving is the quickest option and great when time is limited. It softens the squash enough to slice and shred into noodles in a fraction of the time.

fork stuck in spaghetti squash to poke holes

Step 1: Leave the squash whole and poke several holes in the skin with a fork to release steam while cooking.

spaghetti squash on plate in microwave

Step 2: Place on a microwave-safe plate and microwave 5 minutes. Carefully turn the squash and microwave another 5 minutes. Test by squeezing with an oven mitt or tongs; if it has give, cool 10 minutes, then cut and scoop. If still firm, continue microwaving in 2-minute increments until tender (a 3–4 lb squash usually takes up to 14 minutes).

After cooling, slice off a small piece from the bottom so the squash can stand upright, then cut in half, remove seeds, and shred the flesh into strands with a fork. Season and serve.

microwaved spaghetti squash half on plate with fork

How to cook spaghetti squash in an air fryer

The air fryer cooks faster than the oven and can produce a lightly crisped top layer. It’s best for single halves or smaller squash due to basket size limits.

uncooked spaghetti squash half in air fryer

Step 1: Cut the squash in half, remove seeds, brush with olive oil and season.

cooked spaghetti squash half in air fryer basket

Step 2: Place cut side up in the air fryer basket and cook at 380°F (193°C) for about 24 minutes, flipping halfway. If you prefer no browning, cook cut side down for the full time.

three halves of cooked spaghetti squash on cutting board

What’s the best way to cook spaghetti squash?

Each method has benefits:

  • Microwave: Fastest, ideal when you need cooked squash in minutes. Texture is softer and less roasted, but flavor remains pleasant.
  • Oven: Best overall for flavor and texture. Roasting caramelizes sugars and produces a slightly firmer, more flavorful result. It’s efficient for multiple squash at once.
  • Air fryer: Faster than the oven for single halves and gives a lightly crisped top. Basket size can limit how many halves you can cook at once.

Recipes to make with it

Use shredded spaghetti squash like pasta—top it with tomato sauce or a creamy sauce, toss with pesto, or fold in vegetables and proteins for complete meals. Ideas include:

  • Marinara or meat sauce over warm squash strands
  • Creamy mushroom and bacon sauce tossed with the noodles
  • Spaghetti squash mac and cheese as a lighter take on the classic
  • Stuffed halves baked with spinach, artichoke, or cheese
  • Cold salads tossed with pesto, cherry tomatoes, and fresh herbs

Pro tips

  • You’ll know the squash is done when a fork inserts easily and the flesh pulls apart into strands—tender, not mushy.
  • To avoid watery squash, don’t overcook. Use a wire rack when roasting so moisture drains away. Lightly salting the flesh before roasting helps draw out excess moisture.
  • Leave the peel intact—spaghetti squash is easy to scoop after cooking and does not need to be peeled beforehand.
  • Cutting lengthwise gives shorter strands; cutting horizontally produces longer noodles.
cooked spaghetti squash strands in freezer plastic bags

Storing and freezing

After shredding the cooked squash into noodles, let it cool to room temperature and store in an airtight container.

Refrigerate for up to 7 days. For longer storage, freeze cooked spaghetti squash for up to 8 months. Vacuum sealing prevents freezer burn best; otherwise use freezer-safe bags and remove as much air as possible before sealing.

Tools for this recipe

  • Rimmed baking sheet and a wire rack for oven roasting
  • Sharp chef’s knife (or an electric knife if you prefer)
  • Microwave-safe plate for the microwave method
  • Air fryer for quick cooking of single halves
  • Tongs or oven mitts to handle hot squash

More kitchen tutorials

Try other simple how-tos to build kitchen confidence: how to roast and prepare other winter squash varieties, caramelize onions, roast bacon in the oven, or quick methods for cooking sweet potatoes and hard-boiled eggs.

How To Cook Spaghetti Squash

Servings: About 4 pounds squash (approximately 6 cups cooked from a 4 lb squash)

Prep time: 10 minutes • Cook time: 30 minutes (oven method) • Total time: 40 minutes

Ingredients

  • 4 pound spaghetti squash
  • 1 tablespoon olive oil
  • ½ teaspoon salt
  • ½ teaspoon black pepper

Instructions

Oven Method

  1. Preheat oven to 400°F (200°C).
  2. Cut the squash in half lengthwise and remove seeds with a fork.
  3. Brush the flesh with olive oil and season with salt and pepper.
  4. Place cut-side down on a wire rack set over a rimmed baking sheet. Roast 30–40 minutes.
  5. Test by pulling the flesh with a fork into strands. If tender, it’s ready; if not, return to oven in 5-minute increments until done.

Microwave Method

  1. Leave the squash whole and poke several holes in the skin to release steam.
  2. Place on a microwave-safe plate and microwave 5 minutes. Carefully turn and microwave another 5 minutes.
  3. Test by squeezing with an oven mitt—if it gives, let cool 10 minutes. If still firm, microwave 2-minute increments until tender.
  4. Slice off a small piece of the bottom so it can stand, cut in half, remove seeds, and shred into strands.

Air Fryer Method

  1. Cut squash in half and remove seeds. Brush with oil and season with salt and pepper.
  2. Place cut-side up in the air fryer basket and cook at 380°F (193°C) for 24 minutes, flipping halfway through. For no browning, cook cut-side down the entire time.
  3. Check doneness by pulling the flesh into strands with a fork.

Notes

  • A 4 pound squash yields roughly 6 cups of cooked spaghetti squash. Nutritional values vary by portion size.
  • To make cutting easier, trim a small flat slice off the bottom so the squash stands upright.
  • Using a wire rack when roasting helps drain moisture so the squash roasts rather than steams.
  • Do not peel before cooking; the cooked flesh scoops out easily.

Nutrition (approx. per pound)

Calories: 131 kcal • Carbohydrates: 22 g • Protein: 2 g • Fat: 5 g • Fiber: 5 g • Vitamin A & C, potassium and small amounts of calcium and iron.