Why it works: Cocoa and vanilla work together. They rank in the top 4% of all ingredient pairs, and cooks put them together in 357 recipes. Both carry sotolon, which smells curry, maple. The science ↓
Caramel Filling
Ingredients
Directions
Cook the filling
Stir together cocoa, sugar, butter, and milk in a bowl.
Set the mixture in a warm place to melt.
Place the bowl over the fire and boil for 20 minutes, stirring constantly.
Test by dropping a bit into cold water; if it hardens quickly, it is done.
Finish
Flavor with vanilla.
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.
-
Cocoa + vanillatop 4% of all pairsSmell alikemoderateCooked together357 recipes
Shared aroma: sotolon (curry, maple).
-
Milk + vanillatop 5% of all pairsSmell alikemoderateCooked together19,187 recipes
Shared aroma: ethyl caproate (fruity, apple peel).
-
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).
-
Cocoa + milktop 10% of all pairsSmell alikemoderateCooked together643 recipes
Shared aroma: methyl 2-methylbutyrate (fruity, apple).
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
- Sugar
- Provides sweetness and body, and thickens as water evaporates during boiling.
- Baker's cocoa
- Adds deep chocolate flavor and dark color to the filling.
- Butter
- Adds fat for richness and a smooth, soft texture.
- Milk
- Supplies liquid that dissolves the sugar and gives a creamy texture.
- Vanilla
- Adds aroma that rounds out the chocolate flavor.
The step that matters
Boiling and the cold water test. As water evaporates, sugar concentration rises and the mixture thickens. Stirring constantly prevents scorching on the bottom of the bowl. The cold water test shows when the mixture has reached the right set point, so overcooking or undercooking changes the final texture.
Swap the cocoa
How well each one fits the dish's main ingredients (sugar, egg, butter, milk, vanilla):
- Almondfits about as well
- Pecansfits about as well
- Cocoathe original
- Chestnutfits about as well
Fit is the average pairing score against sugar, egg, butter, milk, 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.
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.

Vanilla Ice Cream108 recipes
Coconut Pudding26 recipes
Coconut Cake17 recipes
Cocoa Nut Candy11 recipes