Why it works: Onion and beans match in chemistry and in kitchens. They rank in the top 7% of all ingredient pairs, and cooks put them together in 5,242 recipes. Both carry 2-isopropyl-3-methoxypyrazine, which smells earthy, pea. The science ↓
String Beans,
Ingredients
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.
Photo for illustrative purposes only · 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 their aromas overlap, and how often cooks already put them together.
-
Onion + beanstop 7% of all pairsSmell alikestrongCooked together5,242 recipes
Shared aroma: 2-isopropyl-3-methoxypyrazine (earthy, pea).
-
Beans + peppertop 11% of all pairsSmell alikemoderateCooked together4,733 recipes
Shared aroma: 2-isopropyl-3-methoxypyrazine (earthy, pea).
-
Onion + peppertop 11% of all pairsSmell alikemoderateCooked together68,474 recipes
Shared aroma: 2-isopropyl-3-methoxypyrazine (earthy, pea).
-
Butter + oniontop 15% of all pairsSmell alikemoderateCooked together42,912 recipes
Shared aroma: decanal (soap, orange peel).
-
Butter + beanstop 19% of all pairsSmell alikemoderateCooked together2,799 recipes
Shared aroma: trans-2-nonenal (cardboard, fatty).
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.
Swap the beans
How well each one fits the dish's main ingredients (butter, onion, pepper):
- Black-eyed peafits about as well
- Sesamefits about as well
- Beansthe original
- Soybeanfits less well
Fit is the average pairing score against butter, onion, pepper. Candidates are from the same food group and used in at least 100 recipes.
“What each ingredient does” and “The step that matters” were written by Claude from this recipe’s own method and reviewed in samples by CompKitchen.
You might also like
The free Flavor Lab newsletter: one surprising pairing a week and the molecular reason it works, in 60 seconds. No spam, unsubscribe anytime.
Prefer an account? Create a free account to save pairings and unlock the full chemistry.

Tomato Soup526 recipes
Brown Bread461 recipes
Mutton Broth292 recipes