Gloucester County is a county in the Commonwealth of Virginia. As of the 2020 census, the population was 38,711. Its county seat is Gloucester Courthouse. The county was founded in 1651 in the Virginia Colony and is named for Henry Stuart, Duke of Gloucester.