The skillet looks almost too full when all the onions go in, but they soften and shrink as they cook. I like watching that change; it’s the first sign that a pan of humble yellow onions is headed somewhere richer than you might expect. In these Cheesy Gruyère Scalloped Onions, the onions cook down before they meet a creamy thyme sauce, so each spoonful stays tender rather than tasting like a stack of raw onion slices.
The sauce comes together right in the skillet, and the Gruyère melts into it before everything goes into the baking dish. A buttery panko topping adds a crisp contrast to the soft onions underneath. Give the casserole its full rest after baking, and the sauce settles around the onions instead of running across the plate. The top turns golden, the edges bubble, and the center stays creamy.

Kitchen Note
Take the skillet off the heat before stirring in the Gruyère. The residual heat melts it into the onions without leaving the cheese over direct heat, which helps keep the sauce smooth.
Save these Cheesy Gruyère Scalloped Onions for a cozy side dish with tender onions and a golden, buttery panko top.
Why 1/4-Inch Onion Slices Keep This Casserole Tender
Scalloped onions need enough time to turn soft, but uneven slices can leave you with a mix of textures: thin pieces collapsing into the sauce while thicker ones still feel firm. Cutting the yellow onions about 1/4 inch thick gives them a more even start. It also means the sauce can coat the onions without having to cover a jumble of different-sized pieces.
There’s a useful distinction between tender onions and onions that have disappeared. The onions soften in the skillet, then finish baking in the cream sauce; they should still be easy to find and lift onto a serving spoon. A consistent slice helps preserve that shape while the cheese and sauce bring the pieces together. If you’re slicing by hand, take a moment to keep the pieces close in thickness rather than rushing through the pile. That small bit of care pays off in a casserole where every serving has soft onion layers instead of a few stubborn bites.
What Yellow Onions, Gruyère, and Panko Each Bring to the Dish

- Yellow onions — Their savory bite balances the rich dairy sauce. White onions work as a swap, though they bring a sharper edge; sweet onions make the finished casserole noticeably sweeter. Peel them and slice evenly before cooking.
- Gruyère — It melts into the sauce with a nutty, savory flavor that stands up to the onions. A block you shred yourself gives the smoothest melt; Swiss cheese is a useful substitute when you want a milder, less distinct cheese flavor.
- Whole milk and heavy cream — The milk keeps the sauce from feeling too dense, while the cream gives it body. Replacing the cream with more milk makes a less rich, thinner sauce, so keep both if you want the intended creamy texture.
- All-purpose flour — This thickens the milk and cream into a sauce that clings to the onions. A gluten-free all-purpose blend made for one-to-one baking swaps works in its place; avoid using pure starch as though it were flour.
- Fresh thyme and nutmeg — Thyme gives the sauce a savory herbal note, and just a little nutmeg rounds out the dairy. Dried thyme can stand in at one-third the amount of fresh thyme, though its flavor is less bright.
- Panko — Its larger, airy crumbs make a crisp top without weighing down the soft onions. Regular breadcrumbs work, but the topping will be finer and denser.
From a Skillet Full of Onions to a Golden 9×13 Casserole
Soften the onions under cover
Heat the oven to 375°F and grease a 9×13-inch baking dish with 1 teaspoon of the butter. Melt 2 tablespoons plus 2 teaspoons of butter in a 12-inch skillet over medium heat, then add the sliced onions and kosher salt. Cover and cook for 10-12 minutes, stirring once or twice, until the onions begin to soften. They’ll still have plenty of volume at this point; that’s expected.
Let the excess liquid cook away
Uncover the skillet and cook the onions for 10-15 minutes, stirring often. Watch for them to become very tender and for the excess liquid in the pan to evaporate. If you move on while a puddle remains, it can thin the sauce later. Keep the onions moving so they soften evenly without catching on the bottom of the skillet.
Build a sauce that coats the onions
Sprinkle the flour over the onions and stir for 1 minute. Gradually stir in the whole milk and heavy cream, then add the thyme, black pepper, and nutmeg. Simmer for 3-5 minutes, stirring, until the sauce thickens enough to coat the onions rather than pooling thinly around them. Take the skillet off the heat, stir in 6 ounces of the Gruyère, and transfer the mixture to the prepared baking dish.
Add the buttery crumb top and bake
Melt the remaining 1 tablespoon of butter and toss it with the panko. Sprinkle the remaining 2 ounces of Gruyère over the onion mixture, then scatter the panko evenly over the cheese. Bake for 25-30 minutes, until the casserole bubbles and the topping is golden brown. Rest it for 10 minutes before serving so the sauce has a chance to settle around the onions.
Two Useful Ways to Adapt This Gruyère-Onion Bake
Make it gluten-free
Use a one-to-one gluten-free all-purpose flour blend in place of the all-purpose flour, and choose gluten-free panko for the topping. Keep the same method; the crumb texture may vary a little by brand, but you’ll still get a creamy onion casserole with a crisp top.
Use Swiss cheese for a milder finish
Swap the Gruyère for the same amount of shredded Swiss cheese. It melts well in the sauce and on top, but the casserole will taste milder and less nutty than the Gruyère version.
Storage and Reheating
- Refrigerator: Refrigerate within 2 hours and keep covered for 3-4 days. The panko softens as it sits.
- Freezer: Freeze baked portions in an airtight container for up to 2 months. Thaw in the refrigerator; the sauce may loosen and the topping won’t be as crisp.
- Reheating: Warm covered in a 350°F oven until heated through, then uncover near the end to refresh the topping. Reheat leftovers to 165°F; the microwave is quicker but leaves the panko soft.
Questions That Come Up When Baking Scalloped Onions

Cheesy Gruyère Scalloped Onions
Ingredients
Equipment
Method
- Preheat the oven to 375°F.
- Grease a 9x13-inch baking dish with 1 teaspoon of the butter.
- Melt 2 tablespoons plus 2 teaspoons of the butter in a 12-inch skillet over medium heat, then add the onions and salt. Cover and cook for 10-12 minutes, stirring once or twice, until the onions begin to soften.
- Uncover and cook for 10-15 minutes, stirring often, until the onions are very tender and excess liquid has evaporated.
- Sprinkle the flour over the onions and stir for 1 minute, then gradually stir in the milk and heavy cream. Add the thyme, black pepper, and nutmeg, and simmer for 3-5 minutes, stirring, until the sauce thickens enough to coat the onions.
- Remove the skillet from the heat and stir in 6 ounces of the Gruyère, then transfer the mixture to the prepared baking dish.
- Melt the remaining 1 tablespoon butter and toss it with the panko. Sprinkle the remaining 2 ounces Gruyère over the onions, then scatter the panko evenly on top.
- Bake for 25-30 minutes, until the casserole is bubbling and the topping is golden brown.
- Let the casserole rest for 10 minutes before serving.