Borough in Blair County, Pennsylvania

Martinsburg, Pennsylvania

1,811 residents · 1 ZIP Code

Population
1,811 ▼ 3.2% since 2020 (2025 est.)
Rank in state
694th largest of 1,352 places
Land area
0.6 sq mi · 2,803 people/sq mi
Time zone
Eastern Time
ZIP Codes
16662
Area code
582 and 814
78.33°W78.32°W78.31°W40.30°N40.31°N40.32°N166620.25 miN
Martinsburg city limits (outlined) over the ZIP Codes that serve it.

What county is Martinsburg in?

Martinsburg is in Blair County, Pennsylvania.

What stands out in Martinsburg

  • The share of residents born abroad is 0.9%, 40% lower than Blair County (1.5%).
  • The poverty rate is 8.5%, 29% lower than Blair County (12%).
  • The share of adults with a bachelor's degree is 29.3%, 20% higher than Blair County (24.4%).
  • The median household income is $71,307, 14% higher than Blair County ($62,382).

ZIP Codes in Martinsburg

ZIP CodeCityPopulationMedian incomeHome valueMedian ageShare in city
16662Martinsburg6,069$73,828$221,40041.81% of ZIP

People in Martinsburg

Median age42.1
Under 1821.3%
65 and older25.1%
Born abroad0.9%
Moved here in the last year18.8%

Age and sex

MaleAgeFemale
2.8%80+8.2%
4.4%70–794.7%
8.2%60–697.3%
5.1%50–593.3%
4.9%40–493.2%
6.1%30–397.6%
4.2%20–297.8%
5.2%10–195.3%
5.8%0–96.0%
Share of all residents in each age group

Race and ethnicity

  • White92.2%
  • Black3.7%
  • Two or more races2.1%
  • Asian1.3%
  • Hispanic or Latino0.6%

Hispanic or Latino residents can be of any race; the other groups count non-Hispanic residents only.

Households

655 households, 2.47 people per household on average, 68.7% family households, and 26.6% people living alone.

Income in Martinsburg

Median household income$71,307±$9,884
Per-capita income$31,269
Poverty rate8.5%
Income inequality (Gini)0.360 = equal, 1 = unequal
13%Under $25k
22%$25k–50k
16%$50k–75k
21%$75k–100k
16%$100k–150k
7%$150k–200k
4%$200k+
Households by annual income

Housing in Martinsburg

Median home value$157,200
Median gross rent$860/mo
Housing units706
Median year built1958
Vacant7.2%

Owners and renters

  • Owner-occupied 70.1%
  • Renter-occupied 29.9%

Types of homes

  • Single-family homes 72.8%
  • 2–9 unit buildings 10.9%
  • 10+ unit buildings 2.1%
  • Mobile homes, RVs 14.2%

Work, commute and education

Mean commute23 minone way
Unemployment rate2.7%
Labor force participation54.6%age 16+
Broadband at home86.1%households

How workers get to work

  • Drove alone82.3%
  • Carpooled3.9%
  • Public transit0%
  • Walked8.3%
  • Bicycle0%
  • Worked from home5.6%

Education, adults 25+

  • High school or higher93.1%
  • Bachelor's or higher29.3%
  • Graduate or professional degree6.7%

How Martinsburg compares

MartinsburgBlair CountyPennsylvaniaUnited States
Median household income$71,307$62,382$77,971$80,734
Per-capita income$31,269$35,639$44,355$44,673
Median home value$157,200$161,100$254,500$332,700
Median gross rent$860/mo$885/mo$1,209/mo$1,413/mo
Homeownership rate70.1%72.4%69.3%65.2%
Median age42.143.140.938.9
Bachelor's degree or higher29.3%24.4%35.2%35.7%
Poverty rate8.5%12%11.7%12.5%
Unemployment rate2.7%4.4%5.3%5.2%
Mean commute23 min20 min26 min26 min
Worked from home5.6%7.1%15.6%15.1%
Broadband at home86.1%86.2%89.7%91%
Foreign-born residents0.9%1.5%7.7%14.1%

Places near Martinsburg

Area codes in Martinsburg

Martinsburg phone numbers use area codes 582 and 814. See every phone prefix, carrier and the local time on Martinsburg area codes at AreaCodeExplorer.

Martinsburg, PA: questions and answers

What county is Martinsburg, PA in?
Martinsburg is in Blair County, Pennsylvania.
What ZIP Codes are in Martinsburg?
Martinsburg is served by 1 residential ZIP Code: 16662.
What is the population of Martinsburg?
The Census Bureau estimates 1,811 residents in Martinsburg in 2025.
What time zone is Martinsburg in?
Martinsburg is in the Eastern Time zone (America/New_York).
What is the area code for Martinsburg?
Martinsburg uses area codes 582 and 814.

Sources: U.S. Census Bureau, American Community Survey 2020–2024 5-year estimates; 2025 Population Estimates; 2024 Gazetteer and cartographic boundary files. How we build these pages.