Introduction
The ZIP Code Distance Calculator tells you how far apart two places are. Type a ZIP code, a Canadian postal code, or a city name in each box. The tool finds both spots on the map and does the math for you.
You get three answers right away:
- Straight-line distance — the direct path, as the crow flies.
- Driving distance — how far you really drive on roads.
- Driving time — how long the trip takes at your chosen speed.
You can switch between miles and kilometers with one click. The results update at once. A chart compares the two distances, and a map shows both points with a dashed line for the straight path and a solid line for the road route.
Want to see the math? The step-by-step section shows how the great-circle (haversine) formula turns latitude and longitude into a distance. If you already know the coordinates, the lat/long distance calculator works from those numbers directly, and the distance between two locations calculator handles free-form place names. This helps with trip planning, shipping costs, job searches, moving, or just checking how far away a friend lives.
How to use our ZIP Code Distance Calculator
Enter two places — ZIP codes, postal codes, or city names — and the calculator shows the straight-line distance, the driving distance by road, and how long the drive takes.
Location A: Type your start point. You can use a US ZIP code like 90210, a Canadian postal code like M5V 3L9, or a city name. Pick a match from the drop-down list. A green check means the place was found.
Location B: Type your end point the same way. It must be a different place than Location A.
Swap Locations: Click the round arrow button to trade Location A and Location B.
Distance Unit: Choose Miles or Kilometers. The results change right away. Need other conversions? Try the unit converter.
Average Driving Speed: Type the speed you expect to drive, then pick mph or km/h. This is used only to guess your driving time. To work backward from time to speed, use the speed, distance and time calculator.
Calculate Distance: Click this button to get your results, the step-by-step math, a bar chart, and a map with both points.
Clear / Reset: Click this to empty both fields and start a new search.
ZIP Code Distance: What It Means
A ZIP code is a short number the U.S. Postal Service uses to mark a delivery area. Canada uses postal codes instead, made of letters and numbers, like M5V 3L9. Each code covers a small piece of land, so every code has a center point with a latitude and longitude. When you measure the distance between two ZIP codes, you are really measuring the distance between those two center points.
Straight-Line Distance vs. Driving Distance
There are two ways to answer "how far is it?"
- Straight-line distance (also called "as the crow flies" or great-circle distance) is the shortest path over the curved surface of Earth. Nothing blocks it — no roads, rivers, or mountains. This is the same measure used by the air miles calculator for flight routes.
- Driving distance follows real roads. It is always longer, because roads bend, curve, and go around things.
Driving distance is usually about 1.2 to 1.4 times the straight-line distance. Short city trips have the biggest gap, since city streets zigzag. Long highway trips get closer to a straight line. For a plain coordinate-geometry version of the same idea, see the distance calculator.
How the Straight-Line Math Works
The math uses the haversine formula. It takes the latitude and longitude of both points, finds the angle between them at the center of the Earth, and multiplies that angle by Earth's radius (about 3,959 miles or 6,371 km). This works better than flat-map math because Earth is a ball, not a sheet of paper. On a flat grid you would instead use the Pythagorean theorem.
Bearing and Midpoint
The bearing is the compass direction you would head at the start of the trip, from 0° (north) to 360°. On a long trip the direction slowly changes as you follow the curve of the Earth, so the starting bearing is called the "initial bearing." The midpoint is the halfway spot along that curved path — handy if two people want to meet in the middle. The midpoint calculator does the same job for plain coordinates.
Driving Time
Driving time is simple: road distance divided by your average speed. A 300-mile drive at 60 mph takes 5 hours. Real trips take longer because of traffic, red lights, gas stops, food, and weather. Add extra time when you plan. The drive time calculator and the ETA calculator help you pin down an arrival time, and the average speed calculator checks the pace you actually kept. For flights instead of drives, use the flight time calculator, and remember to check the time zone difference on long trips.
Why People Measure ZIP Code Distance
- Shipping: carriers set rates by zones based on how far a package travels — see the shipping calculator, USPS shipping calculator, or freight class calculator.
- Job hunting: checking how long a daily commute would be, and what the mileage reimbursement adds up to.
- Moving: comparing towns and figuring out truck mileage with a moving cost calculator and a cost of living calculator.
- Business: picking delivery areas or store locations.
- Trip planning: estimating fuel cost and time on the road with the trip cost calculator, fuel cost calculator, gas mileage calculator, and toll calculator.
Things to Keep in Mind
A ZIP code is an area, not a single dot. Big rural ZIP codes can stretch for many miles, so the center point may sit a few miles from your real address. Some ZIP codes only serve one building or a group of P.O. boxes and cover almost no land at all. For short trips, use a full street address for the best answer — or the walking distance calculator if you are on foot. For long trips, ZIP-to-ZIP distance is close enough, and the travel distance calculator covers routes that mix driving and flying.