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 ↓
Gingerbread
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.
Prepare the batter
In a bowl, combine flour, sugar, ginger, and allspice.
Warm the butter and mix it with the golden syrup.
Stir the butter and syrup mixture into the dry ingredients.
Warm the water, dissolve the bicarbonate of soda in it, and add to the mixture.
Incorporate the whisked eggs and a little milk to form a smooth dough.
Bake
Pour the mixture into a greased tin.
Bake at 350°F (175°C) for 45 minutes to 1 hour, or longer if thick.
Brush the top with a beaten egg yolk mixed with milk before finishing baking.
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).
-
Syrup + sugartop 6% of all pairsSmell alikestrongCooked together5,842 recipes
Shared aroma: ethanol (alcoholic, ethereal).
-
Butter + milktop 7% of all pairsSmell alikemoderateCooked together81,283 recipes
Shared aroma: (z)-4-heptenal (biscuit, cream).
-
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
- Golden syrup
- Adds sweetness and moisture, and helps the gingerbread stay soft and sticky.
- Butter
- Adds fat for a tender crumb and rich flavour.
- Flour
- Provides the structure that holds the gingerbread together as it bakes.
- Bicarbonate of soda
- Reacts with the acidic syrup to produce gas that helps the cake rise.
- Eggs
- Add structure and binding so the dough holds together when baked.
- Ground ginger
- Provides the main spice flavour that defines the gingerbread.
The step that matters
Dissolving the bicarbonate of soda in the warm water. Bicarbonate needs to be fully dissolved and mixed evenly into the batter so it reacts with the acidic syrup and rises uniformly rather than leaving pockets or dense patches.
Swap the allspice
How well each one fits the dish's main ingredients (syrup, butter, sugar, flour, ginger, egg, milk):
- Cinnamonfits better
- Nutmegfits better
- Cardamomfits better
- Allspicethe original
Fit is the average pairing score against syrup, butter, sugar, flour, ginger, egg, milk. 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 gingerbread 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
Ginger Cake93 recipes
Soft Ginger Bread85 recipes
Soft Ginger Cake56 recipes