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 string the beans, then cut them into 1-inch pieces.
Cook
Melt the butter in a kettle.
Add the chopped onion to the melted butter.
Cook the butter and onion mixture for a few minutes, stirring constantly.
Add the beans to the mixture.
Pour boiling water over the beans.
Cook slowly until nearly dry.
Season with salt and pepper.
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 main body of the dish, becoming tender as they cook slowly in the pan.
- Butter
- Adds richness and carries flavor as it cooks with the onion.
- Onion
- Softens and sweetens as it cooks in butter, adding savory depth.
The step that matters
Cook slowly until nearly dry. Cooking slowly lets the water from the boiling water and the beans evaporate gradually, concentrating flavor and giving a tender texture instead of a watery, boiled result.
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