Skip to content
MasterMath

Latency and Ping Calculator

The minimum ping the distance imposes, and how much the intermediate hops add on top.

Estimated ping

—

Estimated ping—
Physical floor from the distance—
One way only—
What the hops add—
What it would be in a vacuum—
Signal speed in fibre—

How this was worked out

    The formula

    ping = 2 × distance ÷ (speed of light × 0.67) + hop delay

    Where it comes from

    There is a floor no provider can go below, because physics sets it. Light travels through fibre at about two thirds of its speed in a vacuum — roughly 200,000 kilometres per second — and ping measures the round trip. Between Madrid and New York, 5,760 kilometres in a straight line, that is 57 milliseconds before counting a single device along the way. In practice the cable does not run straight and every router adds its own delay, so the real ping is usually considerably higher.

    How to work it out by hand

    1. Take the straight-line distance between the two points
    2. Divide by 200,000 km/s, the signal speed in fibre
    3. Multiply by two, because ping measures the round trip
    4. Add the delay of each intermediate device

    What is worth knowing

    It is worth separating two things people conflate: bandwidth and latency. Bandwidth is how much data fits per second and can be bought; latency is how long the first bit takes to arrive and is limited by distance. That is why paying for more megabits does not lower your ping, and why cloud gaming platforms put servers nearby rather than giving them more throughput. The answer to latency is always geographic: move the server closer. And one thing degrades ping on home connections more than distance does — bufferbloat: when the line saturates, buffers fill with queued packets and ping jumps from twenty milliseconds to several hundred even when the server is next door.

    Frequently asked questions

    What is the lowest possible ping?

    The one distance imposes: twice the path divided by 200,000 km/s. Madrid to New York is 57 ms before anything else is counted.

    Why does more bandwidth not lower my ping?

    Because bandwidth and latency are different things. More megabits is more throughput, not less travel time.

    How fast does a signal travel through fibre?

    About 200,000 km/s, two thirds of the speed of light in a vacuum, because glass slows it down.

    How much does each router add?

    On the order of a millisecond each under normal conditions, though it depends heavily on how loaded the device is.

    What is bufferbloat?

    When the line saturates, buffers fill with queued packets and ping jumps to hundreds of milliseconds even when the server is close by.

    How do you actually reduce latency?

    Move the server closer. It is a geographic problem, which is why cloud services spread data centres across regions.