This dish features thinly sliced sweet potatoes layered with deeply caramelized onions and a mix of Gruyère and sharp cheddar cheeses. A creamy blend of milk, cream, and subtle spices is poured over the layers before baking to a golden finish. The gratin offers a rich, comforting flavor ideal for any occasion and garnished with fresh chives for added freshness.
Preparation involves gently caramelizing onions for a sweet depth, then combining creamy dairy and warming spices. The layers are baked covered, then uncovered to achieve a bubbly, golden crust. Perfect as a vegetarian side or main, it balances texture and flavor beautifully.
The first time I made this gratin was for a last-minute Friendsgiving, and I completely underestimated how long onions take to properly caramelize. My kitchen filled with that incredible savory sweetness, and I ended up serving dinner an hour late, but nobody minded once they took their first bite. The way the creamy sauce clings to each tender potato slice while that cheesy crust forms on top is something special. Now I plan for the onion time, because that depth of flavor cannot be rushed.
I brought this to a potluck last winter, and my friend's grandmother asked for the recipe before she even finished her first serving. Something about the nutmeg cutting through the rich cream, paired with that Gruyère sharpness, makes people pause mid-conversation. The best part is watching that golden top emerge from the oven after the foil comes off.
Ingredients
- Sweet potatoes: Choose evenly sized potatoes for uniform slices that cook at the same rate, and peel them carefully to avoid waste
- Yellow onions: Patience here is everything, low and slow cooking transforms sharp raw onions into something deeply sweet and complex
- Garlic: Add this only in the last minute of caramelizing so it does not burn and turn bitter
- Gruyère cheese: This cheese melts beautifully and brings a nutty flavor that pairs perfectly with sweet potatoes
- Sharp cheddar: The sharpness cuts through the richness and adds that familiar comforting cheese flavor everyone loves
- Heavy cream and whole milk: This combination creates the perfect consistency, not too heavy but still luxuriously creamy
- Butter: Use unsalted so you can control the seasoning exactly, and reserve some for the cream mixture
- Thyme: Fresh or dried, thyme adds an earthy note that bridges the gap between sweet and savory elements
- Nutmeg: Just a quarter teaspoon adds warmth and depth that people notice but cannot quite identify
- Black pepper: Freshly cracked pepper adds subtle heat that balances the sweet potatoes
- Salt: Season each layer as you build the gratin, because seasoning only at the end leaves the potatoes bland
- Flour: Optional but helps stabilize the cream sauce, especially helpful if making ahead
- Fresh chives: These add a pop of color and mild onion flavor that brightens the rich final dish
Instructions
- Preheat and prepare:
- Get your oven to 375°F and generously butter a 9x13-inch baking dish, paying attention to the corners
- Caramelize the onions:
- 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 deep golden
- Add the garlic:
- Stir in minced garlic during the last minute of onion cooking, then remove from heat
- Make the cream mixture:
- In a small saucepan, heat cream, milk, thyme, nutmeg, pepper, and remaining butter until steaming but not boiling, whisking in flour if using
- Start layering:
- Arrange half the sweet potato slices in the dish, slightly overlapping, and sprinkle with a little salt
- Add flavor layers:
- Spread half the caramelized onions over the potatoes, then sprinkle with half of both cheeses
- Repeat layers:
- Add remaining potatoes, then remaining onions, then finish with remaining cheese on top
- Pour the cream:
- Carefully pour the warm cream mixture evenly over the entire dish, tilting gently if needed to distribute
- Cover and bake:
- Cover tightly with foil and bake for 40 minutes until potatoes are starting to soften
- Uncover and finish:
- Remove foil and bake another 20 minutes until the top is bubbly and golden brown
- Rest before serving:
- Let the gratin sit for 10 minutes before serving, which helps the cream set slightly for cleaner servings
Last autumn I made this for my book club, and we ended up sitting around the table for an hour after we finished eating, just talking and occasionally reaching for one more small serving. That is the kind of food this is, something that brings people together and keeps them there.
Make It Your Own
I have learned that adding sautéed mushrooms between the layers creates an earthy depth that pairs beautifully with the sweet potatoes. Sometimes I sprinkle smoked paprika over the caramelized onions for a subtle smoky note. A handful of fresh spinach between layers also works well if you want to add something green without compromising the creamy texture.
Timing and Serving
The gratin actually improves if you let it rest for 15 to 20 minutes before serving, giving the sauce time to thicken slightly. This also means it travels well to potlucks and dinner parties. I like to serve it alongside a crisp green salad with bright vinaigrette, which cuts through the richness perfectly.
Storage and Reheating
This gratin keeps beautifully in the refrigerator for up to three days. When reheating, cover with foil and warm in a 325°F oven until heated through, about 20 minutes. The texture holds up surprisingly well, though I recommend adding a splash of cream if it seems dry after refrigeration.
- Consider making two dishes and freezing one unbaked for a future dinner
- Leftovers make an incredible breakfast topped with a fried egg
- The gratin freezes well for up to two months if wrapped tightly
There is something deeply satisfying about serving a dish that looks impressive but is really just good ingredients treated with patience and care. This gratin has become my go-to for times when I want people to feel truly welcomed and fed.
Recipe FAQs
- → How do you caramelize onions properly?
-
Cook sliced onions slowly over medium heat with butter and a pinch of salt, stirring frequently until golden and deeply browned, about 20-25 minutes, to develop sweet, rich flavors.
- → Can I prepare the gratin ahead of time?
-
Yes, you can assemble the layers and refrigerate before baking. Bake just before serving, or reheat gently after baking for best results.
- → What cheeses work best in this dish?
-
Gruyère and sharp cheddar provide a balance of nutty and tangy flavors that melt well, creating a creamy texture and rich taste.
- → How can I make the gratin gluten-free?
-
Use gluten-free flour if thickening the cream mixture and ensure all ingredients, especially cheeses, are free from gluten additives.
- → What spices enhance the flavor?
-
Dried thyme, ground nutmeg, and freshly ground black pepper add warmth and depth without overpowering the natural sweetness of the potatoes and onions.
- → How to achieve a golden crust on top?
-
Bake covered initially to cook through, then uncover during the last 20 minutes to allow the top to brown and become bubbly.