creamy sweet potato and spinach gratin with garlic and thyme

5 min prep 2 min cook 12 servings
creamy sweet potato and spinach gratin with garlic and thyme
Save This Recipe!
Click to save for later - It only takes 2 seconds!

Love this? Pin it for later!

I still remember the first time I served this creamy sweet-potato-and-spinach gratin at a chilly November potluck. The casserole dish came home scraped clean, down to the last bronzed breadcrumb, and three friends texted me that night asking—no, begging—for the recipe. Since then it has become my ultimate "bring-a-comforting-main" ace card: vegetarian enough to please the plant-based crowd, hearty enough to satisfy the meat lovers, and elegant enough to anchor a holiday table. The magic lies in thin coins of roasted sweet potato that soak up a silky thyme-and-garlic cream, interlaced with bright flecks of wilted spinach and a nutty Gruyère lid that bubbles into a golden blanket in the oven. One forkful delivers autumn in its purest form—earthy, sweet, herbaceous, and irresistibly rich.

What I personally adore is how week-night-friendly this gratin actually is. You can roast the sweet potatoes while the oven preheats, whisk the cream on the stove while they cool just enough to handle, and assemble everything in one snug baking dish. Twenty-five minutes later your kitchen smells like a French countryside cottage and dinner is served. Whether you need a meatless Monday main, a stunning brunch centerpiece, or a make-ahead dish for visiting relatives, this recipe rises to the occasion every single time.

Why This Recipe Works

  • Layered flavor foundation: Roasting the sweet potatoes first concentrates their sugars and prevents a watery gratin.
  • One-pot cream sauce: Infusing the cream with fresh thyme, garlic, and shallot builds complexity without extra pans.
  • Vegetable insurance: A quick sauté of spinach removes excess moisture, keeping every slice creamy, never soggy.
  • Cheese strategy: Nutty Gruyère melts beautifully, while a handful of Parmesan in the breadcrumb topping adds crackly crunch.
  • Make-ahead marvel: Assemble up to 24 hours early; bake when guests walk through the door.
  • Vegetarian protein: Each serving boasts 12 g of protein from milk, cheese, and spinach—hearty enough for a main dish.
  • Color pop: Emerald spinach against sunset-orange sweet potatoes makes the dish as stunning as it is delicious.

Ingredients You'll Need

Ingredients

Sweet potatoes – Look for firm, medium-sized garnet or jewel varieties with unblemished skins. Uniform width (about 2 in / 5 cm) makes slicing into even coins easier. peeling is optional; the skins soften and add rustic texture.

Fresh baby spinach – Young leaves wilt quickly and stay vibrant. If you only have regular spinach, remove thick stems. Frozen spinach works in a pinch—thaw, squeeze bone-dry, and proceed.

Heavy cream & whole milk – The 50-50 blend yields a silky sauce that thickens without feeling like pudding. Swap in half-and-half if that is what is in your refrigerator, but avoid low-fat milk which can curdle.

Gruyère cheese – A Swiss-style melting cheese with nutty depth. If the price makes you wince, substitute Emmental or a young fontina, but do not skip the small sprinkle of Parmesan in the crumbs—it is the umami spark.

Garlic & shallot – These aromatics perfume the cream. Smash the cloves to release oils, then simmer; you will strain them out for a velvet-smooth sauce.

Fresh thyme – Woodsy and slightly lemony, thyme is the herb soulmate of sweet potatoes. Strip leaves off the stem; save stems for the simmering cream.

Nutmeg – Just a whisper amplifies sweetness and makes the Gruyère taste fruitier. Buy whole nutmeg and grate fresh; you will never go back to the pre-ground jar.

Panko breadcrumbs – Japanese-style crumbs stay crisp longer than ordinary ones. Toss with olive oil so they toast evenly instead of scorching.

Butter & olive oil – A knob of butter in the cream adds gloss; olive oil in the crumbs prevents sogginess.

How to Make Creamy Sweet-Potato-and-Spinach Gratin with Garlic and Thyme

1
Heat the oven & prep the dish.

Position rack in center and preheat to 425°F (220°C). Butter a 2-quart (1.8 L) baking dish—an 8-inch square or 9-inch oval works beautifully. A thin coat of butter on the base prevents the first layer of potatoes from sticking and encourages those coveted crispy edges.

2
Roast the sweet-potato rounds.

Peel if desired, then slice crosswise into ¼-inch (6 mm) coins—use a mandoline for speed. Toss with 1 Tbsp olive oil, ½ tsp salt, and several grinds of pepper on a parchment-lined sheet. Spread in a single layer and roast 12 min, flip, roast 8 min more until just tender and the undersides caramelize. Lower oven to 375°F (190°C) when done.

3
Wilt the spinach.

Heat 1 tsp olive oil in a large skillet over medium. Add 5 oz (140 g) baby spinach, season lightly, and toss until just collapsed, 1–2 min. Transfer to a sieve and press out liquid—excess moisture is the enemy of a tight gratin sauce.

4
Infuse the cream.

In the same skillet melt 1 Tbsp butter. Add 1 small minced shallot, 2 smashed garlic cloves, and 4 thyme sprigs. Cook 2 min until fragrant. Pour in 1 cup (240 ml) heavy cream and 1 cup (240 ml) whole milk. Bring to a gentle simmer, remove from heat, cover, and steep 10 min so the herbs and aromatics steep thoroughly. Strain through a fine sieve into a jug; discard solids.

5
Season the sauce.

Whisk ½ tsp kosher salt, ¼ tsp black pepper, and a pinch of freshly grated nutmeg into the warm cream. Taste—the base should be slightly over-salted because the potatoes will absorb it.

6
Build the layers.

Shingle half of the sweet-potato coins in the buttered dish. Scatter the wilted spinach evenly, followed by ¾ cup (3 oz / 85 g) shredded Gruyère. Arrange remaining potatoes on top. Press down gently to compact—this helps the cream permeate every crevice.

7
Add cream & cheese.

Slowly pour the herbed cream over the potatoes, letting it seep in. Sprinkle remaining ¾ cup Gruyère across the surface.

8
Top with buttery crumbs.

In a small bowl combine ⅓ cup (20 g) panko, 1 Tbsp olive oil, 2 Tbsp grated Parmesan, and a pinch of thyme leaves. Toss until evenly moistened, then distribute over the cheese.

9
Bake until bubbly & golden.

Cover loosely with foil (tent so it does not stick to crumbs) and bake 20 min. Remove foil and bake 15–20 min more, until the cream is thickened, potatoes are ultra-tender, and the top is freckled with bronze. Broil 1 min for extra crunch if desired.

10
Rest & serve.

Let stand 10 min to set the sauce. Sprinkle with fresh thyme leaves for color. Serve hot or warm; leftovers reheat like a dream.

Expert Tips

Slice evenly for uniform cooking

A mandoline or the slicing side of a box grater keeps every round the same thickness so the gratin bakes evenly. Aim for ¼ inch; thinner slices dissolve, thicker ones stay firm.

Warm cream penetrates faster

Bringing the cream mixture to a brief simmer means it will slide between layers instead of sitting on top, cutting bake time and preventing curdling.

Use two cheeses for complexity

Gruyère melts into luxurious strings, while aged Parmesan in the crumbs adds crystalline crunch. Do not swap both for a single cheese or you will lose textural contrast.

Tent, then uncover

Covering for the first half traps steam so potatoes finish cooking; uncovering for the second half browns the top and reduces the sauce to the perfect nappé consistency.

Rest to thicken

Ten minutes on the counter lets the starches in the sweet potatoes set the sauce. Cutting too early yields a lava flow; patience rewards you with neat, scoopable squares.

Fresh nutmeg is worth it

A few passes across a microplane releases volatile oils that fade once pre-ground. The floral warmth amplifies both the sweet potatoes and the nutty cheese.

Variations to Try

  • Smoky Gouda & Rosemary: Replace Gruyère with smoked Gouda and swap thyme for fresh rosemary. A pinch of smoked paprika in the crumbs echoes the campfire vibe.
  • Vegan delight: Use full-fat coconut milk plus 1 Tbsp cornstarch slurried in for body, vegan mozzarella shreds, and nutritional yeast in place of Parmesan. Brown vegan butter for the crumb topping.
  • Leek & mushroom: Fold in sautéed leek rings and cremini mushrooms with the spinach for an earthier winter version.
  • Spicy kick: Add ¼ tsp cayenne to the cream and use pepper-jack cheese for a subtle back-heat that contrasts the potatoes’ sweetness.
  • Individual ramekins: Layer everything into six 6-oz ramekins for dinner-party flair; reduce covered bake time to 12 min, uncovered to 8 min.
  • Low-carb swap: Substitute half the sweet potatoes with thinly sliced rutabaga or turnip for fewer carbs while keeping the orange color.

Storage Tips

Make-ahead: Assemble through Step 8, cover tightly with buttered foil (butter side down to prevent sticking) and refrigerate up to 24 hours. Add 10 min to the covered bake time if starting cold.

Leftovers: Cool completely, cut into squares, and refrigerate in an airtight container up to 4 days. Reheat single portions in a 350°F (175°C) oven for 12 min or microwave for 1–2 min until centers are hot.

Freezer: Wrap individual squares in plastic wrap, then foil, and freeze up to 2 months. Thaw overnight in the fridge and reheat as above. Texture will be slightly softer but flavor remains stellar.

Re-crisping: Revive the topping by slipping squares under the broiler for 1 min or warming in an air-fryer at 375°F for 3 min.

Frequently Asked Questions

Yes, Yukon Gold or red potatoes work, but the gratin will be less sweet. Add 1 tsp Dijon mustard to the cream for a flavor bridge and increase salt slightly.

Curdling happens when high heat meets low-fat dairy. Use full-fat cream, keep oven at 375°F, and avoid broiling more than 1 min. Warm (not boiling) cream also helps.

Absolutely—use a 9×13-inch pan. Increase covered bake time to 30 min, uncovered to 20 min. Rotate pan halfway for even browning.

Swap panko for gluten-free panko or coarsely crushed rice crackers. Add 1 Tbsp nutritional yeast for extra savoriness.

It is possible but you will lose the crunchy top. Layer everything in a 6-qt slow-cooker, drape a paper towel under the lid to absorb moisture, and cook on low 4 hours. Finish crumbs under the broiler on a sheet pan for 2 min, then sprinkle on top.

Salt draws out moisture, so season spinach only after it wilts. Once cool enough to handle, squeeze firmly in a clean kitchen towel or press through a fine sieve.
creamy sweet potato and spinach gratin with garlic and thyme
main-dishes
Pin Recipe

Creamy Sweet-Potato-and-Spinach Gratin with Garlic and Thyme

(4.9 from 127 reviews)
Prep
20 min
Cook
40 min
Servings
6

Ingredients

Instructions

  1. Preheat & roast: Preheat oven to 425°F. Slice sweet potatoes ¼ in thick, toss with 1 Tbsp olive oil, salt, and pepper. Roast 20 min until just tender; lower oven to 375°F.
  2. Wilt spinach: In a skillet, heat 1 tsp oil and wilt spinach 1–2 min. Press out excess liquid.
  3. Infuse cream: Melt butter in same skillet. Add shallot, garlic, thyme; cook 2 min. Stir in cream and milk, simmer 2 min, then steep off heat 10 min. Strain and season with salt, pepper, nutmeg.
  4. Assemble: Layer half the potatoes in a buttered 2-qt dish, top with spinach and ¾ cup Gruyère. Add remaining potatoes; pour cream over. Sprinkle remaining Gruyère.
  5. Top: Mix panko, 1 Tbsp olive oil, Parmesan, and thyme; scatter over cheese.
  6. Bake: Cover with foil and bake 20 min. Uncover and bake 15–20 min more, until bubbly and golden. Rest 10 min before serving.

Recipe Notes

For ultra-crispy crumbs, broil 1 min at the end. Leftovers reheat beautifully in a 350°F oven for 12 min.

Nutrition (per serving)

382
Calories
12g
Protein
24g
Carbs
28g
Fat

You May Also Like

Discover more delicious recipes

Never Miss a Recipe!

Get our latest recipes delivered to your inbox.