This gratin combines thinly sliced sweet potatoes with deeply caramelized onions and a rich cheese blend. A creamy mixture of heavy cream, milk, and seasoning is poured over layers before baking to golden perfection. The dish offers a comforting texture and rich flavors, perfect as a vegetarian centerpiece or hearty side. Garnish with chives to enhance the fresh note.
The first time I made this gratin, I was trying to impress some dinner guests who claimed to hate sweet potatoes. Something magical happens when you pair the natural sweetness with deeply caramelized onions and nutty Gruyère. By the time we reached seconds, the skeptic was already asking for the recipe. Now it is the one dish I make when I need to convert anyone who thinks sweet potatoes belong only in marshmallow-topped casseroles.
Last Thanksgiving I forgot to start the onions early enough, so I did them the day before and honestly, it was a blessing in disguise. The flavors had even more time to deepen. My aunt actually cornered me in the kitchen to demand how I got the onions so perfect. Now whenever I make this, I think about her sneaking spoonfuls straight from the pan before dinner was even served.
Ingredients
- 2 lbs sweet potatoes: Peel and slice them as thin as you possibly can, about 1/8 inch, because thinner layers mean faster cooking and more delicate texture in every bite
- 2 large yellow onions: Slice these thinly too, and do not rush the caramelization process because that sweetness is what balances the rich cheese
- 2 cloves garlic: Add these at the very end with the onions so they do not burn and turn bitter
- 2 cups Gruyère cheese: This cheese melts beautifully and adds that wonderful nutty flavor that makes gratins taste like something from a French bistro
- 1 cup sharp cheddar cheese: The sharpness cuts through all the cream and sweetness, keeping each bite interesting
- 1 1/2 cups heavy cream: Do not be tempted to use milk here because the cream is what creates that velvety, luxurious sauce
- 1/2 cup whole milk: This lightens the cream just enough so the dish is not overwhelmingly heavy
- 3 tbsp unsalted butter: Use two tablespoons for the onions and save one for the cream mixture
- 1/2 tsp dried thyme: Fresh is nice too, but dried works perfectly here and adds an earthy note
- 1/2 tsp ground black pepper: Freshly cracked makes a real difference in brightness
- 1/2 tsp salt: Season lightly throughout because the cheese will add salt as well
- 1/4 tsp ground nutmeg: Just a pinch adds warmth that people notice but cannot quite identify
- 1 tbsp gluten-free flour: This helps the cream thicken slightly so you get those nice cohesive layers instead of soup
- 2 tbsp fresh chives: These add a fresh pop of color and mild onion flavor right at the end
Instructions
- Get your oven ready:
- Preheat to 375°F and butter a 9x13-inch baking dish thoroughly, getting into all the corners so nothing sticks.
- Caramelize the onions:
- Melt 2 tablespoons butter in a large skillet over medium heat, add the sliced onions with a pinch of salt, and cook slowly for 20 to 25 minutes until they are deep golden and sticky, stirring often so they do not burn.
- Add the garlic:
- Stir in the minced garlic and cook for just one minute more until fragrant, then remove from heat.
- Warm the cream mixture:
- Heat the cream, milk, thyme, nutmeg, pepper, and remaining butter in a small saucepan until steaming but not boiling, whisking in the flour if using.
- Start layering:
- Arrange half the sweet potato slices in the baking dish, season with a tiny pinch of salt, then spread half the caramelized onions on top and sprinkle with half the cheeses.
- Repeat the layers:
- Add the remaining potatoes, then the rest of the onions, and finish with all the remaining cheese.
- Pour over the cream:
- Carefully pour the warm cream mixture evenly over everything, using a spoon to help distribute it if needed.
- Cover and bake:
- Cover tightly with foil and bake for 40 minutes so the potatoes can cook through in all that steam.
- Uncover and brown:
- Remove the foil and bake for another 20 minutes until the top is bubbling and golden with those irresistible crispy edges.
- Let it rest:
- Wait 10 minutes before serving so the cream can set slightly and the layers hold together when you scoop.
This recipe became my go-to comfort food after a particularly rough winter when I needed something that felt like a warm hug. There is something about the way the house smells while the onions are slowly cooking down. My roommate would come home and immediately ask what we were having, because even from the hallway, it smelled like something special.
Making It Ahead
You can absolutely caramelize the onions a day or two before and keep them in the refrigerator. The day of, just assemble everything and bake. I have found that the flavors actually meld better this way, like the onions have had time to really get to know the cream.
Cheese Substitutions
Gruyère is traditional for a reason, but I have used Fontina when I could not find it and the result was still incredible. The key is choosing a cheese that melts well and has some personality. Mild cheeses get lost in all those strong flavors.
Serving Suggestions
This gratin is rich enough to stand alone as a main for a lighter dinner, perhaps with a simple green salad dressed in something acidic. It also pairs beautifully with roasted chicken or pork chops. The wine suggestion in the notes is spot on, something crisp and bright will cut right through all that cream.
- Use the sharpest knife you have for clean slices that cook evenly
- Check the potatoes at 40 minutes to make sure they are tender before removing the foil
- Leftovers reheat surprisingly well, covered so the top does not dry out
Somehow this dish manages to feel fancy enough for holiday dinner but simple enough for a Tuesday night. The way the sweet potatoes almost melt into the cream while still holding their shape is exactly what comfort food should be.
Recipe FAQs
- → How do I caramelize onions properly?
-
Cook sliced onions slowly over medium heat in butter with a pinch of salt, stirring frequently until deeply golden and soft, usually about 20-25 minutes.
- → Can I make this gratin gluten-free?
-
Yes, use gluten-free flour if thickening is needed and confirm cheese labels to avoid additives containing gluten.
- → What cheeses work best for this gratin?
-
Gruyère and sharp cheddar combine well, offering a creamy melt and a sharp flavor contrast.
- → How do I know when the gratin is done?
-
The top should be golden and bubbly, and the sweet potatoes tender when pierced with a fork.
- → Can this be prepared ahead of time?
-
Yes, the dish can be assembled and refrigerated before baking; reheat gently to maintain texture and flavor.