This post contains affiliate links. As an Amazon Associate I earn from qualifying purchases. If you click a link and make a purchase, I may receive a small commission at no extra cost to you.
To cook spaghetti squash, roast it cut-side down at 400°F for about 40 to 50 minutes, depending on the size of your squash.
That’s the short answer, and honestly, it’s the one that gives you the best results every single time.
But if you’ve ever typed “how long and what temp to cook spaghetti squash” into Google while staring at a giant yellow squash on your counter, you know there’s a bit more to it.
The good news is that knowing how long and what temp to cook spaghetti squash is simple once you understand a few key variables.
In this post, I’ll walk you through exactly how long and at what temperature to cook spaghetti squash, plus a few tips to get those perfect noodle-like strands.
Let’s get cooking.
What Temp to Cook Spaghetti Squash At
The best temperature to cook spaghetti squash is 400°F (204°C).
Here’s why that number works so well:
1. High Heat Caramelizes the Edges
When you cook spaghetti squash at 400°F, the natural sugars in the flesh start to caramelize.
That gives you slightly sweet, roasty notes instead of a bland, watery bite.
This is the temp to cook spaghetti squash if you want flavor, not just function.
2. It Keeps the Flesh From Getting Mushy
Lower temperatures mean longer cook times, and longer cook times mean soggy squash.
When you cook spaghetti squash at a higher temp like 400°F, the moisture releases faster and the strands stay firm.
Nobody wants spaghetti squash that turns into mush when you fork it.
Aim for that 400°F sweet spot and you’ll get strands that actually twirl like pasta.
3. It Works for Both Halves and Whole Squash
If you’re cooking spaghetti squash halves, 400°F is ideal.
If you’re roasting a whole spaghetti squash (yes, you can do that), 400°F still works great—you just need a longer cook time.
Either way, this is the temp to cook spaghetti squash that gives you consistent results.
How Long to Cook Spaghetti Squash
How long to cook spaghetti squash depends on how you cut it and how big it is.
Here’s a simple breakdown:
1. Halved Spaghetti Squash: 40–50 Minutes
If you cut your squash in half lengthwise and scoop out the seeds, roast it cut-side down at 400°F for 40 to 50 minutes.
A medium squash (about 3 pounds) usually takes around 45 minutes.
You’ll know it’s done when a fork pierces the skin easily and the inside shreds into strands.
This is the most common answer to how long to cook spaghetti squash, and it’s reliable.
2. Whole Spaghetti Squash: 50–60 Minutes
Roasting a whole spaghetti squash takes a bit longer because the heat has to penetrate the skin.
Poke a few holes in it with a knife, place it on a baking sheet, and roast at 400°F for 50 to 60 minutes.
Even a large squash is usually tender by the one-hour mark.
When you cook spaghetti squash whole, you skip the cutting struggle, which is a win in my book.
3. Smaller Squash: 35–40 Minutes
If you’ve got a small spaghetti squash—say, under 2 pounds—it’ll cook faster.
Start checking at the 35-minute mark.
Overcooking is the fastest way to ruin spaghetti squash, so pull it as soon as a fork slides in without resistance.
4. Microwaved Spaghetti Squash: 10–15 Minutes
In a hurry?
You can cook spaghetti squash in the microwave.
Cut it in half, place it cut-side down in a microwave-safe dish with a splash of water, and microwave on high for 10 to 15 minutes.
It’s not quite as flavorful as roasting, but it gets the job done when you need dinner fast.
How to Cook Spaghetti Squash Perfectly Every Time
Now that you know how long and what temp to cook spaghetti squash, here are a few quick tips to nail it.
1. Always Roast Cut-Side Down
Cut-side down keeps the flesh from drying out, and the steam helps the strands separate beautifully.
This is one of the easiest ways to cook spaghetti squash at the right temp without babysitting it.
2. Don’t Skip the Olive Oil and Salt
A light brush of olive oil and a sprinkle of salt before roasting makes a huge difference.
It seasons the squash from the outside in and helps it brown just a bit.
3. Let It Rest Before Shredding
Once it’s out of the oven, let it sit for 5 to 10 minutes.
Then grab a fork and rake it through the flesh—those spaghetti-like strands will come right out.
If you’re wondering how long to cook spaghetti squash so it shreds easily, resting it is the secret step most people miss.
So, How Long and What Temp to Cook Spaghetti Squash?
Cook spaghetti squash at 400°F for 40 to 50 minutes if it’s halved, or 50 to 60 minutes if it’s whole.
That’s really all there is to it.
The temp to cook spaghetti squash matters because high heat keeps the strands firm, and the cook time matters because overcooking turns it to mush.
Once you’ve got this down, you’ll never need to look up how long and what temp to cook spaghetti squash again.
Now go roast that squash and enjoy your “pasta” night.