Why it works: Garlic and walnut are a kitchen classic. They rank in the top 12% of all ingredient pairs, and 1,005 recipes mention both. Both carry 3-ethyl-2,5-dimethylpyrazine, which smells roasted, nutty. The science ↓
The recipe
12 servingsIngredients
Contains: tree nuts (auto-detected from the ingredients and method; we can miss things, so check labels)
Directions
Method written by CompKitchen from the ingredient list. Not the original author's method, not kitchen-tested.
Heat the oven to 400°F (200°C). Cut the tops off the garlic bulbs, drizzle the exposed cloves with the 1 tablespoon olive oil, wrap in foil, and roast for about 35 to 40 minutes until soft.
Meanwhile, bring a pan of boiling water to a boil. Fill a large bowl with the ice water. Blanch the basil in the boiling water for about 15 seconds, then move it straight into the ice water.
Drain the basil and squeeze out as much water as you can with your hands or a clean towel.
Toast the chopped walnuts in a dry skillet over medium heat for 3 to 4 minutes, stirring often, until fragrant. Let them cool.
Let the roasted garlic cool until safe to handle, then squeeze the soft cloves out of their skins.
Put the basil, walnuts, roasted garlic, and salt and pepper to taste into a food processor. Pulse until coarsely chopped.
With the processor running, slowly add the 1 cup extra-virgin olive oil in a steady stream until the pesto is smooth. Taste and adjust the salt and pepper.
Spoon the pesto into freezer-safe containers or ice cube trays, leave about 1/2 inch (1 cm) of headspace, seal, label, and freeze.
Found this recipe through an AI assistant? CompKitchen also shows which ingredients go well together and why, from the aroma molecules they share and how often recipes combine them. Try the pairing tools.
Explore the science
The flavor team
The pairs that carry this dish. Each one is judged two ways: how much aroma chemistry they share, and how many recipes mention both.
-
Garlic + walnuttop 12% of all pairsAroma overlapmoderateMentioned together1,005 recipes
Shared aroma: 3-ethyl-2,5-dimethylpyrazine (roasted, nutty).
-
Pepper + basiltop 3% of all pairsAroma overlapstrongMentioned together5,292 recipes
Shared aroma: methyl cinnamate (strawberry).
-
Garlic + olivetop 3% of all pairsAroma overlapmoderateMentioned together23,449 recipes
Shared aroma: linalool (floral, citrus).
-
Olive + basiltop 3% of all pairsAroma overlapstrongMentioned together4,868 recipes
Shared aroma: 3-hexenal (apple, fruity).
-
Garlic + basiltop 3% of all pairsAroma overlapmoderateMentioned together4,805 recipes
Shared aroma: linalool (floral, citrus).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
Flavor stand-ins for the basil
How well each one fits the dish's main ingredients (garlic, olive, pepper, walnut):
- Rosemaryabout as good a flavor fit
- Basilthe original
- Parsleyabout as good a flavor fit
- Thymeabout as good a flavor fit
Fit is the average pairing score against garlic, olive, pepper, walnut. Candidates are from the same food group and used in at least 100 recipes. This compares flavor only: it does not check the job the ingredient does in the dish (bulk, moisture, acidity, structure).
Make it your own
Stand-ins, a drink, and quick taste fixes for this dish, ranked by how well each fits its other ingredients: shared aroma molecules and how often recipes combine them.
The Sunday pairing: one pairing, the chemistry behind it, and how to cook it. No spam, unsubscribe anytime.
Prefer an account? Create a free account for sign-in; Pro adds the full results and chemistry.