Why it works: Corn and walnut match in chemistry and in kitchens. They rank in the top 9% of all ingredient pairs, and cooks put them together in 349 recipes. Both carry 2-nonenal, which smells fatty, green. The science ↓
Lemon Custard
Ingredients
Directions
Make the custard
Boil hot water and sugar together.
Dissolve corn starch in cold water and add to the boiling mixture.
Stir in egg yolks until thickened, then remove from heat.
Add butter, salt, lemon juice, and grated rind.
Bake and serve
Line pie plates with pastry and bake lightly.
Pour custard into the baked pastry and bake until light brown.
Top with meringue if desired.
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.
-
Corn + walnuttop 9% of all pairsSmell alikestrongCooked together349 recipes
Shared aroma: 2-nonenal (fatty, green).
-
Walnut + lemontop 10% of all pairsSmell alikestrongCooked together2,149 recipes
Shared aroma: 2-nonenal (fatty, green).
-
Corn + lemontop 13% of all pairsSmell alikemoderateCooked together1,927 recipes
Shared aroma: 2-nonenal (fatty, green).
-
Corn + buttertop 14% of all pairsSmell alikemoderateCooked together7,345 recipes
Shared aroma: 2,3-pentanedione (butter, sweet).
-
Walnut + buttertop 15% of all pairsSmell alikemoderateCooked together6,832 recipes
Shared aroma: eucalyptol (eucalyptus, herbal).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- Egg yolks
- Thicken the custard as they set and add richness.
- Corn starch
- Thickens the boiling liquid into a smooth, sliceable custard.
- Sugar
- Sweetens the custard and balances the sharpness of the lemon.
- Lemon
- Provides acidity and aroma from the juice and grated rind.
- Butter
- Adds fat for a smoother, richer texture and flavour.
The step that matters
Stir in egg yolks until thickened, then remove from heat. Egg yolks thicken when heated, but if the custard gets too hot or boils too long they can curdle and turn grainy. Stop heating as soon as it thickens.
Swap the walnut
How well each one fits the dish's main ingredients (sugar, corn, egg, butter, lemon):
- Almondfits better
- Walnutthe original
- Pistachiofits about as well
- Beansfits about as well
Fit is the average pairing score against sugar, corn, egg, butter, lemon. 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 lemon custard 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.

Lemon Cake228 recipes
Lemon Ice147 recipes
Lemon Sherbet103 recipes
Corn Cake90 recipes