The Ultimate Homemade Green Bean Casserole Recipe

The Food Lab

Unraveling the mysteries of home cooking through science.

The Ultimate Homemade Green Bean Casserole Recipe

[Photograph: Vicky Wasik. Video: Natalie Holt]

The classic Campbell's green bean casserole is a staple on many Thanksgiving tables. But there are easy ways to upgrade the out-of-the-can version. If you're intimidated by the length and number of steps in this recipe, bear in mind that you don't need to use the whole thing—try canned fried onions instead of frying your own, for instance. Or, to make it even easier, stick with two cans of cream of mushroom soup instead of making your own creamy mushroom sauce.

This green bean casserole can be made ahead of time and refrigerated for up to two days before it's baked and topped with additional fried shallots (see note).

Why It Works

  • Using blanched fresh green beans instead of canned or frozen yields a brighter color and a crisp-tender texture.
  • A homemade mushroom sauce, made with butter, cream, chicken stock, and a touch of soy sauce, lends the casserole extra nutty and savory flavors.
  • Homemade fried shallots are crisper and more flavorful than canned French-fried onions, and they're a great condiment to keep on hand for all sorts of dishes.
  • Yield:Serves 8 to 12
  • Active time: 1 hour
  • Total time:1 1/2 hours


  • 1 pound (450g) shallots, peeled and sliced 1/8 inch thick on a mandoline
  • 2 cups (480ml) canola oil
  • Kosher salt
  • 1 1/2 pounds (675g) white button mushrooms, rinsed and spun dry in a salad spinner
  • 2 teaspoons (10ml) soy sauce
  • 2 teaspoons (10ml) lemon juice from 1 lemon
  • 2 cups (480ml) low-sodium store-bought or homemade chicken stock
  • 1 1/2 cups (360ml) heavy cream
  • 2 tablespoons (30g) butter
  • 2 cloves garlic, finely minced or grated on a Microplane grater
  • 1/4 cup (30g) flour
  • Freshly ground black pepper
  • 2 pounds (900g) green beans, ends trimmed, cut into 2-inch segments


  1. 1.

    Combine shallots and oil in a wok or medium nonstick saucepan. Shallots should barely stick out above level of oil. Place over high heat and cook, stirring frequently, until shallots are completely soft, about 12 minutes.

  2. 2.

    Meanwhile, line a rimmed baking sheet with 6 layers of paper towels. Continue to cook shallots, stirring constantly, until shallots are light golden brown, about 8 minutes.

  3. 3.

    Immediately strain through a fine-mesh strainer set in a heat-proof bowl or saucepan. Set shallot oil aside. You should have about 2 cups of fried shallots.

  4. 4.

    Transfer fried shallots to paper towels. Lift up one end of top paper towel and roll shallots off onto second. Blot with first towel to absorb excess oil. Repeat 4 more times, transferring shallots from one paper towel to the next, until only one paper towel remains. Season well with salt.

  5. 5.

    Allow shallots to cool completely, about 45 minutes. Once they've cooled, transfer to a sealed airtight container. Shallots can be made up to 1 month in advance.

  6. 6.

    Smash mushrooms under the bottom of a large skillet until broken into 1/4- to 1/2-inch pieces. Roughly chop into pieces approximately 1/8 to 1/4 inch in size. Set aside.

  7. 7.

    Combine soy sauce, lemon juice, chicken stock, and heavy cream in a 1-quart liquid measuring cup or medium bowl.

  8. 8.

    Add 2 tablespoons (30ml) reserved shallot oil (save remainder in an airtight container for another use) and butter to a 12-inch nonstick skillet. Heat over high heat until butter is melted and foaming subsides. Add mushrooms to skillet and cook, stirring occasionally, until liquid is evaporated and mushrooms begin to sizzle, 6 to 10 minutes.

  9. 9.

    Reduce heat to medium-high. Add garlic and cook, stirring constantly, until fragrant, about 30 seconds. Add flour and cook, stirring constantly, until light golden blond, 1 to 2 minutes. Whisking constantly, add stock and cream mixture.

  10. 10.

    Bring to a boil, reduce to a simmer, and cook until mixture achieves a texture between pancake batter and heavy cream, about 5 minutes. Season to taste with salt and pepper.

  11. 11.

    Adjust oven rack to lower-middle position and preheat oven to 350°F (180°C). Bring 1 gallon (3.8L) water and 1/4 cup (48g) kosher salt to a boil over high heat. Fill a large bowl with 1 quart ice cubes and 2 quarts (1.9L) water.

  12. 12.

    Add green beans to water and boil until tender but still bright green, about 5 minutes. Drain through a colander set over the sink and immediately transfer to ice water until completely cooled. Drain green beans and set aside.

  13. 13.

    Combine green beans, mushroom sauce, and 1 cup fried shallots. Transfer to a 9- by 13-inch rectangular baking dish or a 10- by 14-inch oval baking dish. Bake until hot and bubbly, 15 to 20 minutes. Top with remaining cup fried shallots and serve.