GEODETIC DATUM: WGS84 · CLIENT-SIDE PRECISION · NO SIGN-UP
Open Map Lab

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.

By ·Updated Runs in your browser
Tool Ready
Ready to Locate· Awaiting input

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.

Popular ZIP Pairs:

New York, NY 10001

Beverly Hills, CA 90210

Straight-Line Distance
2,458.9 mi
Centroid to Centroid
Metric Distance
3,957.2 km
WGS84 Ellipsoidal
Initial Bearing
273.8°
W Direction
Est. Driving Distance
~2999.9 mi
Standard Road Circuity

How to use the ZIP code distance calculator

  1. 1Enter two US ZIP codes

    Type the two five-digit ZIP codes you want to compare.

  2. 2Measure between ZIP centers

    The straight-line distance is measured between the center points of the two ZIP code areas.

  3. 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:

  1. Enter the first ZIP code and the second ZIP code.
  2. 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).
  3. 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):

GOVERNING MATHEMATICAL EQUATIONd = R · c, where c = 2 · atan2(√a, √(1−a))
VARIABLE DEFINITIONS & CONSTANTS
ZIP 10001:Lat: 40.7506° N, Long: -73.9971° W
ZIP 90210:Lat: 34.0901° N, Long: -118.4065° W
R:WGS84 Mean Radius = 3,958.761 mi
c:Central angle subtended by the arc
WORKED BENCHMARK: USPS CENTROID TO CENTROID (MANHATTAN TO BEVERLY HILLS)
ZIP 10001 Coord = 40.7506° N, 73.9971° WZIP 90210 Coord = 34.0901° N, 118.4065° WChord Angle c = 0.619183 radians
  1. Convert degrees to radians: φ₁ = 0.71123 rad, φ₂ = 0.59498 rad
  2. Compute longitudinal delta: Δλ = -44.4094° = -0.77509 rad
  3. Evaluate Great-Circle intermediate term: a = 0.09268
  4. Compute central angular displacement: c = 0.619183 rad
  5. Multiply by Earth radius: 3,958.761 mi * 0.619183 rad = 2,451.2 miles
Computed Result:2,451.2 Miles (3,944.8 Kilometers)

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 ZIPDestination ZIPDistance (mi)Distance (km)Approx. USPS Zone
10001 (New York (Midtown), NY)
90210 (Beverly Hills, CA)
2,451.2 mi3,944.8 kmZone 8
60601 (Chicago (Loop), IL)
77001 (Houston (Downtown), TX)
940.6 mi1,513.7 kmZone 5
98101 (Seattle (Downtown), WA)
33101 (Miami (Downtown), FL)
2,734.1 mi4,400.1 kmZone 8
02138 (Cambridge (Harvard), MA)
94720 (Berkeley (UC), CA)
2,688.5 mi4,326.7 kmZone 8
30301 (Atlanta, GA)
37201 (Nashville, TN)
214.8 mi345.7 kmZone 3
96813 (Honolulu, HI)
99501 (Anchorage, AK)
2,781.4 mi4,476.2 kmZone 8 (Non-Contiguous)

Straight-line vs. driving distance between ZIP codes

Please note these critical operational distinctions when using postal distance tools:

Operational and Legal Considerations
  • 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

FactValueNotes
Coordinate BasisUS Census Bureau ZCTA CentroidsInternal geographic point of each ZIP tabulation area
USPS Total Codes~41,700 Active ZIPsIncluding PO Box and military APO/FPO codes
Estimated Driving Circuity~1.25 MultiplierEmpirical highway factor applied to straight-line distance
PRECISION & EXCEPTIONS

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.

FIELD APPLICATIONS

The ZIP code distance calculator: worked examples

1

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.

2

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

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

Data & Cartographic Authority: US Census Bureau 2020 Census & Gazetteer ZCTA centroids · WGS84 ellipsoid geodesics (GeographicLib/Karney)

Written and maintained by . Content updated October 30, 2026; data last verified September 19, 2026. See our editorial policy, methodology, or report an error.