Cheesy Sweet Potato Gratin

A close-up view of Cheesy Sweet Potato Gratin with Caramelized Onions Delight showcasing golden, bubbly cheese and thinly layered sweet potatoes. Save
A close-up view of Cheesy Sweet Potato Gratin with Caramelized Onions Delight showcasing golden, bubbly cheese and thinly layered sweet potatoes. | flavormonk.com

This warm gratin features tender sweet potatoes layered with rich caramelized onions and a blend of Gruyère and sharp cheddar cheeses. A creamy sauce infused with thyme and nutmeg seeps between the layers, creating a luscious texture. Baked until golden and bubbling, it's perfect as a hearty side or a vegetarian centerpiece. Finished with fresh chives for a light, herbaceous touch, it’s a comforting dish that pleases the palate and invites cozy gatherings.

The first time I made this gratin, I accidentally caramelized the onions way too long—they were practically onion jam. But honestly, that happy mistake became the secret to why this dish gets requested at every family gathering now. There is something magical that happens when sweet potatoes meet those deeply golden onions and creamy Gruyère. The whole house fills with this incredible buttery, savory aroma that makes everyone drift into the kitchen asking what is for dinner.

I served this at my Friendsgiving last year alongside a roasted chicken and honestly, the gratin stole the show. My friend Sarah who claims to hate sweet potatoes went back for thirds. That is when I knew this recipe was a permanent keeper in my rotation.

Ingredients

  • 2 lbs sweet potatoes: Peel them thinly and slice about 1/8 inch thick for even cooking
  • 2 large yellow onions: Thinly slice these— patience during caramelization pays off huge here
  • 2 cloves garlic: Minced fresh adds the perfect aromatic kick to the onions
  • 2 cups shredded Gruyère cheese: This nutty melting cheese is non-negotiable for that restaurant-quality flavor
  • 1 cup shredded sharp cheddar: Adds a pleasant sharpness that cuts through the richness
  • 1 1/2 cups heavy cream: Creates that luxuriously silky sauce the potatoes cook in
  • 1/2 cup whole milk: Lightens the cream just enough so it is not overwhelmingly heavy
  • 3 tbsp unsalted butter: Use 2 tablespoons for caramelizing onions and 1 for the cream mixture
  • 1/2 tsp dried thyme: Earthy and warm—pairs beautifully with sweet potatoes
  • 1/4 tsp ground nutmeg: Just a pinch adds this subtle warmth that people cannot quite place

Instructions

Caramelize the onions:
Melt 2 tbsp butter in a large skillet over medium heat, add sliced onions with a pinch of salt, and cook stirring frequently until deeply golden and jam-like, about 20-25 minutes.
Add the garlic:
Stir in minced garlic during the last minute of cooking so it becomes fragrant without burning, then remove from heat.
Make the cream base:
Heat cream, milk, thyme, nutmeg, pepper, and remaining 1 tbsp butter in a small saucepan over medium-low until steaming but not boiling.
Layer it up:
Arrange half the sweet potatoes in your greased baking dish, season lightly, then add half the onions and half the cheeses before repeating.
Pour and cover:
Evenly pour that warm cream mixture over everything, then cover tightly with foil and bake at 375°F for 40 minutes.
Golden finish:
Remove foil and bake another 20 minutes until the top is bubbly and golden, then let it rest 10 minutes before serving.
In a rustic kitchen, a baked dish of Cheesy Sweet Potato Gratin with Caramelized Onions Delight is served steaming in a ceramic dish. Save
In a rustic kitchen, a baked dish of Cheesy Sweet Potato Gratin with Caramelized Onions Delight is served steaming in a ceramic dish. | flavormonk.com

My grandmother used to say that the best dishes are the ones that make the kitchen smell better than the food tastes, but this gratin manages to do both perfectly. Every time I pull it from the oven, bubbling and bronzed, I feel that same quiet satisfaction of knowing something really good is about to happen.

Make-Ahead Magic

You can assemble the entire gratin up to 24 hours before baking, just cover tightly and refrigerate. When you are ready, add about 10 extra minutes to the covered baking time since it will be cold.

Cheese Swaps

While Gruyère and cheddar are my go-to combination, fontina and mozzarella create an incredibly melty version. For something sharper, try aged Gouda or even a bit of Parmesan mixed in.

Serving Ideas

This gratin is rich enough to stand alone as a vegetarian main, but it also shines alongside roast chicken, pork tenderloin, or even holiday ham. A crisp green salad with acidic vinaigrette helps cut through the creaminess beautifully.

  • Let leftovers come to room temperature before reheating gently at 300°F to prevent separating
  • Store covered in the refrigerator for up to 3 days—the flavors actually get better
  • Fresh chives or parsley add a nice pop of color and brightness right before serving
A detailed look at a slice of Cheesy Sweet Potato Gratin with Caramelized Onions Delight revealing creamy interior and rich caramelized onion strands. Save
A detailed look at a slice of Cheesy Sweet Potato Gratin with Caramelized Onions Delight revealing creamy interior and rich caramelized onion strands. | flavormonk.com

Hope this becomes one of those recipes you turn to again and again, just like I have. There is something so comforting about a dish that feels fancy but is really just honest ingredients treated with a little patience and care.

Recipe FAQs

Yes, you can assemble the gratin ahead and refrigerate it before baking. Bake as directed when ready to serve, adding a few extra minutes if baking from cold.

Gruyère and sharp cheddar provide a perfect balance of creamy and tangy flavors, but other semi-hard cheeses like Fontina or Comté can be excellent substitutes.

Slowly caramelize sliced onions over medium heat with butter until deeply golden and sweet; this process usually takes 20-25 minutes and enhances their natural sugars.

Incorporating a splash of heavy cream and milk, gently heated with butter and seasonings before pouring over the layers, creates a rich, velvety texture throughout.

Yes, use gluten-free flour for thickening the cream sauce and ensure that all cheese and butter products used are gluten-free certified.

Dried thyme and fresh chives are featured here for subtle earthiness and freshness, but rosemary or sage can also harmonize nicely with the sweet potatoes.

Cheesy Sweet Potato Gratin

Layers of sweet potatoes, caramelized onions, and cheese baked to a golden, creamy finish.

Prep 25m
Cook 60m
Total 85m
Servings 6
Difficulty Medium

Ingredients

Vegetables

  • 2 lbs sweet potatoes, peeled and thinly sliced
  • 2 large yellow onions, thinly sliced
  • 2 cloves garlic, minced

Dairy & Cheese

  • 2 cups shredded Gruyère cheese
  • 1 cup shredded sharp cheddar cheese
  • 1 1/2 cups heavy cream
  • 1/2 cup whole milk
  • 3 tbsp unsalted butter

Seasonings

  • 1/2 tsp dried thyme
  • 1/2 tsp ground black pepper
  • 1/2 tsp salt (plus more to taste)
  • 1/4 tsp ground nutmeg

Optional

  • 1 tbsp all-purpose flour for thickening
  • 2 tbsp chopped fresh chives for garnish

Instructions

1
Prepare the Oven and Baking Dish: Preheat oven to 375°F. Grease a 9x13-inch baking dish with butter or cooking spray.
2
Caramelize the Onions: Melt 2 tbsp butter in a large skillet over medium heat. Add sliced onions and a pinch of salt. Cook, stirring frequently, until onions are deeply golden and caramelized, about 20-25 minutes. Add minced garlic and cook for 1 minute more. Remove from heat.
3
Prepare the Cream Mixture: In a small saucepan, combine heavy cream, whole milk, dried thyme, ground nutmeg, black pepper, and remaining 1 tbsp butter. Heat over medium-low heat until steaming, but do not boil. If using flour for thickening, whisk it in until smooth.
4
First Layer Assembly: Arrange half of the sweet potato slices in the prepared baking dish, overlapping slightly. Season lightly with salt.
5
Add First Toppings: Spread half of the caramelized onions over the potatoes. Sprinkle with half of the Gruyère and half of the cheddar cheese.
6
Second Layer Assembly: Repeat with remaining sweet potato slices, caramelized onions, and cheeses.
7
Add Cream Mixture: Pour the warm cream mixture evenly over the layered ingredients, ensuring it reaches all corners of the dish.
8
Covered Baking: Cover the baking dish tightly with aluminum foil. Bake for 40 minutes.
9
Uncovered Baking: Remove foil and continue baking uncovered for an additional 20 minutes, or until the top is golden brown and bubbly, and potatoes are fork-tender.
10
Rest and Serve: Let the gratin rest for 10 minutes before serving to allow the layers to set. Garnish with fresh chives if desired.
Additional Information

Equipment Needed

  • Large skillet
  • Small saucepan
  • 9x13-inch baking dish
  • Sharp knife or mandoline slicer
  • Mixing bowls
  • Whisk
  • Aluminum foil

Nutrition (Per Serving)

Calories 420
Protein 13g
Carbs 37g
Fat 26g

Allergy Information

  • Contains dairy: milk, cream, butter, and cheese
  • Contains gluten if using all-purpose flour; substitute with gluten-free flour for a gluten-free version
  • Individuals with lactose intolerance should exercise caution due to high dairy content
Rhea Kapoor

Everyday recipes and cooking tips for home cooks who love good food.