Welcome to seasonallyrecipes

cozy spinach and potato gratin with garlic and rosemary

By Amelia Avery | March 07, 2026
cozy spinach and potato gratin with garlic and rosemary
There's something magical about the way potatoes transform in the oven when nestled between layers of creamy sauce and tender spinach. This gratin has become my go-to comfort food when the weather turns chilly, and it's the recipe my friends request most often for potluck dinners. The combination of earthy rosemary, aromatic garlic, and the slight bitterness of spinach creates a harmony that makes this dish far more sophisticated than your average potato casserole.

I first developed this recipe during a particularly harsh winter when I was craving something that would warm both body and soul. After experimenting with different herbs and greens, I discovered that rosemary's pine-like aroma pairs beautifully with the creamy potatoes, while spinach adds not just nutrition but a depth of flavor that prevents this from becoming too rich. The result is a gratin that's elegant enough for a dinner party yet comforting enough for a quiet night in.

What makes this recipe truly special is how it transforms simple, affordable ingredients into something that tastes like it came from a fancy bistro. The crispy golden top gives way to layers of tender potatoes infused with garlic and herbs, while the spinach provides beautiful color contrast and a nutritional boost. Whether you're cooking for vegetarians or simply looking for a meatless Monday option that doesn't compromise on satisfaction, this gratin delivers every single time.

Why This Recipe Works

  • Perfect Potato Selection: Using a mix of Yukon Gold and russet potatoes creates the ideal texture - creamy yet holding their shape beautifully
  • Fresh Rosemary Magic: Fresh rosemary infuses the entire dish with aromatic oils that dried herbs simply can't match
  • Smart Spinach Technique: Wilted spinach releases excess moisture, preventing a watery gratin while concentrating its flavor
  • Triple Cheese Strategy: A blend of Gruyère for nuttiness, Parmesan for saltiness, and cream cheese for silkiness
  • Make-Ahead Friendly: Assemble up to 24 hours ahead for stress-free entertaining
  • One Dish Wonder: Everything bakes in a single pan, minimizing cleanup while maximizing flavor

Ingredients You'll Need

Ingredients

This gratin relies on the quality of its ingredients, so take time to select the best produce and cheese available. The combination of potatoes, cream, and cheese creates a luxurious texture, while garlic and rosemary provide aromatic depth that makes this dish memorable.

For the Potatoes:

2 pounds mixed potatoes - I use a combination of Yukon Gold and russet potatoes. Yukon Golds provide a naturally buttery flavor and creamy texture, while russets break down slightly to help thicken the sauce. Look for firm potatoes without any green spots or sprouts. If you can only find one variety, Yukon Golds are my preference for their consistent results.

2 cups fresh spinach - Baby spinach works best as it's naturally tender and requires minimal prep. If using mature spinach, remove any tough stems. Frozen spinach can substitute in a pinch - just thaw and squeeze out all excess moisture. The spinach not only adds nutrients but also provides a beautiful color contrast against the golden potatoes.

For the Creamy Sauce:

2 cups heavy cream - This is not the place to skimp on fat content. Heavy cream prevents curdling and creates the silky sauce that defines a great gratin. If you must lighten it, you can substitute up to half with half-and-half, but expect a slightly less rich result.

3 cloves garlic, minced - Fresh garlic is essential here. Avoid pre-minced garlic in jars as it's often preserved in citric acid which can add an off-flavor. For the best distribution of garlic flavor, I like to infuse the cream with smashed garlic cloves before adding minced garlic directly to the sauce.

3 sprigs fresh rosemary - Fresh rosemary is non-negotiable for this recipe. The essential oils in fresh rosemary contain compounds that simply don't survive the drying process. If you grow your own, young tender sprigs are best - older woody stems can be bitter.

The Cheese Blend:

1½ cups Gruyère cheese, grated - Gruyère melts beautifully and adds a complex nutty flavor that elevates this from simple to sophisticated. If Gruyère isn't available or is too pricey, a good Swiss or Comté works well. Avoid pre-grated cheese as it contains anti-caking agents that prevent smooth melting.

½ cup Parmesan cheese, freshly grated - Freshly grated Parmesan adds a salty, umami punch that balances the cream's richness. The pre-grated stuff in containers simply doesn't compare in flavor or melting quality.

2 tablespoons cream cheese - This secret ingredient helps stabilize the sauce and prevents it from breaking. It also adds extra creaminess without making the dish heavy.

How to Make Cozy Spinach and Potato Gratin with Garlic and Rosemary

1
Prep and Preheat

Position your oven rack to the center and preheat to 375°F (190°C). Butter a 9×13-inch baking dish thoroughly, making sure to get into all the corners. This prevents sticking and helps the edges crisp beautifully. Take your cream cheese out of the refrigerator to soften - this ensures it will blend smoothly into the sauce later.

2
Prepare the Potatoes

Wash and peel your potatoes (I leave a few strips of skin on for texture and nutrition). Using a mandoline slicer or sharp knife, slice potatoes into 1/8-inch thick rounds. This thickness ensures they cook through while maintaining their shape. Place slices in a large bowl of cold water to prevent browning while you prepare the other components. Drain and pat completely dry before using - excess water will dilute your sauce.

3
Infuse the Cream

In a medium saucepan, combine the heavy cream with the smashed garlic cloves and rosemary sprigs. Bring to a gentle simmer over medium heat, then reduce to low and let it steep for 15 minutes. This infuses the cream with aromatic flavors without the harsh bite of raw garlic. Remove from heat and let cool slightly before straining out the solids. This step is crucial for developing deep, complex flavors.

4
Wilt the Spinach

Heat a large skillet over medium-high heat. Add the spinach with just the water clinging to its leaves - no additional oil needed. Toss constantly for 2-3 minutes until just wilted. Immediately transfer to a colander and press out excess moisture. Chop roughly and season with a pinch of salt and pepper. Removing excess moisture prevents your gratin from becoming watery during baking.

5
Create the Cheese Sauce

Return the infused cream to medium heat and whisk in the cream cheese until completely smooth. Add 1 cup of the Gruyère and all the Parmesan, stirring constantly until melted and silky. Season with salt, white pepper, and a pinch of nutmeg. The sauce should coat the back of a spoon - if too thick, thin with a splash of milk; if too thin, simmer for a few more minutes.

6
Assemble the Gratin

Start with a thin layer of sauce on the bottom of your prepared dish. Arrange potato slices in overlapping rows, like shingles on a roof. Spread half the spinach over the first layer, then repeat with more potatoes, sauce, and remaining spinach. Finish with a final layer of potatoes and sauce. Press down gently to eliminate air pockets. Cover tightly with buttered foil - the butter prevents sticking and helps with browning.

7
First Bake

Bake covered for 45 minutes. This initial covered baking steams the potatoes, ensuring they cook through without drying out. The steam trapped inside helps create the perfect texture - tender potatoes that still hold their shape. Resist the urge to peek during this time, as releasing steam will extend cooking time.

8
Uncover and Add Cheese

Remove the foil and sprinkle the remaining ½ cup Gruyère over the top. Increase oven temperature to 400°F (200°C) and bake uncovered for 20-25 minutes more. This final high-heat phase creates the characteristic golden, bubbling top that makes gratins so irresistible. The cheese will form a beautiful crust while the edges caramelize slightly.

9
Rest and Serve

Let the gratin rest for 15 minutes before serving. This crucial step allows the sauce to thicken and set, preventing it from being too runny when you cut into it. The gratin will be bubbling hot and needs time to cool slightly for the best texture and to prevent burned mouths. Garnish with fresh rosemary sprigs and serve directly from the baking dish for rustic elegance.

Expert Tips

Use a Mandoline

Consistent thickness is key for even cooking. A mandoline ensures all potato slices are the same thickness, preventing some pieces from being undercooked while others turn to mush. If you don't have one, take your time with a sharp knife and use the first slice as a guide for the rest.

Test for Doneness

Insert a thin knife or skewer through the center - it should slide in with minimal resistance. If you feel firm potatoes, cover with foil and bake 10-15 minutes more. The gratin should be bubbling around the edges and golden on top when done.

Make-Ahead Strategy

Assemble completely, cover tightly, and refrigerate up to 24 hours. Add 15-20 minutes to covered baking time since you'll be starting with a cold dish. Perfect for holidays when oven space is at a premium - just pop it in when your main dish comes out to rest.

Prevent Curdling

Never let the cream sauce boil after adding cheese. Keep the heat low and stir constantly. If your sauce does break, whisk in a teaspoon of lemon juice or white wine - the acid helps re-emulsify the sauce and brings it back together.

Browning Boost

For extra browning on top, mix 2 tablespoons of grated Parmesan with 1 tablespoon of panko breadcrumbs. Sprinkle this over the cheese during the last 10 minutes of baking. The breadcrumbs absorb excess moisture while the Parmesan creates an ultra-crispy crust.

Fresh Herb Finish

While fresh rosemary is essential for cooking, finish the dish with fresh thyme or chives for brightness. The heat of the oven diminishes some of the fresh flavors, so adding tender herbs at the end preserves their vibrant taste and color.

Variations to Try

Mushroom Medley

Replace spinach with sautéed wild mushrooms for an earthier version. Use a mix of cremini, shiitake, and oyster mushrooms. Sauté them until golden before layering with potatoes. The umami from mushrooms pairs beautifully with the rosemary.

Spicy Version

Add heat with 1 teaspoon of red pepper flakes to the cream sauce, or layer in thinly sliced jalapeños between potato layers. A smoky chipotle pepper in adobo sauce, minced fine, adds incredible depth without overwhelming heat.

Make It a Meal

Layer in flaked smoked trout or salmon for protein. The smoky fish complements the creamy potatoes perfectly. Add it during the last layer so it doesn't overcook and become dry.

Lighter Version

Substitute Greek yogurt for half the cream, and use low-fat milk thickened with a roux. While not as rich, it's still satisfying. Use less cheese overall but add a tablespoon of nutritional yeast for extra umami flavor.

Storage Tips

Refrigeration

Cool completely, cover tightly, and refrigerate up to 4 days. The flavors actually improve after the first day as they meld together. Store in individual portions for easy reheating.

Freezing

Freeze individual portions for up to 2 months. Wrap tightly in plastic wrap then foil. Thaw overnight in the refrigerator. Note: the texture may change slightly, becoming more dense.

Reheating

Reheat in a 350°F oven covered with foil until warmed through, about 25-30 minutes. Add a splash of cream if it seems dry. The microwave works for individual portions but won't restore the crispy top.

Frequently Asked Questions

Absolutely! This gratin is perfect for entertaining. Assemble completely up to 24 hours ahead, cover tightly, and refrigerate. When ready to serve, add 15-20 minutes to the covered baking time since you'll be starting with a cold dish. You can also prep components separately: slice potatoes and keep in water, make the sauce, wilt spinach, and grate cheese. Store separately and assemble just before baking for the freshest result.

Sauce curdling typically happens when the heat is too high or the sauce boils after adding cheese. The proteins in cheese seize up and separate from the fat. To prevent this, keep heat low when adding cheese and stir constantly. If it's already curdled, you can sometimes rescue it by whisking in a teaspoon of lemon juice or white wine. The acid helps re-emulsify the sauce. Another trick is to blend it with an immersion blender, which can bring it back together.

While heavy cream provides the best texture and prevents curdling, you can lighten it slightly. Substitute up to half with half-and-half, or use whole milk thickened with a roux (2 tablespoons butter and 2 tablespoons flour cooked together). For a dairy-free version, full-fat coconut milk works surprisingly well, though it will add a subtle coconut flavor. Avoid using all low-fat milk as it won't create the rich, velvety sauce that makes gratins special.

The gratin is done when the top is golden brown and bubbling around the edges. Most importantly, insert a thin knife or skewer through the center - it should slide in with minimal resistance. The sauce should be bubbling up around the edges, and the top will be crispy and golden. If the top is browning too quickly before the potatoes are tender, cover loosely with foil and continue baking. Total time is usually 65-75 minutes.

Definitely! This gratin welcomes additions. Crumbled bacon between layers adds smoky richness. Diced ham or prosciutto works beautifully with the rosemary. For seafood lovers, smoked trout or salmon added in the final layer creates an elegant main dish. For vegetarians, chickpeas or white beans add protein while maintaining the dish's character. Just be mindful of added salt - adjust seasoning accordingly.

For best results, reheat in a 350°F oven covered with foil until warmed through, about 25-30 minutes. Add a splash of cream or milk if it seems dry, and uncover for the last 5 minutes to crisp the top. For individual portions, the microwave works but won't restore the crispy top. To re-crisp, place under the broiler for 2-3 minutes after microwaving. Individual portions can also be reheated in a skillet with a bit of butter for crispy edges.

cozy spinach and potato gratin with garlic and rosemary
main-dishes
Pin Recipe

Cozy Spinach and Potato Gratin with Garlic and Rosemary

(4.9 from 127 reviews)
Prep
30 min
Cook
70 min
Servings
8

Ingredients

Instructions

  1. Preheat and Prep: Preheat oven to 375°F (190°C). Butter a 9×13-inch baking dish thoroughly.
  2. Prepare Potatoes: Slice potatoes into 1/8-inch thick rounds and place in cold water to prevent browning.
  3. Infuse Cream: Combine cream, smashed garlic, and rosemary in a saucepan. Simmer gently for 15 minutes, then strain.
  4. Wilt Spinach: Sauté spinach until just wilted, squeeze out excess moisture, and chop roughly.
  5. Make Cheese Sauce: Heat infused cream, whisk in cream cheese until smooth. Add 1 cup Gruyère and all Parmesan, stirring until melted.
  6. Assemble: Layer potatoes, sauce, and spinach in prepared dish. Finish with remaining potatoes and sauce.
  7. First Bake: Cover with buttered foil and bake 45 minutes at 375°F.
  8. Final Bake: Uncover, sprinkle with remaining ½ cup Gruyère. Increase heat to 400°F and bake 20-25 minutes until golden.
  9. Rest and Serve: Let stand 15 minutes before serving to allow sauce to thicken.

Recipe Notes

For best results, use freshly grated cheese rather than pre-grated. The anti-caking agents in pre-grated cheese can prevent smooth melting. Let the gratin rest before serving - this crucial step allows the sauce to thicken properly.

Nutrition (per serving)

425
Calories
14g
Protein
28g
Carbs
31g
Fat

More Recipes