Latency Calculator
Work out one-way and round-trip network delay and the data needed to fill the link.
What it does
Latency is the time a signal spends travelling. On a network path it is only one part of the delay a user feels, but it is the part set by physics: a bit cannot arrive before the electromagnetic wave reaches the far end. Dividing the path length by the propagation speed gives the one-way delay, and doubling it gives the round-trip time when both directions behave the same way.
The IEEE 802.3 work on high speed links uses a speed of about 2 x 10^8 m/s for light in optical fiber, well below the 299,792.458 km/s of light in vacuum. Copper is slower again, and its exact value depends on the cable construction. The medium selector here applies a single representative speed to the whole path so the arithmetic stays transparent.
Round-trip time matters beyond simple delay. RFC 1323 introduced the bandwidth-delay product to describe how much data must be in flight to keep a fast path busy, and RFC 6349 uses it when planning TCP throughput tests. Multiply bandwidth in bits per second by round-trip time in seconds and you get a number of bits. Divide by eight for a byte count that can be compared with socket buffer sizes.
This page offers metric and imperial entry. Choose kilometres or miles for the one-way path, pick a medium and enter the bandwidth. The output ids stay the same in both systems; only the distance and speed text changes. The imperial default of 621.371192 miles is the mirror of the metric default of 1,000 kilometres, so switching units does not change the answer.
The model is deliberately simple. Real routes mix fiber, copper and wireless hops, and most of the delay on a busy link comes from queues rather than propagation. Use the numbers here as a floor for latency and as a first estimate of buffer size, then compare against measured round-trip times.
How to use
- Choose metric or imperial units for the path length.
- Enter the one-way distance in the unit shown, not the round-trip distance.
- Pick the propagation medium that best matches the path.
- Enter the link bandwidth in megabits per second.
- Read the one-way and round-trip delays, then the bandwidth-delay product in bits and bytes.
- Switch to the other unit system to confirm the times are unchanged, since the distance is converted internally.
Formula
- d
- One-way path length, in km for the metric entry and converted from miles for the imperial entry.
- c
- Propagation speed in the chosen medium, in km per second.
- RTT
- Round-trip time in seconds, twice the one-way delay.
- B
- Bandwidth in bits per second, entered as megabits per second.
- BDP
- Bandwidth-delay product, the number of bits that fit on the path at once.
One mile is exactly 1.609344 kilometres, and the tool converts imperial distances to kilometres before computing. Vacuum speed is 299,792.458 km/s, fiber is taken as 200,000 km/s and copper as 180,000 km/s. The bandwidth-delay product uses the round trip, following RFC 1323, so do not substitute the one-way delay. Byte counts are rounded to the nearest whole byte.
Worked example
Example: a 1,000 km fiber link at 1,000 Mbps
Defaults: metric units, a one-way path of 1,000 km, optical fiber and a bandwidth of 1,000 Mbps.
- One-way delay is distance over speed: 1,000 km / 200,000 km/s = 0.005 s, which is 5.000 ms.
- Round-trip time is twice that: 2 x 5.000 = 10.000 ms.
- Convert bandwidth to bits per second: 1,000 Mbps = 1,000,000,000 bit/s.
- Bandwidth-delay product in bits: 1,000,000,000 x 0.010 = 10,000,000 bits.
- Divide by eight for bytes: 10,000,000 / 8 = 1,250,000 bytes.
- The imperial mirror uses 621.371192 miles at 124,274.2 mi/s, which is the same physical distance and speed, so the delays and buffer figures stay at 5.000 ms, 10.000 ms and 1,250,000 bytes.
- The tool shows 5.000 ms one way, 10.000 ms RTT, 10,000,000 bits and 1,250,000 bytes.
Reference table
| Medium | Speed (km/s) | Speed (mi/s) | Delay per 100 km |
|---|---|---|---|
| Vacuum | 299,792.5 | 186,282.4 | 0.334 ms |
| Optical fiber | 200,000 | 124,274.2 | 0.500 ms |
| Copper cable | 180,000 | 111,846.8 | 0.556 ms |
Limits
- Calculates propagation delay only. Queuing, serialization, processing and retransmission delays are not included.
- Assumes one constant speed along the whole path, while real routes mix several media.
- The bandwidth-delay product assumes the entered rate is sustained with no competing traffic.
- The copper speed is a typical velocity factor; actual cables vary with length, gauge and insulation.
Common mistakes
- Entering a round-trip measurement as the one-way distance and then doubling it again.
- Using one-way delay in the bandwidth-delay product instead of the round-trip time.
- Typing a bandwidth in megabytes per second into a field that expects megabits per second, which changes the answer by a factor of eight.
- Using the vacuum speed of light for a fiber route and understating the delay by about a third.
- Forgetting to divide the bit count by eight when comparing against a buffer size in bytes.
Try it yourself
Quick checks. Answers sit tucked under each question.
A 40,000 km path through vacuum runs at 500 Mbps. What are the delays and bandwidth-delay product?
One way is 40,000 / 299,792.458 = 0.133426 s, or 133.426 ms. The round trip is 266.851 ms. At 500,000,000 bit/s the product is 133,425,638 bits, which is 16,678,205 bytes.
A 10 km copper run at 100 Mbps in imperial units: what does the tool show?
Using 6.214 mi at 111,846.8 mi/s gives 0.056 ms one way and 0.111 ms round trip. The product is 11,111 bits, or 1,389 bytes.
How much data fills 100 km of fiber at 1,000 Mbps?
The one-way delay is 0.500 ms and the round trip is 1.000 ms. At 1,000,000,000 bit/s that is 1,000,000 bits, or 125,000 bytes.
Questions
What is propagation delay?
It is the time a signal takes to travel from one end of a path to the other at the speed of the medium. It depends on distance and medium, not on how fast the link is clocked.
Why is fiber slower than the speed of light in vacuum?
Light travels through glass at roughly two thirds of its vacuum speed. The IEEE 802.3 material cited here uses about 2 x 10^8 m/s for optical fiber.
What does the bandwidth-delay product tell me?
It is the amount of data that can be in flight before the path is full. TCP needs buffers of roughly that size to keep a high bandwidth link busy, as RFC 1323 explains.
Does switching to imperial units change the result?
No. The distance is converted with 1 mile = 1.609344 km before the delay is computed, so the milliseconds and buffer figures are identical. Only the distance and speed text changes.
Is round-trip time just twice the one-way delay?
In this simple model yes. On a real network the two directions can take different routes and the reply can wait in queues, so measured round-trip time is usually larger.
Can this predict the latency I will see on a video call?
Only the propagation part. Queuing, encoding, jitter buffers and server time often add more than the physical delay, so treat this figure as a lower bound.
Sources
- IETF RFC 1323: TCP Extensions for High Performance
- IETF RFC 6349: Framework for TCP Throughput Testing
- IEEE 802.3: buffer requirements and the bandwidth delay product