This gratin combines tender sweet potatoes layered with deeply caramelized onions and a rich blend of Gruyère and sharp cheddar cheeses. A creamy mixture of heavy cream, milk, and seasonings binds the ingredients, creating a luscious texture. Baked until golden and bubbling, this dish delivers a comforting and flavorful addition to any meal. Garnished with fresh chives, it offers a balance of savory and sweet notes, perfect for side or main servings.
The first time I made this gratin was for a rainy Sunday dinner that turned into an unexpected celebration. My kitchen smelled like caramelized onions and comfort, and somehow the simple act of slicing sweet potatoes became meditative. When it emerged from the oven bubbling and golden, even my usually skeptical cousin went back for thirds.
I once brought this to a potluck where three separate people asked for the recipe before even taking their first bite. The way the cheeses melt into the cream while the sweet potatoes soften into something almost custardlike is pure magic. Now it is my go to whenever I need to feed a crowd and want them to feel taken care of.
Ingredients
- 2 lbs sweet potatoes peeled and thinly sliced: A mandoline saves time here but hand slicing works perfectly fine, just aim for even thickness so everything cooks at the same rate
- 2 large yellow onions thinly sliced: Take your time caramelizing these slowly, they are the flavor backbone that makes people ask what is your secret
- 2 cloves garlic minced: Add this only in the last minute of caramelizing so it does not turn bitter
- 2 cups shredded Gruyère cheese: The nutty flavor pairs beautifully with sweet potatoes, worth the extra cost
- 1 cup shredded sharp cheddar cheese: Adds the salty punch and helps create that gorgeous golden crust
- 1 1/2 cups heavy cream: Do not skip this, it creates the velvety texture that transforms potatoes into something luxurious
- 1/2 cup whole milk: Lightens the cream slightly while still keeping everything rich and creamy
- 3 tbsp unsalted butter: Use it for caramelizing onions and whisking into the cream mixture
- 1/2 tsp dried thyme: Earthy and warm, it bridges the gap between sweet and savory
- 1/2 tsp ground black pepper: Freshly cracked makes a noticeable difference
- 1/2 tsp salt plus more to taste: Sweet potatoes need more salt than you think, do not be afraid to season each layer
- 1/4 tsp ground nutmeg: Just a pinch adds warmth without making it taste like dessert
- 1 tbsp gluten-free flour or all-purpose flour: Optional but helps the cream hold together better when slicing
- 2 tbsp chopped fresh chives: The bright pop of color and mild onion flavor makes it look restaurant pretty
Instructions
- Get your oven ready and find your favorite baking dish:
- Preheat to 375°F and butter a 9x13 inch dish, making sure to get into the corners so nothing sticks later
- Turn those onions into golden perfection:
- Melt 2 tablespoons butter in a large skillet over medium heat, add onions with a pinch of salt, and stir frequently for 20 to 25 minutes until they turn deep amber and smell incredible
- Build the flavor foundation:
- Stir in garlic for just one minute, then remove from heat while you make the cream mixture
- Warm up the creamy base:
- In a small saucepan over medium low heat, combine cream, milk, thyme, nutmeg, pepper, and remaining tablespoon of butter until steaming but not boiling
- Optional thickening step:
- If using flour, whisk it in now until completely smooth and let it simmer for 2 minutes to cook out the raw taste
- Start layering like you mean it:
- Arrange half the sweet potato slices in the bottom of your prepared dish, overlapping slightly like fallen dominoes
- Season that first layer:
- Sprinkle with a little salt, even if it seems excessive, because sweet potatoes really need it
- Add the good stuff:
- Spread half those gorgeous caramelized onions over the potatoes, then scatter half of both cheeses on top
- Do it all again:
- Repeat with remaining potatoes, onions, and cheeses, creating beautiful layers that will bake together
- Pour the love over everything:
- Slowly pour the warm cream mixture evenly over the entire dish, letting it seep down through all the layers
- Cover and bake slowly:
- Tightly cover with foil and bake for 40 minutes so the potatoes can steam and soften in their own creamy bath
- Uncover for the grand finale:
- Remove foil and bake another 20 minutes until the top is bubbly and golden brown with crispy cheese edges
- The hardest part patience:
- Let it rest for 10 minutes before serving, this is crucial for the cream to set up slightly so you get nice clean slices
- Finish it off:
- Sprinkle fresh chives over the top right before serving and watch people is faces light up
This recipe became my signature dish during a particularly cold winter when my roommate was going through a breakup. Something about the warmth and the layers of comfort felt like a hug on a plate. Now whenever I make it, I think of how food can be exactly what someone needs even when they do not know they need it.
Make Ahead Magic
You can assemble the entire gratin up to 24 hours ahead, cover it tightly, and keep it in the refrigerator. Just add 5 to 10 minutes to the covered baking time since it will be starting from cold. I actually prefer making it this way because the flavors have time to become better friends.
Cheese Swaps That Work
While Gruyère and cheddar create the perfect sweet and salty balance, I have had great results swapping in Fontina for extra meltiness or adding a handful of Parmesan for a salty kick. Just keep the total cheese amount the same and avoid pre shredded cheese, which does not melt as smoothly.
Serving Suggestions
This gratin is rich enough to stand alone as a vegetarian main with a simple green salad dressed with something acidic to cut through the cream. It also pairs beautifully with roast chicken, pork tenderloin, or even as part of a holiday spread alongside ham and green beans.
- Let it rest longer than you think, the texture improves as it cools slightly
- Reheat leftovers in a 325°F oven covered with foil until warm throughout
- The top stays crispy for hours, making it perfect for buffet style serving
There is something deeply satisfying about serving a dish that looks like it came from a fancy restaurant but was made with such humble ingredients. I hope this recipe finds its way into your regular rotation and brings as much comfort to your table as it has to mine.
Recipe FAQs
- → How do I caramelize onions properly?
-
Sauté sliced onions slowly over medium heat with butter and a pinch of salt, stirring regularly until they become deeply golden and sweet, about 20-25 minutes.
- → Can I use other cheeses instead of Gruyère and cheddar?
-
Yes, cheeses like mozzarella, fontina, or a mild gouda can be used for a different flavor and texture while maintaining creaminess.
- → What is the best way to slice sweet potatoes for this dish?
-
Use a sharp knife or mandoline to cut sweet potatoes into thin, even slices, approximately 1/8 inch thick, ensuring even cooking layers.
- → How can I make the gratin gluten-free?
-
Use gluten-free flour for thickening the cream sauce and verify all other ingredients to avoid gluten contamination.
- → How long should the gratin rest before serving?
-
Allow it to rest about 10 minutes after baking to let the layers set and make serving easier.