Washington County · Maryland

ZIP Code 21740

Hagerstown, MD · 64,792 residents

City (USPS)
Hagerstown
Time zone
Eastern Time
Area code
227, 240, and 301
Coordinates
39.6319° N, 77.7439° W
Land area
70.9 sq mi · 914 people/sq mi
78.0°W77.8°W77.6°W77.4°W39.6°N39.8°NZIP 17202ZIP 17225ZIP 17236ZIP 17263ZIP 17268ZIP 21702ZIP 21711ZIP 21713ZIP 21719ZIP 21722ZIP 21733ZIP 21734ZIP 21742ZIP 21746ZIP 21756ZIP 21767ZIP 21769ZIP 21773ZIP 21779ZIP 21780ZIP 21781ZIP 21782ZIP 21783ZIP 21788ZIP 21795ZIP 25404ZIP 25419ZIP 254271723617268172252172221713217832174221788254042179521780217732170225419217112173321719217405 miN
ZIP Code 21740 (highlighted) with bordering ZIP Codes and county lines. Select a neighbor to open it.

What county is 21740 in?

ZIP Code 21740 is in Washington County, Maryland.

The Postal Service's default place name for 21740 is Hagerstown. By Census boundaries it covers Hagerstown (city, 14% of the land), St. James (community, 6% of the land), Wilson-Conococheague (community, 5% of the land), Halfway (community, 4% of the land), and Maugansville (community, 3% of the land). The remaining 69% is unincorporated.

Population64,792±2,243
Median household income$62,873
Median home value$262,300
Median rent$1,080/mo
Median age37.9
Households25,276

What stands out in ZIP 21740

  • The poverty rate is 17.3%, 40% higher than Washington County (12.4%).
  • The share of residents born abroad is 8.9%, 35% higher than Washington County (6.6%).
  • The median household income is $62,873, 19% lower than Washington County ($77,747).
  • The homeownership rate is 55.3%, 17% lower than Washington County (66.8%).

People in ZIP 21740

Median age37.9
Under 1822.8%
65 and older16.3%
Born abroad8.9%
Moved here in the last year14.4%

Age and sex

MaleAgeFemale
1.5%80+2.4%
3.2%70–793.8%
5.0%60–695.7%
6.1%50–596.8%
6.7%40–495.6%
8.2%30–397.1%
6.7%20–296.6%
5.8%10–196.0%
6.5%0–96.4%
Share of all residents in each age group

Race and ethnicity

  • White61.2%
  • Black18%
  • Hispanic or Latino11.6%
  • Two or more races7%
  • Asian1.8%
  • Other0.2%
  • American Indian / Alaska Native0.1%
  • Pacific Islander0.1%

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

Households

25,276 households, 2.41 people per household on average, 59.2% family households, and 31.9% people living alone.

Income in ZIP 21740

Median household income$62,873±$3,730
Per-capita income$33,461
Poverty rate17.3%
Income inequality (Gini)0.460 = equal, 1 = unequal

Median household income ranks 363rd of 400 ZIP Codes in Maryland. Richest ZIP Codes in Maryland

19%Under $25k
21%$25k–50k
17%$50k–75k
13%$75k–100k
16%$100k–150k
9%$150k–200k
6%$200k+
Households by annual income

Housing in ZIP 21740

Median home value$262,300
Median gross rent$1,080/mo
Housing units27,339
Median year built1971
Vacant7.5%

Owners and renters

  • Owner-occupied 55.3%
  • Renter-occupied 44.7%

Types of homes

  • Single-family homes 72%
  • 2–9 unit buildings 16%
  • 10+ unit buildings 10.1%
  • Mobile homes, RVs 1.9%

Work, commute and education

Mean commute27 minone way
Unemployment rate4.7%
Labor force participation58.6%age 16+
Broadband at home87.3%households

How workers get to work

  • Drove alone72.3%
  • Carpooled9.8%
  • Public transit2.3%
  • Walked2.2%
  • Bicycle0.5%
  • Worked from home10.3%

Education, adults 25+

  • High school or higher85.7%
  • Bachelor's or higher20.7%
  • Graduate or professional degree8%

How ZIP 21740 compares

ZIP 21740Washington CountyMarylandUnited States
Median household income$62,873$77,747$103,678$80,734
Per-capita income$33,461$39,035$52,979$44,673
Median home value$262,300$296,100$419,900$332,700
Median gross rent$1,080/mo$1,147/mo$1,705/mo$1,413/mo
Homeownership rate55.3%66.8%67.6%65.2%
Median age37.940.739.438.9
Bachelor's degree or higher20.7%24.1%43.4%35.7%
Poverty rate17.3%12.4%9.4%12.5%
Unemployment rate4.7%4.2%4.9%5.2%
Mean commute27 min29 min31 min26 min
Worked from home10.3%12.4%19.3%15.1%
Broadband at home87.3%88.5%92.4%91%
Foreign-born residents8.9%6.6%16.6%14.1%

ZIP Codes bordering 21740

ZIP CodeCityPopulationMedian incomeHome valueMedian ageDirection
21734Funkstown1,076$61,392$277,80052.4SE · 2.8 mi
21781Saint James25––21.9S · 4.3 mi
21767Maugansville1,031$57,940$258,70051.4N · 4.6 mi
21746Hagerstown2,361––38.0S · 4.8 mi
21795Williamsport10,144$87,864$295,80041.0SW · 5.5 mi
21733Fairplay1,275$109,896$291,80041.2S · 5.7 mi
21742Hagerstown34,069$86,288$304,80041.7NE · 5.8 mi
21713Boonsboro9,846$96,199$369,20045.5SE · 8.4 mi
21722Clear Spring6,721$88,232$312,50040.7W · 9.3 mi
21783Smithsburg9,910$100,750$339,80042.8E · 10.3 mi
17225Greencastle20,347$88,457$304,10041.7N · 10.5 mi
21773Myersville5,826$161,908$544,40043.8SE · 11.9 mi

Cities and communities in 21740

Area codes for 21740

Hagerstown phone numbers use area codes 227, 240, and 301. See every phone prefix, carrier and the local time on Hagerstown area codes at AreaCodeExplorer.

ZIP Code 21740: questions and answers

What county is ZIP Code 21740 in?
ZIP Code 21740 is in Washington County, Maryland.
What city is ZIP Code 21740 in?
The Postal Service's default place name for 21740 is Hagerstown. By Census boundaries it covers Hagerstown (city, 14% of the land), St. James (community, 6% of the land), Wilson-Conococheague (community, 5% of the land), Halfway (community, 4% of the land), and Maugansville (community, 3% of the land). The remaining 69% is unincorporated.
What is the population of ZIP Code 21740?
About 64,792 people live in ZIP Code 21740, according to the Census Bureau's American Community Survey (2020–2024).
What time zone is 21740 in?
ZIP Code 21740 is in the Eastern Time zone (America/New_York).
What is the median household income in 21740?
The median household income in ZIP Code 21740 is $62,873 (2020–2024 ACS), compared with $77,747 in Washington County and $103,678 in Maryland.
Which ZIP Codes border 21740?
21734 (Funkstown), 21781 (Saint James), 21767 (Maugansville), 21746 (Hagerstown), 21795 (Williamsport), 21733 (Fairplay), 21742 (Hagerstown), 21713 (Boonsboro), 21722 (Clear Spring), and 21783 (Smithsburg).

Sources: U.S. Census Bureau, American Community Survey 2020–2024 5-year estimates; 2025 Population Estimates; 2024 Gazetteer and cartographic boundary files; ZIP Code place names: GeoNames (CC BY 4.0). How we build these pages.