A good green bean casserole should bubble around the edges without leaving a watery ring in the dish. I make this Gruyere Green Bean Casserole with fresh beans and a sauce cooked on the stovetop first, so the oven only has to bring everything together and crisp the onions. The mushrooms brown in butter before the broth and milk go in, giving the sauce a savory base. Gruyere brings a nutty, slightly sweet flavor that stands up to the green beans instead of disappearing beneath the topping.
Cutting the beans into even pieces helps them cook at the same pace, and waiting to add the French fried onions keeps their crunch in the final bake. I like that this casserole has a proper homemade mushroom sauce but still gets its crisp, familiar finish from packaged onions. Each scoop brings tender green beans, a creamy Gruyere sauce, and a golden layer of crunch.

Kitchen Note
Drain the beans well before they go into the sauce; even a little water clinging to them can loosen it. I let them drain while I start the mushrooms, so they’re ready when the sauce is done.
Save this Gruyere Green Bean Casserole for its creamy mushroom sauce and crisp golden onion topping.
Why the Green Beans Get a Head Start Before Baking
Fresh green beans need a little attention before they’re tucked into a creamy casserole. A brief blanch gives them a head start, so they can finish cooking in the oven without relying on the sauce to soften them from raw. That matters because the sauce is already thickened on the stove; it shouldn’t have to simmer for a long time in the baking dish just to cook the vegetables through.
There’s a balance here: the beans shouldn’t be fully soft before they meet the sauce, but they shouldn’t go into the dish raw, either. Cutting them into two-inch pieces helps them cook evenly, and the separate blanch keeps the finished casserole from having beans that are firm in one spot and limp in another. The oven time then has a clear job: heat the casserole until it bubbles at the edges, followed by a short stretch to toast the onions. That division of work is what gives you tender beans and a sauce that stays creamy instead of overcooking while the vegetables catch up.
What the Mushrooms, Gruyere, and Milk Bring to the Sauce

- Fresh green beans — Their firm texture holds up to both the sauce and the oven time. Trim them and cut them into even pieces so they cook consistently; older beans that feel limp won’t have the same bite.
- Cremini mushrooms — These add a deeper, earthier flavor than the sauce would get from milk and broth alone. Slicing them evenly helps them brown at the same rate, and taking the time to cook off their liquid keeps the sauce from starting out watery.
- Gruyere — Its nutty flavor gives the casserole more character than a mild melting cheese. Shred it finely so it melts readily into the warm sauce; a good-quality piece is worthwhile here because the cheese is a noticeable part of each bite.
- Whole milk and low-sodium chicken broth — Milk gives the sauce its creamy body, while broth brings savory depth. Low-sodium broth leaves more room to control the seasoning with the kosher salt, so the sauce doesn’t become too salty as it reduces.
- All-purpose flour and French fried onions — Flour thickens the broth-and-milk mixture into a sauce that clings to the beans. The packaged onions supply the crisp topping; add them near the end so they toast rather than sit under the sauce and soften.
Build the Mushroom Sauce Before the Beans Go In
Blanch the Beans Until Just Tender
Heat the oven to 375°F and grease a 9×13-inch baking dish with the softened butter. Bring 4 quarts of water and 1 tablespoon of kosher salt to a boil in an 8-quart pot, add the trimmed, cut green beans, and cook for 4 minutes. Drain them well and set them aside. They’ll finish cooking in the casserole, so don’t leave them in the boiling water longer than that.
Cook the Mushrooms and Thicken the Sauce
Melt the 3 tablespoons of butter in a 12-inch skillet over medium heat, then add the sliced mushrooms and diced onion. Cook for 8 to 10 minutes, stirring occasionally, until the mushrooms are browned and their liquid has evaporated; pale mushrooms sitting in liquid need more time before you move on. Stir in the garlic for 30 seconds, then add the flour and stir for 1 minute. Gradually whisk in the chicken broth and whole milk, bring the mixture to a simmer, and cook for 3 to 5 minutes, whisking until it thickens. Take the skillet off the heat before stirring in the Gruyere, remaining salt, and black pepper.
Bake First, Then Add the Crunch
Stir the drained green beans into the sauce and transfer everything to the prepared dish, spreading it evenly. Bake uncovered for 20 minutes, until you see bubbling around the edges. Scatter the French fried onions over the casserole and bake for another 5 to 8 minutes, watching for a golden top. Let it rest for 5 minutes before serving so the sauce can settle around the beans.
Swaps That Make This Green Bean Casserole Fit Your Table
Make It Vegetarian
Replace the chicken broth with the same amount of vegetable broth. The sauce will still thicken and taste savory, though it won’t have quite the same meaty depth; if you’re cooking for vegetarians, choose French fried onions made without animal-derived ingredients.
Make a Gluten-Free Version
Use a gluten-free 1-to-1 flour blend in place of the all-purpose flour, then top the casserole with gluten-free crispy fried onions. The sauce may thicken a little differently depending on the blend, so cook it until it visibly coats a spoon before adding the beans.
Leave Out the Mushrooms
Skip the cremini mushrooms if you don’t care for them and keep the rest of the sauce method the same. You’ll lose some earthy depth and the sauce will have less texture, but the Gruyere and onion still make a savory, creamy casserole.
Storage and Reheating
- Refrigerator: Store leftovers in an airtight container for 3 to 4 days. The onion topping will soften in the refrigerator.
- Freezer: I don’t recommend freezing the baked casserole; the creamy sauce can separate after thawing, and the beans lose their texture.
- Reheating: Warm leftovers in a 350°F oven, covered loosely with foil, until the center reaches 165°F. Uncover near the end if you’d like the topping to dry out a little; reheating uncovered the whole time can dry the casserole.
Questions That Come Up When the Sauce Meets the Oven

Gruyere Green Bean Casserole
Ingredients
Equipment
Method
- Heat the oven to 375°F.
- Grease a 9x13-inch baking dish with the softened butter.
- Bring the water and 1 tablespoon of the salt to a boil in an 8-quart pot.
- Add the green beans and cook for 4 minutes.
- Drain the green beans well and set aside.
- Melt the 3 tablespoons butter in a 12-inch skillet over medium heat.
- Add the mushrooms and onion, and cook for 8 to 10 minutes, stirring occasionally, until the mushrooms are browned and their liquid has evaporated.
- Stir in the garlic and cook for 30 seconds.
- Sprinkle in the flour and stir for 1 minute.
- Gradually whisk in the broth and milk, bring to a simmer, and cook for 3 to 5 minutes, whisking, until thickened.
- Remove the skillet from the heat and stir in the Gruyere, remaining 1/2 teaspoon salt, and black pepper until the cheese melts.
- Stir the green beans into the sauce.
- Transfer the mixture to the prepared baking dish and spread it evenly.
- Bake uncovered for 20 minutes, until bubbling at the edges.
- Scatter the French fried onions over the top and bake for 5 to 8 minutes, until golden.
- Let the casserole rest for 5 minutes before serving.