Gilmer is a town in and the county seat of Upshur County, Texas, United States. The population was 4,799 at the 2000 census.