No Thanksgiving table feels complete without a dish of green bean casserole! If you’re anything like us, it is a must on the holiday menu, and it’s always featured front and center on the dinner table (next to the turkey, of course). But we do things a little differently from the typical version with our Green Bean Casserole from Scratch.

Table of Contents
- What Is Green Bean Casserole from Scratch?
- Why You’ll Love This Homemade Green Bean Casserole
- Ingredients You’ll Need
- Tips for the Best Green Bean Casserole with Fresh Green Beans
- Troubleshooting Green Bean Casserole
- Variations on Green Bean Casserole from Scratch
- Make-Ahead, Storage and Freezing
- What to Serve With Green Bean Casserole
- Common Questions About Green Bean Casserole from Scratch
- Green Bean Casserole from Scratch Recipe
- More Thanksgiving Sides
What Is Green Bean Casserole from Scratch?
Our green bean casserole from scratch is the homemade take on the holiday classic. Instead of cream of mushroom soup from a can, you build the sauce yourself: onions, garlic, and mushrooms cooked in butter and thickened with flour and milk into a creamy roux before we add Pepper Jack and cheddar. Fresh green beans go in the bottom of the dish, the cheesy sauce goes on top, and a crunchy layer of panko on top bakes to a golden brown.
Plus, if you want the crispy onions, we have a classic-style option in the Variations section below. Either way, this is the green bean casserole that gets requested every year, and we bet it will at your house, too!
Why You’ll Love This Homemade Green Bean Casserole
- No canned soup. A mushroom roux does the job of the can, with a fresher, savory flavor.
- It is gloriously cheesy. Pepper Jack and cheddar make the sauce gooey and rich.
- Fresh green beans stay bright. A quick blanch and an ice bath keep them vibrant and tender, not mushy.
- The topping is extra crunchy. Panko stays crisp on top while the sauce bubbles underneath.
- It preps ahead. Assemble it before the holiday and bake it when you are ready. This helps us plan out when we put our various dishes in the oven so that everything comes to the table hot!
Planning the rest of the menu? Browse our easy Thanksgiving recipes.
Ingredients You’ll Need
This recipe uses many of the same ingredients you would expect in a classic green bean casserole, with a few additions for extra flavor. The full amounts and instructions are in the recipe card below.
- Fresh green beans. We love their vibrant color and fresh flavor. Frozen beans work too if you thaw them first.
- Onion and garlic. These are the base of the roux, adding a savory, slightly sweet depth.
- Mushrooms. They cook down into the sauce and stand in for the cream of mushroom soup that’s used in most recipes.
- Butter. We use unsalted butter. If you only have salted, adjust the added salt to taste.
- All-purpose flour. It thickens the butter and vegetables into a roux, which becomes the base of the creamy sauce.
- Whole milk. We like whole milk for a rich, ultra-creamy sauce, though any milk you have on hand will work. Warming it first helps the sauce stay smooth.
- Pimentos. These sweet, mild red peppers add a pop of color and flavor you will not find in a classic version. Just pop open the jar and drain them before adding them in.
- Pepper Jack and cheddar. Pepper Jack melts into the sauce for a gentle kick, and cheddar goes on top for a gooey, golden layer. Grating them fresh from the block helps them melt smoothly.
- Panko breadcrumbs. We use panko in place of fried onions for a crunchy, golden topping.
- Salt, black pepper, and thyme. These simple seasonings deepen the flavor of everything else.




Tips for the Best Green Bean Casserole with Fresh Green Beans
A few little steps make the difference between a silky sauce and a grainy one, and between bright beans and army-green ones.
- Blanch, then ice-bath the beans. A few minutes in boiling salted water, then straight into ice water, stops the cooking and locks in the color. It also means the beans finish tender in the oven instead of turning mushy.
- Cook the flour for a minute or two. Stirring the flour into the butter and vegetables cooks off the raw flour taste and builds the thickening power of the roux. Keep it moving so it does not burn.
- Use warm milk. Adding warm milk to the roux helps the sauce thicken smoothly, with fewer lumps.
- Take the skillet off the heat before adding the cheese. Stirring the cheese into a sauce that is warm but not simmering helps it melt evenly, which keeps the sauce creamy instead of grainy or greasy.
- Grate the cheese yourself. Freshly grated cheese melts more smoothly than a bag of pre-shredded, which often contains anti-caking starch.
- Season the sauce, not just the top. Taste the roux before it goes into the dish, since the beans and panko will mellow the flavor as it bakes.
- Keep the panko on top. Sprinkling it over the cheddar at the end keeps it crunchy while the sauce bubbles underneath.
Why it works: the roux is flour cooked in fat, and when warm milk goes in, the starch granules swell and thicken it into a sauce. Meanwhile, mushrooms release savory flavor and moisture as they cook down, which is why they can replace canned cream of mushroom soup. The cheese adds fat and salt, and melting it gently keeps those fats suspended in the sauce instead of separating.




Troubleshooting Green Bean Casserole
If something goes sideways, here is what usually causes it.
- Grainy, curdled, or greasy sauce. The sauce was probably too hot when the cheese went in. Take the skillet off the heat and stir in a splash of hot milk or cream while whisking constantly. That often brings it back together.
- Thin or watery casserole. The sauce may need a little more time to thicken, or the beans may have been wet when they went into the dish. Drain the blanched beans well before layering.
- Lumpy sauce. Cold milk or flour that was not stirred in well is the usual cause. Use warm milk and keep whisking as it thickens.
- Soggy topping. Keep the panko on top, not stirred in, and bake until the top is golden and the edges bubble.
- Beans that are too soft. They were likely blanched too long. Stick to the blanching time in the recipe card and move them to ice water right away.
- Too salty. Cheeses vary in saltiness, so taste the sauce before adding the full amount of salt.
Variations on Green Bean Casserole from Scratch
- Crispy onion topping. For the classic crunch, scatter crispy fried onions over the top in place of the panko, or add them for the last few minutes of baking.
- Different cheeses. Pepper Jack and cheddar are our favorites, but Gruyère or a sprinkle of Parmesan can add nuttiness.
- Bacon. Crispy bacon bits stirred into the sauce or sprinkled on top add salty, smoky flavor.
- A little umami. A dash of Worcestershire sauce in the roux deepens the savory flavor.
- Fresh herbs. A sprinkle of fresh thyme just before serving adds color and freshness.
- Frozen beans. Fully thaw the frozen beans in the fridge before making the recipe.
- Za’atar panko. Toss the panko with a little za’atar and olive oil for a Middle Eastern twist on the topping. Or, simply sprinkle the spice on top after cooking.

Make-Ahead, Storage and Freezing
- Make ahead: Assemble the casserole through the cheddar, leave off the panko, cover it, and refrigerate it for up to 24 hours or two days. Add the panko right before baking and bake as usual. If you’re using a glass dish, be sure to give it a few minutes on the counter before placing it in a hot oven to avoid having the glass crack.
- Store: Keep leftovers in an airtight container in the fridge for up to 4 days.
- Reheat: Warm leftovers in the microwave in 30-second intervals, or in the oven until hot.
- Freeze: Freeze the assembled casserole, without the panko, for 2 to 3 months, then thaw overnight in the fridge.
What to Serve With Green Bean Casserole
This dish is a natural next to the rest of the Thanksgiving table: Herb-Roasted Whole Turkey, Slow Cooker Mashed Potatoes, Greek-Inspired Yukon Mashed Potatoes, and Cranberry Sauce. It also rounds out a dinner of roast chicken or ham. Or, it can be a creamy vegetarian meal all on its own!
Common Questions About Green Bean Casserole from Scratch
We think Pepper Jack and cheddar are the superstars in this dish. You can also mix in some Gruyère or sprinkle in Parmesan for a little nutty depth. Just be sure to grate the cheese yourself so you get the best creamy, smooth consistency.
Yes. Assemble the whole casserole except for the panko, cover it, and store it in the fridge for up to 24 hours. Add the panko right before baking, then pop it in the oven. The flavors get even better as they sit together!
Yes, in a pinch. If you use frozen green beans, be sure to thaw them. Canned beans are already cooked, so drain them well and skip the blanching. However, we think fresh beans give the brightest color and best texture!
Remove the casserole or skillet from the heat and stir in a splash of hot cream or milk while whisking constantly. This can help smooth things out and bring the sauce back together. You can also use an immersion blender to help fix a broken sauce.
Yes, and this recipe does exactly that! Onions, garlic, and mushrooms cooked in butter, then thickened with flour and milk, stand in for the canned soup. You get the same creamy mushroom flavor, with a fresher taste.
Absolutely! Panko gives you a golden, crumbly topping, but if you love the classic crunch, top the casserole with crispy fried onions in place of the panko.

Would you like to save this? 🔖

Green Bean Casserole from Scratch
Ingredients
- 2 pounds green beans ends trimmed
- 8 tablespoons unsalted butter
- 1 medium onion chopped
- 4 cloves garlic minced
- 1 cup button mushrooms chopped
- 1/4 cup all-purpose flour
- 3 cups warm whole milk
- 4 ounces pimentos
- 8 ounces Pepper Jack cheese freshly grated
- 1 teaspoon sea salt more or less to taste
- 1 teaspoon freshly ground black pepper more or less to taste
- 1 teaspoon dried thyme
- 1 cup freshly grated cheddar cheese
- 1 cup panko breadcrumbs
Instructions
- Preheat the oven to 350°F. Grease a 13×9 baking dish and set it aside.
- Bring a deep pot of salted water to a boil over medium-high heat. Add the green beans and blanch them by boiling for 4 to 5 minutes, then transferring them immediately to a bowl of ice water. Then, drain well and set aside.2 pounds green beans
- In a large skillet over medium-high heat, melt the butter. Add the onion and garlic and sauté for 1 to 2 minutes, until fragrant. Add the mushrooms and sauté for 1 to 2 minutes more.8 tablespoons unsalted butter, 1 medium onion, 4 cloves garlic, 1 cup button mushrooms
- Stir in the flour and cook for 1 to 2 minutes, stirring constantly so it does not burn.1/4 cup all-purpose flour
- Pour in the warm milk and stir until the roux thickens. Remove the skillet from the heat and stir in the pimentos, Pepper Jack, salt, pepper, and thyme until the cheese melts.3 cups warm whole milk, 4 ounces pimentos, 8 ounces Pepper Jack cheese, 1 teaspoon sea salt, 1 teaspoon freshly ground black pepper, 1 teaspoon dried thyme
- Add the green beans to the prepared baking dish. Pour the sauce over them. Top with the cheddar, then the panko.1 cup freshly grated cheddar cheese, 1 cup panko breadcrumbs
- Bake for 30 to 35 minutes, until the casserole is bubbly and the panko is golden brown.
Equipment
Notes
- Make ahead: assemble through the cheddar, leave off the panko, cover, and refrigerate for up to 24 hours. Add the panko just before baking.
- Storage: refrigerate leftovers in an airtight container for up to 4 days.
- Crispy onion option: top with fried onions in place of the panko.
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.
More Thanksgiving Sides
Mediterranean Style Bread Crumbs
Sweet Potato Casserole with Oat Crumble














