Why it works: Vanilla and milk 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 gives no oven temperature. The 350°F (175°C) in the steps was added when the recipe was transcribed, as a starting point. The book gives no cooking times either; the times in the steps were added in transcription, so check for doneness rather than trusting the clock.
Prepare the batter
Preheat your oven to 350°F (175°C).
In a mixing bowl, cream together the butter and sugar until light and fluffy.
Add the beaten eggs and vanilla extract, mixing well.
In a separate bowl, combine the flour and baking powder.
Gradually add the dry ingredients to the wet mixture, alternating with the sweet milk.
Bake
Pour the batter into a greased cake pan.
Bake for 25-30 minutes or until a toothpick inserted in the center 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.
-
Vanilla + milktop 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).
-
Butter + flourtop 12% of all pairsSmell alikelowCooked together124,287 recipes
Shared aroma: isobutyraldehyde (malty, green).
-
Vanilla + flourtop 12% of all pairsSmell alikemoderateCooked together19,241 recipes
Shared aroma: isobutyraldehyde (malty, green).
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
- Creamed with sugar to trap air, giving the cake a light, tender crumb and rich flavor.
- Eggs
- Bind the batter and add structure and richness as they set during baking.
- All-purpose flour
- Forms the main structure of the cake once its proteins set in the oven.
- Baking powder
- Releases gas in the batter so the cake rises and becomes airy.
- Sugar
- Sweetens the cake and, creamed with butter, helps create a fine, tender texture.
The step that matters
Alternating dry ingredients with sweet milk. Adding the flour in portions alternated with liquid keeps the batter smooth and well emulsified. Adding it all at once or overmixing can develop too much gluten, leading to a tough, dense cake.
Swap the vanilla
How well each one fits the dish's main ingredients (sugar, milk, egg, butter, flour):
- Vanillathe original
- Raisinfits about as well
- Figfits less well
- Coconutfits less well
Fit is the average pairing score against sugar, milk, egg, butter, flour. 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.

Vanilla Ice Cream108 recipes
White Cake431 recipes
Pound Cake373 recipes
Orange Bundt Cake349 recipes