Distance Between ZIP Codes Calculator
Enter two US 5-digit ZIP codes to instantly compute the straight-line mileage and estimated driving distance between their Census ZCTA centroids. Displays county jurisdictions, state codes, and compass bearings.
Ready to Calculate Distance Between ZIP Codes
Enter two 5-digit US ZIP codes to compute centroid-to-centroid geodesic distance and driving circuity estimates.
New York, NY 10001
Beverly Hills, CA 90210
How to use the ZIP code distance calculator
- 1Enter two US ZIP codes
Type the two five-digit ZIP codes you want to compare.
- 2Measure between ZIP centers
The straight-line distance is measured between the center points of the two ZIP code areas.
- 3Read miles, drive estimate and bearing
See the straight-line miles, an estimated driving distance and the compass bearing, with each ZIP's county and state.
How to calculate the distance between ZIP codes
Calculating distance between two ZIP codes requires understanding a fundamental truth about postal geography: ZIP codes are not geographic polygons. Officially created by the United States Postal Service (USPS) in 1963 as the Zone Improvement Plan, a ZIP code is a collection of mail delivery carrier routes, delivery boxes, or single high-density buildings rather than continuous land parcels.
Using the tool takes three steps:
- Enter the first ZIP code and the second ZIP code.
- The tool looks up each ZIP code's internal point (a Census-computed center point that falls inside the area) in the U.S. Census Bureauin the U.S. Census Bureau's 2020 ZIP Code Tabulation Area (ZCTA) Gazetteerapos;s 2024 Gazetteer file of 2020 ZIP Code Tabulation Areas (ZCTAs). A ZIP code with no ZCTA, such as a PO-box-only or single-business ZIP, falls back to a point from the Photon geocoder (OpenStreetMap data).
- It then computes the straight-line (great-circle) distance between the two points on the WGS84 ellipsoid with Karney's geodesic method, and shows it in miles and kilometers along with the compass bearing.
ZCTAs are the Census Bureau's area approximations of USPS ZIP codes, and the internal point is a single representative point, not the place where most people live. In a large rural ZIP code it can be many miles from the main town, so the result is a center-to-center figure, not a door-to-door one.
Which point of a ZIP code is measured?
Because ZIP codes are collections of delivery lines, measuring from “ZIP to ZIP” actually measures from the population-weighted center or geographic centroid of each zone:
- Adjacent ZIP Codes: Two contiguous ZIP codes share a common physical boundary. While the border distance between them is exactly 0 feet, the centroid-to-centroid distance may register as 3 to 15 miles depending on rural or urban density.
- PO Box & Campus ZIPs: Thousands of ZIP codes represent single installations, corporate towers, or federal facilities (such as the Pentagon or university campuses) without land area. In these instances, the coordinate represents the physical address of the sorting facility or administrative building.
- Rural Delivery Routes: In low-density states like Nevada, Wyoming, and Alaska, single ZIP codes cover thousands of square miles. Measuring between two adjacent rural ZIP codes can show distances exceeding 80 miles.
USPS shipping zones vs. miles between ZIP codes
Logistics managers, eCommerce merchants, and supply-chain analysts frequently rely on ZIP-to-ZIP distance to estimate delivery times and shipping costs. However, commercial postal rates depend on statutory USPS Zones:
USPS Zone Definitions
Zone 1 & 2: Up to 150 miles
Zone 3: 151 – 300 miles
Zone 4: 301 – 600 miles
Zone 5: 601 – 1,000 miles
Extended Postal Radii
Zone 6: 1,001 – 1,400 miles
Zone 7: 1,401 – 1,800 miles
Zone 8: 1,801+ miles (within CONUS)
Zone 9: Freely Associated States & Territories
Example: distance between two ZIP codes, step by step
Observing how geodesic distance is derived between the coordinates of ZIP 10001 (New York, NY) and ZIP 90210 (Beverly Hills, CA):
d = R · c, where c = 2 · atan2(√a, √(1−a))- Convert degrees to radians: φ₁ = 0.71123 rad, φ₂ = 0.59498 rad
- Compute longitudinal delta: Δλ = -44.4094° = -0.77509 rad
- Evaluate Great-Circle intermediate term: a = 0.09268
- Compute central angular displacement: c = 0.619183 rad
- Multiply by Earth radius: 3,958.761 mi * 0.619183 rad = 2,451.2 miles
Straight-line air distance between the postal centroids. Interstate ground trucking routes (I-80 W to I-76 to I-15) measure approximately 2,780 road miles.
Distance between major U.S. ZIP codes
Reference measurements across prominent economic and urban hubs in the United States:
Common Inter-ZIP Distances & Shipping Estimates
Accurate to WGS84 ellipsoid centroids. Exportable for freight and billing calculations.
| Origin ZIP | Destination ZIP | Distance (mi) | Distance (km) | Approx. USPS Zone |
|---|---|---|---|---|
10001 (New York (Midtown), NY) | 90210 (Beverly Hills, CA) | 2,451.2 mi | 3,944.8 km | Zone 8 |
60601 (Chicago (Loop), IL) | 77001 (Houston (Downtown), TX) | 940.6 mi | 1,513.7 km | Zone 5 |
98101 (Seattle (Downtown), WA) | 33101 (Miami (Downtown), FL) | 2,734.1 mi | 4,400.1 km | Zone 8 |
02138 (Cambridge (Harvard), MA) | 94720 (Berkeley (UC), CA) | 2,688.5 mi | 4,326.7 km | Zone 8 |
30301 (Atlanta, GA) | 37201 (Nashville, TN) | 214.8 mi | 345.7 km | Zone 3 |
96813 (Honolulu, HI) | 99501 (Anchorage, AK) | 2,781.4 mi | 4,476.2 km | Zone 8 (Non-Contiguous) |
Straight-line vs. driving distance between ZIP codes
Please note these critical operational distinctions when using postal distance tools:
- Boundary Extents: ZIP codes with large geographic footprints may have internal points 30+ miles from their assigned centroid.
- Delivery vs. Driving Routes: Road freight vehicles must follow commercial routing networks, which consider axle weight limits, bridge heights, and toll routes.
- Postal Updates: The USPS routinely modifies, merges, or splits ZIP codes based on local mail carrier volumes; historical data may not align with present-day codes.
- Not for Tax Compliance: Never rely solely on 5-digit ZIP codes for sales tax jurisdiction determinations; always utilize address-level FIPS validation.
Related Postal and Proximity Tools
Need to identify all codes in an area? Visit Find ZIP Codes in a Radius or inspect boundaries using the Map with ZIP Codes.
Quick facts about the ZIP code distance calculator
| Fact | Value | Notes |
|---|---|---|
| Coordinate Basis | US Census Bureau ZCTA Centroids | Internal geographic point of each ZIP tabulation area |
| USPS Total Codes | ~41,700 Active ZIPs | Including PO Box and military APO/FPO codes |
| Estimated Driving Circuity | ~1.25 Multiplier | Empirical highway factor applied to straight-line distance |
Edge cases and exceptions
Unique & PO Box Only ZIPs
Some ZIP codes represent a single skyscraper, university campus, or PO Box installation rather than a geographic land area. These are mapped to their physical post office facility coordinates.
Multi-County ZIP Codes
Over 20% of US ZIP codes cross county or even state lines. Our tool reports the primary county containing the ZCTA centroid.
The ZIP code distance calculator: worked examples
Beverly Hills to Manhattan Shipping
Scenario: Calculating postal distance between 90210 (CA) and 10001 (NY).
Outcome: Centroid-to-centroid distance is 2,451 miles (3,944 km) straight-line, with an estimated 2,790 highway miles.
Austin to Dallas Commute Corridor
Scenario: Measuring distance between 78701 (Austin) and 75201 (Dallas).
Outcome: Straight-line distance is 182 miles (293 km); driving route via I-35 is approximately 195 miles.
Frequently asked questions about the ZIP code distance calculator
How is ZIP code distance measured?
The distance is calculated between the geographic center (centroid) of each ZIP Code Tabulation Area (ZCTA) using the great-circle Haversine formula on the WGS84 datum.
Can two different ZIP codes have zero distance between them?
If two ZIP codes share the exact same post office building (e.g. PO Box ZIP and street ZIP), their centroids may be identical (0.0 miles).
What point is used for each ZIP code?
The distance is measured between ZIP Code Tabulation Area centroids, an approximate geographic center. The real delivery area is larger than a point.
Why is the ZIP distance not exact?
A ZIP code covers many addresses spread over an area. The centroid distance can differ by miles from the distance between two specific addresses.
Can I use it for shipping zones?
It is useful for estimating zones and distance bands, but carriers use their own zone charts. Confirm with the carrier's rate tool.
Does the tool calculate driving distance?
It reports the straight-line mileage and an estimated driving figure based on a detour factor, not a routed trip.
What does a ZIP distance of 0 mean?
Two ZIP codes can share the same centroid, such as a unique ZIP assigned to a single building next to its standard ZIP.
How do I find all ZIP codes within a distance?
Use the find ZIP codes in radius tool to list every ZIP code inside a circle around any address.
Can I get the distance between two five-digit ZIPs in kilometers?
Yes. The results are displayed in miles and kilometers, with the compass bearing.
Does it work for ZIP+4 or Canadian postal codes?
No. It supports five-digit US ZIP codes only.
Keep exploring
What to do with this result
- What ZIP Code Am I In?Use this to find your ZIP code.
- Find ZIP Codes in a RadiusUse this to list ZIP codes within a radius.
- As the Crow Flies Distance Calculator (Straight Line)Use this to measure as-the-crow-flies distance.
- Drive Time Map (Travel Time Isochrone)Use this to map a drive-time area.
- Distance Matrix Calculator (Pairwise Distance Table)Use this to build a distance matrix.
Related map tools
Blog posts, studies & methodology
Browse counties by state
- Alabama
- Alaska
- Arizona
- Arkansas
- California
- Colorado
- Connecticut
- Delaware
- District of Columbia
- Florida
- Georgia
- Hawaii
- Idaho
- Illinois
- Indiana
- Iowa
- Kansas
- Kentucky
- Louisiana
- Maine
- Maryland
- Massachusetts
- Michigan
- Minnesota
- Mississippi
- Missouri
- Montana
- Nebraska
- Nevada
- New Hampshire
- New Jersey
- New Mexico
- New York
- North Carolina
- North Dakota
- Ohio
- Oklahoma
- Oregon
- Pennsylvania
- Puerto Rico
- Rhode Island
- South Carolina
- South Dakota
- Tennessee
- Texas
- Utah
- Vermont
- Virginia
- Washington
- West Virginia
- Wisconsin
- Wyoming