This satisfying low-carb version of classic gratin features tender roasted spaghetti squash strands tossed in a velvety cream sauce loaded with Gruyère and Parmesan. The whole dish bakes until golden and bubbly, creating that irresistible cheesy crust we all love. Each forkful delivers creamy richness with a hint of nutmeg, while the naturally sweet squash adds depth to the savory flavors. Perfect as a hearty vegetarian main or alongside roasted chicken.
The first time I served this at a dinner party, my friend refused to believe it wasn't pasta. She kept asking what kind of gluten free noodles I'd used, and when I finally told her it was squash, she literally laughed out loud. That moment of surprise, watching someone discover that vegetables could taste this indulgent, completely changed how I think about comfort food.
I started making this during a winter when I was trying to eat lighter but still craving something warm and cheesy after long days. The nutmeg was my grandmother's suggestion she always said it was the secret to making anything with a white cream sauce taste restaurant quality. She was right, of course.
Ingredients
- Spaghetti squash: Pick one that feels heavy for its size with a hard, unblemished shell that yields slightly to pressure
- Olive oil: Helps the squash roast evenly and adds a subtle fruitiness that balances the rich cheese
- Yellow onion: Finely chopped so it melts into the sauce rather than creating distinct chunks
- Garlic: Freshly minced releases more oils and flavor than pre chopped versions
- Gruyère cheese: This Swiss cheese melts beautifully and adds a nutty depth that makes the dish feel special
- Parmesan cheese: Adds salty umami notes that punch up the overall flavor without needing extra salt
- Sour cream: Creates a velvety texture in the sauce while adding a pleasant tang
- Unsalted butter: Combined with olive oil for sautéing, it adds richness without burning
- Whole milk: 2 percent works too, but whole milk gives the sauce the best body
- Nutmeg: Just a quarter teaspoon transforms the cream sauce into something sophisticated
- Fresh parsley: A bright pop of color and fresh flavor to cut through all that richness
Instructions
- Roast the squash:
- Preheat your oven to 400°F and line a baking sheet. Cut that squash in half lengthwise it takes some muscle, so be careful and scoop out all the seeds. Rub the cut sides with olive oil, season with salt and pepper, and place them cut side down. Let them roast for 35 to 40 minutes until a fork easily pierces the flesh.
- Sauté the aromatics:
- While the squash roasts, heat olive oil and butter in a skillet over medium heat. Add the onion and let it soften until translucent, about 5 minutes. Toss in the garlic for just one minute longer, watching carefully so it doesn't brown.
- Shred the squash:
- Let the roasted squash cool until you can handle it. Run a fork through the flesh, and watch it separate into those amazing spaghetti like strands. Scoop them all into a large mixing bowl.
- Make the sauce:
- Add the onion, garlic, sour cream, milk, half the Gruyère, half the Parmesan, nutmeg, salt, and pepper to the squash. Mix everything until the squash is evenly coated in that creamy mixture.
- Assemble and bake:
- Transfer everything to a greased 2 quart baking dish and spread it evenly. Sprinkle the remaining cheeses over the top. Reduce the oven to 375°F and bake for 20 to 25 minutes until the top is golden and bubbling. Let it rest for a few minutes before serving.
My teenage son, who normally turns his nose up at anything labeled vegetable, actually went back for seconds. Watching him scrape up every last cheesy strand from the baking dish was one of those small victories that make cooking worth it.
Make Ahead Magic
You can assemble the entire gratin up to a day ahead and refrigerate it unbaked. Add 5 to 10 minutes to the baking time if it's going into the oven cold from the fridge.
Cheese Swaps
Sharp cheddar adds a bolder flavor profile, while fontina creates an incredibly creamy texture. I've even used a smoked gouda for a completely different but equally delicious variation.
Serving Suggestions
This is substantial enough to stand alone as a vegetarian main, especially with a simple green salad dressed with vinaigrette. It also pairs beautifully with roasted chicken or pork chops if you want to add some meat to the meal.
- Let the gratin rest for 5 minutes before serving to set the sauce
- A little extra parsley on top makes it look gorgeous for photos
- Leftovers reheat at 350°F for about 15 minutes until hot throughout
There's something deeply satisfying about taking a humble vegetable and turning it into something this indulgent. It's the kind of dish that makes you forget you're eating something good for you.
Recipe Q&A
- → How do I know when the squash is done roasting?
-
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 inside and see those signature spaghetti-like strands form without much resistance.
- → Can I make this ahead of time?
-
Yes! Assemble the complete mixture in your baking dish up to 24 hours in advance, cover tightly, and refrigerate. When ready to serve, bake as directed, adding an extra 5–10 minutes if baking cold from the refrigerator.
- → What other cheeses work well?
-
Sharp cheddar adds bold flavor, fontina melts beautifully, or Swiss offers a milder nuttiness. You can also mix multiple varieties—try half cheddar and half Gruyère for a balance of sharp and nutty notes.
- → Is this suitable for meal prep?
-
Absolutely. Portion leftovers into airtight containers and refrigerate for up to 4 days. Reheat in the oven at 350°F for about 15 minutes, or microwave individual portions until warmed through. The texture holds up beautifully.
- → Can I freeze this dish?
-
Yes, freeze before the final baking step. Wrap the assembled dish tightly in foil and plastic, then freeze for up to 2 months. Thaw overnight in the refrigerator before baking as directed.