Peanuts are legumes, along with alfalfa, clover, peas and beans. cashews are considered tree nuts, even though they are actually seeds (one seed per cashew apple). they are members of the anacardiaceae family along with mango and pistachio. 🙂 angel (who is severely allergic to all tree nuts & legumes, but not cashews!).