Thin slices of zucchini and yellow squash turn into something much better than a plain vegetable side once they’re layered with cream, onions, and a sharp cheese crust. The squash softens just enough to stay tender, not watery, and the top bakes into a golden lid that crackles when you spoon through it. It’s the kind of dish that looks calm on the table but disappears fast once people taste the browned edges and the creamy center.
The trick is handling the squash with a little restraint. Zucchini and yellow squash hold a lot of moisture, so this gratin works because the oven does the reducing while the breadcrumbs and cheese build the final texture. Gruyère gives you that nutty, savory pull, while a little parmesan sharpens the finish so the dish doesn’t taste flat.
Below, I’ll walk through the part that matters most: keeping the gratin creamy without turning it soupy, plus a few easy ways to adapt it if you need a different cheese or want to make it ahead.
The squash stayed tender, the sauce thickened up beautifully, and that breadcrumb top turned crisp without burning. I made it with a roast chicken and everyone went back for seconds.
Like this zucchini gratin with yellow squash? Save it to Pinterest for the nights when you want a creamy vegetable side with a crisp, cheesy crust.
The Secret to Keeping Zucchini Gratin Creamy, Not Watery
The biggest mistake with squash gratin is treating zucchini like a sturdy root vegetable. It isn’t. Zucchini and yellow squash release liquid as they heat, and if the dish starts with too much moisture, the cream turns thin before the top has a chance to brown. That’s why the sauce here is built with a modest amount of broth and cream instead of drowning the vegetables in liquid.
The other thing that matters is the bake itself. Covering the dish for the first part of baking gives the squash time to soften in the hot steam, but the foil comes off while there’s still enough liquid left for the sauce to finish reducing. If you uncover too early, the top can dry out before the center is tender. Leave it covered until the vegetables are just about there, then let the oven do the browning work at the end.
What Each Ingredient Is Actually Doing in This Gratin

Here’s what matters most in the pan and dish:
- Zucchini and yellow squash — These are the body of the gratin, and both need to be sliced thin enough to soften at the same rate. If one squash is much thicker than the other, you’ll end up with uneven texture in the finished dish.
- Heavy cream — This gives the dish its rich, silky finish. Half-and-half works in a pinch, but the sauce will be thinner and a little less stable after baking.
- Broth — A small amount loosens the cream just enough to move between the layers. Chicken broth adds a little more depth, while vegetable broth keeps the dish vegetarian without changing the method.
- Gruyère — This is the cheese that gives you that nutty, savory pull on top. Swiss cheese works if that’s what you have, but it won’t be quite as bold.
- Parmesan and panko — Parmesan brings salt and sharpness, while panko keeps the topping light instead of heavy. Regular breadcrumbs work, but they brown a little more densely.
- Butter — Butter belongs both in the onion mixture and on the topping. It carries the garlic and thyme, and it helps the crumb layer bake into a crisp crust instead of a dry blanket.
Building the Layers So the Top Browns Before the Bottom Turns Soft
Cooking the Onion Base
Start by softening the onion in butter until it turns translucent and loses its raw bite. Add the garlic and thyme only for the last 30 seconds, just until fragrant, because garlic burns fast and turns bitter before you notice it. This base should smell savory and sweet, not browned. If the pan runs too hot, pull it off the heat for a moment before adding the garlic.
Arranging the Squash
Layer the zucchini and yellow squash in overlapping rows so the slices are mostly the same thickness across the dish. Tuck them in tightly, but don’t stack them high in random piles or the center will steam unevenly. The alternating colors matter here too; they make the finished gratin look intentional and help you see whether the slices are spread evenly.
Adding the Cream and Cheese
Whisk the cream, broth, salt, and pepper together before pouring it over the vegetables so the seasoning doesn’t land in one salty pocket. Sprinkle most of the gruyère over the top, then finish with the parmesan-panko mixture. That layered topping gives you a creamy middle and a crisp, browned surface. If the top looks dry before baking, the butter in the crumb mixture was probably not evenly mixed through.
Baking Until Bubbling and Golden
Cover the dish with foil and bake until the squash is nearly tender, then uncover it for the final stretch. You’re looking for bubbling around the edges, softened squash, and a top that has turned deep golden with a few darker toasted spots. If the top browns too quickly before the center is done, lay the foil back over loosely. The finished dish should spoon cleanly, not pour liquid onto the plate.
How to Adapt This for Different Tables and Pantry Situations
Make It Vegetarian
Use vegetable broth instead of chicken broth and keep everything else the same. The gratin still comes out rich because the cream and cheeses carry the flavor, so you won’t lose anything important.
Make It Gluten-Free
Swap the panko for a gluten-free breadcrumb or crushed gluten-free crackers. You’re still after a dry, buttery topping that browns, so choose something with enough texture to toast instead of melt into the cheese.
Use Only One Kind of Squash
If you only have zucchini or only yellow squash, go ahead and use all of one kind. The texture will be just as good; you’ll only lose the color contrast in the layers.
Storage and Reheating
- Refrigerator: Store covered for up to 3 days. The topping softens a little, but the flavor stays good.
- Freezer: Not my first choice. The cream sauce and squash both soften more after thawing, so the texture gets looser than it should.
- Reheating: Reheat covered at 350°F until hot, then uncover for the last few minutes to bring back some crispness on top. Microwaving works in a pinch, but it softens the breadcrumb crust.
Questions I Get Asked About This Recipe

Zucchini Gratin with Yellow Squash
Ingredients
Equipment
Method
- Preheat the oven to 375°F and grease a 9x13 baking dish.
- Sauté the onion in butter over medium heat for 4 minutes.
- Add the garlic and thyme and cook for 30 seconds.
- Layer the zucchini and yellow squash slices in the baking dish in overlapping rows, alternating colors.
- Scatter the sautéed onion and garlic over the top.
- Whisk the heavy cream, broth, salt, and black pepper, then pour over the vegetables.
- Sprinkle 3/4 cup of gruyère or Swiss cheese over the top.
- Mix the remaining gruyère or Swiss cheese, parmesan, and panko breadcrumbs with melted butter, then scatter over everything.
- Cover with foil and bake at 375°F for 25 minutes.
- Uncover and bake for 15–20 minutes at 375°F until golden and bubbling, with a crackly breadcrumb-cheese surface.


