Why it works: Onion and beans match in chemistry and in kitchens. They rank in the top 5% of all ingredient pairs, and 5,241 recipes mention both. Both carry 2-isopropyl-3-methoxypyrazine, which smells earthy, pea. The science ↓
The recipe
Ingredients
Contains: milk (auto-detected from the ingredients and method; we can miss things, so check labels)
Directions
Prepare
Wash and remove strings from the beans, then cut them into 1-inch pieces.
Cook
In a kettle, melt 3 tablespoons of butter over medium heat.
Add the chopped onion and cook for a few minutes, stirring constantly.
Add the beans and pour in boiling water until covered.
Cook slowly until nearly dry, then season with salt and pepper to taste.
If preferred, you can substitute diced bacon for the butter.
Transcribed from a scanned cookbook and modernised for today's kitchens. Where the book gave no heat or time, or said "a moderate oven", the temperatures and times here may be modern equivalents rather than the book's own figures.
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.
The picture is an illustration, not a photo of this recipe · Contact us to use it
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.
-
Onion + beanstop 5% of all pairsAroma overlapstrongMentioned together5,241 recipes
Shared aroma: 2-isopropyl-3-methoxypyrazine (earthy, pea).
-
Onion + peppertop 7% of all pairsAroma overlapmoderateMentioned together68,463 recipes
Shared aroma: 2-isopropyl-3-methoxypyrazine (earthy, pea).
-
Beans + peppertop 7% of all pairsAroma overlapstrongMentioned together4,733 recipes
Shared aroma: 2-isopropyl-3-methoxypyrazine (earthy, pea).
-
Butter + oniontop 7% of all pairsAroma overlapmoderateMentioned together42,827 recipes
Shared aroma: guaiacol (smoky, sweet).
-
Butter + beanstop 10% of all pairsAroma overlapstrongMentioned together2,792 recipes
Shared aroma: 2,3-pentanedione (butter, sweet).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- String beans
- Form the bulk of the dish, becoming tender as they simmer slowly in the liquid.
- Butter
- Adds fat and rich flavor as the base for cooking the onion and beans.
- Onion
- Adds aromatic sweetness and savory depth as it softens in the butter.
The step that matters
Cook slowly until nearly dry. Cooking gently lets the beans become tender while the remaining liquid reduces and concentrates flavor. Over-boiling can leave the beans mushy, while stopping too early leaves them watery, so the timing matters.
Flavor stand-ins for the onion
How well each one fits the dish's main ingredients (butter, beans, pepper):
- Tomatobetter flavor fit
- Capsicumbetter flavor fit
- Potatobetter flavor fit
- Onionthe original
Fit is the average pairing score against butter, beans, pepper. 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).
“What each ingredient does” and “The step that matters” were written by Claude, an AI, from this recipe’s own method. They are not checked recipe by recipe, so they can be wrong.
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.
You might also like
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.
Illustration
Illustration
Illustration
Illustration