Every ZIP code in the United States, with weather, radar, trivia and the numbers behind it. Five digits since 1963!

ZIP stands for Zone Improvement Plan. The codes went live on July 1, 1963.The lowest ZIP code is 00501 — the IRS in Holtsville, New York.The highest ZIP code is 99950, in Ketchikan, Alaska.Type 07734 into a calculator and turn it upside down: hELLO. It is Keansburg, New Jersey.12345 belongs to one company: General Electric in Schenectady, New York.The first digit is a region: 0 is New England and New Jersey, 9 is the West Coast, Alaska and Hawaii.Mr. ZIP, the cartoon mailman, was the mascot that sold the idea to America.ZIP+4 arrived in 1983 and can narrow a ZIP down to one side of one block.A ZIP code is a mail route, not a place: plenty of them cross county and even state lines.Play ZIP Hunt: guess the secret ZIP code of the day in six tries.
zipcodes.pro: ZIP/22840

22840

Updated

ZIP 22840 is McGaheysville, Virginia, in Rockingham County; area codes 540 and 826; Eastern time.

Type
Standard
Time zone
America/New_York
County
Rockingham
Metro area
Harrisonburg, VA
Population
5,239
Coordinates
38.3924, -78.7441
☼ Live from 22840 — McGaheysville, VA

Weather right now

Asking the National Weather Service…

NEXRAD radar
Finding the nearest radar…
Local time: —

Where 22840 is

Approximate ZIP boundary (Census ZCTA 2020). ZIP codes are mail routes, not areas, so the shape shown is the Census tabulation area that approximates it.

People and housing

Population5,239This ZIP5,239
Households2,098This ZIP2,098
Housing units3,336This ZIP3,336
Median age47.2This ZIP47.2Virginia39.0US 38.9
Median household income$95,667This ZIP$95,667Virginia$93,170US $80,734
Median home value$382,500This ZIP$382,500Virginia$383,700US $332,700
Median gross rent$1,446This ZIP$1,446Virginia$1,579US $1,413
Bachelor's degree or higher49.7%This ZIP49.7%
Mean commute23.3 minThis ZIP23.3 min
Population density166.8 / sq miThis ZIP166.8 / sq mi

How 22840 compares

22840 has the highest rents in Rockingham County: $1,446, against $857 in 22832 at the other end, among 13 ZIP codes ranked.

22840 has the largest share of college graduates in Rockingham County: 49.7%, against 4.6% in 22811 at the other end, among 17 ZIP codes ranked.

22840 ranked against the ZIP codes where people live in Rockingham County and Virginia
Measure 22840 Rank in county Above, in VA
Median household income $95,667 4th of 17 70%
Median home value $382,500 3rd of 17 70%
Median gross rent $1,446 1st of 13 68%
Population 5,239 7th of 18 59%
Median age 47.2 4th of 17 65%
Bachelor's degree or higher 49.7% 1st of 17 83%
People per square mile 167 4th of 18 64%

Rank in county is among the ZIP codes of Rockingham County, 1 being the highest; "Above, in VA" is the share of Virginia's ZIP codes with a lower figure. Both count only ZIP codes where people live (a Census tabulation area with 100 or more residents), each in the county most of its land lies in. Survey medians are ranked for ZIP codes of 200 or more residents.

Business and tax activity

Business establishments65This ZIP65
Employees1,943This ZIP1,943
Annual payroll$70,445,000This ZIP$70,445,000
Tax returns filed2,330This ZIP2,330
Total adjusted gross income$193,084,000This ZIP$193,084,000

Land area

Land area31.41 sq miThis ZIP31.41 sq mi
Water area0.20 sq miThis ZIP0.20 sq mi

Other place names in 22840

Census places whose land this ZIP code overlaps. The Postal Service may accept other city names in an address, too.

Neighbouring ZIP codes compared

The closest ZIP codes where people live, by distance between their centres.

ZIPTownDistance PopulationMedian income Median home
22840 McGaheysville, VA (this ZIP) — 5,239 $95,667 $382,500
22846 Penn Laird, VA 2.9 mi 1,496 $115,491 $450,000
22832 Keezletown, VA 4.6 mi 1,136 $64,766 $332,200
24471 Port Republic, VA 5.9 mi 1,768 $97,396 $395,500
22827 Elkton, VA 7.0 mi 10,529 $70,519 $252,500
22807 Harrisonburg, VA 7.4 mi 5,347 — —
22801 Harrisonburg, VA 7.4 mi 39,983 $72,067 $364,300

Other ZIP codes nearby

These serve PO boxes, a single organisation or a post office, so they have no residents to compare.

Find every ZIP code within 10 miles of 22840 →

★ Weird and wonderful facts about 22840
  • 🔢 Type 22840 into a pocket calculator and turn it upside down: OhBZZ — not quite a word, sorry.
  • 🏠 Its numerical neighbours: 22835 (Luray, VA, 25 mi away) and 22841 (Mount Crawford, VA, 9 mi away).
  • 🧭 Farther south than 56% of all ZIP codes, and farther east than 77%.
  • 🎯1,066 miles east of the geographic center of the Lower 48, near Lebanon, Kansas.
  • ☀Longest day of the year: 14h 51m of daylight. Shortest: 9h 29m.
  • 📏 At 31.4 square miles of land, 22840 is bigger than 47% of ZIP codes — room for about 24 Central Parks.
🌙 The sky over 22840 today
  • Working out the sun…
🌋 Shake report
  • Checking the USGS…

Source: USGS.

Questions about this ZIP code

Where is ZIP code 22840?

22840 is in McGaheysville, Virginia, in Rockingham County, part of the Harrisonburg, VA metropolitan area. Its published point location is 38.3924, -78.7441.

What county is 22840 in?

22840 lies in Rockingham County.

What area code is 22840?

McGaheysville uses area codes 540 and 826, from NANPA's telephone records.

What time zone is 22840 in?

22840 uses America/New_York.

How many people live in 22840?

About 5,239 people live in ZIP code 22840, in 2,098 households, at 166.8 people per square mile. These are American Community Survey 5-year estimates for the ZIP Code Tabulation Area, not a headcount.

What is the median household income in 22840?

$95,667 a year, against $93,170 across Virginia.

What ZIP codes are near 22840?

The closest where people live are 22846 (2.9 mi), 22832 (4.6 mi), 24471 (5.9 mi), 22827 (7.0 mi) and 22807 (7.4 mi).

Is 22840 a PO Box ZIP code?

22840 is a standard ZIP code. A normal ZIP code with street delivery.

Download or cite

Cite this page

zipcodes.pro. “22840 ZIP Code: McGaheysville, Virginia (Rockingham County).” Data release 2026-11-18. Retrieved 2026-12-03. https://zipcodes.pro/zip/22840

Machine-readable version of these facts:

curl https://zipcodes.pro/zip/22840.json

Underlying data is public domain or openly licensed — sources, vintages and licences.