Why it works: Milk and vanilla are a kitchen classic. They rank in the top 5% of all ingredient pairs, and cooks put them together in 19,187 recipes. Both carry ethyl caproate, which smells fruity, apple peel. The science ↓
Layer Cake
Ingredients
Directions
The book says “a moderate oven”. The 350°F (175°C) in the steps is the modern equivalent, not the book's own figure. The book gives no cooking times; the times in the steps were added in transcription, so check for doneness rather than trusting the clock.
Prepare
Preheat the oven to 350°F (175°C).
Make the batter
In a bowl, cream together the butter and sugar.
Beat the egg whites until frothy and add them to the butter mixture.
In a separate bowl, combine the flour, cream of tartar, and baking soda.
Gradually add the dry ingredients to the butter mixture, alternating with the milk.
Stir in the lemon and vanilla extracts.
Bake
Pour the batter into a greased cake pan and bake for 25–30 minutes or until a toothpick comes out clean.
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.
-
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).
-
Butter + creamtop 8% of all pairsSmell alikemoderateCooked together41,516 recipes
Shared aroma: delta-dodecalactone (sweet, creamy).
-
Sugar + vanillatop 8% of all pairsSmell alikelowCooked together35,032 recipes
Shared aroma: beta-damascenone (apple, rose).
-
Sugar + creamtop 9% of all pairsSmell alikemoderateCooked together43,450 recipes
Shared aroma: 2,3-butanedione (butter, sweet).
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 and adds richness and tender texture.
- Sugar
- Sweetens the cake and helps hold air when creamed with butter for a tender crumb.
- Egg whites
- Add structure and lift through the foam they form when beaten.
- Flour
- Provides the main structure that sets as the cake bakes.
- Cream of tartar
- Stabilizes the beaten egg whites and works with baking soda to help the cake rise.
- Baking soda
- Reacts with the acidic ingredients to produce gas that helps the cake rise.
The step that matters
Adding the dry ingredients alternately with the milk. Adding flour in portions alternating with liquid keeps the batter emulsified and limits gluten development, so the cake stays tender rather than tough or dense.
Swap the lemon
How well each one fits the dish's main ingredients (sugar, butter, milk, flour, cream, egg, vanilla):
- Figfits better
- Coconutfits better
- Raisinfits better
- Lemonthe original
Fit is the average pairing score against sugar, butter, milk, flour, cream, egg, 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 layer 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.

Lemon Cake228 recipes
Lemon Ice147 recipes
Vanilla Ice Cream108 recipes
Lemon Sherbet103 recipes