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 Cookies
Ingredients
Directions
The book says “a hot oven”. The 400°F (200°C) in the steps is the modern equivalent, not the book's own figure.
Prepare the dough
Preheat the oven to 400°F (200°C).
In a large bowl, mix together the sugar, molasses, shortening or butter, hot coffee, ginger, allspice, and eggs.
Gradually add flour until the dough is stiff.
Shape and bake
Roll the dough thin and cut into desired shapes.
Bake in the preheated oven until golden.
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).
-
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).
-
Allspice + flourtop 13% of all pairsSmell alikemoderateCooked together4,302 recipes
Shared aroma: isobutyraldehyde (malty, green).
-
Molasses + gingertop 14% of all pairsSmell alikelowCooked together4,116 recipes
Shared aroma: ethanol (alcoholic, ethereal).
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
- Molasses
- Adds deep sweetness, dark color, and moisture for a chewy texture.
- Shortening or butter
- Provides fat that tenderizes the dough and carries the spice flavor.
- Eggs
- Bind the dough and add structure as it sets in the oven.
- Flour
- Builds the structure of the dough, which is stiffened until it holds its shape.
- Sugar
- Adds sweetness and helps the cookies brown as they bake.
- Ginger
- Supplies the main spicy flavor of the cookies.
The step that matters
Gradually add flour until the dough is stiff. Adding flour in small amounts lets you stop once the dough is stiff enough to roll. Too much flour makes the cookies dry and tough, while too little leaves the dough sticky and hard to cut.
Swap the allspice
How well each one fits the dish's main ingredients (sugar, molasses, butter, coffee, ginger, egg, flour):
- Cinnamonfits better
- Nutmegfits better
- Cardamomfits about as well
- Allspicethe original
Fit is the average pairing score against sugar, molasses, butter, coffee, ginger, egg, 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 ginger cookies 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.

Molasses Cookies96 recipes
Ginger Cake93 recipes
Coffee Ice Cream91 recipes
Molasses Cake90 recipes