Pennsylvania · Census place 4247872
Martinsburg, Pennsylvania
Martinsburg is a borough in Blair County, Pennsylvania with an estimated 1,823 residents on July 1, 2024. It is the 450th largest of 597 incorporated places of 1,000+ people in the state.
- Population 2024
- 1,823
- #450 of 597 in Pennsylvania
- Change since 2020
- -2.4%
- -45 people
- Land area
- 0.7 sq mi
- Density
- 2,805 / sq mi
- State median 3,911
Measure from here
Tools and pages that start from Martinsburg
Martinsburg population, 2020 to 2024
Martinsburg lost 45 residents from July 2020 to July 2024, a change of -2.4%. In the latest year it moved by -2.
Martinsburg covers 0.65 square miles of land, for 2,805 people per square mile of land. The median Pennsylvania place of 5,000+ has 3,911, so Martinsburg is less dense than the typical town.
What county Martinsburg is in
All of Martinsburg's residents live in Blair County, which had 120,269 residents in 2024. Martinsburg holds 1.5% of the county's population. The shaded shape is on the map above; dots mark the eight nearest places.
ZIP codes in Martinsburg
1 ZIP Code Tabulation Area (ZCTA) overlaps Martinsburg by at least 10% of the ZCTA's or the borough's land: 16662. ZCTAs are Census approximations of USPS ZIP code delivery areas. The list comes from the 2020 ZCTA to place relationship file, so a borough that annexed land after 2020 may reach into ZIP codes not listed here.
Where Martinsburg is
The Census internal point of Martinsburg is at 40.310900, -78.324300. Harrisburg, the capital, is 76.0 miles E in a straight line. The nearest larger place is Roaring Spring, PA (2,297 people), 4.1 miles away. The nearest city of 100,000 or more is Pittsburgh, PA, 87.4 miles away.
Internal point
- Decimal
- 40.310900, -78.324300
- DMS
- 40°18'39.24"N 78°19'27.48"W
- UTM
- 17N 727371.4E 4465701.0N
- Geohash
- dr0m3dmup
- Plus code
- 87G38M6G+97
Daylight in Martinsburg
At 40.31° N, Martinsburg gets about 15 h 03 min of daylight around the June solstice and 9 h 18 min around the December solstice, a swing of 5 h 45 min. Figures are sunrise to sunset from the SunCalc model for June 21 and December 21, 2026.
Places near Martinsburg
The eight nearest incorporated places of 1,000+ in Pennsylvania, measured between internal points. The closest is Roaring Spring, 4.1 miles away, with 2,297 people.
Questions people ask
What is the population of Martinsburg, PA?
1,823 on July 1, 2024, in the Census Vintage 2024 estimates. That is down 45 (2.4%) from 1,868 in July 2020.
What county is Martinsburg in?
Blair County. All of its residents live in that county.
What ZIP codes cover Martinsburg?
1 ZIP Code Tabulation Area overlaps it by at least 10% of either area: 16662.
How far is Martinsburg from Harrisburg?
76.0 miles (122.3 km) in a straight line, heading E from Martinsburg.
What is the nearest larger city to Martinsburg?
Roaring Spring, PA, with 2,297 residents, 4.1 miles away between internal points.
Sources and data as of
Data as of: Census Vintage 2024 subcounty estimates (July 1, 2024), 2024 Gazetteer places, 2020 ZCTA to place relationship file.
- 01Census Vintage 2024 subcounty population estimates
- 02Census 2024 Gazetteer, places
- 03Census 2020 ZCTA to place relationship file
- 04Census 2024 cartographic boundary file, counties (1:5,000,000)
How every number is computed: methodology. Spotted a wrong figure? Report an error.