This dish layers thinly sliced sweet potatoes with deeply caramelized onions and a creamy blend of Gruyère and sharp cheddar cheeses. A warm cream mixture seasoned with thyme, nutmeg, and pepper is poured over before baking to a golden, bubbling finish. Perfectly tender and flavorful, it’s an ideal crowd-pleaser that pairs well with crisp white or light red wines. A comforting option that can be prepared ahead and reheated gently.
The smell of caramelizing onions still takes me back to my tiny first apartment kitchen, where I learned that patience transforms even the humblest ingredients into something extraordinary. I made this gratin on a whim one rainy Sunday, sweet potatoes from the farmers market and an aging block of Gruyère I couldn't bear to waste. My roommate hovered around the oven the entire time, and we ended up eating half the dish standing up right from the baking dish.
Last Thanksgiving, my grandmother who swears she dislikes sweet potatoes took three helpings of this. Watching her realize the sweetness comes from the caramelized onions not just the potatoes was this tiny beautiful moment I'll treasure forever.
Ingredients
- 2 lbs sweet potatoes peeled and thinly sliced: A mandoline creates those perfect uniform layers but a sharp knife and steady hand work just fine
- 2 large yellow onions thinly sliced: Take your time here because properly caramelized onions are the secret weapon that makes people ask what's in this
- 2 cloves garlic minced: Add it in the last minute so it doesn't burn and turn bitter
- 2 cups shredded Gruyère cheese: The nutty complex flavor is worth every penny and melts beautifully into the cream
- 1 cup shredded sharp cheddar cheese: Adds that extra punch and helps create the gorgeous golden crust
- 1 1/2 cups heavy cream: Don't skimp here because the rich custard is what binds everything together
- 1/2 cup whole milk: Lightens the cream just enough so the dish doesn't feel too heavy
- 3 tbsp unsalted butter: One tablespoon for the cream sauce and two for caramelizing those precious onions
- 1/2 tsp dried thyme: Earthy and warm it bridges the gap between the sweet potatoes and savory cheese
- 1/2 tsp ground black pepper: Freshly cracked makes all the difference in the final depth of flavor
- 1/2 tsp salt plus more to taste: Season each layer as you go because sweet potatoes need more salt than you'd expect
- 1/4 tsp ground nutmeg: Just a whisper adds this haunting warmth that people can never quite identify
Instructions
- Get your oven and dish ready:
- Preheat to 375°F and generously butter a 9x13 baking dish while you prep everything else
- Caramelize the onions:
- Melt 2 tbsp butter in a large skillet then cook onions with a pinch of salt over medium heat for 20 to 25 minutes stirring frequently until they turn deep golden brown and smell incredibly sweet adding the garlic for just one final minute
- Warm the cream mixture:
- Heat cream milk thyme nutmeg pepper and remaining 1 tbsp butter in a small saucepan until steaming but not boiling whisking in flour if you want a slightly thicker sauce
- Start layering:
- Arrange half the sweet potatoes in the dish season lightly with salt then spread half the caramelized onions on top and sprinkle with half the cheeses
- Repeat the layers:
- Add remaining sweet potatoes then remaining onions and finish with remaining cheeses creating these beautiful distinct strata
- Pour over the cream:
- Distribute the warm cream mixture evenly over the entire dish letting it seep down through all the layers
- First bake covered:
- Cover tightly with foil and bake for 40 minutes so the potatoes steam and cook through in their own creamy bath
- Golden finish:
- Remove foil and bake another 20 minutes until the top is bubbling and deeply golden with those irresistible crispy cheese edges
- The hardest part:
- Let it rest for 10 minutes because this gives the cream time to set slightly so you get those gorgeous clean layers when you serve it
This dish has become my go-to for bringing friends together. Something about pulling that bubbling golden dish out of the oven makes people gather around the kitchen island wine in hand like moths to a flame.
Make It Ahead
You can assemble everything up to 24 hours in advance but hold off on baking. Cover tightly and refrigerate then add 10 minutes to the covered baking time since everything will be cold going into the oven.
Choosing Your Cheese
Gruyère is non-negotiable for that sophisticated nutty flavor but you can swap the cheddar for fontina if you want something milder or add some Parmesan for extra salty depth.
Serving Ideas
This gratin is rich enough to stand alone as a vegetarian main with a simple green salad dressed in something acidic. It also pairs beautifully alongside roasted chicken pork tenderloin or even as part of a holiday spread alongside more traditional sides.
- A crisp white wine like Sauvignon Blanc cuts through the richness perfectly
- Leftovers reheat surprisingly well in a low oven covered with foil
- Fresh chives add a bright pop of color and mild onion flavor that balances all that creamy goodness
There's something deeply satisfying about a dish that looks this impressive but relies on such humble ingredients. Every time I serve it someone asks for the recipe and that's always the best feeling.
Recipe FAQs
- → How do I caramelize the onions properly?
-
Cook sliced onions slowly over medium heat with butter and salt, stirring occasionally, until they turn deep golden and sweet, usually about 20-25 minutes.
- → Can I use other cheeses instead of Gruyère and cheddar?
-
Yes, cheeses with good melting qualities like Fontina, mozzarella, or Swiss can be substituted, keeping a balanced flavor profile.
- → Is it necessary to use both cream and milk?
-
The combination creates a rich but smooth mixture that adds moisture and binds the layers without being too heavy.
- → How can I thicken the cream mixture if needed?
-
Whisk in gluten-free or all-purpose flour while gently heating the cream and milk to achieve a slightly thicker consistency before pouring over the layers.
- → What can I do to add more depth of flavor?
-
Consider adding a pinch of smoked paprika or layering sautéed mushrooms for a richer taste experience.
- → How should leftovers be stored?
-
Allow the gratin to cool, cover tightly, and refrigerate for up to 3 days. Reheat gently in the oven to preserve texture and flavor.