This comforting dish transforms roasted spaghetti squash into a rich, creamy gratin. The squash strands are tossed with a velvety blend of sour cream, milk, nutmeg, and melted Gruyère and Parmesan cheeses. After roasting until tender, the mixture is baked until the top creates a golden, bubbly cheese crust. Perfect as a satisfying vegetarian main or hearty side alongside roasted meats.
The first time I served this at a dinner party, my friend Sarah literally stopped mid conversation and asked what kind of pasta this was. Her face when I told her it was squash was absolutely priceless.
My teenage son, who normally turns his nose up at anything labeled healthy, went back for thirds. That moment of watching him happily eat vegetables disguised as cheesy goodness? Thats the kind of kitchen win that keeps you cooking.
Ingredients
- 1 large spaghetti squash: Pick one thats heavy for its size and has a firm, dull rind without any soft spots
- 2 tablespoons olive oil: Divide this between roasting the squash and sautéing the aromatics
- 1 small yellow onion: Finely chopped so it melts into the sauce rather than staying in distinct pieces
- 2 cloves garlic: Freshly minced garlic makes such a difference here, please skip the jarred stuff
- 1 cup shredded Gruyère cheese: This Swiss style cheese brings an incredible nutty depth that other cheeses just cant match
- 1/2 cup grated Parmesan cheese: Adds that salty, savory punch that balances the creaminess perfectly
- 1/2 cup sour cream: The secret ingredient that makes the sauce unbelievably velvety
- 2 tablespoons unsalted butter: Works with the olive oil to create the most fragrant base for our onions
- 1/4 cup milk: Whole milk gives the best results but 2 percent works fine too
- 1/2 teaspoon salt: Adjust this based on your personal taste preference
- 1/4 teaspoon ground black pepper: Freshly cracked pepper brings a warmth that pre ground just cant deliver
- 1/4 teaspoon ground nutmeg: Just a pinch adds this incredible subtle warmth that makes the whole dish taste sophisticated
- 1 tablespoon chopped fresh parsley: Totally optional but that pop of green on top makes it look so inviting
Instructions
- Get your oven ready:
- Preheat to 400°F and line a baking sheet with parchment paper, which makes cleanup so much easier later
- Prep the squash:
- Cut it in half lengthwise, scoop out those seeds, then drizzle the cut sides with 1 tablespoon olive oil and season with salt and pepper
- Roast the squash:
- Place it cut side down on your prepared sheet and let it roast for 35 to 40 minutes until tender enough to shred easily with a fork
- Build the flavor base:
- While squash roasts, heat the remaining oil and butter in a skillet over medium heat, cook onion until soft about 5 minutes, then add garlic for 1 more minute
- Shred the squash:
- Let the roasted squash cool slightly, then use a fork to scrape that flesh into strands and collect them in a large bowl
- Make it creamy:
- Add the onion mixture, sour cream, milk, half the cheeses, nutmeg, salt and pepper to the squash and mix until every strand is coated
- Assemble the gratin:
- Transfer everything to a greased 2 quart baking dish and sprinkle the remaining cheeses evenly over the top
- Bake to golden perfection:
- Reduce oven to 375°F and bake for 20 to 25 minutes until that cheese top is bubbling and beautifully golden
- Finish and serve:
- Sprinkle with fresh parsley if you want that restaurant style finish and serve it while its still steaming hot
Last winter, my neighbor who swears she hates squash tried this dish and immediately asked for the recipe. Now she makes it every Sunday for meal prep, which honestly feels like the best compliment a recipe could receive.
Make It Your Own
The beauty of this recipe is how well it adapts to whatever you have in the fridge. Sometimes I add chopped spinach or wilted kale for extra nutrition, and my husband likes when I sprinkle in some crispy bacon bits before baking.
Perfect Pairings
My favorite way to serve this is alongside a simple green salad with a bright vinaigrette to cut through all that richness. For heartier appetites, it pairs beautifully with roasted chicken or even as part of a vegetarian spread with some crusty gluten free bread.
Make Ahead Magic
You can assemble this entire gratin up to 24 hours ahead and keep it covered in the refrigerator. When youre ready to bake, just add an extra 5 to 10 minutes to the cooking time to account for the cold start.
- Leftovers reheat beautifully at 350°F for about 15 minutes
- The squash actually gets more flavorful after sitting for a day
- This freezes well for up to 3 months if you wrap it tightly
Every time I pull this bubbling golden dish from the oven, Im reminded that some of the best kitchen discoveries happen when we stay curious and willing to try something new.
Recipe FAQs
- → How do I know when the spaghetti squash is fully roasted?
-
The squash is ready when the flesh feels tender and easily shreds into strands with a fork. This typically takes 35–40 minutes at 400°F. You should be able to scrape the flesh without any resistance.
- → Can I make this ahead of time?
-
Yes, you can assemble the dish up to a day in advance and refrigerate before baking. Add a few extra minutes to the baking time if baking cold from the refrigerator.
- → What other cheeses work well in this dish?
-
Sharp cheddar, fontina, or Swiss cheese make excellent substitutes for Gruyère. You can also use mozzarella for a milder flavor or combine multiple varieties for more depth.
- → Is this dish keto-friendly?
-
Yes, this is naturally low-carb and keto-friendly. Spaghetti squash provides a pasta-like texture with significantly fewer carbohydrates than traditional pasta or potatoes.
- → Can I freeze the leftovers?
-
Leftovers can be frozen in an airtight container for up to 3 months. Reheat in the oven at 350°F until heated through. The texture may be slightly softer after freezing.