Zucchini and Yellow Squash Gratin

24 min prep 45 min cook 350 servings
Zucchini and Yellow Squash Gratin
Save This Recipe!
Click to save for later - It only takes 2 seconds!

The first time I made this zucchini and yellow squash gratin, I was standing in my grandma’s kitchen on a breezy summer afternoon, the kind where the sunlight spills through the window and paints the countertops with golden stripes. The scent of fresh garden vegetables, still warm from the garden, mingled with the buttery aroma of melted Gruyère, and I could hear the faint hum of the old oven ticking like a contented cat. I remember the moment I lifted the lid of the casserole dish and a cloud of fragrant steam rose, carrying whispers of thyme, garlic, and caramelized onions that made my mouth water before I even took a bite. That instant, I knew I had stumbled upon a dish that would become a family staple, a comforting side that could turn any ordinary weeknight dinner into a celebration.

What makes this gratin truly special is its balance of textures and flavors: the tender, slightly sweet layers of zucchini and yellow squash are cradled in a luxuriously creamy sauce, while a golden crust of Parmesan and Gruyère adds a satisfying crunch. It’s the kind of dish that feels both rustic and refined, perfect for a casual family dinner or a holiday table where you want something that looks as impressive as it tastes. Imagine serving a bubbling, golden‑brown masterpiece that still manages to keep the vegetables bright and vibrant, each bite delivering a burst of summer freshness wrapped in cheesy decadence. The best part? It’s surprisingly simple to assemble, yet the result feels like it took hours of careful layering and seasoning.

But wait—there’s a secret trick hidden in step four that will elevate the creaminess to a level you didn’t even know was possible. I’ll reveal that later, along with a little ingredient most people skip that makes all the difference. As you read on, you’ll discover why this recipe works so well, how to choose the perfect produce, and the exact steps to create a gratin that sings with flavor. Trust me, once you’ve tasted the first spoonful, you’ll be reaching for seconds before the dish even cools down. Here’s exactly how to make it — and trust me, your family will be asking for seconds.

🌟 Why This Recipe Works

  • Flavor Depth: The combination of sweet, slightly earthy zucchini and bright, buttery yellow squash creates a natural harmony that’s amplified by the aromatic thyme and caramelized onion. When these vegetables meet the rich, nutty notes of Gruyère and the sharp, salty edge of Parmesan, you get layers of flavor that build with each bite.
  • Texture Contrast: The creamy sauce coats each slice, while the top crust develops a crisp, golden crust that adds a delightful crunch. This contrast keeps the palate engaged from the first spoonful to the last.
  • Ease of Preparation: Despite its elegant appearance, the gratin requires only a few basic kitchen tools— a sharp knife, a skillet, and a baking dish. You don’t need any fancy gadgets to achieve a restaurant‑quality result.
  • Time Efficiency: With a total cooking time of just 45 minutes, you can have a hearty, comforting side on the table while the rest of your meal finishes cooking. The prep can even be done ahead of time, making it perfect for busy weeknights.
  • Versatility: This dish shines as a side to roasted chicken, grilled steak, or a simple pasta. It also works beautifully as a vegetarian main when paired with a crisp green salad or a slice of crusty bread.
  • Nutrition Boost: Zucchini and yellow squash are low‑calorie powerhouses packed with vitamins A and C, while the modest amount of cheese adds protein and calcium without overwhelming the dish.
  • Ingredient Quality: Using fresh, in‑season vegetables and high‑quality cheeses makes a world of difference; the flavors shine through and the texture stays silky.
  • Crowd‑Pleasing Factor: Even picky eaters love the cheesy crust and the subtle sweetness of the vegetables, making it a safe bet for gatherings of all ages.
💡 Pro Tip: For an extra layer of depth, lightly toss the sliced vegetables in a splash of white wine before adding them to the skillet. The wine evaporates, leaving behind a nuanced acidity that balances the richness of the cream and cheese.

🥗 Ingredients Breakdown

The Foundation: Fresh Summer Squash

The star of this gratin are the two medium zucchini and two medium yellow squash. Zucchini brings a mild, almost buttery flavor, while yellow squash adds a subtle sweetness and a sunny hue that makes the dish visually appealing. Choose squash that’s firm to the touch, with glossy skin and no soft spots; this ensures they’ll hold their shape during baking. If you’re shopping out of season, look for organic varieties that have been stored properly to retain their moisture and flavor. Tip: Slice the vegetables uniformly—about a quarter‑inch thick—so they cook evenly and create beautiful, layered ribbons.

Aromatics & Spices: The Flavor Builders

One large onion and two cloves of garlic form the aromatic base that will infuse the cream with savory goodness. I like to dice the onion finely so it softens quickly and becomes almost caramelized, releasing a sweet undertone that complements the vegetables. The garlic, minced just before using, adds a punchy aroma that brightens the entire dish. Fresh thyme leaves—about a teaspoon—bring an earthy, piney note that pairs perfectly with the mild squash. If you don’t have fresh thyme, a half‑teaspoon of dried thyme works just as well, but fresh always wins on flavor.

The Secret Weapons: Creamy Luxury & Cheesy Bliss

One cup of heavy cream is the silky conduit that binds everything together, creating a luscious sauce that seeps into every slice of squash. The heavy cream’s fat content is essential; it prevents the sauce from curdling and gives that melt‑in‑your‑mouth mouthfeel. Then comes the cheese duo: one cup of grated Gruyère adds a nutty, slightly sweet richness, while half a cup of grated Parmesan contributes a sharp, salty crunch that browns beautifully on top. If you’re feeling adventurous, you can swap half the Gruyère for a smoked cheese for a subtle smoky twist.

Finishing Touches: Seasoning & Olive Oil

Two tablespoons of olive oil are used to sauté the aromatics and give the vegetables a gentle sheen before they hit the oven. Salt and pepper to taste are added at multiple stages—first to the onion and garlic, then again after the cream is incorporated—to ensure each layer is seasoned perfectly. The olive oil also helps the cheese crust develop a deep, golden color without sticking to the dish. A final drizzle of olive oil over the top before baking can add a glossy finish and a hint of fruitiness that rounds out the flavor profile.

🤔 Did You Know? Zucchini belongs to the same family as pumpkins and cucumbers, which means it’s packed with antioxidants like lutein and zeaxanthin that support eye health.

With your ingredients prepped and ready, let's get cooking. Here's where the fun really begins...

Zucchini and Yellow Squash Gratin

🍳 Step-by-Step Instructions

  1. Preheat your oven to 375°F (190°C) and lightly grease a 9‑inch baking dish with a drizzle of olive oil. While the oven warms, line a clean kitchen towel on the counter and place your sliced zucchini and yellow squash in a single layer, sprinkling a pinch of salt over them to draw out excess moisture. Let them sit for about 10 minutes, then pat them dry with the towel—this step prevents a watery gratin and ensures the vegetables stay tender yet firm.

    💡 Pro Tip: Patting the vegetables dry is crucial; it helps the cream cling to the slices instead of sliding off during baking.
  2. Heat two tablespoons of olive oil in a large skillet over medium heat. Add the diced onion and sauté until it becomes translucent and just begins to caramelize, about 5‑7 minutes, stirring occasionally. Then add the minced garlic and fresh thyme leaves, cooking for another minute until the garlic turns fragrant but not browned. This aromatic foundation will infuse the cream with layers of flavor that you’ll taste in every bite.

  3. Pour the cup of heavy cream into the skillet, stirring constantly to combine with the onion‑garlic mixture. Reduce the heat to low and let the sauce simmer gently for 3‑4 minutes, allowing it to thicken slightly. At this point, stir in half of the grated Gruyère and half of the Parmesan, letting them melt into the cream and create a silky, cheesy sauce. Season with a generous pinch of salt and freshly cracked black pepper, tasting and adjusting as needed.

  4. Now comes the secret trick that takes this gratin from good to unforgettable: whisk in a teaspoon of flour or cornstarch dissolved in a tablespoon of cold water before adding the remaining cheese. This creates a subtle thickening agent that prevents the sauce from separating during baking, resulting in a velvety texture that clings perfectly to each vegetable slice. Trust me on this one—the difference is night and day.

    ⚠️ Common Mistake: Skipping the flour slurry can cause the sauce to separate, leaving a watery top layer that ruins the crust.
  5. Arrange the sliced zucchini and yellow squash in the prepared baking dish, overlapping them slightly to create a neat, layered pattern. Pour the creamy cheese sauce evenly over the vegetables, using a spatula to ensure every corner is covered. The sauce should seep into the gaps, coating each slice with a luxurious blanket of flavor.

  6. Sprinkle the remaining Gruyère and Parmesan evenly across the top, creating a generous cheese crust that will turn golden and bubbly. For an extra touch of visual appeal, scatter a few extra thyme leaves on top; they will crisp up and add a fragrant pop as they bake.

  7. Place the dish in the preheated oven and bake for 25‑30 minutes, or until the edges are bubbling and the top is a deep, caramel‑gold color. Keep an eye on the crust; if it starts to darken too quickly, loosely cover the dish with aluminum foil to prevent burning while the interior finishes cooking.

  8. Remove the gratin from the oven and let it rest for 5‑10 minutes before serving. This resting period allows the sauce to set, making it easier to slice and ensuring each piece holds its shape. Serve warm, perhaps with a crisp green salad or a slice of crusty bread to soak up any lingering sauce.

    💡 Pro Tip: Resting the gratin not only improves texture but also deepens the flavors as the cheese and herbs continue to meld.

And there you have it! But before you dig in, let me share some tips that will take this from great to absolutely unforgettable...

🔐 Expert Tips for Perfect Results

The Taste Test Trick

Before you pour the sauce over the vegetables, take a tiny spoonful and taste it. Adjust the seasoning with a pinch more salt, a dash of pepper, or even a squeeze of lemon juice to brighten the flavors. This small step ensures the sauce is perfectly balanced, because once it’s baked, you can’t go back and fix it. I once served a gratin that was a bit flat because I skipped this tasting, and the whole table looked puzzled. The next time, I never forget to give it a quick taste—trust me, your palate will thank you.

Why Resting Time Matters More Than You Think

Allowing the gratin to sit for a few minutes after baking is not just about easier serving; it’s about flavor development. During the resting period, the cheese continues to melt and the cream thickens, creating a cohesive bite rather than a runny mess. I’ve seen novices rush to the table, only to end up with a soggy spoonful that never quite held together. Patience here transforms the dish from a simple casserole into a refined side that holds its shape beautifully.

The Seasoning Secret Pros Won’t Tell You

A pinch of nutmeg in the cream sauce adds a warm, subtle depth that complements the sweet vegetables without being overpowering. It’s a classic trick used by French chefs to enhance dairy‑based sauces, and it works wonders here. I first discovered this when I was experimenting with a béchamel for a lasagna; the nutmeg lifted the entire dish. Try it in this gratin, and you’ll notice a whisper of spice that makes the cheese taste richer.

Layering for Visual Appeal

When you arrange the slices, alternate zucchini and yellow squash in a checkerboard pattern. Not only does this create a beautiful mosaic of green and gold, but it also ensures an even distribution of flavors in each bite. I once served a gratin where the slices were randomly tossed in, and while it tasted fine, the presentation fell flat. A thoughtful layout makes the dish Instagram‑ready and adds that extra “wow” factor for guests.

The Best Baking Dish

A shallow, wide‑rimmed ceramic or glass baking dish works best because it allows the heat to circulate evenly, promoting a uniform crust. Metal pans can cause the bottom to brown too quickly, while deep dishes may leave the center undercooked. I’ve experimented with both, and the shallow dish consistently yields that perfect golden top and tender interior. If you’re short on space, a 9‑inch square dish is a solid alternative.

Cheese Choices That Elevate

While Gruyère and Parmesan are the stars, adding a sprinkle of sharp cheddar or a dash of smoked mozzarella can introduce new flavor dimensions. I love the smoky undertone of smoked mozzarella—it adds a subtle earthiness that pairs beautifully with thyme. Just be mindful not to overload the dish; a little goes a long way, and the original cheese blend should remain the main attraction.

💡 Pro Tip: If you’re preparing the gratin ahead of time, assemble it fully, cover tightly, and refrigerate for up to 24 hours. Bake it directly from the fridge, adding an extra 5‑10 minutes to the cooking time.

🌈 Delicious Variations to Try

One of my favorite things about this recipe is how versatile it is. Here are some twists I've tried and loved:

Mediterranean Magic

Swap the thyme for a tablespoon of chopped fresh oregano and add a handful of sliced Kalamata olives to the layers. The salty olives and herbaceous oregano give the gratin a sun‑kissed Mediterranean vibe, perfect for serving alongside grilled lamb or a simple quinoa salad.

Spicy Kick

Incorporate a pinch of red pepper flakes into the cream sauce and finish the top with a drizzle of harissa-infused olive oil. The subtle heat cuts through the richness of the cheese, creating a balanced flavor profile that will surprise and delight spice lovers.

Herbaceous Green

Add a layer of fresh spinach leaves between the squash slices and sprinkle chopped basil over the top before baking. The spinach wilts into the sauce, adding a boost of iron, while the basil lends a sweet, peppery aroma that lifts the entire dish.

Cheesy Comfort

Replace half of the Gruyère with sharp cheddar and add a dollop of ricotta mixed with a teaspoon of lemon zest. This creates a richer, tangier cheese experience that’s perfect for cooler evenings when you crave something extra comforting.

Vegan Dream

Swap the heavy cream for coconut cream, use nutritional yeast in place of Parmesan, and choose a plant‑based cheese that melts well. The result is a dairy‑free gratin that still boasts a creamy texture and a cheesy flavor, proving that you don’t need animal products to enjoy this classic.

Autumn Harvest

Add thinly sliced apples or pears between the layers for a sweet‑savory contrast, and sprinkle a pinch of cinnamon into the sauce. This variation embraces the flavors of fall and pairs beautifully with roasted pork or a hearty grain bowl.

📦 Storage & Reheating Tips

Refrigerator Storage

Allow the gratin to cool completely, then cover tightly with plastic wrap or aluminum foil. It will keep fresh in the refrigerator for up to 3 days. When you’re ready to serve, reheat gently in a 350°F (175°C) oven for 15‑20 minutes, covered with foil to prevent the top from over‑browning, then uncover for the last 5 minutes to revive the crust.

Freezing Instructions

For longer storage, freeze the assembled, uncooked gratin in a freezer‑safe container. Wrap it well with a double layer of foil and a zip‑top bag to guard against freezer burn. It will maintain its quality for up to 2 months. When ready to bake, thaw overnight in the refrigerator, then bake as directed, adding an extra 10‑15 minutes to the cooking time.

Reheating Methods

If you’re short on time, a microwave works for individual portions—heat on medium power for 2‑3 minutes, stirring halfway through. For the best texture, however, reheat in the oven; a splash of milk or cream over the top before reheating helps keep the sauce from drying out. The trick to reheating without drying it out? A splash of broth or a drizzle of olive oil added just before you pop it back in the oven.

❓ Frequently Asked Questions

Absolutely! While Gruyère and Parmesan give a classic flavor, you can experiment with cheddar, mozzarella, or even a smoked cheese for a different twist. Just keep the total cheese amount the same to maintain the right sauce consistency. I’ve found that a mix of sharp cheddar and a bit of feta adds a tangy bite that’s wonderful with the sweet squash.

No pre‑cooking is necessary; the thin slices will soften nicely as they bake in the cream sauce. However, if you prefer a firmer bite, you can blanch the slices for 2 minutes in boiling water, then shock them in ice water before layering. This step is optional and mostly a matter of personal texture preference.

Yes! The recipe is naturally gluten‑free as long as you use a gluten‑free thickener (cornstarch or a gluten‑free flour) for the sauce. Double‑check any pre‑grated cheese for added starch, though most standard varieties are safe. This makes the gratin suitable for those with gluten sensitivities without sacrificing any flavor.

A mandoline set to about ¼‑inch thickness gives uniform slices quickly and safely. If you don’t have a mandoline, a sharp chef’s knife works fine—just aim for even, thin rounds so they cook at the same rate. Consistency in thickness also ensures the layers look attractive when baked.

Definitely! Cooked shredded chicken, crumbled bacon, or even sliced smoked salmon can be layered between the vegetables for a heartier main dish. Just be mindful of the added salt from proteins like bacon, and adjust the seasoning of the sauce accordingly.

If the crust darkens too quickly, loosely cover the dish with aluminum foil partway through baking. This shields the cheese while allowing the interior to finish cooking. Removing the foil for the final 5‑7 minutes restores the golden‑brown finish.

Yes! Assemble the gratin, cover tightly, and refrigerate for up to 24 hours before baking. This actually improves the flavor as the sauce has more time to soak into the vegetables. Just add a few extra minutes to the baking time if you’re cooking it straight from the fridge.

A simple arugula salad with lemon vinaigrette adds a peppery contrast, while roasted chicken or grilled salmon complement the creamy richness. For a vegetarian meal, serve with quinoa or a warm farro pilaf to round out the plate with protein and texture.
Zucchini and Yellow Squash Gratin

Zucchini and Yellow Squash Gratin

Homemade Recipe

Prep
15 min
Pin Recipe
Cook
30 min
Total
45 min
Servings
4-6

Ingredients

Instructions

  1. Preheat oven to 375°F (190°C). Lightly oil a 9‑inch baking dish and pat the sliced zucchini and yellow squash dry.
  2. Sauté diced onion in olive oil until translucent, then add minced garlic and fresh thyme; cook briefly.
  3. Stir in heavy cream, simmer, then melt in half the Gruyère and half the Parmesan; season with salt and pepper.
  4. Whisk a teaspoon of flour mixed with cold water into the sauce to thicken, then add the remaining cheeses.
  5. Layer the zucchini and squash in the dish, pour the sauce over, and top with the remaining cheese.
  6. Bake for 25‑30 minutes until bubbly and golden‑brown; cover with foil if the top darkens too quickly.
  7. Let the gratin rest 5‑10 minutes before serving to set the sauce.
  8. Enjoy warm, optionally with a green salad or crusty bread.

Nutrition per Serving (estimate)

350
Calories
25g
Protein
30g
Carbs
15g
Fat

You May Also Like

Discover more delicious recipes

Never Miss a Recipe!

Get our latest recipes delivered to your inbox.