Frederick County · Maryland

ZIP Code 21791

Union Bridge, MD · 5,340 residents

County
Frederick County +1 more
City (USPS)
Union Bridge
Time zone
Eastern Time
Coordinates
39.5331° N, 77.1886° W
Land area
46.0 sq mi · 116 people/sq mi
77.4°W77.2°W77.0°W76.8°W39.4°N39.6°NZIP 17325ZIP 17331ZIP 17340ZIP 21102ZIP 21157ZIP 21158ZIP 21701ZIP 21702ZIP 21703ZIP 21704ZIP 21705ZIP 21727ZIP 21754ZIP 21757ZIP 21762ZIP 21770ZIP 21771ZIP 21774ZIP 21776ZIP 21778ZIP 21787ZIP 21788ZIP 21793ZIP 21797ZIP 2179821102217872170121157211582177121727217882177621703217572179821774217022179321778217915 miN
ZIP Code 21791 (highlighted) with bordering ZIP Codes and county lines. Select a neighbor to open it.

What county is 21791 in?

ZIP Code 21791 is mainly in Frederick County, Maryland, which covers 61% of its land. It also extends into Carroll County (39%).

The Postal Service's default place name for 21791 is Union Bridge. By Census boundaries it covers Union Bridge (town, 2% of the land) and Libertytown (community, 2% of the land). The remaining 96% is unincorporated.

Population5,340±843
Median household income$93,015
Median home value$379,800
Median rent$1,457/mo
Median age37.7
Households1,968

What stands out in ZIP 21791

  • The share of residents born abroad is 2.2%, 84% lower than Frederick County (13.8%).
  • The share of adults with a bachelor's degree is 26.7%, 42% lower than Frederick County (45.8%).
  • The median household income is $93,015, 24% lower than Frederick County ($122,002).
  • The median home value is $379,800, 18% lower than Frederick County ($464,600).

People in ZIP 21791

Median age37.7
Under 1824.5%
65 and older19.2%
Born abroad2.2%
Moved here in the last year5.7%

Age and sex

MaleAgeFemale
4.3%80+2.7%
3.4%70–793.4%
6.4%60–695.5%
5.0%50–595.7%
5.0%40–495.9%
7.4%30–395.7%
6.7%20–296.6%
8.4%10–198.0%
3.9%0–95.7%
Share of all residents in each age group

Race and ethnicity

  • White93.4%
  • Asian2.7%
  • Black1.8%
  • Hispanic or Latino1.1%
  • Two or more races1%

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

Households

1,968 households, 2.71 people per household on average, 71.4% family households, and 24.2% people living alone.

Income in ZIP 21791

Median household income$93,015±$9,656
Per-capita income$41,286
Poverty rate5.1%
Income inequality (Gini)0.360 = equal, 1 = unequal

Median household income ranks 237th of 400 ZIP Codes in Maryland. Richest ZIP Codes in Maryland

7%Under $25k
10%$25k–50k
19%$50k–75k
19%$75k–100k
21%$100k–150k
15%$150k–200k
9%$200k+
Households by annual income

Housing in ZIP 21791

Median home value$379,800
Median gross rent$1,457/mo
Housing units2,059
Median year built1964
Vacant4.4%

Owners and renters

  • Owner-occupied 81.7%
  • Renter-occupied 18.3%

Types of homes

  • Single-family homes 94.2%
  • 2–9 unit buildings 5.4%
  • Mobile homes, RVs 0.4%

Work, commute and education

Mean commute37 minone way
Unemployment rate2%
Labor force participation63.7%age 16+
Broadband at home85.9%households

How workers get to work

  • Drove alone79.2%
  • Carpooled8.6%
  • Public transit0.4%
  • Walked0.9%
  • Bicycle0%
  • Worked from home11%

Education, adults 25+

  • High school or higher92.3%
  • Bachelor's or higher26.7%
  • Graduate or professional degree10.8%

How ZIP 21791 compares

ZIP 21791Frederick CountyMarylandUnited States
Median household income$93,015$122,002$103,678$80,734
Per-capita income$41,286$54,982$52,979$44,673
Median home value$379,800$464,600$419,900$332,700
Median gross rent$1,457/mo$1,774/mo$1,705/mo$1,413/mo
Homeownership rate81.7%77%67.6%65.2%
Median age37.739.039.438.9
Bachelor's degree or higher26.7%45.8%43.4%35.7%
Poverty rate5.1%6%9.4%12.5%
Unemployment rate2%3.3%4.9%5.2%
Mean commute37 min33 min31 min26 min
Worked from home11%21.2%19.3%15.1%
Broadband at home85.9%93.2%92.4%91%
Foreign-born residents2.2%13.8%16.6%14.1%

ZIP Codes bordering 21791

ZIP CodeCityPopulationMedian incomeHome valueMedian ageDirection
21762Libertytown139––33.6SW · 4.8 mi
21776New Windsor6,261$133,409$461,60044.1E · 4.8 mi
21757Keymar2,671$100,500$466,10037.8NW · 5.6 mi
21798Woodsboro2,928$116,607$498,40041.3W · 5.7 mi
21771Mount Airy33,031$157,302$556,20040.9S · 9.7 mi
21701Frederick43,048$106,577$435,00039.6SW · 9.9 mi
21787Taneytown11,645$91,682$355,00040.1N · 10.0 mi
21158Westminster22,083$109,827$384,70041.6NE · 11.7 mi

Cities and communities in 21791

ZIP Code 21791: questions and answers

What county is ZIP Code 21791 in?
ZIP Code 21791 is mainly in Frederick County, Maryland, which covers 61% of its land. It also extends into Carroll County (39%).
What city is ZIP Code 21791 in?
The Postal Service's default place name for 21791 is Union Bridge. By Census boundaries it covers Union Bridge (town, 2% of the land) and Libertytown (community, 2% of the land). The remaining 96% is unincorporated.
What is the population of ZIP Code 21791?
About 5,340 people live in ZIP Code 21791, according to the Census Bureau's American Community Survey (2020–2024).
What time zone is 21791 in?
ZIP Code 21791 is in the Eastern Time zone (America/New_York).
What is the median household income in 21791?
The median household income in ZIP Code 21791 is $93,015 (2020–2024 ACS), compared with $122,002 in Frederick County and $103,678 in Maryland.
Which ZIP Codes border 21791?
21762 (Libertytown), 21776 (New Windsor), 21757 (Keymar), 21798 (Woodsboro), 21771 (Mount Airy), 21701 (Frederick), 21787 (Taneytown), and 21158 (Westminster).

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.