Home Categories Security Distance Between IPs

Distance Between IPs

Calculate the geographical distance between any two IP addresses instantly.

đź’ˇ How to Use This Tool

Calculate the distance between two IP addresses in just a few steps:

1

Enter First IP

Type or paste the first IPv4 or IPv6 address.

2

Enter Second IP

Type or paste the second IP address you want to compare against.

3

Calculate

Click the Calculate Distance button.

4

View Results

See the exact distance in km and miles, plus location data for both IPs.


đź“– About Distance Between IPs

What is Distance Between IPs?

The Distance Between IPs tool computes the approximate geographical distance between two IP addresses. By looking up the physical location (latitude and longitude) associated with each IP address using a GeoIP database, the tool calculates the straight-line (great-circle) distance between them using the Haversine formula.

Common Use Cases

  • Network Latency Troubleshooting: Estimate expected network latency based on the physical distance between two endpoints.
  • Security Analysis: Investigate suspicious logins by checking the distance between a known geographical location and the IP addressing accessing the system.
  • Content Delivery Network (CDN) Optimization: Determine the proximity of users to your edge servers or origin servers.
  • General Curiosity: Find out how far apart two servers or users are located geographically.

Key Features

Accurate Distance Calculation

Uses the Haversine formula to compute the great-circle distance, which accounts for the Earth's curvature, providing accurate results in both kilometers (km) and miles (mi).

Dual Support

Supports both IPv4 and IPv6 addresses.

Detailed Location Data

In addition to the distance, the tool displays the continent, country, region, city, and coordinates associated with each IP address for a comprehensive overview.

Privacy & Security

All distance calculations and IP lookups are performed directly on our servers using our locally hosted, high-speed GeoIP database. We do not share your IP queries with external third parties.


âť“ Frequently Asked Questions

First, the tool looks up the estimated physical location (latitude and longitude) of each IP address using the MaxMind GeoLite2 database. Then, it uses the Haversine formula to calculate the great-circle distance—the shortest distance over the earth's surface—between those two points.
The accuracy depends on the GeoIP database's precision. Generally, it is accurate to the city or region level. However, IP geolocation is not exact, and the physical location may be that of the user's ISP or VPN server rather than their exact home or office.
Some IP addresses are not present in public GeoIP databases. This includes local or private IP addresses (like 192.168.x.x or 10.x.x.x), reserved loopback addresses (127.0.0.1), and sometimes newly allocated IPs that haven't been mapped yet.
Yes! You can calculate the distance between any combination of IPv4 and IPv6 addresses.

Version History

1.0.0

Initial release of the Distance Between IPs tool.

Mar 12, 2026