20117
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
- Metro area
- Washington-Arlington-Alexandria, DC-VA-MD-WV
- Population
- 2,790
- Coordinates
- 38.9988, -77.7339
Weather right now
Asking the National Weather Service…
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.
- 🔢 Type 20117 into a pocket calculator and turn it upside down: LIIOZ — not quite a word, sorry.
- ➕ 20117 is a prime number. It cannot be divided by anything except 1 and itself. Its digits add up to 11, a total 714 other ZIP codes share.
- 💾In binary, the way a computer stores it:
100111010010101 - 🏠 Its numerical neighbours: 20116 (Marshall, VA, 12 mi away) and 20118 (Middleburg, VA, 2 mi away).
- 🔄 Backwards, 20117 becomes 71102 — and that is a real ZIP code: Shreveport, LA, 998 miles away.
- 👥 40 other ZIP codes are made of exactly the same digits (01721, 02117, 02171, 07112, 10172, 10271, …). The farthest-flung twin is 71102 in Shreveport, LA, 998 miles 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.
- 🌏 Dig straight through the Earth from 20117 and you would come out at 39.00°S, 102.27°E — 905 miles from Perth, Australia, the nearest big city to that spot.
- ☀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.
- Working out the sun…
- Checking the USGS…
Source: USGS.
People and housing
| Population | 2,790This ZIP2,790 |
|---|---|
| Households | 1,263This ZIP1,263 |
| Housing units | 1,416This ZIP1,416 |
| Median age | 53.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 higher | 58.7%This ZIP58.7% |
| Mean commute | 32.8 minThis ZIP32.8 min |
| Population density | 57.4 / sq miThis ZIP57.4 / sq mi |
Business and tax activity
| Business establishments | 194This ZIP194 |
|---|---|
| Employees | 1,633This ZIP1,633 |
| Annual payroll | $102,734,000This ZIP$102,734,000 |
| Tax returns filed | 1,030This ZIP1,030 |
| Total adjusted gross income | $241,708,000This ZIP$241,708,000 |
Land area
| Land area | 48.61 sq miThis ZIP48.61 sq mi |
|---|---|
| Water area | 0.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.
| County | Share 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.
ZIP codes near 20117
| ZIP | City | Distance |
|---|---|---|
20118 | Middleburg, VA | 2.1 mi |
20131 | Philomont, VA | 4.1 mi |
20160 | Lincoln, VA | 7.3 mi |
20102 | Dulles, VA | 7.6 mi |
20104 | Dulles, VA | 7.6 mi |
20146 | Ashburn, VA | 7.6 mi |
20105 | Aldie, VA | 7.7 mi |
20184 | Upperville, VA | 7.8 mi |
20185 | Upperville, VA | 7.8 mi |
20198 | The Plains, VA | 7.9 mi |
Find every ZIP code within 10 miles of 20117 →
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 are 20118 (2.1 mi), 20131 (4.1 mi), 20160 (7.3 mi), 20102 (7.6 mi) and 20104 (7.6 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-10-12. Retrieved 2026-10-20. 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.