Prince Edward County is a county located in the U.S. state of Virginia. As of the 2020 census, the population was 21,849.[1] Its county seat is Farmville.[2]