sodcalculator

08 Everyday Math

Internet Lag: What It Is and Why It Happens

Guide 08-64213 · Updated · Step by step

Internet lag is the noticeable delay between when you send a command (clicking a link, pressing a key in a game, or starting a video call) and when the server or the other participant receives and responds to it. It is not a single technical fault but a symptom of several possible causes: network congestion, physical distance, hardware limitations, or software inefficiency. Understanding lag matters because it affects everything from competitive gaming to remote work, and the fix depends entirely on which type of lag you are actually experiencing.

What Exactly Causes Internet Lag?

Lag is the time it takes for data to travel from your device to a server and back, known as round-trip time (RTT). This delay is measured in milliseconds (ms). The theoretical minimum for light in fiber is about 5 ms per 1000 km, but real-world networks add overhead at every hop. The main contributors are:

  • Propagation delay: The physical time for a signal to travel through cables and air. This is fixed by distance; you cannot speed up light.
  • Transmission delay: The time to push all the bits of a packet onto the wire. Larger packets or slower connections increase this.
  • Processing delay: Routers and switches inspecting packet headers and deciding where to send them. This is usually tiny but adds up across many hops.
  • Queuing delay: When a router is busy, packets wait in a buffer. This is the most common cause of lag spikes during congestion.

For example, a typical home broadband connection to a nearby server might have an RTT of 20-40 ms. A connection to a server on another continent can easily be 150-300 ms. That difference is why you can play a game on a local server smoothly but feel unplayable delay on a distant one.

Ping vs. Jitter vs. Bandwidth

People often confuse these three terms. Ping (or latency) is the average RTT. Jitter is the variation in that RTT between packets. Bandwidth is the maximum amount of data that can be transferred per second, measured in Mbps or Gbps.

You can have high bandwidth and still have terrible lag if your ping is high. Conversely, you can have low ping but low bandwidth, which causes stuttering when downloading large files. Jitter is especially harmful for real-time applications: a video call with 50 ms average ping but 30 ms jitter will freeze and break up because packets arrive unevenly. A stable 100 ms ping is often better than a fluctuating 40 ms ping for voice or gaming.

Common Causes of Lag in Gaming

Gaming is the most sensitive use case because it requires continuous, low-latency updates. The common culprits are:

  • Server location: Playing on a server far from you adds physical distance delay. Choosing a regional server is the single biggest improvement.
  • Wi-Fi interference: Wireless signals share the air with other devices, microwaves, and neighboring networks. Packet loss and retransmissions cause visible lag spikes.
  • Background downloads: Steam, Windows Update, or a roommate streaming 4K video saturates your bandwidth and fills router buffers, increasing queuing delay.
  • Router bufferbloat: When your connection is saturated, routers buffer too many packets, adding hundreds of milliseconds of delay. This is often worse than low bandwidth itself.
  • ISP routing: Sometimes your traffic takes a suboptimal path through multiple carriers, adding extra hops. A VPN can sometimes fix this, ironically, by rerouting.

How to Measure and Diagnose Lag

You cannot fix what you cannot measure. Start with these steps:

  1. Run a ping test to a known server (e.g., ping 8.8.8.8 on Windows or ping 8.8.8.8 on macOS/Linux). Note the average and the max.
  2. Run a jitter test using an online speed test that shows ping, jitter, and packet loss. Most modern tests do this.
  3. Test while your network is idle, then again during heavy use, to see if bufferbloat is the issue.
  4. Check your router’s admin page for the WAN connection type and any QoS settings.
  5. Use a wired Ethernet connection temporarily. If lag disappears, your Wi-Fi is the problem.

A common misconception is that a speed test showing high download speed means your connection is healthy. That test does not measure latency under load. A connection can have 500 Mbps download but 200 ms latency when the buffer is full.

Fixes for Lag: What Actually Works

The right fix depends on the cause, but these are the most reliable, in order of effectiveness:

  • Use Ethernet instead of Wi-Fi: A wired connection eliminates wireless interference and reduces jitter dramatically. Even a powerline adapter is usually better than Wi-Fi for gaming.
  • Enable QoS on your router: Quality of Service prioritizes gaming or video call traffic over bulk downloads. Set it to prioritize your device’s MAC address or the specific application.
  • Reduce bufferbloat: Many modern routers have Smart Queue Management (SQM) or a bandwidth limiter. Set your upload to 85% of your measured speed and download to 85% as well. This prevents the buffer from filling.
  • Choose the right server: In games, select a server with the lowest ping, not the one with the most players. In video calls, use a service that routes to a nearby data center.
  • Close background apps: Pause cloud backups, torrents, and large downloads during critical sessions.
  • Update your router firmware: Manufacturers often fix bugs that cause latency spikes. Check for updates in the admin panel.

If you have tried all these and still see lag, the problem may be your ISP’s routing or an issue on the server side. Run a traceroute to see where the delay appears. If it is at the first hop, your router is the issue; if it is at the last hop, the server is overloaded.

Lag in Video Calls and Streaming

Video calls and streaming have different tolerance levels. For a video call, you need low jitter and consistent upload bandwidth. Common fixes include turning off your camera (reduces upload), using a wired connection, and asking others on your network to pause downloads. For streaming (watching), lag appears as buffering. This is usually a bandwidth issue, not a latency issue, unless you are watching live events where delay matters. A live stream has a 30-60 second delay by design; that is not lag, it is buffering for stability.

Frequently Asked Questions

What is a good ping for gaming?

For competitive shooters, under 50 ms is ideal, under 20 ms is excellent. For casual games, under 100 ms is fine. Above 150 ms, you will notice rubber-banding and delayed actions.

Does a VPN reduce lag?

Sometimes. A VPN can bypass a congested ISP route, but it adds encryption overhead. Test it: if your normal ping is high due to bad routing, a VPN might lower it. If your ping is already low, a VPN will usually increase it.

Why do I have lag only at night?

Peak usage hours (evenings) cause network congestion both on your local network and on your ISP’s backbone. Everyone is streaming and gaming simultaneously, filling buffers. This is normal and often mitigated by QoS.

Can my computer cause lag?

Yes. If your CPU or GPU is at 100% while gaming, the game may stutter, which looks like lag but is actually a frame rate issue. Check task manager during gameplay. Network lag is consistent, while frame drops are usually tied to scene complexity.

Is 5G better than Wi-Fi for gaming?

5G has lower latency than Wi-Fi in ideal conditions (often 10-20 ms), but it can be unstable. If you have a strong 5G signal and a good router, it can be better. However, 5G can suffer from congestion and signal drops, so Ethernet is still the most reliable.

What is the difference between lag and ping?

Ping is the measurement of latency (the time in ms). Lag is the perceived delay you experience. High ping causes lag, but lag can also be caused by jitter, packet loss, or frame drops. They are related but not identical.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Everyday Math bed →