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-bread
Ingredients
Directions
The book says “a hot oven”. The 350°F (175°C) in the steps is the modern equivalent, not the book's own figure.
Make the batter
In a large bowl, cream together the butter, sugar, and molasses.
Add the ginger, allspice, and baking soda, mixing well.
Stir in the sour cream.
Gradually add flour until the batter is similar to pound cake consistency.
Bake
Pour the batter into a greased baking pan.
Bake in a moderate oven at 350°F (175°C) until a toothpick 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.
-
Ginger + allspicetop 1% of all pairsSmell alikestrongCooked together2,620 recipes
Shared aroma: estragole (anise, licorice).
-
Butter + creamtop 8% of all pairsSmell alikemoderateCooked together41,516 recipes
Shared aroma: delta-dodecalactone (sweet, creamy).
-
Sugar + creamtop 9% of all pairsSmell alikemoderateCooked together43,450 recipes
Shared aroma: 2,3-butanedione (butter, sweet).
-
Sugar + molassestop 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).
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 richness and tenderness, and helps the creamed batter hold air for a fine crumb.
- Molasses
- Provides moisture, dark color, and deep sweetness characteristic of gingerbread.
- Baking soda
- Reacts with the acidic sour cream and molasses to release gas that lifts the batter.
- Sour cream
- Adds moisture and acidity that activates the baking soda and tenderizes the crumb.
- Flour
- Provides the structure that sets as the cake bakes, holding the batter's shape.
The step that matters
Adding the flour gradually. Flour builds gluten as it is mixed, so adding it slowly and stopping once the batter matches pound cake consistency keeps the crumb tender rather than tough and dense.
Swap the allspice
How well each one fits the dish's main ingredients (butter, sugar, molasses, ginger, cream, flour):
- Cinnamonfits better
- Nutmegfits better
- Cardamomfits about as well
- Allspicethe original
Fit is the average pairing score against butter, sugar, molasses, ginger, cream, 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 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
Molasses Cookies96 recipes
Ginger Cake93 recipes
Molasses Cake90 recipes