Love this? Pin it for later!
Baked Sweet Potato & Spinach Gratin with Rosemary: The Comfort Food That Hugs You Back
There are recipes you cook for nourishment, and then there are recipes you cook for the soul. This baked sweet potato and spinach gratin with rosemary falls firmly into the second category—though it's certainly no slouch in the nutrition department either.
I first developed this recipe on a particularly brutal February evening when the world outside felt gray and unkind. My farmer's market haul had yielded the most gorgeous jewel-toned sweet potatoes, and my winter garden was stubbornly producing rosemary despite the frost. The result was this gratin: layers of tender sweet potato, wilted spinach, and a creamy rosemary-infused sauce that bubbles up into golden perfection. One bite, and my husband declared it "the edible equivalent of a weighted blanket."
Since then, this gratin has become our go-to for everything from meatless Monday dinners to sophisticated holiday side dishes. It's elegant enough for company but simple enough for a Tuesday night when you need something that feels like a warm hug. The sweetness of the potatoes plays beautifully against the earthiness of spinach, while rosemary adds a piney brightness that cuts through the richness of the cream. It's comfort food elevated—familiar enough to be comforting, sophisticated enough to be special.
Why This Recipe Works
- Perfect Texture Balance: Thinly sliced sweet potatoes become meltingly tender while maintaining their shape, creating distinct layers that hold together beautifully
- Flavor Harmony: The natural sweetness of sweet potatoes is balanced by savory rosemary, nutty Gruyère, and slightly bitter spinach for complex, satisfying flavors
- Make-Ahead Friendly: Assemble completely up to 24 hours ahead, making it perfect for entertaining or meal prep
- Nutritional Powerhouse: Packed with beta-carotene, iron, calcium, and vitamins A, C, and K—comfort food that's genuinely good for you
- One-Dish Wonder: Everything bakes in a single dish, minimizing cleanup while maximizing flavor development
- Vegetarian Main or Side: Satisfying enough to stand alone as a vegetarian main dish, yet elegant enough to accompany roasted meats
- Seasonal Flexibility: Works equally well with winter comfort meals or as a sophisticated holiday side dish
Ingredients You'll Need
This gratin celebrates simple ingredients that, when combined, create something truly magical. Each component plays a crucial role in the final dish, so let's explore what makes each one special and how to choose the best quality ingredients.
Sweet Potatoes: The Star of the Show
Look for medium-sized sweet potatoes that feel heavy for their size with smooth, unblemished skin. I prefer the orange-fleshed varieties like Garnet or Jewel for their natural sweetness and creamy texture when baked. Avoid very large sweet potatoes, which tend to be fibrous. You'll need about 2½ pounds total—roughly 3-4 medium potatoes. Pro tip: Choose potatoes that are similar in diameter so your slices will be uniform.
Fresh Spinach: The Green Powerhouse
Fresh spinach wilts down dramatically, so don't be intimidated by the large quantity. I use 10 ounces of baby spinach for its tender texture and mild flavor. If you only have mature spinach, remove the tough stems and roughly chop the leaves. Frozen spinach works in a pinch—thaw and squeeze out every drop of moisture before using, or your gratin will be watery.
Rosemary: The Flavor Bridge
Fresh rosemary is non-negotiable here. Its pine-like aroma complements both the sweet potatoes and the cheese, creating a cohesive flavor profile. You'll need 2 tablespoons minced, plus a few whole sprigs for infusing the cream. Strip the leaves from woody stems by running your fingers backward along the stem. Chop finely—nobody wants to bite into a large rosemary needle.
Cheese: The Melty Magic
I use a combination of Gruyère for its nutty, complex flavor and Parmesan for its salty, umami punch. Gruyère melts beautifully without becoming stringy, while Parmesan adds a golden, crispy top. If Gruyère isn't available, Swiss or Emmental work well. For the Parmesan, please buy a wedge and grate it yourself—the pre-grated stuff simply doesn't compare.
Cream: The Luxurious Binder
Heavy cream creates the silken sauce that holds everything together. I've tested this with half-and-half and whole milk, but the results are undeniably superior with heavy cream. The fat content prevents curdling and creates that luxurious texture that makes this dish so comforting. If you must lighten it, use 1½ cups cream and ½ cup whole milk.
Nutmeg: The Secret Ingredient
Just a whisper of fresh nutmeg—about ⅛ teaspoon—brightens all the other flavors without announcing itself. It's the difference between a good gratin and a great one. Buy whole nutmeg and grate it fresh; the pre-ground stuff loses its magic quickly.
How to Make Baked Sweet Potato & Spinach Gratin with Rosemary
Prep Your Baking Dish and Oven
Position rack in center of oven and preheat to 375°F (190°C). Butter a 2-quart baking dish (8×11-inch or similar) generously, making sure to coat all the way up the sides. This prevents sticking and helps achieve those coveted crispy edges. For extra insurance against sticking, you can dust the buttered dish with a bit of grated Parmesan.
Infuse the Cream with Rosemary
In a small saucepan, combine heavy cream, minced rosemary, garlic, and a few grinds of black pepper. Bring just to a simmer over medium heat, then remove from heat and let steep for 15 minutes. This step allows the rosemary to perfume the cream, creating a more complex flavor base. Don't let it boil—just tiny bubbles around the edges are perfect.
Slice Sweet Potatoes with Precision
Peel sweet potatoes and slice into ⅛-inch thick rounds using a mandoline or sharp knife. Uniform thickness ensures even cooking—too thick and they'll be undercooked, too thin and they'll disintegrate. As you slice, keep the rounds in a bowl of cold water to prevent browning. Drain and pat thoroughly dry before assembling the gratin.
Wilt the Spinach Perfectly
Heat olive oil in a large skillet over medium-high heat. Add spinach in batches, tossing constantly until just wilted—about 1-2 minutes per batch. You want it bright green and barely collapsed. Immediately transfer to a colander and press out excess moisture. Season with a pinch of salt and a few gratings of nutmeg. This step concentrates the spinach flavor while preventing a watery gratin.
Create the First Layer
Drain the infused cream through a fine-mesh strainer, discarding the garlic. Arrange one-third of the sweet potato slices in the bottom of your prepared dish, overlapping them like shingles. This creates a stable base and ensures every bite has the perfect ratio of potato to cream. Season this layer with salt, pepper, and a light sprinkle of Gruyère.
Add the Spinach Layer
Distribute half the wilted spinach evenly over the potato layer. Don't pack it down—you want some air pockets for the cream to penetrate. Top with another light sprinkling of cheese. This middle layer prevents the spinach from sinking to the bottom and ensures it's distributed throughout the gratin rather than clumping together.
Build the Final Layers
Repeat the potato layer, then the remaining spinach, then a final layer of sweet potatoes. Press down gently to compact everything slightly—this helps the gratin hold together when served. Pour the infused cream evenly over the top, letting it seep down through the layers. The cream should come about three-quarters of the way up the sides.
Top and Bake to Golden Perfection
Combine the remaining Gruyère and Parmesan in a bowl. Sprinkle evenly over the top, then cover tightly with buttered foil (butter side down). This prevents sticking while allowing the potatoes to steam. Bake for 45 minutes, then remove foil and bake another 20-25 minutes until the top is golden and the cream is bubbling around the edges. Let rest 10 minutes before serving—this sets the layers and prevents molten cheese burns.
Expert Tips for Gratin Success
Mandoline Magic
A mandoline ensures perfectly even slices, but safety first! Use the hand guard or cut-resistant gloves. If using a knife, trim one side of each potato to create a flat base for stable slicing.
Cheese Selection
Buy cheese in blocks and grate it yourself. Pre-shredded cheese contains anti-caking agents that prevent smooth melting. A box grater works perfectly for this amount.
Cream Temperature
Start with room temperature cream to prevent curdling. If your cream is cold, warm it gently with the rosemary—never boil, as this can cause separation.
Testing Doneness
Insert a knife into the center—it should slide in with no resistance. If the top browns before the potatoes are tender, tent with foil and continue baking.
Resting Time
The 10-minute rest isn't optional—it allows the cream to set, preventing a runny gratin. Use this time to finish any other dishes or open that bottle of wine.
Make-Ahead Strategy
Assemble completely, cover tightly, and refrigerate up to 24 hours. Add 15-20 minutes to the covered baking time, checking that the center reaches 165°F.
Delicious Variations to Try
Autumn Harvest Gratin
Replace half the sweet potatoes with butternut squash for autumnal flair. Add ½ cup toasted pecans between layers for crunch and substitute sage for rosemary.
Mediterranean Twist
Swap spinach for kale, add ½ cup sun-dried tomatoes, and use feta instead of Parmesan. Include 1 tsp lemon zest in the cream for brightness.
Smoky & Spicy
Add 1 tsp smoked paprika to the cream and include 2 roasted poblano peppers, diced, between layers. Use smoked gouda for half the Gruyère.
Decadent Holiday Version
Add 4 oz sautéed wild mushrooms and 2 Tbsp truffle oil to the cream. Top with fresh breadcrumbs mixed with herbs for extra crunch.
Storage & Make-Ahead Tips
This gratin is incredibly accommodating when it comes to timing, making it perfect for entertaining or meal prep. Here are the best practices for storing and reheating:
Refrigeration
Store cooled gratin in the baking dish, covered tightly with plastic wrap and then foil, for up to 4 days. For best results, portion into individual servings before refrigerating—they reheat more evenly. The gratin will firm up considerably when cold, which is actually perfect for slicing clean portions.
Freezing
While cream-based gratins can separate when frozen, this one holds up reasonably well due to the potato starch. Freeze in individual portions for up to 2 months. Wrap each portion in plastic wrap, then foil. Thaw overnight in the refrigerator and reheat in a 350°F oven until warmed through, about 20 minutes.
Reheating
The microwave works in a pinch, but the oven is superior for restoring the creamy texture. Cover with foil and reheat at 350°F for 15-20 minutes for individual portions, 30-35 minutes for the whole dish. Remove the foil for the last 5 minutes to re-crisp the top. Add a splash of cream if it seems dry.
Make-Ahead Assembly
This is where this recipe truly shines. Assemble completely up to 24 hours ahead, cover tightly with buttered foil, and refrigerate. The potatoes will absorb some cream, so reserve ¼ cup cream to pour over the top before baking. Add 15-20 minutes to the covered baking time, ensuring the center reaches 165°F for food safety.
Frequently Asked Questions
Absolutely! Yukon Gold or Russet potatoes work beautifully, creating a more traditional gratin. The cooking time remains the same, but you'll lose the sweet-savory contrast that makes this version special. If using regular potatoes, consider adding caramelized onions for sweetness.
Curdling happens when cream is heated too quickly or mixed with acidic ingredients. Prevent this by: using room temperature cream, avoiding high oven temperatures (375°F max), and never letting the cream boil. The potato starch in this recipe actually helps stabilize the sauce.
Yes! Substitute full-fat coconut milk for the cream, nutritional yeast for the cheese (use ¾ cup), and vegan butter for regular butter. The flavor profile changes but remains delicious. Add 2 Tbsp white miso for umami depth that replaces the missing cheese.
Excess moisture is the culprit. Ensure spinach is thoroughly squeezed dry, sweet potatoes are patted dry after soaking, and you're using heavy cream (not half-and-half). Also, let the gratin rest 10 minutes after baking—this allows the sauce to thicken properly.
Absolutely! Ramekins or small gratin dishes work perfectly. Reduce the initial covered baking time to 25-30 minutes, then uncover for 10-15 minutes until golden. They're elegant for dinner parties and reduce baking time significantly.
This gratin pairs beautifully with roasted chicken, pork tenderloin, or beef tenderloin. For a vegetarian meal, serve alongside a crisp green salad with vinaigrette to cut the richness. It's also stunning as part of a holiday spread with turkey or ham.
Ingredients
Instructions
- Prep: Preheat oven to 375°F. Butter a 2-quart baking dish generously.
- Infuse cream: Combine cream, rosemary, and garlic in saucepan. Heat just to simmer, remove from heat, steep 15 minutes.
- Prep vegetables: Peel and slice sweet potatoes ⅛-inch thick. Wilt spinach in olive oil, squeeze dry, season with nutmeg.
- Assemble: Layer one-third potatoes, half the spinach, repeat, ending with potatoes. Pour strained cream over top.
- Bake: Cover with buttered foil, bake 45 minutes. Uncover, sprinkle with cheese, bake 20-25 minutes more until golden.
- Serve: Let rest 10 minutes before serving to set the sauce.
Recipe Notes
For best results, slice potatoes uniformly and don't skip the resting time. The gratin can be assembled up to 24 hours ahead—just add 15-20 minutes to the covered baking time.