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 ↓
Molasses 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.
Make the batter
Cream the shortening in a bowl.
Add the sugar and molasses, beating well.
Mix in half of the sifted flour, baking powder, spices, and salt.
Add half of the milk and mix well.
Incorporate the remaining flour and milk, mixing until smooth.
Bake
Pour the batter into greased individual cake tins.
Bake in a moderate oven at 350°F (175°C) for 20 minutes.
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).
-
Rye + flourtop 8% of all pairsSmell alikestrongCooked together1,320 recipes
Shared aroma: isobutyraldehyde (malty, green).
-
Sugar + molassestop 11% of all pairsSmell alikemoderateCooked together9,225 recipes
Shared aroma: ethanol (alcoholic, ethereal).
-
Rye + milktop 12% of all pairsSmell alikemoderateCooked together918 recipes
Shared aroma: ethyl 2-methylbutyrate (fruity, apple).
-
Allspice + flourtop 13% of all pairsSmell alikemoderateCooked together4,302 recipes
Shared aroma: isobutyraldehyde (malty, green).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- Rye flour
- Provides the structure of the cake, with a denser crumb than wheat flour.
- Molasses
- Adds sweetness, moisture, and a dark color to the cake.
- Baking powder
- Releases gas in the batter, helping the cake rise.
- Shortening
- Adds fat that tenderizes the crumb and carries flavor.
The step that matters
Mixing in the flour and milk in portions. Adding the flour and milk in halves keeps the batter smooth and well emulsified, so the cake bakes with an even texture instead of becoming dense or lumpy.
Swap the allspice
How well each one fits the dish's main ingredients (ginger, sugar, molasses, rye, flour, milk):
- Cinnamonfits better
- Cardamomfits better
- Nutmegfits about as well
- Allspicethe original
Fit is the average pairing score against ginger, sugar, molasses, rye, flour, 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 molasses 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
Ginger Cake93 recipes
Soft Ginger Bread85 recipes