You don't have javascript enabled. Please enable javascript to use this website.

What Is Latency?

Ping, jitter and lag explained, what counts as a good ping, and how to lower yours.

Latency is the time data takes to travel from your device to a server and back, measured in milliseconds (ms); "ping" is the everyday name for it. Under 20 ms is excellent, 20 to 50 ms is good for gaming and video calls, and above 100 ms you start to notice lag.

Measure your latency now

Times 12 small requests from your browser to the nearest Cloudflare data centre and shows the median (latency) and how much it varies (jitter). Nothing is sent to us. For a ping to any server from many countries, use our ping test; for latency during a download, the speed test.

What Is Latency in Networking?

Latency is delay: the time between sending something and getting the answer. Networks measure it as the round trip time (RTT), from your device to a server and back.

When you click a link, press a key in a game or speak in a call, the data crosses your Wi-Fi, your router, your provider's network and several others before it reaches the server, and the answer comes back the same way. Each part adds a little delay. You feel it as lag in games, as people talking over each other in calls, and as a short wait before a page starts loading.

Latency vs Bandwidth: What's the Difference?

Bandwidth (speed, in Mbps) is how much data gets through per second; latency (in ms) is how long each piece takes to arrive. A fast connection to a faraway server still has high latency.

Diagram: a wide but long pipe, 1 Gbps with 120 ms to a faraway server, and a narrower short pipe, 50 Mbps with 12 ms nearby; below, where round-trip milliseconds come from: Wi-Fi 1 to 10 ms, the provider 5 to 15 ms, distance about 1 ms per 100 km each way, and a busy line up to hundreds
Speed is how wide the pipe is. Latency is how long it is.
Latency (ping)Bandwidth (speed)
Measured inmilliseconds (ms)megabits per second (Mbps)
Matters most forgames, calls, remote desktopdownloads, streaming, backups
Lower or higher is better?lowerhigher
Changes with distance?yesbarely

What Is a Good Ping?

Under 20 ms is excellent, 20 to 50 ms is good, 50 to 100 ms is fine for most things except fast games, and above 150 ms calls and games feel laggy.

PingRatingWhat it feels like
Under 20 msExcellentInstant, even in competitive shooters
20 – 50 msGoodSmooth gaming and calls
50 – 100 msOKFine for browsing, streaming and slower games
100 – 150 msNoticeableSmall delays in games and calls
Over 150 msHighLag in games; people talk over each other in calls

For calls, the ITU's G.114 recommendation sets the comfortable limit at 150 ms one way, from mouth to ear (codec and network together), and calls more than 400 ms one way unacceptable. Streaming video doesn't care much: it buffers ahead.

What Is Jitter? And Packet Loss?

Jitter is how much latency changes from one packet to the next; packet loss is the share of packets that never arrive. Both cause stutter even when the average ping is low.

  • Jitter under 10 ms is good, under 30 ms is acceptable for calls. Above that, voices break up and games jump. Wi-Fi and a busy line are the usual causes.
  • Packet loss should be 0%. Even 1 to 2% causes rubber-banding in games and gaps in calls. A weak Wi-Fi signal, a faulty cable or an overloaded network are the usual causes; our ping test shows it.

What Causes High Latency?

Distance to the server, Wi-Fi, a line busy with other downloads, the type of connection (satellite, mobile), a VPN, and the route the data takes.

CauseTypical effect
DistanceLight in fibre covers about 200 km per millisecond: roughly 1 ms per 100 km each way. New York to London and back takes at least 56 ms.
Wi-Fi+1 to 10 ms on a good signal; much more and unsteady with walls, distance or interference
A busy lineUploads and downloads fill the router's queue ("bufferbloat"): +50 to several hundred ms while they run
Connection typeFibre lowest; cable and DSL a little higher; 4G/5G 20 to 60 ms; low-orbit satellite (like Starlink) 25 to 60 ms; geostationary satellite 600 ms or more
VPNAdds the trip to the VPN server: little if it's nearby, a lot if it's in another country
RoutingYour provider may send data a long way round; traceroute shows where the time adds up

How to Lower Your Ping

Use a cable instead of Wi-Fi, stop other downloads while you play, pick the nearest game server, and turn off the VPN; if latency jumps during downloads, enable your router's SQM or QoS.

  1. Plug in a cable, or use 5 GHz Wi-Fi close to the router.
  2. Stop other heavy traffic: cloud backups, game updates, 4K streams on other devices.
  3. Choose the nearest server or region in the game or app.
  4. Turn off the VPN, or connect to a VPN server close to you and to the game server.
  5. Fix bufferbloat: if the speed test shows latency rising a lot under load, turn on SQM (Smart Queue Management) or QoS in the router.
  6. Restart the router and update its firmware; replace an old one that struggles with many devices.
  7. Still high? Run a traceroute: if the delay starts at your provider, contact them with the result.

How to Test Your Latency

Use the button at the top, our online ping test, or the ping command: ping google.com shows the round trip of each packet in ms.

Windows Command Prompt

ping -n 10 google.com sends 10 packets; read "Average" in the summary and "Lost" for packet loss.

Mac / Linux Terminal

ping -c 10 google.com sends 10 packets; the last line shows min/avg/max and the standard deviation (a measure of jitter).

Phone, tablet, Chromebook In the browser

Use the button at the top, our ping test (from probes in many countries) or the speed test, which also measures latency while downloading.

Some servers don't answer ping at all: no reply doesn't mean they're down. To see the delay at each step of the route, use traceroute.

Frequently Asked Questions

Is latency the same as ping?
Nearly. Latency is the delay itself; ping is the tool that measures it (and games call the result "ping"). Both are usually the round trip: there and back, in milliseconds.
Does faster internet lower my ping?
Not directly. More Mbps lets more data through at once, but the delay depends on distance, the type of connection and how busy the line is. A faster plan helps only when your line was full, for example during big downloads.
Why is my ping high when my speed is good?
The server may be far away, you may be on Wi-Fi or a VPN, or another device is filling the line (bufferbloat). Test on a cable with nothing else running, and against a nearby server, to find out which.
What is a good ping for gaming?
Under 50 ms is good for most online games, under 20 ms is excellent for fast shooters, and up to 100 ms is playable for slower games. Steady matters as much as low: jitter under 10 ms.
Does Wi-Fi increase ping?
Yes, by about 1 to 10 ms on a good signal, and much more with a weak signal, interference or many devices. A cable gives the lowest and steadiest latency.
Can ping be 0 ms?
Only to your own device. Over a network, every hop and every kilometre adds time: even a server in your city is usually 1 to 5 ms away over fibre.

Next steps

Related Tools

Ping Test
Latency and packet loss to any server, from many countries.
Speed Test
Download, upload, and latency under load.
Traceroute
Where on the route the delay comes from.
What Is My ISP
Your provider and network, to report high latency.

Related Guides

Guide What Is DNS?
The lookup that happens before every first connection.
Guide What Is a VPN?
What a VPN adds to your ping, and when it's worth it.
Guide Port Forwarding
Open NAT for consoles and game servers.