Why it works: Walnut and coconut match in chemistry and in kitchens. They rank in the top 4% of all ingredient pairs, and cooks put them together in 606 recipes. Both carry 2,3,5-trimethylpyrazine, which smells cocoa, roasted. The science ↓
Chocolate Nut Cake
Ingredients
Directions
The book gives no oven temperature. The 350°F (175°C) in the steps was added when the recipe was transcribed, as a starting point.
Make the cake layers
Preheat the oven to 350°F (175°C).
Cream the butter and sugar together until light and fluffy.
Add the milk and mix well.
Sift the flour and baking powder together and gradually add to the mixture.
Beat the egg whites until stiff and fold them into the batter.
Divide the batter into three layers.
Bake until golden.
Make the icing and filling
Dissolve 1 cup of sugar in enough water to cover it.
Cook the sugar until it threads.
Beat the hot sugar into the beaten egg whites until stiff.
Stir in the cooled melted chocolate.
Reserve some icing for the top of the cake.
Chop the walnuts and coconut and mix them into the remaining icing.
Assemble
Spread the nut icing between each layer and on top of the cake.
Finish with the reserved plain icing.
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.
-
Walnut + coconuttop 4% of all pairsSmell alikestrongCooked together606 recipes
Shared aroma: 2,3,5-trimethylpyrazine (cocoa, roasted).
-
Milk + buttertop 7% of all pairsSmell alikemoderateCooked together81,283 recipes
Shared aroma: (z)-4-heptenal (biscuit, cream).
-
Chocolate + coconuttop 9% of all pairsSmell alikemoderateCooked together1,107 recipes
Shared aroma: gamma-nonanolactone (coconut, sweet).
-
Milk + coconuttop 10% of all pairsSmell alikemoderateCooked together2,648 recipes
Shared aroma: delta-dodecalactone (sweet, creamy).
-
Chocolate + walnuttop 10% of all pairsSmell alikemoderateCooked together1,548 recipes
Shared aroma: 3-ethyl-2,5-dimethylpyrazine (roasted, nutty).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- Eggs
- Whites beaten to stiff peaks give the batter lift and an airy structure.
- Butter
- Creamed with sugar, it traps air and gives the cake a tender crumb and rich flavor.
- Flour
- Provides the structure that holds the cake layers together as they bake.
- Baking powder
- Releases gas during baking so the layers rise and stay light.
- Sugar
- Sweetens the cake and, cooked to threads, sets the glossy icing.
- Melted chocolate
- Adds rich flavor and a deep color to the icing and filling.
The step that matters
Cook the sugar until it threads. Sugar syrup that is undercooked stays runny and will not stiffen the egg whites, while overcooked syrup turns hard and grainy. Hot syrup must be poured in a thin stream while beating so the whites set into a stable icing.
Swap the walnut
How well each one fits the dish's main ingredients (sugar, milk, flour, butter, egg, chocolate, coconut):
- Almondfits better
- Macadamia nutfits better
- Cashew nutfits about as well
- Walnutthe original
Fit is the average pairing score against sugar, milk, flour, butter, egg, chocolate, coconut. 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.

Chocolate Cream171 recipes
Chocolate Cookies76 recipes
Chocolate Fudge55 recipes
Chocolate Drop Cookies50 recipes