Cheesy Sweet Potato Gratin

A close-up of Cheesy Sweet Potato Gratin with Caramelized Onions Delight, showing golden bubbly cheese and caramelized onion layers on top. Save to Pinterest
A close-up of Cheesy Sweet Potato Gratin with Caramelized Onions Delight, showing golden bubbly cheese and caramelized onion layers on top. | cookingwithbrielle.com

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
Serving suggestion for Cheesy Sweet Potato Gratin with Caramelized Onions Delight, paired with a crisp green salad on a rustic table. Save to Pinterest
Serving suggestion for Cheesy Sweet Potato Gratin with Caramelized Onions Delight, paired with a crisp green salad on a rustic table. | cookingwithbrielle.com

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
Baked Cheesy Sweet Potato Gratin with Caramelized Onions Delight in a ceramic dish, steam rising from the melted cheese topping. Save to Pinterest
Baked Cheesy Sweet Potato Gratin with Caramelized Onions Delight in a ceramic dish, steam rising from the melted cheese topping. | cookingwithbrielle.com

Watch how quickly this becomes the dish everyone requests for every gathering.

Questions & Answers About the Recipe

Cook sliced onions in butter over medium heat for 20-25 minutes, stirring often until golden and soft for best sweetness.

Yes, by using gluten-free flour for thickening and verifying cheese labels, this dish fits gluten-free needs.

Gruyère and sharp cheddar provide creamy melt and sharpness; similar cheeses like Fontina or Emmental can also be used.

Heat cream and milk gently with spices and butter, thickening slightly before pouring over layers for a smooth texture.

Pair with crisp white wines like Sauvignon Blanc or light reds such as Pinot Noir for a balanced meal experience.

Yes, assemble in advance and reheat gently before serving to maintain texture and flavor.

Cheesy Sweet Potato Gratin

Layers of sweet potatoes, caramelized onions, and cheeses baked to golden perfection.

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 gluten-free flour (or all-purpose flour) for thickening
  • 2 tbsp chopped fresh chives for garnish

Instructions

1
Preheat Oven and Prepare Baking Dish: Preheat your oven to 375°F. Grease a 9x13-inch baking dish with butter or cooking spray.
2
Caramelize the Onions: In a large skillet over medium heat, melt 2 tbsp butter. 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, heat heavy cream, whole milk, dried thyme, ground nutmeg, black pepper, and remaining 1 tbsp butter over medium-low heat until steaming (do not boil). If using flour for thickening, whisk it in until smooth and slightly thickened.
4
Layer Sweet Potatoes and Onions: Arrange half of the sweet potato slices in the prepared baking dish. Season lightly with salt. Spread half of the caramelized onions over the potatoes. Sprinkle with half of the Gruyère and cheddar cheese.
5
Repeat Layers: Create a second layer with remaining sweet potatoes, caramelized onions, and cheese blend. Ensure even distribution of ingredients.
6
Pour Cream Mixture: Pour the warm cream mixture evenly over the layered ingredients, ensuring the liquid penetrates through all layers.
7
Cover and Bake: Cover the baking dish tightly with aluminum foil and bake for 40 minutes to allow potatoes to cook through.
8
Uncover and Brown: 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.
9
Rest Before Serving: Let the gratin rest for 10 minutes before serving to allow the layers to set. Garnish with chopped 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 products including milk, cheese, and butter. Not suitable for individuals with lactose intolerance or dairy allergies.
  • Gluten-free option: Use certified gluten-free flour instead of all-purpose flour. Always verify cheese and other ingredient labels for gluten-containing additives.
  • Individuals with specific food sensitivities should carefully review all product labels to ensure safety.
Brielle Thompson

Home chef sharing approachable recipes, smart meal prep tips, and family-friendly comfort food for everyday cooks.