Black-eyed peas (Vigna unguiculata) are a variety of the cowpea and are part of the family of beans & peas (Leguminosae or Fabaceae in the USA). Although called a pea, it is actually a bean. Both peas and beans are legumes, and both have edible seeds and pods.