Why it works: Allspice and ginger 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 good oven”. The 350°F (175°C) in the steps is the modern equivalent, not the book's own figure.
Prepare
Combine flour and brown sugar in a basin.
Add allspice and ginger, mixing well.
Cream the butter.
Add the syrup and treacle.
Make the batter
Dissolve the baking soda in the warm milk.
Add the vinegar.
Mix all the ingredients together.
Add the eggs last.
Pour the batter into a floured flat tin.
Bake
Bake in a 350°F (175°C) oven for 30 minutes.
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.
-
Allspice + gingertop 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).
-
Flour + buttertop 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).
-
Allspice + vinegartop 13% of all pairsSmell alikemoderateCooked together4,548 recipes
Shared aroma: 2-methylbutyl acetate (fruit).
Flour and butter 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
- Flour
- Provides the structure that holds the cake together as it bakes.
- Eggs
- Add structure and richness, binding the batter as it sets.
- Baking soda
- Reacts with the acid in the vinegar and treacle to produce gas that lifts the cake.
- Butter
- Adds fat for a tender crumb and rich flavour.
- Treacle
- Adds dark sweetness, moisture and the characteristic colour of the cake.
- Syrup
- Adds sweetness and moisture, helping the cake stay soft.
The step that matters
Dissolve the baking soda in the warm milk. Baking soda must be fully dissolved so it reacts evenly with the acid in the batter; undissolved pockets can leave bitter spots and uneven rising.
Swap the ginger
How well each one fits the dish's main ingredients (flour, allspice, syrup, butter, egg, milk, vinegar):
- Cinnamonfits better
- Nutmegfits better
- Cardamomfits better
- Gingerthe original
Fit is the average pairing score against flour, allspice, syrup, butter, egg, milk, vinegar. 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
Soft Ginger Bread85 recipes
Ginger Pound Cake29 recipes
Ginger Ice Cream28 recipes