Why it works: Vanilla and coconut match in chemistry and in kitchens. They rank in the top 1% of all ingredient pairs, and cooks put them together in 2,294 recipes. Both carry ethyl caproate, which smells fruity, apple peel. The science ↓
Black Chocolate 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
Preheat the oven to 350°F (175°C).
Cream the butter and sugar together until light and fluffy.
Add the eggs one at a time, mixing well after each addition.
Dissolve the baking soda in a little boiling water and add it to the mixture.
Stir in the sour milk and grated chocolate.
Gradually add the flour, mixing until just combined.
Pour the batter into jelly tins to create four layers.
Bake until a toothpick inserted in the center comes out clean.
Make the filling
For the filling, combine the white sugar with a little cold water in a saucepan.
Add the beaten egg whites and grated chocolate, then cook over boiling water until thickened.
Flavor with vanilla extract.
Assemble and finish
Spread the filling between the layers and on the outside of the cake.
Top with grated coconut.
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.
-
Vanilla + coconuttop 1% of all pairsSmell alikestrongCooked together2,294 recipes
Shared aroma: ethyl caproate (fruity, apple peel).
-
Milk + vanillatop 5% of all pairsSmell alikemoderateCooked together19,187 recipes
Shared aroma: ethyl caproate (fruity, apple peel).
-
Chocolate + vanillatop 5% of all pairsSmell alikemoderateCooked together10,020 recipes
Shared aroma: sotolon (curry, maple).
-
Butter + milktop 7% of all pairsSmell alikemoderateCooked together81,283 recipes
Shared aroma: (z)-4-heptenal (biscuit, cream).
-
Sugar + vanillatop 8% of all pairsSmell alikelowCooked together35,032 recipes
Shared aroma: beta-damascenone (apple, rose).
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 sugar to trap air, giving the cake a tender, rich crumb.
- Eggs
- Add structure and richness, binding the batter as the cake sets.
- Flour
- Forms the structure that holds the layers together as the cake bakes.
- Baking soda
- Reacts with the sour milk to produce gas that lifts the batter.
- Sour milk
- Adds moisture and acidity that activates the baking soda and tenderizes the crumb.
- Egg whites
- Cook into the filling, thickening it and giving it a light, set texture.
The step that matters
Cooking the filling over boiling water until thickened. Egg whites set when heated but can turn grainy or curdle if cooked too hard or too fast. Gentle heat over simmering water thickens the filling smoothly.
Swap the coconut
How well each one fits the dish's main ingredients (butter, sugar, flour, egg, milk, chocolate, vanilla):
- Coconutthe original
- Figfits about as well
- Raisinfits about as well
- Blueberryfits less well
Fit is the average pairing score against butter, sugar, flour, egg, milk, chocolate, vanilla. 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 chocolate cake 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