This dish layers thinly sliced sweet potatoes with deeply caramelized onions and a blend of Gruyère and sharp cheddar cheese. A creamy mixture infused with herbs and warming spices is poured evenly over the layers before baking. The result is a golden, tender gratin with rich, comforting flavors. Ideal as a hearty side or a flavorful main, it’s finished with fresh chives for a touch of brightness.
The first time I made this gratin, my kitchen smelled so incredible that my neighbor actually knocked on the door to ask what I was cooking. I'd been caramelizing onions for nearly half an hour, and that sweet, savory aroma had wafted through the building. Now it's become my go-to dish whenever I need to feed a crowd and want to impress without spending all day at the stove.
I served this at Thanksgiving last year instead of the usual marshmallow-topped sweet potatoes, and my aunt actually asked for the recipe before she'd even finished her first bite. There's something about the way the Gruyère bubbles up and gets golden brown on top that makes people hover around the baking dish, sneaking little tastes while it rests.
Ingredients
- 2 lbs sweet potatoes, peeled and thinly sliced: A mandoline makes this so much easier and ensures even cooking, but a sharp knife and patience work too
- 2 large yellow onions, thinly sliced: These need to be sliced about 1/4 inch thick so they caramelize properly without burning
- 2 cups shredded Gruyère cheese: The nutty, earthy flavor of Gruyère is what elevates this from comfort food to something special
- 1 cup shredded sharp cheddar cheese: Adds that familiar, melty quality everyone loves while bringing extra tang
- 1 1/2 cups heavy cream: This creates the rich, velvety sauce that binds everything together
- 1/2 cup whole milk: Lightens the cream just enough so the dish isn't overwhelmingly heavy
- 3 tbsp unsalted butter: Use 2 tbsp for caramelizing the onions and save the last tablespoon for the cream mixture
- 1/2 tsp dried thyme: Brings an earthy, herbal note that bridges the gap between sweet and savory
- 1/4 tsp ground nutmeg: Just a pinch adds warmth and complexity without making the dish taste like dessert
Instructions
- Get your oven ready:
- Preheat to 375°F and generously butter a 9x13-inch baking dish while you prep everything else
- Caramelize the onions:
- Melt 2 tbsp butter in a large skillet over medium heat, add the sliced onions with a pinch of salt, and cook slowly for 20-25 minutes until they're deep golden and sticky
- Build the flavor base:
- Stir in the minced garlic during the last minute of onion cooking, then remove everything from heat
- Make the creamy sauce:
- Heat the cream, milk, thyme, nutmeg, pepper, remaining 1 tbsp butter, and 1/2 tsp salt in a small saucepan until steaming
- Start layering:
- Arrange half the sweet potato slices in the buttered dish, season them lightly, then spread half the onions and cheeses on top
- Repeat the layers:
- Add remaining potatoes, then rest of onions and cheeses, pressing down gently as you go
- Add the cream:
- Pour the warm cream mixture evenly over the entire dish, letting it seep down through the layers
- Cover and bake:
- Tent tightly with foil and bake for 40 minutes until potatoes are starting to soften
- Get that golden top:
- Remove foil and bake another 20 minutes until bubbly, bronzed, and irresistibly fragrant
- Let it rest:
- Wait 10 minutes before serving so the sauce can set slightly and portions hold together better
This recipe has become my secret weapon for potluck dinners because it travels well and reheats beautifully. Something about the way the cream reduces and concentrates as it bakes makes the leftovers even better the next day, if there are any left.
Making It Ahead
You can assemble this entire gratin up to 24 hours ahead, cover it tightly, and keep it in the refrigerator. When you're ready to bake, add about 10 extra minutes to the covered baking time since it'll be cold. Let it come to room temperature for about 20 minutes while the oven preheats for more even cooking.
Choosing Your Cheese
I've found that pre-shredded cheese doesn't melt as smoothly because of the anti-caking coating, so try to buy blocks and shred them yourself. If you want to experiment, Fontina adds incredible creaminess, or swap in some Parmesan for extra umami punch. Just keep the total cheese quantity the same for the best results.
Serving Suggestions
This gratin is rich enough to stand alone as a main for a light dinner, especially alongside a crisp green salad with vinaigrette. It pairs beautifully with roasted chicken, pork tenderloin, or even as part of a vegetarian feast alongside roasted Brussels sprouts.
- A glass of Sauvignon Blanc cuts through the richness perfectly
- Fresh chives add a bright pop of color and mild onion flavor
- Let everyone see those gorgeous layers by serving straight from the baking dish
There's something deeply satisfying about serving a dish that looks this impressive but comes from such humble ingredients. Watch how quickly people go back for seconds.
Recipe FAQs
- → How do I caramelize the onions properly?
-
Sauté thinly sliced onions in butter over medium heat, stirring frequently, until they turn golden brown and sweet, about 20-25 minutes.
- → Can I use other cheeses in this dish?
-
Yes, Gruyère and sharp cheddar contribute a balanced melt and flavor, but you can substitute with similar melting cheeses like fontina or mozzarella.
- → What’s the best way to slice sweet potatoes for even baking?
-
Use a sharp knife or mandoline to slice sweet potatoes thinly and uniformly, ensuring even cooking and layering.
- → How can I make the gratin gluten-free?
-
Use gluten-free flour if thickening is needed, and verify that any cheeses used are free of additives containing gluten.
- → Can this dish be prepared ahead of time?
-
Yes, you can assemble it in advance and refrigerate, then bake right before serving for convenience.
- → What herbs and spices complement this gratin?
-
Dried thyme, nutmeg, black pepper, and fresh chives enhance the flavor profile with subtle earthiness and warmth.