What Is Latency? Definition, Causes, and Fixes
In this article
Latency is the time delay between when a device sends a request and when it receives a response. In networking, it is usually measured in milliseconds (ms) and represents the round-trip time for data to travel from your device to a server and back. Lower latency means a more responsive connection; higher latency causes noticeable lag, especially in video calls, online gaming, and smart home controls. Latency is not the same as bandwidth—bandwidth is how much data can move per second, while latency is how fast a single piece of data makes the trip.
Where Latency Comes From
Latency builds up from several physical and software-based delays along the network path. Each hop—every router, switch, or server your data passes through—adds a small amount of processing time. The biggest factor is usually the physical distance between you and the server: light in fiber optic cable travels at about 200,000 km/s (roughly two-thirds the speed of light in a vacuum), so a round trip across continents can add 100–150 ms before any other delays are counted.
Other contributors include:
- Propagation delay: time for the signal to travel through the cable or air.
- Transmission delay: time to push all the bits of a packet onto the wire.
- Processing delay: time routers spend reading packet headers and deciding where to send them.
- Queuing delay: time a packet waits in a router's buffer when traffic is heavy.
In a home network, Wi-Fi adds its own latency—typically 2–5 ms on a good connection, but it can spike under interference. The internet service provider (ISP) also adds latency through their equipment and peering agreements, which is why two connections with the same advertised speed can feel very different.
How Latency Is Measured
Latency is measured with a ping test, which sends a small packet to a server and times how long the reply takes. The result is the round-trip time (RTT). Most speed test websites show both ping and download/upload speeds. A ping under 20 ms to a nearby server is excellent; 20–50 ms is good for most tasks; 50–100 ms is noticeable in fast-paced games; above 100 ms you will feel lag in real-time applications.
For a more precise picture, network engineers use traceroute to see each hop along the path and where the delay is added. On Windows, the command is tracert; on macOS and Linux, it is traceroute. This can help identify whether the problem is in your home network, your ISP, or a distant server.
Note that ping measures the round trip, not one-way delay. Some applications like video streaming care more about one-way latency, but for most home users round-trip time is the standard metric.
Latency vs. Bandwidth vs. Throughput
These three terms are often confused, but they describe different things:
- Latency: the delay before data starts moving (measured in ms).
- Bandwidth: the maximum amount of data that can move per second (measured in Mbps or Gbps).
- Throughput: the actual amount of data that successfully moves per second, which is usually lower than bandwidth due to overhead and congestion.
A simple analogy: latency is how long you wait in line at a coffee shop; bandwidth is how many people the barista can serve per minute; throughput is how many cups you actually get in your hand per minute. A high-bandwidth connection with high latency will still feel slow for real-time tasks like voice calls, because the delay is the bottleneck.
Common Causes of High Latency
If your latency is higher than expected, the causes usually fall into a few categories:
- Distance: Connecting to a server on another continent adds unavoidable delay. Choose a server closer to you when possible.
- Wi-Fi interference: Walls, microwave ovens, and neighboring networks can cause retransmissions, which add delay. A wired Ethernet connection always has lower and more stable latency.
- Network congestion: When many devices on your network are streaming or downloading, routers may queue packets, increasing latency.
- ISP issues: Your ISP may have a congested peering point or routing that sends traffic through a distant hub. A traceroute can reveal this.
- Old router or firmware: An outdated router may have inefficient processing or bufferbloat (excessive queuing under load).
- Background updates: Windows updates, cloud backups, or game downloads can saturate your connection and spike latency.
Bufferbloat is a specific problem where routers hold too much data in their buffers, causing latency to jump from 20 ms to 500 ms when the connection is saturated. Many modern routers have a feature called Smart Queue Management (SQM) or Quality of Service (QoS) to limit this.
How to Reduce Latency
You can lower latency with a few practical steps, in order of effectiveness:
- Use a wired connection. Ethernet eliminates Wi-Fi interference and reduces latency by 1–5 ms and often more under load.
- Close bandwidth-heavy apps. Pause cloud syncs, large downloads, or video streams while you need low latency.
- Move closer to your router or add a mesh access point if Wi-Fi is the only option. Avoid placing the router near metal objects or thick walls.
- Enable QoS or SQM on your router. This prioritizes time-sensitive traffic (like voice and games) over bulk downloads. Settings vary by router brand, but look for "Quality of Service" or "Traffic Prioritization" in the router's admin page.
- Update your router's firmware. Manufacturers often fix latency-related bugs and improve buffer management.
- Choose a closer server for games or VPN connections. Many games let you select a region; pick the one with the lowest ping.
- Restart your router and modem to clear any temporary issues or corrupted routing tables.
If you are using a VPN, it can add 10–50 ms because your traffic takes a detour through the VPN server. For gaming or voice calls, connect to a VPN server that is geographically close to you, or disable the VPN if you do not need it.
Latency in Smart Home and Streaming
Smart home devices are sensitive to latency in a different way. When you say "turn off the lights," the voice assistant sends your command to the cloud, the cloud processes it, and then sends a signal back to the light switch. That round trip can take 500 ms to 2 seconds depending on the service. Local control (like a smart switch that works without the internet) is much faster because it skips the cloud.
For video streaming, latency matters less for playback (because buffering hides it) but matters a lot for live events. Live sports or video calls have a latency of 1–5 seconds on typical platforms, which is why you might hear a neighbor's TV before your own stream. Some services offer "low latency mode" that trades some quality for a shorter delay.
In online gaming, latency is critical. A ping of 30 ms feels responsive, while 100 ms causes noticeable input lag. Professional players often use wired connections and select servers in their region to keep latency under 20 ms.
Frequently Asked Questions
What is a good latency for gaming?
Under 20 ms is excellent, 20–50 ms is good, 50–100 ms is playable but noticeable, and above 100 ms you will see rubber-banding and delayed reactions. For competitive shooters, aim for under 30 ms.
Is latency the same as ping?
Ping is the tool used to measure latency. When someone says "my ping is 40," they mean their round-trip latency is 40 ms. The terms are used interchangeably in casual conversation, but technically ping is the measurement and latency is the property.
Can a high-speed internet plan fix high latency?
No. A faster plan increases bandwidth, but latency is determined by distance, routing, and network congestion. You could have a 1 Gbps plan and still have 100 ms latency if the server is far away. Upgrading your plan only helps if your current bandwidth is causing congestion.
Why is my latency high even with a wired connection?
The cause is likely outside your home. Run a traceroute to see where the delay spikes. If the delay appears after your router, it is your ISP or the remote server. You can also test with a different device to rule out a local problem.
Does a VPN always increase latency?
Usually yes, because your traffic takes a longer path through the VPN server. The increase is typically 5–50 ms depending on the distance to the VPN server. However, a VPN can sometimes lower latency if your ISP's normal routing is inefficient and the VPN server is closer to the destination.
Can latency be zero?
No. Even in the same room, data takes a few milliseconds to travel through cables and routers. The speed of light and processing delays set a physical minimum. In practice, anything under 1 ms on a local network is considered near-zero.