Martinsburg, West Virginia

Martinsburg, West Virginia
Downtown Martinsburg Historic District
Flag of Martinsburg, West Virginia
Official seal of Martinsburg, West Virginia
Interactive map of Martinsburg, West Virginia
Martinsburg is located in West Virginia
Martinsburg
Martinsburg
Location within West Virginia
Martinsburg is located in the United States
Martinsburg
Martinsburg
Location within the United States
Coordinates: 39°27′13″N 77°59′44″W / 39.45361°N 77.99556°W / 39.45361; -77.99556
CountryUnited States
StateWest Virginia
CountyBerkeley
Chartered1778
IncorporatedMarch 30, 1868
Government
 • MayorKevin Knowles (D)
Area
 • City
6.65 sq mi (17.22 km2)
 • Land6.63 sq mi (17.17 km2)
 • Water0.015 sq mi (0.04 km2)
Elevation
495 ft (151 m)
Population
 (2020)
 • City
18,777
 • Estimate 
(2019)
18,835
 • Density2,632.2/sq mi (1,016.31/km2)
 • Urban
43,441
 • Metro
260,070 (US: 167th)
Time zoneUTC−5 (EST)
 • Summer (DST)UTC−4 (EDT)
ZIP codes
25401–25405
Area code304 681
FIPS code54-52060
GNIS feature ID2390615
Websitecityofmartinsburg.org
Preview warning: Page using Template:Infobox settlement with deprecated parameter blank1_info. Replace with custom_data1_sec1.
Preview warning: Page using Template:Infobox settlement with deprecated parameter settlement_type. Replace with type.
Preview warning: Page using Template:Infobox settlement with deprecated parameter blank1_name. Replace with custom_label1_sec1.
Preview warning: Page using Template:Infobox settlement with deprecated parameter blank_info. Replace with custom_data_sec1.
Preview warning: Page using Template:Infobox settlement with deprecated parameter timezone. Replace with time_zone.
Preview warning: Page using Template:Infobox settlement with deprecated parameter timezone_DST. Replace with time_zone_DST.
Preview warning: Page using Template:Infobox settlement with deprecated parameter blank_name. Replace with custom_label_sec1.
Preview warning: Page using Template:Infobox settlement with deprecated parameter imagesize. Replace with image_size.
Preview warning: Page using Template:Infobox settlement with deprecated parameter image_caption. Replace with caption.
Preview warning: Page using Template:Infobox settlement with multiple other deprecated parameters. Fix those above and preview again.

Martinsburg is a city in Berkeley County, West Virginia, United States, and its county seat. The population was 18,773 at the 2020 census, making Martinsburg the largest city in the eastern panhandle of West Virginia and the sixth-most populous city in the state. It is a principal city of the Hagerstown–Martinsburg metropolitan area extending into Maryland, which had 293,844 residents in 2020.