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.
Mix the dough
Combine flour, sugar, ginger, and allspice in a bowl.
Warm the butter and add it along with the golden syrup to the dry ingredients.
Warm the water and dissolve the bicarbonate of soda in it.
Mix the dissolved bicarbonate into the dough with whisked eggs and a little milk.
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
- Flour
- Provides the structure that holds the gingerbread together as it bakes.
- Golden syrup
- Adds sweetness and moisture, and helps the crust brown.
- Butter
- Adds fat for a tender crumb and rich flavour.
- Eggs
- Bind the dough and add structure as they set in the oven.
- Bicarbonate of soda
- Reacts to release gas that lifts the batter and helps it rise.
- Ground ginger
- Provides the warm, spicy aroma that defines the gingerbread.
The step that matters
Dissolving the bicarbonate of soda. Bicarbonate of soda must be fully dissolved so it spreads evenly through the batter. It reacts to release gas that lifts the cake, so undissolved pockets can cause patchy rising or dense spots.
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