simplemaplab

Distance Between Two ZIP Codes

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.

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 great-circle formula on the WGS84 ellipsoid.
How it works
How is it calculated?
Each ZIP has a population-weighted centroid from the US Census Bureau. The tool computes the shortest great-circle path between these two points — accurate to within meters at any distance.
Accuracy
How accurate is it?
The straight-line distance is precise. The estimated driving distance (1.3× straight-line) is an approximation — actual driving varies by 20-50% depending on road networks and terrain.
Cost
Is this tool free?
Yes — completely free, no sign-up, no API key. Uses pre-loaded Census data in your browser. Works offline after initial page load.
Loading ZIP code database...

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 use "Detect My Location" for GPS-based detection. The tool searches 33,000+ 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 population-weighted centroids. Each of the 33,000+ US ZIP codes has a centroid — the "average" location of all residents — calculated by the US Census Bureau.

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 — typically 1.2× to 1.5× the straight-line value — because roads curve, detour around terrain, and follow grid patterns.

EXAMPLE
Example: 10001 (New York) to 90001 (Los Angeles). The straight-line distance is 2,451 miles. The estimated driving distance is ~3,186 miles (1.3×). Actual I-80 route is about 2,790 miles. The bearing is 262° (west-southwest).

Popular ZIP code distances

The table below shows straight-line distances between popular US ZIP code pairs. These are as-the-crow-flies distances — driving distances will be 20-50% longer.

From ZIPCityTo ZIPCityDistance
10001New York, NY90001Los Angeles, CA2,451 mi
60601Chicago, IL77001Houston, TX940 mi
02108Boston, MA10001New York, NY190 mi
33101Miami, FL30303Atlanta, GA594 mi
75201Dallas, TX77001Houston, TX225 mi
98101Seattle, WA97201Portland, OR145 mi
80202Denver, CO85001Phoenix, AZ586 mi
94102San Francisco, CA90001Los Angeles, CA347 mi
20001Washington, DC10001New York, NY204 mi
19103Philadelphia, PA10001New York, NY81 mi

What people use ZIP code distance for

Shipping zone estimation

Carriers like USPS, UPS, and FedEx divide the US into shipping zones based on ZIP-to-ZIP distance. Zone 1 covers your local area (0-50 miles), Zone 8 spans coast-to-coast (1,800+ miles). This tool helps estimate which zone a package will fall into before you get a formal quote.

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 define delivery boundaries, sales territories, and service areas. Insurance companies use it for provider network adequacy analysis — ensuring patients can reach an in-network provider within a specified distance.

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.

Military and government logistics

Government agencies use ZIP code distances for reimbursement calculations, determining duty station proximity, and planning supply chain logistics. The Department of Defense uses ZIP-based distance for PCS (Permanent Change of Station) move allowances.

Real estate market comparison

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

This tool vs. Google Maps

FeatureSimpleMapLabGoogle Maps
MethodHaversine great-circle (straight-line)Turn-by-turn driving route
InputZIP codesAddresses or place names
Result typeDistance + demographics + boundariesDistance + directions + traffic
Coverage33,000+ US ZIPsWorldwide
SpeedInstant (pre-loaded data)1-3 seconds (API call)
Sign-upNoneGoogle account
ZIP boundariesYes (ZCTA polygons on map)No
Population dataYes (Census ACS)No

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. For distances under 1,000 miles, the error vs. the WGS84 ellipsoid is under 0.3%. The estimated driving distance multiplies the result by 1.3 — a well-established approximation used in logistics planning.

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.
Population-weighted centroid
The "average" location of all residents within a ZIP, weighted by where people actually live. More accurate for distance calculations than the geometric center.
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 used by carriers (USPS, UPS, FedEx) to set shipping rates. Zones are typically defined by ZIP-to-ZIP distance ranges.
Data sources
ZIP code centroids and demographics: US Census Bureau ACS via SimpleMaps. ZIP boundaries: 2020 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 "Detect My 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 population-weighted centroids of both ZIP Code Tabulation Areas (ZCTAs). This gives the shortest distance over the curved surface of the Earth — accurate to within meters.
The estimated driving distance is the straight-line distance multiplied by 1.3 — a commonly used approximation that accounts for road geometry. Actual driving distance varies based on highways, terrain, and route choice, typically ranging from 1.2× to 1.5× the straight-line distance.
ZIP code coordinates, population, county, and demographics come from the US Census Bureau American Community Survey (ACS) via SimpleMaps. Boundaries are 2020 Census ZCTA shapefiles. The tool includes 33,000+ 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 "Detect My 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 driving distance along roads. This tool shows straight-line distance, which is always shorter. A 100-mile straight-line distance might be 130 miles by road in flat terrain, or 170 miles through mountains.
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 like USPS, UPS, and FedEx divide the US into shipping zones based on ZIP code distance from the origin. Zone 1 is the local area, Zone 8 is coast-to-coast. Each zone has a different rate. This tool helps estimate which zone a shipment falls into.
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.
Yes — completely free, no sign-up, no API key. All 33,000+ ZIP codes are pre-loaded in your browser for instant results.
The drive time estimate assumes an average speed of 55 mph over the estimated driving distance. This is a rough approximation — urban routes are slower, highway routes are faster. For accurate drive time, use our Drive Time Map.
Yes. After calculating a distance, both ZIP code ZCTA boundary polygons are drawn on the map as green-tinted shapes. These are from the 2020 US Census Bureau TIGER/Line shapefiles.
The database includes 33,000+ 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