Why it works: Parmesan cheese and green beans share more aroma than cooks usually use. They rank in the top 5% of all ingredient pairs, and 18 recipes mention both. Both carry 2,3,5-trimethylpyrazine, which smells cocoa, roasted. The science ↓
The recipe
10 servingsIngredients
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.
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.
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.
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.
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.
Fold the green beans and most of the caramelized onions into the sauce. Spread the mixture in a 2-quart baking dish.
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.
Bake 20 minutes until bubbling and the topping is golden brown. Let rest 5 minutes before serving.
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.
-
Parmesan cheese + green beanstop 5% of all pairsAroma overlapstrongMentioned together18 recipes
Shared aroma: 2,3,5-trimethylpyrazine (cocoa, roasted).
-
Butter + milktop 3% of all pairsAroma overlapstrongMentioned together81,222 recipes
Shared aroma: (z)-4-heptenal (biscuit, cream).
-
Butter + parmesan cheesetop 3% of all pairsAroma overlapstrongMentioned together4,158 recipes
Shared aroma: guaiacol (smoky, sweet).
-
Sherry + parmesan cheesetop 4% of all pairsAroma overlapstrongMentioned together99 recipes
Shared aroma: ethyl isobutyrate (fruity, ethereal).
-
Pepper + nutmegtop 4% of all pairsAroma overlapstrongMentioned together13,015 recipes
Shared aroma: 4'-methylacetophenone (bitter almond).
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):
- Capsicumbetter flavor fit
- Potatobetter flavor fit
- Carrotbetter flavor fit
- 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).
Make it your own
Stand-ins, a drink, and quick taste fixes for this dish, ranked by how well each fits its other ingredients: shared aroma molecules and how often recipes combine them.
The Sunday pairing: one pairing, the chemistry behind it, and how to cook it. No spam, unsubscribe anytime.
Prefer an account? Create a free account for sign-in; Pro adds the full results and chemistry.