Developer Networking

Network latency calculator

Distance
Medium
Round trip, minimum 49.8
One way 24.9
Seconds 0.0498
Signal speed 67% of c
Local · a floor, not a prediction

Light in fibre travels at about two thirds of its speed in vacuum, so a signal covers roughly 200 km per millisecond. London to New York is about 5,570 km, giving a round-trip floor near 56 ms before any equipment is involved.

How to use the network latency calculator

1 Enter the distance in kilometres. Use the great-circle distance between the two points rather than the cable route.
2 Pick the medium. Fibre carries a signal at about two thirds of light speed, copper is a shade under that, and radio through air is close enough to the vacuum figure.
3 Read the round-trip floor as the primary number. The one-way figure below it is half of that, which holds only where traffic takes the same path in both directions.
4 Compare the floor against your measured ping. The gap between them is the part engineering can still take out.
5 If the gap is small, stop optimising the path and move the data closer instead.

A floor, not a prediction

Real latency adds switching, routing, queuing and the fact that fibre does not run in straight lines; actual London to New York round trips run 70 to 80 ms against the 56 ms physics allows. What the floor is good for is knowing when optimisation is pointless. If your API is 90 ms away and physics says 56, there is 34 ms of engineering to attack. If it says 56 and you are getting 58, the only remaining move is to put the data closer to the user, and a CDN is exactly that move. It also explains why interactive applications feel different across an ocean no matter how good the servers are.

Four things add to the floor, and only one is physics

Propagation is the part this page computes: distance divided by signal speed, and nothing shortens it except a shorter path. Serialisation is the time to clock the bits onto the wire, which is the packet size over the link rate, so a 1,500-byte frame takes 12 microseconds at 1 Gbit/s and 1.2 milliseconds at 10 Mbit/s. Processing is what each router spends looking at a header, now measured in microseconds. Queuing is everything else, and on a congested or badly buffered link it dwarfs the other three; a saturated home uplink can add hundreds of milliseconds on its own, which is the effect bufferbloat describes. When a measured ping is wildly above the floor and varies from second to second, queuing is the first suspect rather than distance.

The cable is longer than the great circle

The distance to enter is the straight-line great circle, because that is the shortest path light could take. Real routes are longer: submarine cables follow seabed corridors and land at existing stations, terrestrial fibre follows railways, motorways and pipelines, and traffic often crosses an exchange point some way off the direct line. Assuming a real path around a third to a half longer than the great circle is a reasonable first correction, and comparing that against a measured round trip usually explains most of the gap without needing a traceroute.

Round trips, not milliseconds, are what an application spends

Latency hurts applications through the number of round trips they need before anything useful happens. A TCP connection costs one round trip to open before a byte of request is sent. TLS 1.2 adds two more, TLS 1.3 adds one, and QUIC folds the transport and cryptographic handshakes together so a fresh connection costs one and a resumed one can cost none. Slow start then limits the first response to roughly ten segments, so a large payload needs several further round trips to ramp up regardless of bandwidth. On a 56 ms link a page needing six sequential round trips has spent a third of a second before rendering begins, and no amount of extra bandwidth changes it. The other half of the same arithmetic is the bandwidth-delay product: bandwidth multiplied by round-trip time gives the data that must be in flight to keep a link full, which is 12.5 MB on a 1 Gbit/s path at 100 ms and is why an untuned single stream cannot saturate a long fat pipe.

What people use it for

  • Deciding whether an API is slow or only far away
  • Making the case for a server region closer to the users
  • Setting a realistic latency target for a cross-continent call
  • Estimating what a CDN edge can actually save before paying for one
  • Explaining why a remote desktop feels laggy across an ocean
  • Sanity-checking a provider's quoted inter-region latency against what physics permits
  • Working out how many round trips a protocol handshake is costing you
  • Sizing a TCP window from the bandwidth-delay product of a long link

Questions

About 200 km per millisecond: roughly two thirds of the speed of light in vacuum, because glass has a refractive index near 1.5 and a signal slows in proportion.

ITU, optical fibre characteristicsRFC 9000, QUIC: a UDP-based multiplexed and secure transportRFC 6928, increasing TCP's initial window to ten segments
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding