simplemaplab

Distance Between Two ZIP Codes

By Marko Visic · Updated Nov 17, 2026

Enter two US ZIP codes, click the map, or use GPS to calculate the distance. Shows miles, km, ZIP boundaries, population data, and estimated driving distance.

New York, NY · New York Co.
Los Angeles, CA · Los Angeles Co.

2,448.4 mi
Straight-line distance
3,940.3 km
Kilometers
~3,183 mi
Est. driving distance
ZIP 10001ZIP 90001
CityNew YorkLos Angeles
StateNYCA
CountyNew YorkLos Angeles
Population30,51156,189
Coordinates40.7506, -73.997333.9736, -118.2490
2,448.38 miles
3,940.27 kilometers
2,127.58 nautical miles
12,927,440 feet
Bearing: 273.5° W
Est. drive time: ~57 h 52 min at 55 mph
Definition
What is ZIP code distance?
The straight-line ("as the crow flies") distance between the centroids of two US ZIP Code Tabulation Areas. Calculated using the haversine formula on a sphere with a radius of 3,958.8 miles (6,371 km).
How it works
How is it calculated?
Each ZIP has a geometric centroid, the geographic center of its Census ZIP Code Tabulation Area (ZCTA). The tool computes the shortest great-circle path between these two points, within about 0.6% of the ellipsoidal (WGS84) distance.
Accuracy
How accurate is it?
The straight-line distance is exact for the two centroids. The driving figure is that distance times 1.3, a rule of thumb rather than a road route; for road miles, use Multi-Stop Route Distance.
Cost
Is this tool free?
Yes, with no sign-up and no API key. Each lookup runs on our server and returns instantly.

How to use the ZIP code distance calculator

1
Enter or click your starting ZIP
Type a 5-digit ZIP code with autocomplete suggestions, click the map to auto-detect the nearest ZIP, or press "Use location" for GPS-based detection. The tool searches 41,545 US ZIP codes.
2
Enter or click your destination ZIP
Set the second ZIP the same way. The first map click sets "from" (green marker), the second sets "to" (red marker). Use the swap button to reverse direction.
3
Read the results
Results appear instantly: straight-line distance in miles and km, estimated driving distance, bearing, both ZIP boundaries drawn on the map, and a side-by-side comparison table with city, county, state, population, and coordinates.

What is the distance between two ZIP codes?

The distance between two ZIP codes is the straight-line (great-circle) distance between their geometric centroids. For the 33,782 ZIPs with a Census ZIP Code Tabulation Area (ZCTA), that coordinate is the geometric center of the ZCTA polygon defined by the US Census Bureau; the remaining USPS ZIPs (PO box, single-building, military) use the post-office point.

This is not driving distance. Straight-line distance is the shortest possible path between two points on Earth's surface; driving distance is always longer, because roads curve, detour around terrain and follow street grids.

EXAMPLE
Example: 10001 (New York) to 90001 (Los Angeles). The straight-line distance is 2,448 miles. The estimated driving distance is ~3,183 miles (1.3×). The initial great-circle bearing is 273.5° (west); the rhumb-line bearing is 259.1°.

Popular ZIP code distances

The table below shows straight-line distances between popular US ZIP code pairs. These are as-the-crow-flies distances; road distances are longer.

From ZIPCityTo ZIPCityDistance
10001New York, NY90001Los Angeles, CA2,448 mi
60601Chicago, IL77002Houston, TX943 mi
02108Boston, MA10001New York, NY188 mi
33130Miami, FL30303Atlanta, GA606 mi
75201Dallas, TX77002Houston, TX226 mi
98101Seattle, WA97201Portland, OR146 mi
80202Denver, CO85004Phoenix, AZ586 mi
94102San Francisco, CA90001Los Angeles, CA352 mi
20001Washington, DC10001New York, NY205 mi
19103Philadelphia, PA10001New York, NY83 mi

What people use ZIP code distance for

Shipping zone estimation

Carriers price many parcels by zone, from Zone 1 for nearby ZIP codes up to Zone 8 for the farthest in the lower 48. The distance here gives a first idea of how far apart two ZIP codes are; the exact USPS zone for a pair of 3-digit ZIP prefixes is in the USPS domestic zone chart.

Relocation planning

When considering a move, the distance between your current ZIP and potential new locations helps you gauge moving costs, commute feasibility, and proximity to family. The population and county comparison shows how the two areas differ in size and demographics.

Service area and territory definition

Businesses use ZIP-to-ZIP distance to set delivery limits, sales territories and service areas: for example, how far a customer's ZIP code is from the nearest store or depot.

Direct mail and marketing campaigns

Marketers calculate distances between store locations and customer ZIP codes to target mailers efficiently. Combine this tool with Find ZIP Codes in Radius for bulk targeting or Population Within Radius for market sizing.

Real estate market comparison

Compare two neighborhoods by ZIP code and see distance along with population, county, and state. Useful for understanding how similar or different two areas are when evaluating property values, school districts, or tax jurisdictions.

How the distance is calculated

This tool uses the Haversine great-circle formula, the standard method for computing the shortest distance between two points on a sphere:

d = 2R × arcsin(√(sin²(Δlat/2) + cos(lat₁) × cos(lat₂) × sin²(Δlng/2)))

Where R = 3,958.8 miles (Earth's mean radius), lat/lng are in radians.

The formula assumes a spherical Earth. Compared with the ellipsoidal (WGS84) distance, the haversine result is within about 0.6%. The driving figure multiplies the result by 1.3, a rule of thumb rather than a measured road distance.

For more accurate driving analysis, use our Drive Time Map, which follows actual road networks with the Valhalla routing engine.

Related tools

Glossary

ZIP code
A 5-digit postal code assigned by the US Postal Service for mail delivery routing. ZIP stands for "Zone Improvement Plan," introduced in 1963.
ZCTA
ZIP Code Tabulation Area, a Census Bureau polygon that approximates a ZIP code's geographic footprint. Used for statistical reporting and mapping.
Geometric centroid
The geographic center of a ZIP Code Tabulation Area (ZCTA) polygon, the balancing point of its shape, not weighted by population. This is the coordinate used for each ZIP that has a Census ZCTA; non-geographic ZIPs (PO box, single-building, military) use the post-office point.
Haversine formula
A trigonometric formula for computing the shortest distance between two points on a sphere. Accounts for Earth's curvature, unlike flat-plane distance.
Great-circle distance
The shortest path between two points on a sphere, following the surface. This is the "as the crow flies" distance.
Bearing
The compass direction from one point to another, measured in degrees clockwise from true north (0° = N, 90° = E, 180° = S, 270° = W).
Shipping zone
A distance-based tier that carriers (USPS, UPS, FedEx) use to set shipping rates. Zones are typically defined by ZIP-to-ZIP distance ranges.
Data sources
ZIP code data: SimpleMaps US Zip Codes Database v1.95.1 (Jul 8, 2026), free version under CC BY 4.0. Population: American Community Survey 2020–2024 5-year estimates. ZIP points are the latitude and longitude in the SimpleMaps file. ZIP boundaries: 2010 Census ZCTA shapefiles via OpenDataDE. Map tiles: OpenFreeMap. Distance formula: Haversine great-circle on WGS84 (R = 3,958.8 mi).

Frequently asked questions

Enter both 5-digit ZIP codes in the fields above, click two points on the map, or use the "Use location" button. The tool instantly calculates the straight-line distance and shows both ZIP boundaries on the map.
The tool uses the Haversine great-circle formula between the geometric centroids of both ZIP Code Tabulation Areas (ZCTAs). This gives the shortest distance over a sphere with a radius of 3,958.8 miles (6,371 km), within about 0.6% of the ellipsoidal (WGS84) distance.
The straight-line distance multiplied by 1.3, and the drive time assumes 55 mph over it. Both are rules of thumb for roads that bend and detour, not a measured route, and real distances and times can be well above or below them. For distance and time along actual roads, use the Multi-Stop Route Distance tool or the Drive Time Map.
ZIP code coordinates, population, county, and demographics come from the US Census Bureau American Community Survey 2024 5-year estimates via SimpleMaps. Boundaries are 2010 Census ZCTA shapes (OpenDataDE). The tool includes 41,545 ZIP codes.
Yes. The first click sets the "from" ZIP (green marker) by finding the nearest ZIP centroid. The second click sets the "to" ZIP (red marker). You can also use GPS with "Use location"
Those are the ZIP code boundaries (ZCTA polygons) from the US Census Bureau. They show the actual geographic area each ZIP code covers.
Google Maps shows the distance along roads; this tool shows the straight-line distance between the two ZIP codes’ centers, which is always shorter. The two also start from different points: a ZIP code’s center rather than an address.
Most PO Box-only ZIPs are included but may show zero population. The coordinate represents the post office location. Boundary data may not be available for non-geographic ZIPs.
Carriers price many parcels by zone, from Zone 1 for nearby ZIP codes up to Zone 8 for the farthest within the lower 48. USPS publishes the zone for each pair of 3-digit ZIP prefixes in its domestic zone chart, so check the chart for the exact zone; the straight-line distance here is only a guide.
This tool handles two at a time. For bulk analysis, use our Find ZIP Codes in Radius tool to find all ZIPs within a distance, or our Population Within Radius for demographic coverage.
The bearing is the compass direction from the first ZIP to the second, measured in degrees clockwise from north. 0° = due north, 90° = due east, 180° = due south, 270° = due west. Useful for logistics routing and aviation.
The database includes 33,782 active ZCTAs. Very new ZIPs, military (APO/FPO), or unique ZIPs assigned to single buildings may not have geographic data. If your ZIP isn't found, try a nearby residential ZIP.

Related tools