Network Latency Test: How to Measure It
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A network latency test measures the time it takes for a data packet to travel from your device to a destination server and back, usually reported in milliseconds (ms). You enter a target address or simply press start, and the test returns your ping time, which tells you how responsive your connection is. Lower numbers mean faster response, which matters most for gaming, video calls, and live streaming.
Formula
The core metric is round-trip time (RTT), calculated as:
RTT = time packet sent – time packet received
Where:
- RTT is the round-trip time in milliseconds (ms)
- time packet sent is the timestamp when your device transmits the packet
- time packet received is the timestamp when your device gets the reply
Most tools average several pings (often 10 or 20) to smooth out spikes. The calculator above also factors in packet loss, because a connection with 0% loss but 200 ms ping feels worse than one with 1% loss and 40 ms ping.
Worked Example
Using the default values: ping time = 20 ms, packet loss = 0%.
- Check if ping is ≤ 50 ms and loss ≤ 1%: 20 ≤ 50 and 0 ≤ 1 → true, so quality = 1 (excellent).
- If the ping were 80 ms and loss 1.5%, the first condition fails (80 > 50), so check the second: 80 ≤ 100 and 1.5 ≤ 2 → true, quality = 2 (moderate).
- If ping were 150 ms, both conditions fail, so quality = 3 (poor).
For the defaults, the result is Connection quality: 1 (excellent).
What Is a Good Ping Time?
General benchmarks for round-trip time:
- 0–20 ms: Excellent – ideal for competitive gaming and real-time audio.
- 20–50 ms: Good – most online games and video calls feel responsive.
- 50–100 ms: Acceptable – casual browsing and streaming are fine, but fast-twitch games may feel laggy.
- 100–200 ms: Noticeable delay – video calls may have audio lag, and gaming becomes frustrating.
- 200+ ms: Poor – basic web pages may load slowly, and real-time apps are nearly unusable.
These numbers apply to wired connections. Wi-Fi adds 2–10 ms typically, and satellite internet can add 500–800 ms due to the distance signals travel to orbit.
How to Run a Latency Test Correctly
To get a reliable measurement, follow these steps:
- Close bandwidth-heavy apps: streaming, downloads, and cloud backups skew results.
- Use a wired connection if possible – Wi-Fi introduces jitter and packet loss.
- Test at different times of day – evening congestion can raise ping by 20–50 ms.
- Run multiple tests (at least 5) and take the median, not the minimum or maximum.
- Test against multiple servers – a server across the ocean will always have higher ping than one in your city.
Most online speed test tools show ping as the first number, but they often use nearby servers, so the result may be better than your real-world experience with distant game servers.
Common Causes of High Latency
If your ping is consistently high, check these likely culprits:
- Network congestion – too many devices sharing the same connection.
- Distance to server – data travels at roughly 200 km/ms in fiber, so a transatlantic hop adds ~60 ms minimum.
- Wi-Fi interference – walls, microwaves, and neighbor networks degrade signal quality.
- Background updates – Windows, games, and apps downloading silently.
- Router bufferbloat – when your upload is saturated, the router queues packets, adding 100+ ms.
Bufferbloat is especially sneaky: your ping looks fine when idle, but spikes when someone uploads a file. Test while your connection is under load to catch it.
Latency vs. Bandwidth vs. Jitter
People often confuse these three metrics:
- Latency (ping) – the delay in milliseconds. It’s how quickly you get a response.
- Bandwidth – the amount of data per second (Mbps). It’s how much you can download at once.
- Jitter – the variation in latency between packets. High jitter causes stuttering in calls and games even with low average ping.
You can have 500 Mbps bandwidth but 150 ms ping – the connection is fast for downloads but poor for real-time interaction. Conversely, a 10 Mbps connection with 10 ms ping feels snappy for gaming.
How to Reduce Latency
Practical steps that actually help:
- Use Ethernet instead of Wi-Fi – removes interference and cuts 2–10 ms.
- Enable Quality of Service (QoS) on your router – prioritizes gaming/video call traffic.
- Move closer to your Wi-Fi router or add a mesh access point.
- Limit background uploads – pause cloud syncs during gaming.
- Choose servers closer to you in games – a 500 km closer server can save 5–10 ms.
- If using satellite internet, consider a fixed wireless or fiber alternative – the physics of orbit cannot be fixed.
One common misconception: a VPN always increases latency. In some cases, a VPN can reduce it by routing around a congested path, but typically it adds 5–20 ms overhead.
Frequently Asked Questions
What is the difference between ping and latency?
They are essentially the same. Ping is the tool name (from sonar), and latency is the measured time. When someone says “my ping is 30,” they mean their round-trip latency is 30 ms.
Can I test latency to a specific game server?
Yes. Most games show an in-game ping display. For a general test, use the “ping” command in your terminal (Windows: ping google.com, Mac/Linux: same). To test a game server, find its IP address and ping it directly – but many game servers block ICMP pings, so the in-game meter is often more accurate.
Why is my ping lower on a speed test than in games?
Speed tests connect to servers in your region, often in the same city. Game servers may be in another state or country. Also, speed tests use multiple parallel connections, which can mask jitter. Your real ping to a distant server is the honest number.
Does packet loss matter more than latency?
For real-time applications, yes. A 1% packet loss on a 30 ms connection causes noticeable stutter because lost packets must be retransmitted. In gaming, 5% loss is often unplayable even with 20 ms ping. Always test both together.
What is a good jitter value?
Under 10 ms is good, under 5 ms is excellent. Jitter above 20 ms will cause audio dropouts in calls and rubber-banding in games. You can measure jitter with most advanced ping tools that show the standard deviation of RTT.
How often should I run a latency test?
If you’re troubleshooting, run it every few minutes for an hour to spot patterns. For general monitoring, once a day is enough. If you notice lag in games, test immediately – the cause is often temporary congestion.
Related
Formula used
in t | Ping time | ms | 20 | 0 in p | Packet loss | % | 0 | 0 out quality | Connection quality | - | (t
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.