US5.com

20871 vs 20838 — Compare ZIP Codes

Side-by-side comparison. Blue = ZIP 20871, Orange = ZIP 20838.

Quick verdict: ZIP 20871 is more diverse, more educated. ZIP 20838 is wealthier, higher home values, lower poverty rate, lower unemployment, higher work-from-home share.

Quick Facts

ZIP 20871
Clarksburg CDP, MD
View full profile →
  • Population28,329
  • Median Income$177,120
  • Median Home Value$629k
  • Median Rent$2,134
  • Median Age37.9 yrs
  • Poverty Rate4.5%
ZIP 20838
Barnesville town, MD
View full profile →
  • Population409
  • Median Income$223,571
  • Median Home Value$807k
  • Median Rent
  • Median Age34.4 yrs
  • Poverty Rate0.7%
Visual comparison (same scale)
Population
28,329409
Median Income
$177,120$223,571
Median Home Value
$629k$807k
Median Rent
$2,134
Median Age
37.9 yrs34.4 yrs
Poverty Rate
4.5%0.7%

Demographics

ZIP 20871
Clarksburg CDP, MD
View full profile →
  • White %32.4%
  • Black %15.0%
  • Asian %38.2%
  • Hispanic %12.5%
  • Age 0–17 %30.0%
  • Age 18–64 %61.3%
  • Age 65+ %8.8%
  • Bachelor's+ %67.6%
  • Diversity Index71/100
ZIP 20838
Barnesville town, MD
View full profile →
  • White %91.9%
  • Black %0.2%
  • Asian %0.2%
  • Hispanic %13.7%
  • Age 0–17 %34.0%
  • Age 18–64 %52.3%
  • Age 65+ %13.7%
  • Bachelor's+ %59.8%
  • Diversity Index14/100
Visual comparison (same scale)
White %
32.4%91.9%
Black %
15.0%0.2%
Asian %
38.2%0.2%
Hispanic %
12.5%13.7%
Age 0–17 %
30.0%34.0%
Age 18–64 %
61.3%52.3%
Age 65+ %
8.8%13.7%
Bachelor's+ %
67.6%59.8%
Diversity Index
71/10014/100

Economy

ZIP 20871
Clarksburg CDP, MD
View full profile →
  • Median Income$177,120
  • Unemployment %4.3%
  • IRS Net Migration+1,664
  • Work From Home %26.6%
  • Mean Commute (min)
ZIP 20838
Barnesville town, MD
View full profile →
  • Median Income$223,571
  • Unemployment %1.1%
  • IRS Net Migration+24
  • Work From Home %41.1%
  • Mean Commute (min)113 min
Visual comparison (same scale)
Median Income
$177,120$223,571
Unemployment %
4.3%1.1%
IRS Net Migration
+1,664+24
Work From Home %
26.6%41.1%
Mean Commute (min)
113 min

Housing

ZIP 20871
Clarksburg CDP, MD
View full profile →
  • Median Home Value$629k
  • Median Rent$2,134
  • Owner Occupied %87.1%
  • Broadband %98.5%
  • Vacant %1.7%
  • Median Year Built2009
ZIP 20838
Barnesville town, MD
View full profile →
  • Median Home Value$807k
  • Median Rent
  • Owner Occupied %98.0%
  • Broadband %95.1%
  • Vacant %4.7%
  • Median Year Built1973
Visual comparison (same scale)
Median Home Value
$629k$807k
Median Rent
$2,134
Owner Occupied %
87.1%98.0%
Broadband %
98.5%95.1%
Vacant %
1.7%4.7%
Median Year Built
20091973

Climate & Location

ZIP 20871
Clarksburg CDP, MD
View full profile →
  • Snow Days/Year0 days
  • Elevation (ft)700 ft
  • Nearest Airport23.8 miles (38.3 km)
  • Distance to Coast25.7 miles (41.3 km)
ZIP 20838
Barnesville town, MD
View full profile →
  • Snow Days/Year0 days
  • Elevation (ft)700 ft
  • Nearest Airport19.2 miles (30.9 km)
  • Distance to Coast25.9 miles (41.6 km)
Visual comparison (same scale)
Snow Days/Year
0 days0 days
Elevation (ft)
700 ft700 ft
Nearest Airport
23.8 miles (38.3 km)19.2 miles (30.9 km)
Distance to Coast
25.7 miles (41.3 km)25.9 miles (41.6 km)

Infrastructure

ZIP 20871
Clarksburg CDP, MD
View full profile →
  • Mean Commute (min)
  • Work From Home %26.6%
  • Walkability (0–100)29
  • Broadband %98.5%
ZIP 20838
Barnesville town, MD
View full profile →
  • Mean Commute (min)113 min
  • Work From Home %41.1%
  • Walkability (0–100)30
  • Broadband %95.1%
Visual comparison (same scale)
Mean Commute (min)
113 min
Work From Home %
26.6%41.1%
Walkability (0–100)
2930
Broadband %
98.5%95.1%

Frequently Asked Questions

How do ZIP 20871 and 20838 compare?
ZIP 20871 is more diverse, more educated. ZIP 20838 is wealthier, higher home values, lower poverty rate, lower unemployment, higher work-from-home share.
What do the blue and orange colors mean?
Blue represents the first ZIP (20871), orange the second (20838). The same colors are used in the map markers and comparison bars.
Where does this data come from?
Data is from the U.S. Census Bureau and other federal sources. See our Methodology page for details.
How can I compare other ZIP codes?
From any ZIP page, use the "Compare with Another ZIP" tool, or go to /compare/XXXXX-vs-YYYYY (replace with two 5-digit ZIP codes).

Continue exploring