Latency is how long one piece of data takes to get from you to a server and back, measured in milliseconds; bandwidth is how much data the connection can carry per second, measured in megabits per second. Bandwidth decides how fast a big download finishes, while latency decides how responsive everything feels: page loads, video calls, games and anything made of many small requests.
An analogy that holds up: bandwidth is the number of lanes on a motorway, latency is how long the drive takes. Adding lanes lets more cars through per hour, but it does not make any single car arrive sooner.
Latency vs bandwidth at a glance
| Latency | Bandwidth | |
|---|---|---|
| What it measures | Delay: time for a packet to travel (usually round trip) | Capacity: maximum data per second |
| Unit | Milliseconds (ms) | Megabits or gigabits per second (Mbps, Gbps) |
| Better is | Lower | Higher |
| Main causes | Distance, number of hops, queueing in busy routers, Wi-Fi retransmissions | Your plan, the slowest link on the path, the medium (fibre, cable, radio) |
| Hurts most | Games, calls, web pages, APIs, remote desktops | Large downloads, uploads, 4K streaming, backups |
| How to measure | ping, the latency figure in a speed test | A speed test, or timing a large file transfer |
A third term you'll see is throughput: the rate you actually achieve. Throughput is always at or below bandwidth, and as the sections below show, latency is one of the things that can hold it down.
Why latency matters more than bandwidth for web pages
A web page is not one download. MDN's performance guide points out that the first request on a new connection includes a DNS lookup, a TCP handshake and TLS negotiation, each of which needs at least one round trip before any page data flows. Then the HTML pulls in stylesheets, scripts and images, and some of those can only be requested after an earlier file has arrived.
Work through it with numbers. Suppose loading a page needs 20 round trips that have to happen one after another, and the files total 2 MB:
- At 100 ms round-trip latency, the waiting alone is 20 × 100 ms = 2 seconds.
- At 100 Mbps, transferring 2 MB (16 megabits) takes 16 / 100 = 0.16 seconds.
Doubling the bandwidth to 200 Mbps saves 0.08 seconds. Halving the latency to 50 ms saves a full second. That is why a "faster" plan often makes no visible difference to browsing, and why content delivery networks put servers close to users: they cut distance, which cuts latency.
When bandwidth is the bottleneck
Flip the workload and bandwidth dominates. Downloading a 10 GB game is one long transfer, so the handful of round trips at the start are noise:
- At 100 Mbps: 80,000 megabits / 100 = 800 seconds, about 13 minutes.
- At 1 Gbps: 80 seconds.
Here a latency of 20 ms or 120 ms changes the total by a fraction of a second, while ten times the bandwidth makes the download ten times faster. The same goes for uploading video, cloud backups and several people streaming at once on one connection.
How latency limits throughput: the bandwidth-delay product
There is a case where high latency cuts throughput even on a fast link. TCP can only have a limited amount of unacknowledged data "in flight" at once (the window). It sends a window's worth, then waits for acknowledgements to come back. RFC 6349 gives the resulting ceiling:
Max TCP throughput (bits/s) = window size (bytes) × 8 / RTT (seconds)
With a 64 KiB window (65,536 bytes) and a 50 ms round trip:
65,536 × 8 / 0.050 = 10,485,760 bits/s ≈ 10.5 Mbps
That single connection tops out around 10.5 Mbps no matter whether the line is rated 100 Mbps or 1 Gbps. To fill the pipe, the window has to be at least the bandwidth-delay product (BDP), which RFC 6349 defines as link capacity times round-trip time:
BDP = 1,000,000,000 bits/s × 0.050 s = 50,000,000 bits = 6.25 MB
The original TCP header can only express windows up to 64 KiB. RFC 7323 window scaling raises that limit to 1 GiB, and modern operating systems use it and tune the window automatically, which is why a single download can saturate a fast link today. You still see the effect in practice: transfers to a server on another continent are often slower than to a nearby one on the same connection, because the window has to grow larger to cover the longer round trip, and any packet loss shrinks it again.
How to measure latency
Use ping. On Windows it sends 4 echo requests by default; -n sets the count:
ping -n 10 1.1.1.1
Example output (real run, wired connection):
Reply from 1.1.1.1: bytes=32 time=47ms TTL=55
Reply from 1.1.1.1: bytes=32 time=48ms TTL=55
Reply from 1.1.1.1: bytes=32 time=44ms TTL=55
...
Ping statistics for 1.1.1.1:
Packets: Sent = 10, Received = 10, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 40ms, Maximum = 48ms, Average = 43ms
The time= values are round-trip latency. On macOS and Linux, use ping -c 10 1.1.1.1; the summary line shows min/avg/max/mdev, where mdev is how much the times vary (jitter). Ping the server you actually care about (a game server, your company VPN) because latency is a property of the path, not of your connection as a whole. The ping command guide covers the output in detail, and tracert shows which hop adds the delay.
How to measure bandwidth
A speed test measures throughput to a nearby test server, which is a good estimate of your access bandwidth. For a fair reading:
- Test over a cable, not Wi-Fi, to see what the line delivers. Then test on Wi-Fi to see what the room delivers.
- Pause other downloads, cloud sync and streaming on the network first.
- Test a few times at different hours. A drop in the evening points to congestion at your provider.
Most speed tests also report latency, sometimes twice: "idle" and "loaded" (or "under load"). A big jump in latency while the test saturates your link means packets are queueing in an oversized buffer in your router or modem, usually called bufferbloat. That is the case where bandwidth and latency interact directly: a full link makes everything feel slow.
How to lower latency
- Use a cable instead of Wi-Fi for anything latency-sensitive. Wi-Fi adds retransmissions and contention that show up as spikes.
- Stop saturating the link. A large upload in the background fills queues and raises latency for every other device. Router features usually called QoS or SQM can keep queues short.
- Pick nearer servers. Many games and apps let you choose a region. Distance is the one part of latency nothing else can remove.
- Check for packet loss, which forces retransmissions and makes latency spiky. See how to find and fix packet loss.
Paying for more bandwidth helps only when the link is genuinely full. If ping is high while nothing else is using the connection, the delay is in distance or routing, and a faster plan will not change it.
Frequently asked questions
- Is latency the same as ping?
- Ping is the usual way to measure latency. The ping command sends an ICMP echo request and reports the round-trip time in milliseconds, so the 'ping' a game or speed test shows is a round-trip latency figure. It measures the path to that one host only, and some routers deprioritise ICMP, so treat it as an estimate.
- Does more bandwidth reduce latency?
- Mostly no. Latency comes from distance, the number of hops and queueing, and a faster plan does not shorten any of them. The one exception is congestion: if your link is full, packets wait in queues, and more bandwidth (or less competing traffic) shortens that wait.
- What is a good latency for gaming and video calls?
- Lower is better, and steadiness matters as much as the average: a steady 40 ms usually feels better than an average of 30 ms with spikes to 200 ms. There is no single official threshold. Ping the service's own server, compare wired and Wi-Fi, and watch the maximum and the variation, not just the average.
- What is throughput?
- Throughput is the rate you actually achieve, as opposed to bandwidth, which is the maximum the link can carry. Throughput is limited by the slowest link on the path, by packet loss, and for TCP by the window size divided by the round-trip time.