Skip to content
Live demo
A 3D map of ZIP Code 22840’s census tracts, with each tract raised and lightened by its median household income.

ZIP Code 22840, McGaheysville, Virginia · population, demographics and census data

Home to 5,239 people, the 348th largest of Virginia’s 886 ZIP codes.

Population
5,239 ±686. Rank 348 of 886 in Virginia
Median household income
$95,667 ±$19,200. Virginia $93,170 · US $80,734
Median age
47.2 ±7.9. Virginia 39.0 · US 38.9

ACS 2020–2024 5-year estimates, U.S. Census Bureau

About ZIP Code 22840

ZIP Code 22840’s median household income is $95,667 (±$19,200), about the same as Virginia ($93,170) but not statistically different from the US ($80,734), and its median age is 47.2 (±7.9), according to the ACS 2020–2024 5-year estimates.

With 5,239 residents, treat these as rough estimates. The survey reaches only a sample of households, so a small place’s figures can swing widely from year to year, and small differences may not mean much.

± is each figure’s margin of error, at 90% confidence, and † marks one too uncertain to lean on. Under each percentage in the tables is the number it counts. How the margins are worked out.

ZCTA 22840

Highlights

What stands out in ZIP Code 22840

The numbers where ZIP Code 22840 sits furthest from Virginia and the nation, or past a recognized policy benchmark.

Past a policy benchmark

  • +14 points

    High

    Rent growth ahead of income

    After inflation, rent grew 16% from 2010–2014 to 2020–2024, and household income 3%. The dots show rent growth.

Furthest from the national picture

  • 14.5%

    Very low

    Households that rent

    That’s lower than both Virginia (32.7%) and the US (34.8%).

  • 47.2

    Higher than the US

    Median age

    That’s higher than both Virginia (39.0) and the US (38.9).

  • 49.7%

    Higher than the US

    Bachelor’s degree or more

    That’s higher than both Virginia (42.2%) and the US (35.7%).

  • 0.0%

    Very low

    Take public transit

    That’s lower than both Virginia (2.6%) and the US (3.5%).

  • 23.7%

    Lower than the US

    Commute 30 minutes or more

    That’s lower than both Virginia (39.6%) and the US (37.4%). It’s the 92nd lowest of 647 Virginia ZIP codes.

2010–2014 to 2020–2024

How ZIP Code 22840 changed in ten years

The ZIP code added 122 people. It got older, more foreign-born and better educated, and poverty rose 0.7 points.

Population, change since 2010–14

+2.4% in the ZIP code, +6.4% in Virginia and +6.6% in the US.

Source: ACS 5-year, 2010–14 to 2020–24, table A00001.

Show data
Population, change since 2010–14, ZIP Code 22840. Source: ACS 5-year, 2010–14 to 2020–24, table A00001.
ZIP Code 22840VirginiaUnited States
2010–140.0%0.0%0.0%
2011–15−5.2%+0.9%+0.8%
2012–16−10.8%+1.5%+1.4%
2013–17−14.9%+2.2%+2.2%
2014–18−14.7%+2.8%+2.8%
2015–19−8.6%+3.3%+3.4%
2016–20−1.0%+4.0%+4.0%
2017–21−8.3%+4.9%+5.0%
2018–22−4.6%+5.4%+5.4%
2019–23+2.2%+5.8%+5.8%
2020–24+2.4%+6.4%+6.6%
Embed

Median household income, in 2024 dollars

+2.9% in the ZIP code, +8.3% in Virginia and +13.7% in the US.

Source: ACS 5-year, 2010–14 to 2020–24, table A14006.

Show data
Median household income, in 2024 dollars, ZIP Code 22840. Source: ACS 5-year, 2010–14 to 2020–24, table A14006.
ZIP Code 22840VirginiaUnited States
2010–14$92,951$86,036$71,018
2011–15$95,801$86,184$71,435
2012–16$92,810$86,570$72,401
2013–17$93,606$88,100$73,862
2014–18$92,811$89,503$75,407
2015–19$95,731$91,176$77,198
2016–20$94,322$92,692$78,856
2017–21$95,472$93,445$80,006
2018–22$97,210$93,517$80,548
2019–23$96,329$93,647$80,845
2020–24$95,667$93,170$80,734
Embed

Living in poverty

+0.7 points in the ZIP code, −1.6 points in Virginia and −3.1 points in the US.

Source: ACS 5-year, 2010–14 to 2020–24, table A13004.

Show data
Living in poverty, ZIP Code 22840. Source: ACS 5-year, 2010–14 to 2020–24, table A13004.
ZIP Code 22840VirginiaUnited States
2010–144.6%11.5%15.6%
2011–157.8%11.5%15.5%
2012–167.1%11.4%15.1%
2013–179.6%11.2%14.6%
2014–1811.9%10.9%14.1%
2015–1910.6%10.6%13.4%
2016–207.6%10.0%12.8%
2017–216.9%9.9%12.6%
2018–226.5%10.0%12.5%
2019–236.6%9.9%12.4%
2020–245.3%9.9%12.5%
Embed

Bachelor’s degree or more

+14.3 points in the ZIP code, +6.4 points in Virginia and +6.4 points in the US.

Source: ACS 5-year, 2010–14 to 2020–24, table A12001.

Show data
Bachelor’s degree or more, ZIP Code 22840. Source: ACS 5-year, 2010–14 to 2020–24, table A12001.
ZIP Code 22840VirginiaUnited States
2010–1435.5%35.8%29.3%
2011–1534.9%36.3%29.8%
2012–1636.4%36.9%30.3%
2013–1742.0%37.6%30.9%
2014–1841.6%38.2%31.5%
2015–1942.2%38.8%32.1%
2016–2044.8%39.5%32.9%
2017–2149.2%40.3%33.7%
2018–2246.3%41.0%34.3%
2019–2345.3%41.5%35.0%
2020–2449.7%42.2%35.7%
Embed

Median gross rent, in 2024 dollars

+16.4% in the ZIP code, +7.3% in Virginia and +15.6% in the US.

Source: ACS 5-year, 2010–14 to 2020–24, table A18009.

Show data
Median gross rent, in 2024 dollars, ZIP Code 22840. Source: ACS 5-year, 2010–14 to 2020–24, table A18009.
ZIP Code 22840VirginiaUnited States
2010–14$1,242$1,471$1,222
2011–15$1,255$1,479$1,230
2012–16$1,374$1,485$1,242
2013–17$1,566$1,494$1,258
2014–18$1,610$1,503$1,279
2015–19$1,529$1,516$1,305
2016–20$1,469$1,525$1,330
2017–21$1,663$1,537$1,348
2018–22$1,644$1,543$1,359
2019–23$1,581$1,558$1,388
2020–24$1,446$1,579$1,413
Embed

Median home value, in 2024 dollars

+22.7% in the ZIP code, +18.7% in Virginia and +42.6% in the US.

Source: ACS 5-year, 2010–14 to 2020–24, table A10036.

Show data
Median home value, in 2024 dollars, ZIP Code 22840. Source: ACS 5-year, 2010–14 to 2020–24, table A10036.
ZIP Code 22840VirginiaUnited States
2010–14$311,653$323,338$233,308
2011–15$314,696$324,771$236,751
2012–16$306,632$325,085$241,720
2013–17$308,120$327,722$247,905
2014–18$315,170$331,304$256,264
2015–19$324,057$335,481$267,181
2016–20$342,750$343,114$278,810
2017–21$341,949$342,528$283,875
2018–22$367,320$364,212$302,152
2019–23$366,150$371,297$312,314
2020–24$382,500$383,700$332,700
Embed

ACS 5-year estimates. Each point is the five years ending then, and neighboring points share years. Dollar values are in 2024 dollars. The Census Bureau redraws ZIP Code Tabulation Areas for each census, last for 2020, so part of a change can be a new boundary rather than new people.

ZIP Code 22840 in 2010–2014 and 2020–2024
Indicator2010–20142020–2024ChangeVirginia’s change
Population5,1175,239+2.4%+6.4%
Median age39.347.2+7.9 years+1.4 years
65 and over14.4%21.1%+6.7 points+3.7 points
Born outside the US1.4%13.9%+12.5 points+1.5 points
Hispanic or Latino4.0%21.7%+17.7 points+2.6 points
Median household income$92,951$95,667+2.9%+8.3%
Living in poverty4.6%5.3%+0.7 points−1.6 points
Bachelor’s degree or more35.5%49.7%+14.3 points+6.4 points
Households that rent18.1%14.5%−3.6 points−0.7 points
Median gross rent$1,242$1,446+16.4%+7.3%
Median home value$311,653$382,500+22.7%+18.7%

1 census tract

ZIP Code 22840 on the map

ZIP Code 22840 is smaller than a census tract, the smallest area these figures reach, so the map shows the tract it sits in, with the land around it.

A map of ZIP Code 22840’s 1 census tracts, shaded by median household income, lighter where incomes are higher.
Median household income, by census tract, American Community Survey 2020–2024 5-year estimates. Boundaries, roads and water: Social Explorer.

People

Who lives in ZIP Code 22840

An older ZIP code than Virginia (39.0) or the US (38.9), with a median age of 47.2. 13.9% of residents were born outside the US, and 22.1% speak a language other than English at home.

Age

Source: ACS 2020–2024 5-year, table A01001.

Show data
Age, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A01001.
ZIP Code 22840VirginiaUnited States
Under 18
20.6% ±4.3%
, number 1,081 ±265
21.7% ±0.1%
, number 1,890,833 ±6,550
22.0% ±<0.1%
, number 73,517,834 ±38,890
18 to 24
4.7% ±2.2%
, number 247 ±119
9.3% ±0.1%
, number 806,659 ±5,420
9.1% ±<0.1%
, number 30,597,362 ±37,780
25 to 34
12.1% ±3.0%
, number 634 ±178
13.5% ±<0.1%
, number 1,173,927 ±2,161
13.7% ±<0.1%
, number 45,806,540 ±10,200
35 to 44
11.3% ±2.5%
, number 593 ±152
13.6% ±0.1%
, number 1,181,277 ±6,617
13.2% ±<0.1%
, number 44,237,292 ±43,510
45 to 54
11.5% ±2.4%
, number 605 ±149
12.5% ±<0.1%
, number 1,084,566 ±2,054
12.2% ±<0.1%
, number 40,743,799 ±8,564
55 to 64
18.6% ±4.6%
, number 973 ±274
12.8% ±0.1%
, number 1,114,165 ±6,417
12.7% ±<0.1%
, number 42,386,044 ±41,500
65 to 74
13.2% ±2.3%
, number 694 ±152
9.9% ±0.1%
, number 861,272 ±5,727
10.2% ±<0.1%
, number 34,092,907 ±38,800
75 and over
7.9% ±2.7%
, number 412 ±151
6.8% ±0.1%
, number 592,471 ±4,769
7.0% ±<0.1%
, number 23,540,721 ±31,560
Embed

Race and ethnicity

Source: ACS 2020–2024 5-year, table A04001.

Show data
Race and ethnicity, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A04001.
ZIP Code 22840VirginiaUnited States
White, not Hispanic
70.8% ±12.7%
, number 3,711 ±454
58.4% ±<0.1%
, number 5,079,778 ±4,083
57.4% ±<0.1%
, number 192,214,378 ±30,950
Hispanic or Latino
21.7% ±8.6%
, number 1,138 ±476
11.0% ±<0.1%
, number 959,089 ±187
19.3% ±<0.1%
, number 64,759,370 ±1,547
Black, not Hispanic
1.5% ±1.1%
, number 81 ±59
18.3% ±0.1%
, number 1,589,523 ±5,578
11.9% ±<0.1%
, number 39,896,127 ±46,710
Asian, not Hispanic
4.3% ±4.0%
, number 225 ±214
6.9% ±<0.1%
, number 599,863 ±3,420
5.9% ±<0.1%
, number 19,678,814 ±22,770
Other or multiracial
1.6% ±1.5%
, number 84 ±79
5.5% ±0.1%
, number 476,917 ±7,631
5.5% ±<0.1%
, number 18,373,810 ±69,180
Embed

Language spoken at home

Source: ACS 2020–2024 5-year, table C16001.

Show data
Language spoken at home, ZIP Code 22840. Source: ACS 2020–2024 5-year, table C16001.
ZIP Code 22840VirginiaUnited States
English only
77.9% ±2.7%
, number 3,901 ±538
82.6% ±0.1%
, number 6,782,809 ±11,100
77.7% ±0.1%
, number 245,767,039 ±221,000
Spanish
15.0% ±6.2%
, number 753 ±325
7.9% ±0.1%
, number 649,137 ±5,862
13.6% ±<0.1%
, number 42,869,908 ±143,800
Other Indo-European
6.0% ±4.7%
, number 301 ±239
3.9% ±0.1%
, number 319,101 ±7,913
3.9% ±<0.1%
, number 12,249,474 ±54,760
Asian and Pacific Island
0.4% ±1.0%
, number 19 ±49
3.8% ±0.1%
, number 311,774 ±6,239
3.6% ±<0.1%
, number 11,320,253 ±40,030
Arabic and other
0.7% ±1.0%
, number 36 ±51
1.9% ±0.1%
, number 152,889 ±5,231
1.2% ±<0.1%
, number 3,935,874 ±33,550
Embed

Marital status

Source: ACS 2020–2024 5-year, table A11001.

Show data
Marital status, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A11001.
ZIP Code 22840VirginiaUnited States
Now married
66.1% ±11.7%
, number 2,912 ±349
49.4% ±0.2%
, number 3,531,761 ±13,530
47.8% ±0.1%
, number 131,199,078 ±272,700
Never married
19.2% ±4.3%
, number 844 ±217
33.2% ±0.2%
, number 2,375,808 ±10,730
34.4% ±0.1%
, number 94,480,845 ±211,900
Divorced
7.5% ±2.4%
, number 330 ±115
10.0% ±0.1%
, number 717,702 ±6,906
10.6% ±<0.1%
, number 29,074,059 ±73,390
Widowed
5.1% ±2.6%
, number 223 ±117
5.5% ±0.1%
, number 390,818 ±4,115
5.6% ±<0.1%
, number 15,250,943 ±26,710
Separated
2.1% ±2.2%
, number 94 ±98
1.9% ±<0.1%
, number 132,919 ±3,430
1.7% ±<0.1%
, number 4,592,038 ±29,170
Embed

Where people lived a year ago

Source: ACS 2020–2024 5-year, table A08001.

Show data
Where people lived a year ago, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A08001.
ZIP Code 22840VirginiaUnited States
Same home
86.1% ±1.3%
, number 4,454 ±584
86.9% ±0.1%
, number 7,489,574 ±12,240
87.7% ±0.1%
, number 290,692,803 ±173,800
Same county
3.3% ±3.0%
, number 170 ±158
4.6% ±0.1%
, number 393,360 ±8,477
6.3% ±<0.1%
, number 20,792,831 ±117,600
Another county in the state
9.7% ±6.8%
, number 504 ±360
4.7% ±0.1%
, number 407,917 ±7,415
3.1% ±<0.1%
, number 10,316,864 ±51,200
Another state
0.6% ±0.6%
, number 31 ±33
3.1% ±0.1%
, number 266,225 ±6,350
2.3% ±<0.1%
, number 7,577,400 ±40,570
Another country
0.3% ±0.4%
, number 14 ±20
0.7% ±<0.1%
, number 58,897 ±2,443
0.6% ±<0.1%
, number 2,060,087 ±23,560
Embed

Top countries of birth, among those born abroad

Source: ACS 2020–2024 5-year, table A07001.

Show data
Top countries of birth, among those born abroad, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A07001.
ZIP Code 22840
Pakistan24.3%
, number 177
Spain21.0%
, number 153
Mexico13.2%
, number 96
El Salvador9.8%
, number 71
Jamaica6.0%
, number 44
Israel4.9%
, number 36
Embed
All the numbers
People: ZIP Code 22840 compared with Virginia and the United States
IndicatorZIP Code 22840VirginiaUSRank in Virginia*Table
Population
5,239 ±686
8,705,170
334,922,499
348thA00001
People per square mile
167 ±22
220
95
276thA00002
Land area (square miles)
31
–
–
–A00002
Median age
47.2 ±7.9
39.0 ±0.1
38.9 ±0.1
175thA01004
Under 18
20.6% ±4.3%
, number 1,081 ±265
21.7% ±0.1%
, number 1,890,833 ±6,550
22.0% ±<0.1%
, number 73,517,834 ±38,890
316thB02002
65 and over
21.1% ±3.0%
, number 1,106 ±215
16.7% ±0.1%
, number 1,453,743 ±7,453
17.2% ±<0.1%
, number 57,633,628 ±50,010
265thB02002
Born outside the US
13.9% ±5.7%
, number 728 ±313
13.1% ±0.1%
, number 1,142,826 ±10,360
14.1% ±<0.1%
, number 47,349,078 ±143,600
92ndA06001
Speak a language other than English at home
22.1% ±2.7%
, number 1,109 ±409
17.4% ±0.1%
, number 1,432,901 ±12,780
22.3% ±0.1%
, number 70,375,509 ±162,500
84thC16001
Veterans (adults)
9.4% ±3.9%
, number 392 ±168
9.4% ±0.1%
, number 629,500 ±6,297
6.2% ±<0.1%
, number 16,185,883 ±45,250
261stA16002
Living with a disability
12.7% ±3.1%
, number 664 ±184
12.5% ±0.1%
, number 1,058,925 ±7,711
13.3% ±<0.1%
, number 43,869,797 ±68,920
390thB18101
Women 15–50 who had a baby in the past year
9.8%† (too uncertain to lean on) ±6.5%
, number 123 ±86
5.0% ±0.1%
, number 102,021 ±2,978
5.1% ±<0.1%
, number 4,009,203 ±20,900
68thB13002
Lived in the same home a year ago
86.1% ±1.3%
, number 4,454 ±584
86.9% ±0.1%
, number 7,489,574 ±12,240
87.7% ±0.1%
, number 290,692,803 ±173,800
499thA08001
White, not Hispanic
70.8% ±12.7%
, number 3,711 ±454
58.4% ±<0.1%
, number 5,079,778 ±4,083
57.4% ±<0.1%
, number 192,214,378 ±30,950
345thA04001
Hispanic or Latino
21.7% ±8.6%
, number 1,138 ±476
11.0% ±<0.1%
, number 959,089 ±187
19.3% ±<0.1%
, number 64,759,370 ±1,547
31stA04001
Black, not Hispanic
1.5%† (too uncertain to lean on) ±1.1%
, number 81 ±59
18.3% ±0.1%
, number 1,589,523 ±5,578
11.9% ±<0.1%
, number 39,896,127 ±46,710
532ndA04001
Asian, not Hispanic
4.3%† (too uncertain to lean on) ±4.0%
, number 225 ±214
6.9% ±<0.1%
, number 599,863 ±3,420
5.9% ±<0.1%
, number 19,678,814 ±22,770
134thA04001

*1 is the highest. Population is ranked among all ZIP codes, and the rest among those of 1,000 people or more, whose figures can be ranked. Ranks use 5-year estimates, the only ones covering every ZIP code, so they can differ slightly from the figures here.

Income and work

Income and work

The median household income is $95,667, about the same as Virginia ($93,170) but not statistically different from the US ($80,734). 5.3% of people live in poverty, and 8.7% have no health insurance, about the same as both Virginia (6.9%) and the US (8.4%).

Household income

Source: ACS 2020–2024 5-year, table A14001.

Show data
Household income, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A14001.
ZIP Code 22840VirginiaUnited States
Under $25,000
8.4% ±4.2%
, number 176 ±91
12.2% ±0.2%
, number 410,091 ±5,181
14.6% ±<0.1%
, number 18,908,588 ±41,540
$25,000 to $49,999
7.5% ±3.3%
, number 158 ±71
14.5% ±0.2%
, number 488,699 ±5,511
16.7% ±<0.1%
, number 21,624,902 ±39,130
$50,000 to $74,999
19.5% ±6.1%
, number 410 ±137
14.3% ±0.2%
, number 482,882 ±5,411
15.5% ±<0.1%
, number 20,031,683 ±36,850
$75,000 to $99,999
16.0% ±5.9%
, number 336 ±131
12.1% ±0.1%
, number 406,430 ±5,058
12.6% ±<0.1%
, number 16,319,799 ±42,700
$100,000 to $149,999
21.8% ±6.1%
, number 458 ±140
18.1% ±0.2%
, number 608,280 ±6,273
17.5% ±<0.1%
, number 22,670,921 ±58,280
$150,000 to $199,999
6.7% ±3.2%
, number 141 ±70
11.1% ±0.1%
, number 374,192 ±4,998
9.6% ±<0.1%
, number 12,405,370 ±57,560
$200,000 or more
20.0% ±7.9%
, number 419 ±173
17.7% ±0.2%
, number 595,158 ±5,645
13.4% ±0.1%
, number 17,266,233 ±82,370
Embed

What residents do for work

Source: ACS 2020–2024 5-year, table A17004.

Show data
What residents do for work, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A17004.
ZIP Code 22840VirginiaUnited States
Education and health care
31.4% ±8.0%
, number 838 ±246
22.3% ±0.2%
, number 953,943 ±8,521
23.5% ±0.1%
, number 37,913,663 ±133,200
Manufacturing
13.8% ±4.8%
, number 369 ±140
7.0% ±0.1%
, number 301,486 ±4,704
9.9% ±<0.1%
, number 15,940,000 ±38,890
Retail trade
12.2% ±4.2%
, number 326 ±121
9.8% ±0.1%
, number 418,737 ±5,943
10.8% ±<0.1%
, number 17,456,908 ±41,100
Professional and business services
9.7% ±6.1%
, number 259 ±166
16.8% ±0.2%
, number 717,826 ±7,961
12.6% ±<0.1%
, number 20,282,450 ±59,650
Arts, food and lodging
9.0% ±2.9%
, number 241 ±85
7.9% ±0.1%
, number 339,323 ±4,855
8.7% ±<0.1%
, number 13,952,453 ±52,980
Transportation and warehousing
5.0% ±3.7%
, number 134 ±101
4.8% ±0.1%
, number 205,054 ±3,937
5.9% ±<0.1%
, number 9,568,767 ±29,300
Finance, insurance and real estate
5.0% ±3.5%
, number 132 ±95
6.5% ±0.1%
, number 278,869 ±4,896
6.7% ±<0.1%
, number 10,783,159 ±41,000
Construction
4.7% ±2.2%
, number 126 ±61
6.5% ±0.1%
, number 278,335 ±5,573
6.9% ±<0.1%
, number 11,167,040 ±57,000
Embed

Where workers come from and go

ZIP Code 22840 has 1,927 jobs and 2,519 employed residents. 1,675 people commute in to work and 2,267 commute out, while 252 both live and work here. The most commuters come from 22827.

Jobs in the ZIP code1,927
Employed residents2,519

Most commuters come from

  • 22827: 343
  • 22801: 253
  • 22802: 189

Most residents commute to

  • 22801: 604
  • 22827: 167
  • 22802: 155
Source: LEHD LODES 2023.
Show data
Who works here, and who commutes, ZIP Code 22840. Source: LEHD LODES 2023.
ZIP Code 22840
Live and work here252
Work here, live elsewhere1,675
Live here, work elsewhere2,267
Embed
All the numbers
Income and work: ZIP Code 22840 compared with Virginia and the United States
IndicatorZIP Code 22840VirginiaUSRank in Virginia*Table
Median household income
$95,667 ±$19,200
$93,170 ±$458
$80,734 ±$166
202ndA14006
Income per person
$69,022 ±$20,960
$50,666 ±$254
$44,673 ±$122
67thA14024
Income inequality (Gini index)
0.523 ±0.074
0.471 ±0.002
0.483
26thA14028
Living in poverty
5.3% ±2.3%
, number 276 ±124
9.9% ±0.2%
, number 837,363 ±13,900
12.5% ±0.1%
, number 40,735,661 ±275,900
506thA13004
Unemployment rate
1.5%† (too uncertain to lean on) ±1.3%
, number 40 ±35
4.3% ±0.1%
, number 190,525 ±4,836
5.2% ±<0.1%
, number 8,902,365 ±38,980
539thA17005
No health insurance
8.7% ±3.0%
, number 456 ±168
6.9% ±0.1%
, number 586,299 ±8,804
8.4% ±<0.1%
, number 27,734,911 ±158,900
155thA20001

*1 is the highest. Population is ranked among all ZIP codes, and the rest among those of 1,000 people or more, whose figures can be ranked. Ranks use 5-year estimates, the only ones covering every ZIP code, so they can differ slightly from the figures here.

Education

More college degrees than the US

49.7% of adults 25 and over have a bachelor’s degree or more, higher than both Virginia (42.2%) and the US (35.7%).

Highest level of education

Source: ACS 2020–2024 5-year, table A12001.

Show data
Highest level of education, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A12001.
ZIP Code 22840VirginiaUnited States
Less than high school
6.3% ±2.8%
, number 246 ±113
8.4% ±0.1%
, number 506,620 ±6,103
10.4% ±<0.1%
, number 23,992,410 ±82,490
High school only
23.4% ±3.7%
, number 914 ±185
23.9% ±0.2%
, number 1,434,927 ±12,540
26.0% ±0.1%
, number 60,094,716 ±262,500
Some college
20.6% ±3.3%
, number 806 ±164
25.5% ±0.2%
, number 1,533,241 ±12,060
27.9% ±0.1%
, number 64,356,961 ±143,900
Bachelor’s degree
25.2% ±4.6%
, number 987 ±219
23.7% ±0.2%
, number 1,421,903 ±10,360
21.6% ±0.1%
, number 49,868,171 ±191,400
Graduate degree
24.5% ±6.5%
, number 958 ±281
18.5% ±0.2%
, number 1,110,987 ±9,881
14.1% ±0.1%
, number 32,495,045 ±159,600
Embed
All the numbers
Education: ZIP Code 22840 compared with Virginia and the United States
IndicatorZIP Code 22840VirginiaUSRank in Virginia*Table
Bachelor’s degree or more
49.7% ±6.7%
, number 1,945 ±356
42.2% ±0.2%
, number 2,532,890 ±14,310
35.7% ±0.1%
, number 82,363,216 ±249,200
120thA12001
High school graduate or more
93.7% ±16.1%
, number 3,665 ±434
91.6% ±0.4%
, number 5,501,058 ±22,530
89.6% ±0.2%
, number 206,814,893 ±389,500
209thA12001

*1 is the highest. Population is ranked among all ZIP codes, and the rest among those of 1,000 people or more, whose figures can be ranked. Ranks use 5-year estimates, the only ones covering every ZIP code, so they can differ slightly from the figures here.

Housing

Home values outran incomes

14.5% of households rent, lower than both Virginia (32.7%) and the US (34.8%). The median home is worth $382,500 and the median rent is $1,446. After inflation, home values rose 23% from 2010–2014 to 2020–2024, while household income rose 3%.

Housing costs and income, 2010–2014 to 2020–2024, after inflation

Source: ACS 5-year, table A10036, A18009, A14006.

Show data
Housing costs and income, 2010–2014 to 2020–2024, after inflation, ZIP Code 22840. Source: ACS 5-year, table A10036, A18009, A14006.
ZIP Code 22840VirginiaUnited States
Median home value+22.7%+18.7%+42.6%
Median rent+16.4%+7.3%+15.6%
Median household income+2.9%+8.3%+13.7%
Embed

Types of homes

Source: ACS 2020–2024 5-year, table A10032.

Show data
Types of homes, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A10032.
ZIP Code 22840VirginiaUnited States
Single-family, detached
67.8% ±5.2%
, number 2,263 ±282
61.3% ±0.2%
, number 2,256,932 ±6,910
61.3% ±0.1%
, number 88,075,458 ±149,800
Single-family, attached
27.6% ±5.9%
, number 921 ±218
11.3% ±0.1%
, number 417,697 ±4,382
6.2% ±<0.1%
, number 8,955,086 ±33,580
2 to 4 units
0.7% ±0.7%
, number 23 ±25
4.5% ±0.1%
, number 166,132 ±3,411
7.7% ±<0.1%
, number 11,031,346 ±42,810
5 to 19 units
0.4% ±0.8%
, number 12 ±27
9.7% ±0.1%
, number 356,579 ±5,095
8.8% ±<0.1%
, number 12,625,154 ±51,990
20 or more units
1.3% ±2.1%
, number 44 ±71
8.9% ±0.1%
, number 327,457 ±4,262
10.3% ±<0.1%
, number 14,859,547 ±31,000
Mobile homes and other
2.2% ±1.8%
, number 73 ±60
4.3% ±0.1%
, number 159,959 ±2,989
5.7% ±<0.1%
, number 8,228,764 ±48,580
Embed

When homes were built

Source: ACS 2020–2024 5-year, table A10055.

Show data
When homes were built, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A10055.
ZIP Code 22840VirginiaUnited States
2010 or later
20.2% ±9.0%
, number 423 ±195
11.8% ±0.1%
, number 398,689 ±4,820
11.6% ±<0.1%
, number 14,996,534 ±51,640
2000 to 2009
23.6% ±4.6%
, number 495 ±115
15.2% ±0.2%
, number 510,736 ±5,699
13.8% ±<0.1%
, number 17,865,859 ±70,250
1980 to 1999
32.8% ±7.6%
, number 689 ±181
30.6% ±0.2%
, number 1,028,660 ±8,110
25.3% ±<0.1%
, number 32,758,140 ±75,080
1960 to 1979
12.2% ±3.5%
, number 257 ±80
24.2% ±0.2%
, number 813,270 ±6,608
23.9% ±<0.1%
, number 30,938,809 ±78,560
Before 1960
11.2% ±4.9%
, number 234 ±106
18.3% ±0.2%
, number 614,377 ±6,365
25.3% ±<0.1%
, number 32,668,154 ±83,060
Embed
All the numbers
Housing: ZIP Code 22840 compared with Virginia and the United States
IndicatorZIP Code 22840VirginiaUSRank in Virginia*Table
Housing units
3,336 ±327
–
–
–A10001
Households
2,098 ±260
–
–
–A10008
People per household
2.50 ±0.23
2.52 ±0.01
2.53 ±0.01
268thA10003
Households that rent
14.5% ±5.5%
, number 305 ±122
32.7% ±0.2%
, number 1,099,123 ±8,702
34.8% ±0.1%
, number 45,017,354 ±163,600
486thA10060
Vacant homes
37.1% ±5.3%
, number 1,238 ±214
8.7% ±0.2%
, number 319,024 ±7,226
10.1% ±0.1%
, number 14,547,859 ±200,400
24thA10047, A10060
Median gross rent
$1,446 ±$331
$1,579 ±$8
$1,413 ±$2
186thA18009
Median home value
$382,500 ±$24,000
$383,700 ±$1,024
$332,700 ±$236
203rdA10036
Renters paying 30% or more of income
57.7% ±25.5%
, number 176 ±105
45.3% ±0.5%
, number 497,919 ±6,790
47.6% ±0.2%
, number 21,422,415 ±63,960
51stA18002
Owners paying 30% or more of income
18.7% ±7.2%
, number 335 ±137
20.3% ±0.2%
, number 460,791 ±5,132
22.5% ±0.1%
, number 18,961,895 ±39,930
320thA10040
Homes built before 1960
11.2% ±4.9%
, number 234 ±106
18.3% ±0.2%
, number 614,377 ±6,365
25.3% ±<0.1%
, number 32,668,154 ±83,060
460thA10055

*1 is the highest. Population is ranked among all ZIP codes, and the rest among those of 1,000 people or more, whose figures can be ranked. Ranks use 5-year estimates, the only ones covering every ZIP code, so they can differ slightly from the figures here.

Getting around

A driving ZIP code with short commutes

81.8% of workers drive alone and 7.6% work from home. 23.7% of those who travel to work spend 30 minutes or more getting there.

How people get to work

Source: ACS 2020–2024 5-year, table A09005.

Show data
How people get to work, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A09005.
ZIP Code 22840VirginiaUnited States
Drive alone
81.8% ±3.9%
, number 2,161 ±335
67.6% ±0.2%
, number 2,924,214 ±10,230
68.8% ±0.1%
, number 109,447,738 ±95,800
Carpool
9.8% ±5.6%
, number 259 ±152
8.0% ±0.1%
, number 347,329 ±5,647
8.5% ±<0.1%
, number 13,569,614 ±52,500
Public transit
0.0% ±1.0%
, number 0 ±27
2.6% ±0.1%
, number 110,727 ±2,938
3.5% ±<0.1%
, number 5,573,279 ±22,170
Walk
0.3% ±0.5%
, number 9 ±14
2.1% ±0.1%
, number 89,149 ±2,466
2.4% ±<0.1%
, number 3,772,609 ±17,080
Work from home
7.6% ±2.5%
, number 202 ±72
18.3% ±0.2%
, number 793,064 ±7,760
15.1% ±<0.1%
, number 24,042,489 ±82,860
Other
0.4% ±1.2%
, number 10 ±31
1.5% ±0.1%
, number 63,180 ±2,405
1.7% ±<0.1%
, number 2,708,365 ±17,940
Embed

Time spent getting to work

Source: ACS 2020–2024 5-year, table B09001.

Show data
Time spent getting to work, ZIP Code 22840. Source: ACS 2020–2024 5-year, table B09001.
ZIP Code 22840VirginiaUnited States
Under 10 minutes
10.3% ±3.9%
, number 251 ±104
10.5% ±0.1%
, number 370,356 ±5,165
12.7% ±<0.1%
, number 17,153,542 ±40,730
10 to 19 minutes
33.6% ±8.4%
, number 819 ±242
27.9% ±0.2%
, number 986,094 ±7,851
28.7% ±<0.1%
, number 38,741,521 ±54,980
20 to 29 minutes
32.5% ±9.1%
, number 792 ±255
22.1% ±0.2%
, number 780,158 ±7,060
21.3% ±<0.1%
, number 28,723,420 ±52,330
30 to 39 minutes
10.8% ±4.8%
, number 263 ±123
17.8% ±0.2%
, number 630,392 ±7,115
16.9% ±<0.1%
, number 22,853,044 ±46,230
40 to 59 minutes
7.2% ±3.5%
, number 176 ±90
12.8% ±0.2%
, number 454,073 ±5,677
11.9% ±<0.1%
, number 16,024,037 ±44,090
60 minutes or more
5.7% ±3.7%
, number 138 ±92
8.9% ±0.1%
, number 313,526 ±4,247
8.6% ±<0.1%
, number 11,576,041 ±36,550
Embed

Vehicles per household

Source: ACS 2020–2024 5-year, table A10030.

Show data
Vehicles per household, ZIP Code 22840. Source: ACS 2020–2024 5-year, table A10030.
ZIP Code 22840VirginiaUnited States
None
3.2% ±3.0%
, number 67 ±64
6.1% ±0.1%
, number 205,185 ±3,852
8.4% ±<0.1%
, number 10,793,323 ±36,450
One
19.2% ±6.3%
, number 402 ±142
31.1% ±0.2%
, number 1,047,910 ±8,588
33.1% ±0.1%
, number 42,801,892 ±122,600
Two
44.5% ±6.9%
, number 933 ±185
37.3% ±0.3%
, number 1,253,775 ±10,100
36.6% ±0.1%
, number 47,334,152 ±191,100
Three or more
33.2% ±8.2%
, number 696 ±192
25.5% ±0.2%
, number 858,862 ±6,822
21.9% ±0.1%
, number 28,298,129 ±85,940
Embed
All the numbers
Getting around: ZIP Code 22840 compared with Virginia and the United States
IndicatorZIP Code 22840VirginiaUSRank in Virginia*Table
Drive to work alone
81.8% ±3.9%
, number 2,161 ±335
67.6% ±0.2%
, number 2,924,214 ±10,230
68.8% ±0.1%
, number 109,447,738 ±95,800
154thA09005
Take public transit
0.0%† (too uncertain to lean on) ±1.0%
, number 0 ±27
2.6% ±0.1%
, number 110,727 ±2,938
3.5% ±<0.1%
, number 5,573,279 ±22,170
363rdA09005
Work from home
7.6% ±2.5%
, number 202 ±72
18.3% ±0.2%
, number 793,064 ±7,760
15.1% ±<0.1%
, number 24,042,489 ±82,860
479thA09005
Commute 30 minutes or more
23.7% ±6.3%
, number 577 ±178
39.6% ±0.3%
, number 1,397,991 ±10,040
37.4% ±<0.1%
, number 50,453,122 ±73,600
556thB09001
Households with no vehicle
3.2%† (too uncertain to lean on) ±2.3%
, number 67 ±49
6.1% ±0.1%
, number 205,185 ±3,836
8.4% ±<0.1%
, number 10,793,323 ±27,220
408thA10030

*1 is the highest. Population is ranked among all ZIP codes, and the rest among those of 1,000 people or more, whose figures can be ranked. Ranks use 5-year estimates, the only ones covering every ZIP code, so they can differ slightly from the figures here.

Places

In and around ZIP Code 22840

Population, from the latest estimates available. Figures cover the whole of each place.

Places nearby

Its county

ZIP codes like this one

ZIP codes at least a third this size, with the closest income, education, age, housing and origins.

Turn ZIP Code 22840 into your planning report.

Social Explorer Studio builds an editable profile of any place, with tables and charts beside the county and state, and exports to Word, PDF and Excel.

Questions about ZIP Code 22840

What is the population of ZIP Code 22840?

5,239 people (±686), according to the ACS 2020–2024 5-year estimates. That’s the 348th largest of 886 ZIP codes in Virginia.

Is ZIP Code 22840 the same as the post office’s ZIP code?

Nearly. The Census Bureau draws ZIP Code Tabulation Areas from census blocks to match the Postal Service’s ZIP codes as closely as it can, since ZIP codes are mail routes rather than areas. These figures are for ZCTA 22840, which is centered in McGaheysville, and its edges can differ slightly from the mail route’s.

What county is ZIP Code 22840 in?

ZIP Code 22840 is in Rockingham County.

What is the median household income in ZIP Code 22840?

$95,667 (±$19,200), according to the ACS 2020–2024 5-year estimates, about the same as Virginia ($93,170) but not statistically different from the US ($80,734).

What is the median age in ZIP Code 22840?

47.2 years (±7.9), according to the ACS 2020–2024 5-year estimates, higher than both Virginia (39.0) and the US (38.9).

How much does housing cost in ZIP Code 22840?

ZIP Code 22840’s median home value is $382,500 (±$24,000) and its median gross rent is $1,446 (±$331) a month, according to the ACS 2020–2024 5-year estimates. 57.7% (±25.5%) of its renters pay 30% or more of their income on rent.

Where do people who work in ZIP Code 22840 live?

252 of its 1,927 jobs are held by people who live here. Of those who commute in, the most come from 22827, 22801, 22802.

Where does this census data come from?

The U.S. Census Bureau’s American Community Survey, through Social Explorer’s tables: the latest 1-year estimates where they exist, for the most recent numbers, and 5-year estimates otherwise. Each table lists its code, so you can find it again.

Is this data free to use?

Yes. You can read it, cite it, download the CSV and embed the charts, with no account. To map other variables, compare your own areas or build a report, see Social Explorer’s plans in a live demo.

Sources and how to cite

American Community Survey 2020–2024 5-year estimates, U.S. Census Bureau, from Social Explorer’s tables A00001, A00002, A01004, A04001, A06001, A08001, A09005, A10001, A10003, A10008, A10030, A10036, A10040, A10047, A10055, A10060, A12001, A13004, A14006, A14024, A14028, A16002, A17005, A18002, A18009, A20001, B02002, B09001, B13002, B18101, C16001. Maps by census tract use 2020–2024 5-year estimates, since the 1-year survey doesn’t cover tracts. Commuting: LEHD LODES 2023. These are estimates from a sample, each with its margin of error. Data retrieved November 14, 2026. How these profiles are made.

U.S. Census Bureau, American Community Survey 2020–2024 5-year estimates, via Social Explorer. “ZIP Code 22840.” https://www.socialexplorer.com/places/zip/22840. Accessed November 14, 2026.