Why it works: Chocolate and vanilla are a kitchen classic. They rank in the top 5% of all ingredient pairs, and cooks put them together in 10,020 recipes. Both carry sotolon, which smells curry, maple. The science ↓
Walnut Bars
Ingredients
Directions
Make the batter
Cream the butter in a bowl.
Add the sugar and cream together until smooth.
Melt the chocolate and mix it in.
Add the well-beaten eggs and stir until combined.
Sift in the flour and salt, then add the walnuts and vanilla.
Bake and serve
Spread the mixture in a buttered shallow pan, about ¾ inch thick.
Bake in a moderate oven at 350°F (175°C) for 30 minutes.
Cut into squares while hot and remove from the pan to a cooling rack.
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.
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.
-
Chocolate + vanillatop 5% of all pairsSmell alikemoderateCooked together10,020 recipes
Shared aroma: sotolon (curry, maple).
-
Sugar + vanillatop 8% of all pairsSmell alikelowCooked together35,032 recipes
Shared aroma: beta-damascenone (apple, rose).
-
Vanilla + walnuttop 10% of all pairsSmell alikestrongCooked together2,730 recipes
Shared aroma: eucalyptol (eucalyptus, herbal).
-
Chocolate + walnuttop 10% of all pairsSmell alikemoderateCooked together1,548 recipes
Shared aroma: 3-ethyl-2,5-dimethylpyrazine (roasted, nutty).
-
Butter + flourtop 12% of all pairsSmell alikelowCooked together124,287 recipes
Shared aroma: isobutyraldehyde (malty, green).
Sugar and vanilla barely smell alike, yet cooks put them together in 35,032 recipes: they work on texture and structure more than aroma.
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- Butter
- Creams with the sugar to give the bars a tender, rich body.
- Eggs
- Bind the batter and help set the bars as they bake.
- Flour
- Provides the structure that holds the bars together.
- Chocolate
- Adds richness and deep flavour throughout the bars.
- Walnuts
- Add crunch and a nutty texture to the batter.
The step that matters
Cut into squares while hot. The bars are still soft when hot and may crumble or stick if cut too early; cutting while hot is the instruction given, so the cook should keep the bars in the pan until they are ready to cut and remove.
Swap the walnut
How well each one fits the dish's main ingredients (butter, sugar, chocolate, vanilla, flour, egg):
- Almondfits better
- Hazelnutfits better
- Macadamia nutfits better
- Walnutthe original
Fit is the average pairing score against butter, sugar, chocolate, vanilla, flour, egg. 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.
More walnut bars recipes
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.
Chocolate Cream171 recipes
Vanilla Ice Cream108 recipes
Chocolate Cookies76 recipes
Chocolate Fudge55 recipes