Skip to main content

Green Bean Casserole

Jump to recipe ↓

Why it works: Butter and milk match in chemistry and in kitchens. They rank in the top 3% of all ingredient pairs, and 81,222 recipes mention both. Both carry (z)-4-heptenal, which smells biscuit, cream. The science ↓

The recipe

10 servings
Prep45 min
Cook45 min

Ingredients

Contains: milk, wheat (auto-detected from the ingredients and method; we can miss things, so check labels)

  • For the onions
  • For the white sauce
  • For the topping

Directions

Method written by CompKitchen from the ingredient list. Not the original author's method, not kitchen-tested.

  1. Heat the oven to 375°F (190°C). Bring a pan of boiling water to a boil, add the green beans and cook 4 to 5 minutes until crisp-tender. Drain, cool under cold running water and pat dry.

  2. Melt 2 tablespoons butter in a large skillet over medium heat. Add the sliced onions, salt and black pepper and cook 25 to 30 minutes, stirring often, until deep golden. Stir in the sherry vinegar and cook 1 minute more. Set aside.

  3. For the white sauce, melt 2 tablespoons butter in a saucepan over medium heat. Whisk in the flour and cook 1 minute. Slowly whisk in the milk, bring to a simmer and cook 5 minutes, whisking, until thickened.

  4. Off the heat, stir in the nutmeg, thyme, cayenne if using, and salt and pepper to taste. Stir in half of the shredded Gruyere until melted.

  5. Fold the green beans and most of the caramelized onions into the sauce. Spread the mixture in a 2-quart baking dish.

  6. Scatter the remaining Gruyere and the Parmesan over the top. Toss the panko with the melted butter and sprinkle it over the cheese. Reserve a few onions for garnish if you like.

  7. Bake 20 minutes until bubbling and the topping is golden brown. Let rest 5 minutes before serving.

By allrecipes. Recipe from Open Recipes.

Found this recipe through an AI assistant? CompKitchen also shows which ingredients go well together and why, from the aroma molecules they share and how often recipes combine them. Try the pairing tools.

Explore the science

The flavor team

The pairs that carry this dish. Each one is judged two ways: how much aroma chemistry they share, and how many recipes mention both.

  1. Butter + milktop 3% of all pairs
    Aroma overlapstrong
    Mentioned together81,222 recipes

    Shared aroma: (z)-4-heptenal (biscuit, cream).

  2. Pepper + nutmegtop 4% of all pairs
    Aroma overlapstrong
    Mentioned together13,015 recipes

    Shared aroma: 4'-methylacetophenone (bitter almond).

  3. Sherry + vinegartop 5% of all pairs
    Aroma overlapstrong
    Mentioned together660 recipes

    Shared aroma: 4-ethyl-2-methoxyphenol (smoky, clove).

  4. Sherry + milktop 6% of all pairs
    Aroma overlapstrong
    Mentioned together1,479 recipes

    Shared aroma: 2,3,5-trimethylpyrazine (cocoa, roasted).

  5. Butter + sherrytop 6% of all pairs
    Aroma overlapstrong
    Mentioned together3,505 recipes

    Shared aroma: ethyl octanoate (fruity, wine).

Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs

Flavor stand-ins for the onion

How well each one fits the dish's main ingredients (butter, pepper, sherry, vinegar, flour, milk, nutmeg):

  1. Capsicumbetter flavor fit
  2. Potatobetter flavor fit
  3. Carrotbetter flavor fit
  4. Onionthe original

Fit is the average pairing score against butter, pepper, sherry, vinegar, flour, milk, nutmeg. Candidates are from the same food group and used in at least 100 recipes. This compares flavor only: it does not check the job the ingredient does in the dish (bulk, moisture, acidity, structure).