Written by

Paulinha

Published

Creamy Zucchini and Yellow Squash Gratin Recipe with Crispy Thyme Topping

Ready In 45 minutes
Servings 4 servings
Difficulty Easy

Love this? Save it for later!

Share the inspiration with your friends

Introduction

“I wasn’t expecting to find this recipe scribbled on the back of a faded receipt,” I confessed to my friend Amy as we stood in her cluttered kitchen last Saturday afternoon. It was one of those rare moments when the power flickered and the afternoon sun cast a golden glow over her counter stacked with fresh summer vegetables. That scrappy note, stained with what I assumed was olive oil and a little too much enthusiasm, turned out to be the secret to the most comforting creamy zucchini and yellow squash gratin I’d ever tasted.

You know that feeling when a simple dish feels like a warm hug? That’s exactly what this gratin delivers. Honestly, the crispy thyme topping with its subtle earthiness paired with the velvety layers of squash was enough to make me forget I had a sink full of dishes waiting. Maybe you’ve been there—caught off guard by a dish that feels both fancy and homey at the same time.

What makes this recipe stand out isn’t just the creamy texture or the fresh garden flavors. It’s how it came to be: a random kitchen interruption, a forgotten ingredient substituted last minute, and a bit of curiosity that led to a dish I keep making every summer. Let me tell you, once you try this creamy zucchini and yellow squash gratin with crispy thyme topping, it’ll be hard to go back to plain roasted veggies.

Why You’ll Love This Recipe

Having made this creamy zucchini and yellow squash gratin more times than I can count, I’ve learned a few things that make it truly shine. Whether you’re a busy cook looking for quick comfort food or someone who treasures fresh, seasonal produce, this recipe ticks all the boxes.

  • Quick & Easy: Ready in under 45 minutes, it’s perfect for busy weeknights or last-minute dinner plans.
  • Simple Ingredients: Uses everyday kitchen staples and fresh summer squash—no hunting for specialty items.
  • Perfect for Seasonal Meals: Ideal for late summer when zucchinis and yellow squash are at their peak.
  • Crowd-Pleaser: Everyone from picky kids to seasoned foodies loves the creamy yet crispy combo.
  • Unbelievably Delicious: The thyme topping adds that irresistible crunch and aroma that brings all the flavors together.

This isn’t just another gratin. The secret is in the balance—the silky creaminess that wraps around tender squash slices, contrasted with the crunchy, herb-infused topping. I’ve experimented with different cheeses and herbs over the years, but the crispy thyme topping is my personal favorite twist. It’s comfort food with a fresh, herbaceous kick you don’t see every day.

Honestly, this dish always makes me pause and savor that first bite. It’s the kind of recipe that turns a simple vegetable side into the star of the table. So if you’re looking for a way to treat summer squash beyond the usual sauté or roast, this gratin will become your new go-to.

What Ingredients You Will Need

This creamy zucchini and yellow squash gratin recipe uses simple, wholesome ingredients that come together to create layers of flavor and texture. Most are pantry staples, while the fresh squash and thyme bring seasonal brightness. Feel free to swap or adjust based on what you have on hand.

  • Zucchini, medium-sized, sliced into 1/4-inch rounds (about 2 cups) – fresh and firm is best
  • Yellow squash, medium-sized, sliced similarly to zucchini (about 2 cups)
  • Unsalted butter, 3 tablespoons – for richness and sautéing
  • Shallots, 1 small, finely diced (adds a subtle sweetness)
  • Garlic cloves, 2, minced (fresh is key for that punch)
  • Heavy cream, 1 cup (240 ml) – for the luscious creamy base
  • Grated Gruyère cheese, 1 cup (about 100 g) – I recommend Emmi Gruyère for great melt and flavor
  • Parmesan cheese, 1/2 cup (50 g), freshly grated (for topping and extra umami)
  • Fresh thyme leaves, 2 tablespoons, finely chopped plus extra whole sprigs for topping (gives that herby crispness)
  • All-purpose flour, 1 tablespoon – to thicken the cream sauce
  • Salt and freshly ground black pepper, to taste
  • Olive oil, 1 tablespoon – to toss with thyme for the crispy topping

Substitution tips: Use half-and-half instead of heavy cream for a lighter dish, or swap Gruyère with sharp cheddar for a different flavor profile. If you need a gluten-free version, replace flour with cornstarch or a gluten-free blend.

Equipment Needed

creamy zucchini and yellow squash gratin preparation steps

  • Medium-sized sauté pan – a nonstick pan works well to soften the squash gently without sticking
  • Mixing bowls – for tossing the squash and mixing the topping
  • Sharp knife and cutting board – to slice the squash evenly
  • Baking dish, approximately 8×8 inches (20×20 cm) or equivalent oven-safe dish
  • Whisk – to blend the flour and cream smoothly
  • Measuring cups and spoons – for precise ingredient amounts
  • Oven mitts – safety first when handling the hot gratin dish

If you don’t have a nonstick pan, a well-seasoned cast iron skillet will do just fine. For the baking dish, I sometimes use a ceramic pie plate if I’m short on standard gratin dishes. Just keep an eye on cooking time if your dish is shallower or deeper.

Preparation Method

  1. Preheat your oven to 375°F (190°C). This sets the stage for a perfectly baked gratin—warm and bubbly with a golden crust.
  2. Prepare the squash: Wash and slice 2 medium zucchinis and 2 medium yellow squashes into 1/4-inch thick rounds. Try to keep slices uniform so they cook evenly. Set aside.
  3. Sauté shallots and garlic: In your sauté pan, melt 3 tablespoons of unsalted butter over medium heat. Add the finely diced shallots and cook for 2-3 minutes until translucent. Toss in 2 minced garlic cloves and cook for another 30 seconds until fragrant. Be careful not to brown the garlic—it should smell sweet, not bitter.
  4. Create the cream sauce: Sprinkle 1 tablespoon of all-purpose flour over the shallots and garlic, stirring constantly for about 1 minute to cook off the raw flour taste. Gradually whisk in 1 cup (240 ml) of heavy cream, stirring until the mixture thickens slightly—this usually takes 3-4 minutes. Season with salt and freshly ground black pepper to taste. Remove from heat.
  5. Mix the squash and sauce: In a large bowl, combine the sliced zucchini and yellow squash with the cream sauce. Add 1 cup (100 g) grated Gruyère cheese and 2 tablespoons finely chopped fresh thyme leaves. Toss gently to coat the squash evenly.
  6. Assemble the gratin: Transfer the squash mixture into your baking dish, spreading it out evenly. Sprinkle 1/2 cup (50 g) freshly grated Parmesan cheese over the top.
  7. Prepare the crispy thyme topping: In a small bowl, toss a few whole fresh thyme sprigs with 1 tablespoon olive oil. Spread these thyme sprigs over the top of the gratin. This little touch adds a crispy, aromatic crunch once baked.
  8. Bake: Place the gratin in the preheated oven and bake for 30-40 minutes, or until the top is golden brown and bubbling around the edges. You’ll notice a delightful sizzle as the cream thickens and the cheese melts into a luscious crust.
  9. Rest and serve: Let the gratin cool for 5 minutes before serving. This resting time helps the sauce set slightly, making it easier to scoop out perfect portions.

Tip: If you find the topping browning too quickly, loosely tent the dish with foil halfway through baking. Also, if your squash releases a lot of water, drain slightly before mixing with the cream sauce to avoid a watery gratin.

Cooking Tips & Techniques

When it comes to making a creamy zucchini and yellow squash gratin with that perfect crispy thyme topping, a few tips go a long way. First, slicing your squash evenly is crucial. I learned this the hard way when my first attempt turned out with some slices mushy and others undercooked. Use a sharp knife or a mandoline to keep things consistent.

Don’t rush the cream sauce. Stirring the flour and cream together slowly prevents lumps and gives you a silky base. If you ever notice clumps, whisk vigorously or strain before combining with the squash.

For the thyme topping, fresh is best. Dried thyme won’t crisp up the same way and can taste a bit flat. Tossing the thyme sprigs in olive oil just before baking makes the difference between a sad herb and a crunchy, fragrant topping.

I once tried this gratin with frozen squash in a pinch, but honestly, it became watery and lacked the fresh brightness. Fresh squash and gentle sautéing maintain texture and flavor.

Timing is everything—if you prep the squash and sauce ahead, assemble just before baking. And keep an eye on your oven’s quirks; some ovens brown faster on one side, so rotating the dish halfway can help.

Variations & Adaptations

This recipe is forgiving and versatile, so feel free to make it your own.

  • Vegan Version: Swap out butter for coconut oil or vegan margarine, use full-fat coconut milk or cashew cream instead of heavy cream, and replace cheeses with vegan alternatives or nutritional yeast for cheesy flavor.
  • Low-Carb/Keto Adaptation: Use heavy cream as is but swap the flour for almond flour or coconut flour to keep it low-carb. Feel free to add some shredded mozzarella for extra gooeyness.
  • Seasonal Twist: In autumn, try adding thin slices of sweet potatoes or butternut squash for extra color and sweetness. You might also sprinkle in sage instead of thyme for a cozy taste.
  • Spicy Kick: Add a pinch of crushed red pepper flakes to the cream sauce or sprinkle cayenne powder on top before baking for a subtle heat.
  • Herb Swap: If thyme isn’t your thing, fresh rosemary or oregano also work well for that crispy, aromatic topping.

One time, I tried mixing in some caramelized onions for sweetness and depth—it was a hit at a potluck, and people kept asking for the recipe!

Serving & Storage Suggestions

This creamy zucchini and yellow squash gratin is best served warm, right out of the oven when the cheese is gooey and the thyme topping still crispy. It pairs beautifully with roasted chicken, grilled fish, or even a simple green salad dressed with lemon vinaigrette.

Leftovers keep well in the fridge for up to 3 days. Store in an airtight container and reheat gently in the oven at 350°F (175°C) for 15 minutes to restore crispiness. Microwave works in a pinch but softens the topping.

If you want to freeze it, do so before baking. Cover tightly and freeze for up to 1 month. Thaw overnight in the fridge and bake as usual, adding a few extra minutes to the baking time.

Interestingly, the flavors meld even better the next day, so if you have time, a day-old gratin is a treat—just bring it back to life with a quick reheat.

Nutritional Information & Benefits

This zucchini and yellow squash gratin is a great choice for those seeking a satisfying yet nutrient-rich side. Zucchini and yellow squash are low in calories, high in vitamin C, and provide a good amount of fiber, promoting digestive health.

The use of fresh thyme adds antioxidants and supports anti-inflammatory benefits. Heavy cream and cheese provide calcium and protein, but this dish is best enjoyed in moderation if you’re watching saturated fat intake.

You can adjust the recipe to be gluten-free by swapping flour or make it lighter by using half-and-half. It’s a dish that fits well into balanced eating, especially with its vegetable-forward profile.

Conclusion

To wrap things up, this creamy zucchini and yellow squash gratin with crispy thyme topping is one of those recipes that feels both comforting and refined. It’s a simple way to make summer squash shine, whether you’re cooking for family or entertaining friends.

Feel free to tweak it—add your favorite herbs or cheeses, make it vegan or low-carb, or experiment with seasonal veggies. Honestly, the best part about this recipe is how easy it is to personalize while still delivering that rich, creamy, crunchy magic.

I keep coming back to this recipe not just because it tastes amazing, but because it reminds me of that rainy Saturday with Amy, a scribbled note, and the unexpected joy of a new favorite dish. I hope you enjoy making it as much as I do.

Don’t forget to share your own twists or questions in the comments below—I love hearing how this recipe fits into your kitchen!

FAQs

Can I make this gratin ahead of time?

Yes! You can prepare and assemble the gratin up to a day before baking. Keep it covered in the fridge and bake just before serving, adding a few extra minutes to the baking time if cold.

What can I substitute for heavy cream?

For a lighter option, half-and-half works well. For dairy-free, use coconut milk or cashew cream, but expect a slightly different flavor and texture.

How do I prevent the gratin from becoming watery?

Slice the squash evenly and sauté until just tender to reduce moisture. Also, avoid overcrowding the pan when cooking, and drain any excess liquid before mixing with the cheese and cream.

Can I use dried thyme instead of fresh?

Fresh thyme is best for the crispy topping, but if you must use dried, add it to the cream sauce instead. It won’t crisp up the same way on top.

Is this recipe gluten-free?

Not as written, because it uses all-purpose flour to thicken the sauce. You can make it gluten-free by substituting the flour with cornstarch or a gluten-free flour blend.

For those wanting to try some other vegetable side dishes with a bit of flair, you might enjoy my roasted garlic asparagus or the creamy texture of my creamy spinach artichoke dip. Both are favorites that bring a different spin on green veggies.

Pin This Recipe!

creamy zucchini and yellow squash gratin recipe

Print

Creamy Zucchini and Yellow Squash Gratin Recipe with Crispy Thyme Topping

A comforting and creamy gratin featuring layers of tender zucchini and yellow squash, topped with a crispy, aromatic thyme crust. Perfect for showcasing fresh summer squash with a rich, cheesy sauce.

  • Author: Emma
  • Prep Time: 15 minutes
  • Cook Time: 35 minutes
  • Total Time: 50 minutes
  • Yield: 6 servings 1x
  • Category: Side Dish
  • Cuisine: American

Ingredients

Scale
  • 2 medium zucchinis, sliced into 1/4-inch rounds (about 2 cups)
  • 2 medium yellow squashes, sliced into 1/4-inch rounds (about 2 cups)
  • 3 tablespoons unsalted butter
  • 1 small shallot, finely diced
  • 2 garlic cloves, minced
  • 1 cup (240 ml) heavy cream
  • 1 cup (about 100 g) grated Gruyère cheese
  • 1/2 cup (50 g) freshly grated Parmesan cheese
  • 2 tablespoons fresh thyme leaves, finely chopped
  • Whole fresh thyme sprigs for topping
  • 1 tablespoon all-purpose flour
  • Salt, to taste
  • Freshly ground black pepper, to taste
  • 1 tablespoon olive oil

Instructions

  1. Preheat your oven to 375°F (190°C).
  2. Wash and slice 2 medium zucchinis and 2 medium yellow squashes into 1/4-inch thick rounds. Set aside.
  3. In a medium sauté pan, melt 3 tablespoons of unsalted butter over medium heat. Add the finely diced shallots and cook for 2-3 minutes until translucent.
  4. Add 2 minced garlic cloves and cook for another 30 seconds until fragrant, being careful not to brown the garlic.
  5. Sprinkle 1 tablespoon of all-purpose flour over the shallots and garlic, stirring constantly for about 1 minute.
  6. Gradually whisk in 1 cup (240 ml) of heavy cream, stirring until the mixture thickens slightly (3-4 minutes). Season with salt and freshly ground black pepper to taste. Remove from heat.
  7. In a large bowl, combine the sliced zucchini and yellow squash with the cream sauce. Add 1 cup (100 g) grated Gruyère cheese and 2 tablespoons finely chopped fresh thyme leaves. Toss gently to coat evenly.
  8. Transfer the squash mixture into an 8×8 inch (20×20 cm) baking dish, spreading it out evenly.
  9. Sprinkle 1/2 cup (50 g) freshly grated Parmesan cheese over the top.
  10. In a small bowl, toss a few whole fresh thyme sprigs with 1 tablespoon olive oil. Spread these thyme sprigs over the top of the gratin.
  11. Bake in the preheated oven for 30-40 minutes, or until the top is golden brown and bubbling around the edges.
  12. Let the gratin cool for 5 minutes before serving.

Notes

If the topping browns too quickly, tent the dish loosely with foil halfway through baking. Drain excess water from squash if it releases too much moisture to avoid a watery gratin. Use fresh thyme for best crispy topping; dried thyme can be added to the cream sauce instead. For gluten-free, substitute flour with cornstarch or gluten-free flour blend. Leftovers keep well refrigerated for up to 3 days and reheat best in the oven to maintain crispiness.

Nutrition

  • Serving Size: About 1/6th of the g
  • Calories: 280
  • Sugar: 4
  • Sodium: 320
  • Fat: 22
  • Saturated Fat: 13
  • Carbohydrates: 8
  • Fiber: 2
  • Protein: 9

Keywords: zucchini gratin, yellow squash gratin, creamy squash gratin, thyme topping, summer squash recipe, cheesy gratin, vegetable side dish

Did you make this recipe?

Share a photo and tag us — we can't wait to see what you've made!

You might also love these recipes

Leave a Comment

Recipe rating