Williamsport is a town in Washington County, Maryland, United States. The population was 1,868 at the 2000 census and 2,137 as of 2010.
Williamsport is located at 39°35′55″N 77°49′6″W (39.598496, −77.818464).
According to the United States Census Bureau, the town has a total area of 1.04 square miles (2.69 km2), all land.
Williamsport is located 7.69 mi (12.38 km) southwest of Hagerstown and 16.23 mi (26.12 km) north of Martinsburg, West Virginia.
The climate in this area is characterized by hot, humid summers and generally mild to cool winters. According to the Köppen Climate Classification system, Williamsport has a humid subtropical climate, abbreviated "Cfa" on climate maps.
As of the census of 2010, there were 2,137 people, 960 households, and 543 families residing in the town. The population density was 2,054.8 inhabitants per square mile (793.4/km2). There were 1,080 housing units at an average density of 1,038.5 per square mile (401.0/km2). The racial makeup of the town was 95.6% White, 2.5% African American, 0.1% Native American, 0.3% Asian, 0.3% from other races, and 1.1% from two or more races. Hispanic or Latino of any race were 1.1% of the population.
There were 960 households of which 25.9% had children under the age of 18 living with them, 36.7% were married couples living together, 12.9% had a female householder with no husband present, 7.0% had a male householder with no wife present, and 43.4% were non-families. 38.5% of all households were made up of individuals and 19.8% had someone living alone who was 65 years of age or older. The average household size was 2.12 and the average family size was 2.73.