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 ↓
Vanilla Cream Pie
Ingredients
Directions
Prepare the filling
Butter a pie dish.
In a saucepan, heat the milk until it reaches a boiling point.
In a bowl, mix the sugar, egg yolks, and cornstarch with a little cold water until smooth.
Add the mixture to the boiling milk and cook for five minutes, stirring constantly.
Remove from heat and let cool, then stir in the vanilla extract.
If desired, fold in shredded coconut into the filling.
Top and bake
In a separate bowl, beat the egg whites until stiff peaks form, then gradually add 1/4 cup sugar.
Spread the beaten egg whites over the pie filling, sprinkle with coconut, and brown in the oven.
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.
-
Vanilla + coconuttop 1% of all pairsSmell alikestrongCooked together2,294 recipes
Shared aroma: ethyl caproate (fruity, apple peel).
-
Walnut + coconuttop 4% of all pairsSmell alikestrongCooked together606 recipes
Shared aroma: 2,3,5-trimethylpyrazine (cocoa, roasted).
-
Milk + vanillatop 5% of all pairsSmell alikemoderateCooked together19,187 recipes
Shared aroma: ethyl caproate (fruity, apple peel).
-
Milk + buttertop 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
- Egg yolks
- Thicken the custard and add richness as they cook with the milk.
- Cornstarch
- Thickens the milk mixture into a smooth, sliceable custard when heated.
- Egg whites
- Whipped into a stiff foam that forms the topping and browns in the oven.
- Milk
- Forms the liquid base of the custard filling.
- Sugar
- Sweetens the custard and stabilizes the whipped egg white topping.
The step that matters
Cook the custard while stirring constantly. Cornstarch thickens only when the mixture boils, and stirring keeps the egg yolks from scrambling or sticking to the pan while it cooks.
Swap the coconut
The recipe marks coconut as optional. How well each one fits the dish's main ingredients (milk, sugar, egg, vanilla, butter, walnut):
- Figfits about as well
- Coconutthe original
- Peachfits less well
- Blueberryfits less well
Fit is the average pairing score against milk, sugar, egg, vanilla, butter, walnut. 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
White Cake431 recipes
Pound Cake373 recipes
Orange Bundt Cake349 recipes