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/20117

20117

Updated

ZIP 20117 is in Middleburg, Virginia, mostly in Loudoun County; area codes 540 and 826; Eastern time. Middleburg has 2 ZIP codes; the other is 20118.

Type
Standard
Time zone
America/New_York
County
Loudoun +1 more
Population
2,790
Coordinates
38.9988, -77.7339
☼ Live from 20117 — Middleburg, VA

Weather right now

Asking the National Weather Service…

NEXRAD radar
Finding the nearest radar…
Local time: —

Where 20117 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

Population2,790This ZIP2,790
Households1,263This ZIP1,263
Housing units1,416This ZIP1,416
Median age53.4This ZIP53.4Virginia39.0US 38.9
Median household income$146,120This ZIP$146,120Virginia$93,170US $80,734
Median home value$937,100This ZIP$937,100Virginia$383,700US $332,700
Median gross rent$1,843This ZIP$1,843Virginia$1,579US $1,413
Bachelor's degree or higher58.7%This ZIP58.7%
Mean commute32.8 minThis ZIP32.8 min
Population density57.4 / sq miThis ZIP57.4 / sq mi

How 20117 compares

20117 has the oldest population in Loudoun County: 53.4, against 34.0 in 20184 at the other end, among 17 ZIP codes ranked.

Its median household income, $146,120, is higher than in 91% of Virginia's 782 ZIP codes where people live.

Its median home value, $937,100, is higher than in 97% of Virginia's 771 ZIP codes where people live.

20117 ranked against the ZIP codes where people live in Loudoun County and Virginia
Measure 20117 Rank in county Above, in VA
Median household income $146,120 14th of 17 91%
Median home value $937,100 3rd of 16 97%
Median gross rent $1,843 13th of 14 82%
Population 2,790 14th of 17 48%
Median age 53.4 1st of 17 82%
Bachelor's degree or higher 58.7% 13th of 17 89%
People per square mile 57 16th of 17 39%

Rank in county is among the ZIP codes of Loudoun 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 establishments194This ZIP194
Employees1,633This ZIP1,633
Annual payroll$102,734,000This ZIP$102,734,000
Tax returns filed1,030This ZIP1,030
Total adjusted gross income$241,708,000This ZIP$241,708,000

Land area

Land area48.61 sq miThis ZIP48.61 sq mi
Water area0.54 sq miThis ZIP0.54 sq mi

Counties 20117 spans

A ZIP code is a mail route and ignores county lines. Shares are by overlapping land area.

CountyShare of this ZIP
Loudoun County 89.4%
Fauquier County 10.6%

Other place names in 20117

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
20117 Middleburg, VA (this ZIP) — 2,790 $146,120 $937,100
20105 Aldie, VA 7.7 mi 37,639 $219,123 $858,900
20184 Upperville, VA 7.8 mi 635 $50,278 —
20198 The Plains, VA 7.9 mi 2,251 $106,518 $933,000
20175 Leesburg, VA 8.3 mi 34,733 $174,854 $780,600
20141 Round Hill, VA 9.0 mi 8,359 $210,563 $736,700
20169 Haymarket, VA 10.1 mi 28,089 $203,051 $729,600

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 20117 →

★ Weird and wonderful facts about 20117
  • 🔢 Type 20117 into a pocket calculator and turn it upside down: LIIOZ — not quite a word, sorry.
  • 🏠 Its numerical neighbours: 20116 (Marshall, VA, 12 mi away) and 20118 (Middleburg, VA, 2 mi away).
  • 🧭 Farther south than 50% of all ZIP codes, and farther east than 79%.
  • 🎯1,112 miles east of the geographic center of the Lower 48, near Lebanon, Kansas.
  • ☀Longest day of the year: 14h 54m of daylight. Shortest: 9h 26m.
  • 📏 At 48.6 square miles of land, 20117 is bigger than 59% of ZIP codes — room for about 37 Central Parks.
🌙 The sky over 20117 today
  • Working out the sun…
🌋 Shake report
  • Checking the USGS…

Source: USGS.

Questions about this ZIP code

Where is ZIP code 20117?

20117 is in Middleburg, Virginia, in Loudoun County, part of the Washington-Arlington-Alexandria, DC-VA-MD-WV metropolitan area. Its published point location is 38.9988, -77.7339.

What county is 20117 in?

20117 spans 2 counties: Loudoun County and Fauquier County. Most of it falls in Loudoun County, measured by overlapping land area — the county holding the most land in a ZIP code is not always the one holding the most residents.

What area code is 20117?

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

What time zone is 20117 in?

20117 uses America/New_York.

How many people live in 20117?

About 2,790 people live in ZIP code 20117, in 1,263 households, at 57.4 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 20117?

$146,120 a year, against $93,170 across Virginia.

What ZIP codes are near 20117?

The closest where people live are 20105 (7.7 mi), 20184 (7.8 mi), 20198 (7.9 mi), 20175 (8.3 mi) and 20141 (9.0 mi).

Is 20117 a PO Box ZIP code?

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

Download or cite

Cite this page

zipcodes.pro. “20117 ZIP Code: Middleburg, Virginia (Loudoun County).” Data release 2026-11-18. Retrieved 2026-12-04. https://zipcodes.pro/zip/20117

Machine-readable version of these facts:

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

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