Why it works: Ginger and allspice match in chemistry and in kitchens. They rank in the top 1% of all ingredient pairs, and cooks put them together in 2,620 recipes. Both carry estragole, which smells anise, licorice. The science ↓
Ginger Cake
Ingredients
Directions
The book says “a very slow oven”. The 300°F (150°C) in the steps is the modern equivalent, not the book's own figure.
Prepare
Preheat the oven to 300°F (150°C).
Beat the eggs separately.
Make the batter
Cream the butter and sugar together.
Add the molasses and beaten yolks to the mixture.
Stir in the flour, baking soda, spices, milk, and brandy.
Fold in the beaten egg whites.
Bake
Pour the batter into a greased cake pan and bake until done.
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.
-
Ginger + allspicetop 1% of all pairsSmell alikestrongCooked together2,620 recipes
Shared aroma: estragole (anise, licorice).
-
Butter + milktop 7% of all pairsSmell alikemoderateCooked together81,283 recipes
Shared aroma: (z)-4-heptenal (biscuit, cream).
-
Molasses + sugartop 11% of all pairsSmell alikemoderateCooked together9,225 recipes
Shared aroma: ethanol (alcoholic, ethereal).
-
Butter + flourtop 12% of all pairsSmell alikelowCooked together124,287 recipes
Shared aroma: isobutyraldehyde (malty, green).
-
Flour + allspicetop 13% of all pairsSmell alikemoderateCooked together4,302 recipes
Shared aroma: isobutyraldehyde (malty, green).
Butter and flour barely smell alike, yet cooks put them together in 124,287 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
- Adds fat that makes the cake rich and tender in texture.
- Eggs
- Provide structure and lift, with the whites adding airy volume to the batter.
- Flour
- Forms the structure that holds the cake together as it sets.
- Molasses
- Adds moisture, dark colour, and depth of sweetness and flavour.
- Baking soda
- Reacts with the acidic molasses to produce gas that helps the cake rise.
- Sugar
- Sweetens the cake and helps the creamed butter hold air for a softer crumb.
The step that matters
Fold in the beaten egg whites. Folding gently keeps the air trapped in the whites, so the cake rises and stays light. Stirring vigorously would deflate the foam and leave a denser cake.
Swap the allspice
How well each one fits the dish's main ingredients (butter, molasses, flour, milk, sugar, egg, ginger):
- Cinnamonfits better
- Nutmegfits better
- Cardamomfits better
- Allspicethe original
Fit is the average pairing score against butter, molasses, flour, milk, sugar, egg, ginger. 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 ginger 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.

Ginger Cookies213 recipes
Molasses Cookies96 recipes
Molasses Cake90 recipes
Soft Ginger Bread85 recipes