This dish features thinly sliced sweet potatoes layered with deeply caramelized onions and a blend of Gruyère and cheddar cheeses. A creamy mixture of milk, cream, and seasonings binds the layers, which are baked until tender and golden. The gratin offers a rich, comforting taste perfect as a side or main, with options to customize flavors and garnishes.
The smell of caramelizing onions stopped me in my tracks at my friend Sarah's dinner party last winter. She pulled this bubbling golden gratin from the oven and I immediately demanded the recipe, forgetting all about the main course. Now it's become my go-to comfort food when the weather turns cold.
Last Thanksgiving I made three of these because my family practically fought over the last serving at our trial run dinner. My dad who usually claims sweet potatoes are too sweet went back for thirds and asked if I could teach him the recipe.
Ingredients
- Sweet Potatoes: Peel and slice them thin and even so everything cooks through at the same pace
- Yellow Onions: Take your time caramelizing them slowly until they turn deep golden and sweet
- Garlic: Add it in the last minute of caramelizing so it doesn't burn and turn bitter
- Gruyère and Sharp Cheddar: This cheese combo gives you both nutty sophistication and sharp comfort
- Heavy Cream and Whole Milk: The mixture creates the perfect silky texture without becoming overwhelming
- Butter: Use unsalted so you can control the seasoning throughout the dish
- Thyme and Nutmeg: These warm spices complement the natural sweetness of the potatoes beautifully
- Salt and Black Pepper: Sweet potatoes need enough salt to really shine so dont be shy with it
- Optional Flour: A tablespoon helps thicken the cream slightly if you prefer a more structured sauce
- Fresh Chives: They add a bright fresh pop against all the rich creamy elements
Instructions
- Get the oven ready:
- Preheat to 375°F and butter your baking dish thoroughly so nothing sticks later
- Caramelize the onions:
- Melt 2 tablespoons butter in a large skillet and cook the sliced onions slowly for 20 to 25 minutes until they're deeply golden and smell amazing then add garlic for just one minute
- Make the creamy base:
- Heat the cream milk thyme nutmeg pepper and remaining butter in a small saucepan until steaming then whisk in flour if you're using it
- Start layering:
- Arrange half the sweet potato slices in the bottom of your dish and sprinkle them lightly with salt
- Add the first filling:
- Spread half those gorgeous caramelized onions over the potatoes then scatter with half of both cheeses
- Build the second layer:
- Repeat with the remaining potatoes onions and cheese creating a beautiful cheesy onion-topped masterpiece
- Pour over the cream:
- Carefully pour that warm spiced cream mixture evenly over everything letting it seep into all the nooks and crannies
- Cover and bake:
- Tent the dish tightly with foil and bake for 40 minutes so the potatoes cook through in all that creamy steam
- Uncover and brown:
- Remove the foil and bake for another 20 minutes until the top is bubbly golden brown and irresistible
- Let it rest:
- Give the dish 10 minutes to set before serving then scatter with fresh chives if you're feeling fancy
My neighbor texted me at midnight after I dropped off a leftover portion asking for the recipe because her husband wouldn't stop talking about it. There's something about this combination that turns ordinary weeknight dinners into memories people hold onto.
Making Ahead
You can assemble the entire gratin a day before baking and keep it covered in the refrigerator. Just add about 10 extra minutes to the covered baking time since everything will be cold going into the oven.
Perfect Pairings
A crisp white wine cuts through all that rich creaminess beautifully. I've also served it alongside roasted chicken and a simple green salad when I want it to feel like a complete Sunday dinner.
Customization Ideas
Sometimes I add sautéed mushrooms between the layers for extra earthiness or swap in smoked paprika for the thyme when I want a subtle smoky kick. The basic formula is incredibly forgiving.
- Try adding a layer of fresh spinach leaves for some color and nutrients
- A sprinkle of smoked gouda on top creates an incredible crust
- A handful of crispy fried onions or shallots right before serving adds perfect crunch
Watch how quickly this becomes the dish everyone requests for every gathering.
Questions & Answers About the Recipe
- → How do I caramelize onions properly?
-
Cook sliced onions in butter over medium heat for 20-25 minutes, stirring often until golden and soft for best sweetness.
- → Can I make this dish gluten-free?
-
Yes, by using gluten-free flour for thickening and verifying cheese labels, this dish fits gluten-free needs.
- → What cheeses work well in this dish?
-
Gruyère and sharp cheddar provide creamy melt and sharpness; similar cheeses like Fontina or Emmental can also be used.
- → How can I ensure the gratin is perfectly creamy?
-
Heat cream and milk gently with spices and butter, thickening slightly before pouring over layers for a smooth texture.
- → What sides or drinks complement this gratin?
-
Pair with crisp white wines like Sauvignon Blanc or light reds such as Pinot Noir for a balanced meal experience.
- → Can this be prepared ahead of time?
-
Yes, assemble in advance and reheat gently before serving to maintain texture and flavor.