Low-carb comfort food featuring roasted spaghetti squash strands tossed with a velvety blend of sour cream, milk, and melted cheeses. The squash roasts until tender, then gets combined with sautéed onions and garlic before being baked with a generous cheese topping. Perfect as a satisfying vegetarian main or hearty side alongside roasted meats.
The first time I made spaghetti squash au gratin, my kitchen filled with that incredible roasted squash smell that somehow makes everything feel cozy. My roommate walked in and immediately asked what was baking, because the aroma was just that inviting. Now whenever I want comfort food without the heavy pasta feeling, this is my go to dish.
I served this at a dinner party last fall alongside roasted chicken, and honestly, everyone kept asking what I did to the squash. One friend who swore she hated spaghetti squash actually went back for seconds. Sometimes the best dishes are the ones that surprise people the most.
Ingredients
- 1 large spaghetti squash: Look for one that feels heavy for its size with a hard, unblemished skin, about 3 pounds gives you the perfect flesh to sauce ratio
- 2 tablespoons olive oil: You will use half for roasting the squash and half for cooking the onions, the grassy flavor balances the rich cheese beautifully
- 1 small yellow onion: Finely chopped so it melts into the dish rather than having obvious onion pieces
- 2 cloves garlic: Minced fresh because garlic powder just does not give you that aromatic backing note
- 1 cup shredded Gruyère cheese: This is the star that brings that nutty, complex flavor that makes the dish feel special
- 1/2 cup grated Parmesan cheese: Adds the salty, umami depth that keeps the dish from being one note
- 1/2 cup sour cream: The tanginess cuts through all the richness and brings everything together
- 2 tablespoons unsalted butter: Adds that velvety mouthfeel to the onion base
- 1/4 cup milk: Whole milk gives you the best texture, but 2 percent works if that is what you have
- 1/2 teaspoon salt: Split between seasoning the squash and the final mixture
- 1/4 teaspoon ground black pepper: Freshly cracked makes a noticeable difference
- 1/4 teaspoon ground nutmeg: The secret ingredient that makes creamy dishes taste professional
- 1 tablespoon chopped fresh parsley: Totally optional, but that pop of green on top makes it look finished
Instructions
- Get your oven ready:
- Preheat to 400°F and line a baking sheet with parchment paper for easy cleanup later
- Prep the squash:
- Cut it in half lengthwise, scoop out those seeds, drizzle the cut sides with 1 tablespoon olive oil and sprinkle with salt and pepper
- Roast the squash:
- Place it cut side down on your prepared sheet and roast for 35 to 40 minutes until the flesh shreds easily with a fork
- Make the flavor base:
- While the squash roasts, heat the remaining olive oil and butter in a skillet over medium heat, cook the onion until soft, about 5 minutes, then add garlic for 1 more minute
- Shred and combine:
- Let the squash cool slightly, scrape it into strands, then toss with the onion mixture, sour cream, milk, half of each cheese, nutmeg, and remaining salt and pepper
- Assemble and bake:
- Transfer everything to a greased 2 quart baking dish, top with the remaining cheese, reduce oven to 375°F, and bake for 20 to 25 minutes until golden and bubbly
- Finish and serve:
- Sprinkle with fresh parsley if you want that extra color contrast and serve while it is still hot
This dish has become my answer to those nights when we want something comforting but not heavy. My husband actually requests it more than traditional mac and cheese now.
Making It Your Own
I have learned that a pinch of cayenne or smoked paprika in the cheese mixture adds this incredible warmth that keeps people guessing. Sharp cheddar works beautifully if you are not feeling the gruyere vibe, and fontina makes it even more melty and mild.
Perfect Pairings
This gratin holds its own as a vegetarian main, but it is also stellar alongside roasted chicken or pork. I have served it with a simple green salad dressed with vinaigrette, and the acidity cuts through all that creamy richness perfectly.
Make Ahead Wisdom
You can assemble everything up to a day in advance and keep it covered in the refrigerator, just add 5 to 10 minutes to the baking time since it will be cold. The leftovers actually reheat beautifully, though the top will not be quite as crispy.
- Use a glass baking dish if you plan to reheat, it distributes heat more evenly
- Sprinkle a little fresh cheese on leftovers before reheating to revive that golden top
- Let it sit 5 minutes after baking so the sauce sets up slightly
There is something deeply satisfying about transforming a humble squash into something this creamy and special. Hope it becomes a comfort staple in your kitchen too.
Your Recipe Questions Answered
- → How do I know when the spaghetti squash is done roasting?
-
The squash is ready when the flesh is 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 interior effortlessly.
- → Can I make this ahead of time?
-
Yes! Assemble the complete dish up to 24 hours in advance, cover tightly, and refrigerate. When ready to bake, add 5–10 minutes to the baking time since it will be cold.
- → What cheese substitutes work well?
-
Sharp cheddar brings a bold flavor, while fontina offers excellent meltiness. Swiss cheese provides a classic nutty taste similar to Gruyère. Avoid fresh mozzarella as it releases too much moisture.
- → Is this suitable for keto diets?
-
Yes! With only 19 grams of carbohydrates per serving and no gluten-containing ingredients, this dish fits perfectly into keto and low-carb eating plans. The healthy fats from cheese and dairy provide satiety.
- → Can I freeze leftovers?
-
Frozen leftovers may become slightly watery when reheated due to the dairy content. For best results, refrigerate and consume within 3–4 days. Reheat gently at 350°F until warmed through.