nolag.gg

Ping vs latency: what's the difference and which number to trust

Latency is any delay; ping is one specific way to measure it. Here's what each term means, why your game and Windows show different numbers for the same server, and which one actually matters.

Ping vs latency: what's the difference and which number to trust

The short answer

Latency is the general word for delay: how long data takes to get from one point to another. Ping is the round-trip latency measured by a specific test, either the Windows ping command (ICMP echo) or the game's own measurement. In everyday gaming talk they mean the same thing: the round trip from your PC to the game server, in milliseconds.

The difference matters in two situations. First, when someone quotes a one-way latency (for example in a network diagram or a hosting spec), it is roughly half of what you would see as ping. Second, when the game and Windows show different ping to the same server: they measure different packets, sometimes over different routes, and the game may add its own processing time. Neither number is lying, they just answer slightly different questions.

And latency in gaming is wider than the network. The delay from your click to the picture on screen is also latency, but it is called input lag and lives in your PC and monitor. We cover it separately in input lag vs ping.

Latency, RTT and ping: the definitions

Latency is the time between something being sent and it arriving. In networking it is usually one-way: from your PC to the server. It is made of propagation delay (light in fibre covers about 200 km per millisecond), the time each router needs to forward the packet, and queueing when a link is busy.

RTT (round-trip time) is latency there and back: your packet reaches the server and the reply comes back to you. This is what almost every tool measures, because measuring one-way latency precisely needs two perfectly synchronised clocks, and your PC and the game server don't have that.

Ping started as the name of a utility. It sends a small ICMP "echo request" packet and waits for the "echo reply". The time between the two is the RTT. Over the years gamers started calling any round-trip measurement "ping", including the number in the game's scoreboard, even when the game doesn't use ICMP at all.

So in practice:

  • ping ≈ RTT ≈ 2 × one-way latency, if the route is the same in both directions;
  • "my latency is 40 ms" in a game almost always means a 40 ms round trip, not 40 ms each way;
  • the route there and back can differ, so one direction can be slower than the other, and a ping alone can't tell you which.

A useful rule for distance: about 1 ms of round trip per 100 km of fibre. From Madrid to Frankfurt is roughly 1,400 km in a straight line, so even a perfect route can't give less than about 14 ms, and real cables don't run in straight lines. If your ping to a server is far above what the distance explains, the extra time is in your home network, your ISP or a detour on the route.

How ping is measured: ICMP vs the game

There are two common ways to get a ping number, and they don't measure exactly the same thing.

Windows ping (ICMP echo)

The ping command sends ICMP packets to an address and the target's network stack answers straight away. Nothing in the game is involved: no game server process, no tick, no game logic. It tells you how fast the network path to that address is and whether packets get lost on the way. ping -n 100 <address> sends 100 packets and gives you minimum, maximum, average and loss, which is far more useful than the default four.

The game's ping

The game measures round trip with its own packets, usually over UDP, on the same connection that carries your movement and shots. Depending on the engine, the number may include the time the server spends before it handles your packet, and it is often smoothed over a few seconds so it doesn't jump around on the HUD. It reflects what the game actually experiences, but you can't see how it is calculated.

That's why ICMP ping is a diagnostic tool and the in-game number is the one that describes your match. Use both: the game tells you that something is wrong, Windows tools help you find where. Step-by-step methods for every game are in how to check ping.

Why the game and Windows show different ping

You ping the server address in Windows, get 25 ms, and the game shows 38 ms. Or the other way round. These are the usual reasons, from the most common:

  1. You are not pinging the real game server. Many games don't expose the server's address or route you through their own network. CS2 and Dota 2 traffic goes through Valve's Steam Datagram Relay, Riot games use Riot Direct, and other publishers use similar relay or anycast networks. The address you pinged may be a website, a login server or a relay, not the machine you play on.
  2. The server doesn't answer ICMP, or answers it last. Game servers and routers often block ICMP or give it the lowest priority. A timeout or a high ping in Windows then says nothing about the game. A router on the way that answers slowly but forwards traffic normally can also make tracert look scary for no reason.
  3. Server processing and tick. If the game measures until the server has processed your packet, part of a tick is added. At 64 updates per second one tick lasts 15.6 ms, at 128 it is 7.8 ms, at 30 it is 33 ms. Some games include this in the displayed ping, some don't, and developers rarely document which. More on this in server tickrate.
  4. Smoothing and averaging. The HUD value is often an average over a few seconds. A short spike that Windows catches may never show up in the game, and the game number may lag behind a real change by several seconds.
  5. Different packets, different treatment. UDP game traffic and ICMP can be queued differently by your router or your ISP. Under load, for example when someone in the house starts a download, the game packets may wait in a queue that the ICMP test barely touches, or the reverse.
  6. Different route. Your ISP can send traffic to different destinations or ports along different paths. A test to a nearby address can look perfect while the game takes a detour through another country.

A difference of 5–15 ms between the game and Windows is normal and usually comes from points 3 and 4. A difference of 30 ms or more almost always means you are measuring a different destination or a different route.

Fix lag and disconnects

What the game's ping number actually shows

Games differ in what they put on the screen, and it's worth knowing which number you're looking at before comparing it with anything.

  • Scoreboard ping (CS2, Dota 2 and many others) is a round trip for your connection, usually averaged. It's good for comparing yourself with teammates on the same server, less good for catching short spikes.
  • Performance overlays give more detail. In Valorant the video settings have a Stats tab where you can enable network round-trip time and packet loss. In League of Legends Ctrl+F shows FPS and ping. Fortnite has a Net Debug Stats option in its HUD settings. These are the numbers to watch when you test.
  • Region or server ping in the menu is often a quick test to a data centre before you join, not the ping to the exact match server. It can differ from what you get in the match by a few milliseconds.
  • Net graphs in some games show ping together with jitter, loss and the server's update rate. If your game has one, it's the most honest view, because it shows stability, not just one number.

Whatever the game shows, a single number hides the most important thing: how stable it is. A steady 45 ms plays better than a 25 ms that jumps to 90 every few seconds. That's jitter, and we explain it in jitter in games.

These terms get mixed up constantly. Here is what each one means and how it shows up in a match.

TermWhat it isUnitWhat you notice in game
LatencyDelay in general, usually one-way in networkingmsDepends on which latency: network or local
RTTRound-trip time: there and backmsSame as ping in practice
PingRTT measured by ICMP or by the gamemsShots registering late, dying behind cover
JitterHow much ping changes from packet to packetmsEnemies stutter, aim feels inconsistent
Packet lossShare of packets that never arrive%Rubber-banding, teleporting players, lost actions
Input lagTime from key press to the picture changingmsHeavy, floaty mouse even offline
BandwidthHow much data the link can carry per secondMbit/sDownload speed; games need only a little

Bandwidth is the one people confuse with ping most often. A 1 Gbit/s connection can have a bad ping, and a 20 Mbit/s one can have a great ping. Most online games use well under 1 Mbit/s, so a fast speed test tells you almost nothing about how the game will play. For stability, check the two numbers that ping hides: jitter and packet loss.

How to compare the game's ping with a Windows test

If the game's number looks wrong, or you want to know where the milliseconds come from, this takes about ten minutes.

  1. Connect by cable if you can, and close downloads, cloud sync and streams on every device at home for the duration of the test.
  2. Join a match or a practice server and note the in-game ping from the overlay, not just the scoreboard. Write down the typical value and the highest jumps over a minute or two.
  3. Open Command Prompt and run ping -n 100 <your router> (the router address is the "Default Gateway" in ipconfig). On a cable you should see 1 ms or less with no loss. On Wi-Fi a few milliseconds with occasional jumps is common, and that's the first suspect for spikes.
  4. Run ping -n 100 to an address near the game's data centre, or use our ping test. If this is close to the in-game number, the difference is just game processing. If it is much lower, the game's traffic probably takes another path.
  5. Run tracert and then pathping to the same address. pathping spends a few minutes collecting loss statistics per hop. Loss that appears at one hop and continues to the end is real; loss at a single hop that disappears further on is usually a router ignoring ICMP.
  6. Compare with a route from outside: our route check from Frankfurt shows what a path from a European data centre looks like, so you can see whether the detour is on your ISP's side.

If the result points at your ISP's route, there's little you can change in Windows settings. That's the case nolag is built for: it sends only the game's traffic through a node in Frankfurt or Paris chosen for your game server, shows ping direct and via the node side by side, and lets you judge for yourself. It won't help if the problem is Wi-Fi, an overloaded PC or a server outage, and the steps above show you which one you have.

What latency numbers are good

For most online games: up to 50 ms round trip is good, 50–80 ms is fine outside competitive shooters, and from about 100 ms the delay starts deciding fights. Jitter under 5 ms and packet loss at 0% matter as much as the average. The breakdown by genre and by game, plus what's physically possible from different European cities, is in what is a good ping for gaming.

MetricGoodAcceptableProblem
Ping to the game serverup to 50 ms50–100 msover 100 ms
Ping to your router (cable)1 ms or lessup to 2 msover 5 ms or jumps
Jitterunder 5 ms5–15 msover 15 ms
Packet loss0%under 1% with no bursts1% or more

When you compare with friends, compare like with like: the same game, the same region, the same kind of measurement. "I have 12 ping" from someone who lives next to the data centre and pings a nearby test server doesn't mean anything is wrong with your 35 ms.

Myths about ping and latency

“Latency and ping are completely different things”

In games they describe the same round trip. Latency is the general term, ping is a measurement of it. The real distinction is between network latency (ping) and local latency (input lag).

“If Windows ping is low, the game's ping should be the same”

Windows may be pinging a different machine over a different route, without any server processing. A 5–15 ms gap is normal; a larger one usually means you're not measuring the game's path.

“A faster internet plan lowers ping”

Bandwidth and latency are separate. A faster plan helps if your line was saturated, but it doesn't shorten the distance or fix your ISP's route to the game server.

“Request timed out means the server is down”

Many game servers and routers simply don't answer ICMP. Check the game's own ping or its server status before drawing conclusions.

FAQ

Is ping the same as latency?

Almost. Latency is any delay, often measured one-way. Ping is the round-trip latency measured by a test or by the game. In gaming both words usually mean the round trip to the game server in milliseconds.

Which is better, low ping or low latency?

They are the same goal: a low round trip to the server. What matters in addition is stability, meaning low jitter and no packet loss, and low input lag on your own PC.

What is latency in gaming?

It is the delay between an action and its result. Network latency (ping) is the round trip to the server; local latency (input lag) is the time from pressing a key to the picture changing on your monitor.

Why is my in-game ping higher than in Windows ping?

The game may measure a different server or route, include server processing time and smooth the value, while Windows ping only measures how fast an address answers ICMP. A gap of 5 to 15 ms is normal.

Is one-way latency half of ping?

Roughly, if the route is the same in both directions. Routes there and back can differ, so one direction can be slower, and a normal ping test can't show which.

Does bandwidth affect ping?

Only when the connection is saturated, for example by a large download. Otherwise bandwidth and ping are independent, and games use well under 1 Mbit/s.

Try it free for 7 days

No card. Installs in a minute.

Download for Windows