Thin layers of potatoes, sweet potatoes, and parsnips bake down into a gratin that cuts neatly, holds its shape, and still gives you a creamy spoonful in every bite. The top turns deeply golden and a little crisp around the edges, while the vegetables underneath stay tender instead of collapsing into mush. It’s the kind of side dish that looks elegant on the table but tastes like something you’d happily eat straight from the baking dish.
This version works because the cream is warmed before it goes into the oven, which helps the garlic, thyme, and nutmeg bloom and also keeps the dish from spending too long in the oven before the vegetables start softening. The mix of Gruyere and Parmesan does the rest: Gruyere melts into the layers, while Parmesan gives the top a sharper, saltier crust. Slicing the vegetables thin and evenly matters more than anything else here, because uneven slices mean some pieces turn silky before others are cooked through.
Below, I’ve included the one detail that keeps the gratin from turning watery, plus a few smart swaps for when you want to change the flavor or work around what’s in your pantry.
The cream mixture soaked into the layers perfectly, and the top came out bubbling and browned without the potatoes turning waterlogged. I made it ahead for Sunday dinner and it sliced cleanly after resting.
Save this cheesy root vegetable gratin for the kind of meal that needs a bubbling Gruyere crust and tender layers underneath.
The Trick to Keeping Root Vegetables Tender Without Losing the Layers
The biggest risk with a gratin like this is uneven cooking. Potatoes, sweet potatoes, and parsnips don’t soften at exactly the same rate, so if the slices are too thick or the layers are packed too loosely, you end up with a dish that’s creamy at the edges and stubborn in the center. Thin, even slices are what let the cream and cheese finish the job without turning the vegetables into a loose casserole.
Warming the dairy before it goes in helps the garlic and thyme infuse the sauce, but it also gives the whole dish a head start. Cold cream can drag the bake time out and leave the top overbrowned before the middle is tender. Letting the finished gratin rest matters too. The layers settle, the sauce thickens, and you get clean squares instead of a puddle on the plate.
What Each Ingredient Is Actually Doing in This Gratin

- Yukon gold potatoes — These give the gratin its structure and that soft, buttery bite. Russets work in a pinch, but they break down a little more, so the layers won’t stay quite as neat.
- Sweet potatoes — They bring sweetness and color, which keeps the gratin from tasting one-note. Use firm, unblemished potatoes here; soft or watery sweet potatoes can make the dish loose.
- Parsnips — This is the ingredient that makes the gratin taste a little more interesting than the standard potato version. Their earthy sweetness plays well with Gruyere and nutmeg, and there isn’t a substitute that quite mimics that flavor, though peeled celery root can stand in if needed.
- Gruyere — This is the main melting cheese, and it’s worth buying from the deli or cheese counter if you can. Pre-shredded cheese will melt, but it usually contains anti-caking agents, which can make the sauce a little less smooth.
- Parmesan — This is for the top, where you want sharper flavor and a deeper crust. Freshly grated Parmesan gives the best finish because it browns more evenly than the shelf-stable kind.
- Heavy cream and whole milk — The cream gives richness, while the milk keeps the gratin from feeling heavy. Lower-fat dairy can work, but the sauce won’t cling to the vegetables in quite the same way.
Building the Gratin So the Center Cooks Before the Top Burns
Warming the Cream Base
Heat the cream, milk, garlic, thyme, salt, pepper, and nutmeg until the mixture is steaming, then pull it off the heat. You want the garlic fragrant and the dairy hot, not boiling; once dairy boils hard, it can take on a cooked taste and the surface can form a skin. Steaming is enough to wake up the aromatics and help the sauce flow between the layers.
Layering the Vegetables
Start with a third of the sliced vegetables, then scatter over a third of the Gruyere, and repeat twice more. Keep the layers even and slightly overlapping so the cream can move through the dish instead of pooling in one corner. If your slices are clumped together, separate them with your fingers as you build; tight spots bake unevenly.
Foil, Then Finish Uncovered
Cover the dish tightly with foil for the first bake so the vegetables steam gently and soften all the way through. If the foil is loose, the top dries out before the center is tender. Once you uncover it and add the Parmesan, the goal shifts to browning: the surface should bubble around the edges and deepen to a golden crust while a knife slides through the middle with almost no resistance.
Resting Before Serving
Give the gratin 10 minutes on the counter before you cut into it. The sauce thickens as it cools, which keeps the layers intact and stops the whole pan from slumping when you scoop it. If you serve it straight from the oven, it still tastes good, but it won’t hold together the same way.
How to Adapt This for a Different Table or Pantry
Gluten-Free by Default
This gratin is naturally gluten-free as written, which makes it an easy side dish for mixed-diet dinners. Just check your cheese labels if you’re buying pre-shredded, since a few brands use additives that can affect melt quality.
Dairy-Free Version
Use full-fat unsweetened oat cream or cashew cream in place of the heavy cream and milk, then swap in a dairy-free melty cheese for the Gruyere. The texture will be a little less lush and the flavor less nutty, but the layers will still bake up tender and sliceable.
Cheese Swap for a Sharper Finish
If Gruyere is hard to find, use a mix of Swiss and fontina for the same melt with a slightly milder result. Add an extra tablespoon of Parmesan on top if you want more bite and a darker crust.
Making It Ahead
Assemble the gratin up to the point of baking, cover, and refrigerate for up to 24 hours. Let it sit on the counter while the oven preheats, then add 10 to 15 minutes to the covered bake time since it’s starting cold from the fridge.
Storage and Reheating
- Refrigerator: Store covered for up to 4 days. The layers firm up as they chill, which makes leftovers easy to slice.
- Freezer: It freezes, but the cream can separate a bit on thawing, so the texture won’t be as smooth. Freeze tightly wrapped portions for up to 1 month if you don’t mind a slightly softer finish.
- Reheating: Reheat covered at 350F until hot in the center, then uncover for a few minutes to bring back the top. Microwaving works for a quick portion, but it softens the crust and can make the vegetables watery.
Answers to the Questions Worth Asking

Cheesy Root Vegetable Gratin
Ingredients
Equipment
Method
- Preheat the oven to 375F, then butter a 9x13-inch baking dish.
- Warm the cream, milk, garlic, thyme, salt, pepper, and nutmeg over low heat until steaming, then remove from the heat.
- Layer a third of the Yukon gold potatoes, sweet potatoes, and parsnips in the dish, then top with a third of the Gruyère.
- Repeat the layers two more times with the remaining vegetables and Gruyère, then pour the warm cream mixture evenly over the top.
- Cover with foil and bake at 375F for 45 minutes, until the edges look set and the top appears hydrated.
- Uncover, sprinkle with Parmesan, and bake at 375F for 20-25 minutes until bubbly, golden, and fork-tender.
- Rest for 10 minutes before serving so the gratin holds its shape when you scoop or slice.