When the foil comes off, the squash should look softened and the cream should be bubbling gently around the edges. A little later, Gruyère turns golden in spots, and the top gets that savory, browned finish that makes this Butternut Squash Gratin with Gruyère feel right at home beside a roast or on its own as a cozy main.
I warm the cream with garlic, thyme, pepper, and nutmeg before it goes over the squash. That way, the seasoning is already spread through the dish instead of sitting in a few pockets. The squash bakes covered first, so it has time to become tender before the cheese goes on. You get soft slices beneath a browned top, with cream that stays rich rather than boiling away.

Kitchen Note
Give the gratin its full 10-minute rest before serving. The cream settles around the squash as it rests, so the first scoop holds together better instead of sliding apart on the plate.
Save this butternut squash gratin with Gruyère for a golden, creamy side dish that starts with tender layers of squash.
The 1/4-Inch Slice Is What Keeps the Squash Tender Instead of Slumping
Butternut squash softens as it bakes, and the slices need to be thin enough to turn tender in the covered part of the bake. Cut them about 1/4 inch thick and aim for slices that are reasonably even. If some are much thicker than others, the thin pieces can become very soft while the thick centers still resist a knife. It’s worth taking a minute to check the stack as you slice.
The overlapping layers also matter. They keep the squash close together, so the warm cream can move through the gaps and season the whole dish. Don’t pack the slices into a solid, compressed mass; a little room between layers lets the cream settle around them. Once assembled, the squash will look generously layered, but it softens and settles during baking. This balance gives you pieces that stay recognizable on the fork rather than collapsing into a loose mash.
Why Heavy Cream and Gruyère Matter in This Squash Gratin

- Butternut squash — Choose a firm squash with unblemished skin; a whole squash is often less expensive than prepared cubes and lets you cut slices to the same thickness. Peel it, scoop out the seeds, and slice it evenly. Pre-cut cubes won’t layer or cook in quite the same way.
- Heavy cream — Its richness gives the gratin a full, cohesive sauce as the squash bakes. Half-and-half is thinner and won’t give quite the same lush result. Warm the cream with the seasonings rather than pouring it in cold.
- Gruyère — This cheese melts into a savory, browned topping that stands up to the squash’s sweetness. Freshly shredded cheese melts smoothly; a pre-shredded option is convenient, though it may not melt quite as evenly.
- Garlic and thyme — Minced garlic seasons the cream throughout, while fresh thyme brings a woodsy note without overpowering the squash. Strip the thyme leaves from their stems before measuring, and mince the garlic finely so it distributes instead of forming strong little bites.
- Nutmeg and black pepper — Nutmeg adds a warm background note, so keep it subtle. Freshly ground or pre-ground black pepper both work; use what you have on hand.
How to Layer and Bake the Squash Before the Gruyère Goes On
Warm the Seasoned Cream Without Boiling It
Heat the oven to 375°F and butter a 9×13-inch baking dish, including the corners. Warm the heavy cream, minced garlic, thyme, salt, pepper, and nutmeg in a medium saucepan over medium heat. Stop when the cream is steaming; it shouldn’t boil. If you see active bubbles, take the pan off the heat so the cream doesn’t reduce before it reaches the squash.
Arrange the Squash in Overlapping Layers
Lay the squash slices in overlapping layers in the prepared dish. Pour the warm cream mixture evenly over the top, giving it a moment to run into the spaces between slices. Cover the dish tightly with foil; a loose cover lets too much steam escape. Bake covered for 45 minutes before checking the squash.
Check for Tenderness Before Adding Cheese
Remove the foil and slide a knife into a slice near the center of the dish. The squash should be nearly tender, with only a little resistance; if it still feels firm, cover the dish again and bake for 10 more minutes. Don’t add the cheese while the squash is still notably hard, because the topping can brown before the center layers soften. When the knife test shows the squash is nearly tender, uncover the dish.
Brown the Gruyère and Let the Gratin Rest
Scatter the shredded Gruyère evenly over the squash, then bake uncovered for 20 to 25 minutes. Look for tender squash and cheese that’s melted with golden spots across the top. If the cheese is browning quickly, keep an eye on it as it finishes so the topping doesn’t go past golden. Set the gratin aside for 10 minutes before serving.
Three Ways to Change the Flavor or Make This Gratin Dairy-Free
A Dairy-Free Version with a Different Finish
Use plant-based butter to grease the dish, an unsweetened dairy-free cooking cream formulated for heating in place of the heavy cream, and dairy-free shredded cheese instead of Gruyère. The squash will still bake in a creamy layer, though the topping may brown and melt differently, and the flavor won’t have Gruyère’s nutty character.
Make the Garlic More Prominent
For a stronger garlic note, use two minced cloves instead of one. Warm them in the cream as usual; the extra garlic brings a more savory edge that balances the squash’s sweetness without changing the layering or bake.
Storage and Reheating
- Refrigerator: Cover leftovers and refrigerate for 3 to 4 days. The squash softens more as it sits, and the cream thickens.
- Freezer: Freeze cooled portions in an airtight container for up to 2 months. Thaw overnight in the refrigerator; the cream may look slightly less smooth and the squash will be softer.
- Reheating: Reheat covered in a 350°F oven until the center reaches 165°F, then uncover briefly if you’d like to refresh the top. Avoid reheating uncovered the whole time, which can dry the squash before the center is hot.
Questions That Come Up When Making Butternut Squash Gratin

Butternut Squash Gratin with Gruyère
Ingredients
Equipment
Method
- Heat the oven to 375°F.
- Grease a 9x13-inch baking dish with the butter.
- In a medium saucepan, warm the heavy cream, garlic, thyme, salt, pepper, and nutmeg over medium heat until steaming; do not let it boil.
- Arrange the squash slices in overlapping layers in the prepared dish.
- Pour the warm cream mixture evenly over the squash, cover tightly with foil, and bake for 45 minutes.
- Remove the foil and test the squash with a knife.
- If it is not nearly tender, cover and bake for 10 more minutes.
- Uncover and scatter the Gruyère over the top.
- Bake for 20 to 25 minutes, until the squash is tender and the cheese is golden in spots.
- Let the gratin rest for 10 minutes before serving.