This gratin features tender, thinly sliced sweet potatoes layered with deeply caramelized onions and a flavorful blend of Gruyère and sharp cheddar cheeses. The mixture is gently baked with a creamy herb-infused sauce until golden and bubbling, creating a comforting dish that works well as a side or main. Garnish with fresh chives to add a subtle hint of freshness and texture contrast. Perfect for vegetarian and gluten-free meals when gluten-free flour is used.
The first time I made this gratin was for a rainy Sunday dinner with friends. Someone mentioned they weren't usually into sweet potatoes, and I took that as a personal challenge to change their mind. When they went back for thirds, I knew this recipe was staying in my regular rotation forever.
Last Thanksgiving my sister asked if I could make something different from the usual marshmallow-topped sweet potatoes. I hesitated because holiday menus are sacred territory but took the risk. The dish was barely touched by anyone else because she kept sneaking back to the kitchen for just one more bite.
Ingredients
- 2 lbs sweet potatoes: Thin uniform slices are crucial here so everything cooks evenly. A mandoline changed my life for this recipe.
- 2 large yellow onions: Take your time caramelizing them properly. The deep sweetness they develop is what balances the rich cream.
- 2 cloves garlic: Add it during the last minute of caramelizing so it mellows without burning.
- 2 cups shredded Gruyère plus 1 cup sharp cheddar: This blend gives you both nutty sophistication and familiar comfort.
- 1 1/2 cups heavy cream with 1/2 cup whole milk: All cream is too heavy but all milk lacks the luxurious texture. The ratio is everything.
- 3 tbsp unsalted butter: One tablespoon goes into the cream mixture while two tablespoons help those onions reach their full potential.
- 1/2 tsp dried thyme: Fresh thyme works beautifully too but use a full tablespoon instead.
- 1/2 tsp ground black pepper: Freshly ground makes a noticeable difference in the final dish.
- 1/2 tsp salt plus more to taste: Sweet potatoes need more salt than you might expect. Do not be shy.
- 1/4 tsp ground nutmeg: Just enough to warm the background without announcing itself.
- 1 tbsp gluten-free flour: Optional but helps the cream coating cling beautifully to every layer.
- 2 tbsp chopped fresh chives: These add a bright fresh finish that cuts through all that richness.
Instructions
- Preheat and prepare your baking dish:
- Set your oven to 375°F and butter a 9x13-inch baking dish thoroughly. I learned the hard way that nothing is sadder than stuck-on cheese.
- Caramelize the onions low and slow:
- Melt 2 tablespoons butter in a large skillet over medium heat. Add the sliced onions with a pinch of salt and cook them patiently for 20 to 25 minutes. Stir often and let them turn deep golden brown. Add the minced garlic for just one minute at the end.
- Warm the cream mixture:
- Heat the heavy cream, whole milk, thyme, nutmeg, pepper and remaining 1 tablespoon butter in a small saucepan over medium-low heat. Whisk in the flour if using and bring it to just steaming. Never let it boil or the cream might separate.
- Build the first layer:
- Arrange half the sweet potato slices across the bottom of your prepared dish. Sprinkle them lightly with salt. Spread half the caramelized onions over the potatoes. Scatter half of both cheeses on top.
- Repeat the layers:
- Add the remaining sweet potatoes followed by the remaining onions and cheeses. Creating these layers ensures every bite gets a perfect ratio of all the components.
- Pour over the cream mixture:
- Pour the warm cream evenly over the entire dish. Try to distribute it as uniformly as possible so some areas do not dry out while others get too soggy.
- Cover and bake first:
- Cover the dish tightly with aluminum foil. Bake for 40 minutes so the potatoes can cook through without the top getting too dark too fast.
- Uncover and finish:
- Remove the foil and bake for another 20 minutes. You want the top bubbling with golden brown patches and a fork to slide easily through the potatoes.
- Rest before serving:
- Let the gratin sit for 10 minutes before serving. This step feels impossible when everything smells incredible but it helps the layers set so you can actually plate neat portions.
My neighbor stopped by one evening while this was in the oven and actually asked to stay for dinner just because of how incredible it smelled. We ended up eating on the back porch as the sun went down and she has requested the recipe three times since then.
Making It Ahead
You can assemble this entire gratin up to a day before baking. Cover it tightly and refrigerate then add about 10 minutes to the covered baking time. This actually works beautifully because the flavors have more time to mingle.
Serving Suggestions
A crisp green salad with an acidic vinaigrette cuts through the richness perfectly. I also love serving this alongside roasted chicken or a simple pork tenderloin when I want dinner to feel special without requiring three separate hot dishes.
Wine Pairing
Sauvignon Blanc has the acidity and herbal notes to stand up to the creamy cheese and sweet onions. A light Pinot Noir works beautifully too if you prefer red wine with dinner.
- Smoked paprika adds a lovely subtle warmth that deepens the flavor profile
- Sautéed mushrooms between layers make this hearty enough for a main course
- A pinch of red pepper flakes in the cream mixture creates beautiful contrast
There is something deeply satisfying about serving a dish that looks this elegant but comes from such humble ingredients. Every time I make it I think about how food this good does not need to be complicated.
Recipe FAQs
- → How do I caramelize onions perfectly?
-
Cook sliced onions slowly over medium heat with butter and a pinch of salt, stirring often until deeply golden and soft, usually 20-25 minutes.
- → Can I prepare the gratin ahead of time?
-
Yes, assemble the layers and refrigerate before baking. When ready, bake as directed and reheat gently if needed.
- → What cheeses work best in this gratin?
-
A blend of Gruyère and sharp cheddar provides a rich, melty, and flavorful combination that complements sweet potatoes well.
- → How to make the gratin gluten-free?
-
Use gluten-free flour for thickening and ensure all cheese labels confirm gluten-free status.
- → What serving suggestions pair well with this dish?
-
This gratin pairs nicely with crisp white wines like Sauvignon Blanc or light reds like Pinot Noir, enhancing the rich flavors.