Why it works: Pasta and beans match in chemistry and in kitchens. They rank in the top 4% of all ingredient pairs, and 175 recipes mention both. Both carry nonanal, which smells fat, citrus. The science ↓
The recipe
8 servingsIngredients
Contains: milk, wheat (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 375°F (190°C). Cook the pasta shells in a pot of boiling salted water until just tender, about 10 minutes. Drain well.
Heat 1 teaspoon olive oil in a large skillet over medium heat. Cook the chopped onion for about 5 minutes until soft.
Add the white beans, thyme sprigs, bay leaf and a splash of water to the skillet. Simmer 10 minutes, then remove the thyme and bay leaf. Mash about half the beans lightly and season with salt and pepper.
In a food processor, blend the basil, garlic, 1 tablespoon olive oil and half the Parmesan until coarsely chopped.
In a bowl, stir the ricotta into the basil mixture, then fold in the drained pasta until coated.
Toss the chopped tomatoes with the balsamic vinegar, salt and pepper in a separate bowl.
Spread half the pasta mixture in a greased baking dish. Spoon the bean mixture over it, then add the remaining pasta. Arrange the tomatoes on top.
Mix the bread crumbs, remaining Parmesan and 1 tablespoon olive oil. Scatter over the dish.
Bake for 20 minutes until golden and bubbling. Let rest 5 minutes before serving.
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.
-
Pasta + beanstop 4% of all pairsAroma overlapstrongMentioned together175 recipes
Shared aroma: nonanal (fat, citrus).
-
Basil + thymetop 1% of all pairsAroma overlapstrongMentioned together1,768 recipes
Shared aroma: terpineol (pine, woody).
-
Garlic + oniontop 1% of all pairsAroma overlapstrongMentioned together29,030 recipes
Shared aroma: furaneol (caramel, strawberry).
-
Garlic + olivetop 3% of all pairsAroma overlapmoderateMentioned together23,449 recipes
Shared aroma: linalool (floral, citrus).
-
Basil + olivetop 3% of all pairsAroma overlapstrongMentioned together4,868 recipes
Shared aroma: 3-hexenal (apple, fruity).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
Flavor stand-ins for the onion
How well each one fits the dish's main ingredients (pasta, basil, garlic, parmesan cheese, olive, ricotta cheese, thyme):
- Tomatobetter flavor fit
- Spinachbetter flavor fit
- Eggplantbetter flavor fit
- Onionthe original
Fit is the average pairing score against pasta, basil, garlic, parmesan cheese, olive, ricotta cheese, thyme. 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.