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 moderate oven”. The 350°F (175°C) in the steps is the modern equivalent, not the book's own figure.
Prepare the batter
Preheat the oven to 350°F (175°C).
In a large bowl, beat the eggs and sugar together until well combined.
Add the molasses, milk, and melted butter, mixing until smooth.
In a separate bowl, combine the baking soda, cream of tartar, ginger, allspice, and flour.
Gradually add the dry ingredients to the wet mixture, stirring until just combined.
Pour the batter into a greased baking pan.
Bake
Bake for 30-40 minutes or until a toothpick inserted in the center 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).
-
Milk + buttertop 7% of all pairsSmell alikemoderateCooked together81,283 recipes
Shared aroma: (z)-4-heptenal (biscuit, cream).
-
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).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- Eggs
- Bind the batter and add structure as the cake sets in the oven.
- Molasses
- Adds moisture, dark color, and a rich, slightly sticky sweetness.
- Flour
- Forms the structure of the cake as the batter sets while baking.
- Baking soda
- Reacts with the acidic molasses and cream of tartar to produce gas that lifts the batter.
- Butter
- Adds fat for tenderness and a rich mouthfeel.
- Sugar
- Sweetens the cake and helps keep it tender and moist.
The step that matters
Stirring the dry ingredients into the wet mixture. Once flour meets liquid, gluten begins to form, so stirring only until just combined keeps the cake tender rather than tough and dense.
Swap the allspice
How well each one fits the dish's main ingredients (egg, sugar, molasses, milk, butter, cream, ginger):
- Cinnamonfits better
- Nutmegfits better
- Cardamomfits about as well
- Allspicethe original
Fit is the average pairing score against egg, sugar, molasses, milk, butter, cream, 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