How to Reduce Ping and Fix Lag Spikes
High ping and sudden lag spikes almost always come from a handful of causes: Wi-Fi, other traffic on the line, the router's queue, or a far-away server. The fixes below are ordered by how much they usually help. Measure before and after each one with the ping test, so you know which change actually worked.
The short answer
- Use a network cable. Moving from Wi-Fi to Ethernet removes most spikes and often 5 to 20 ms of ping.
- Stop the line filling up. Pause downloads, cloud backups and streams on other devices, or turn on SQM or QoS in the router to fix bufferbloat.
- Pick the closest game server and close background apps. Distance to the server is often the biggest part of in-game ping.
- Check each change with the ping test: median ping, jitter and lost requests should all fall.
First, find out where the lag comes from
Run the ping test for 30 seconds three times: on your usual Wi-Fi, over a cable (or right next to the router), and on Wi-Fi while another device streams a video. Then run the internet speed test and look at its bufferbloat grade.
- Bad on Wi-Fi, fine on a cable: the problem is wireless. Start with fixes 1 and 2.
- Fine when quiet, bad while others use the internet (or a bufferbloat grade of C or worse): the router lets a queue build up. Fixes 3 and 4.
- Fine in the test, high only in one game: the server is far or busy. Fix 5.
- Bad everywhere, even on a quiet cable: the connection or provider. Fixes 8 to 10.
1 and 2: Fix the Wi-Fi or skip it
1. Use an Ethernet cable. It is the most reliable fix for gaming. Wi-Fi shares the air with every other device and neighbour, has to retry lost frames, and briefly pauses to scan for networks, which shows up as spikes. A cable avoids all of that. If the router is in another room, a long flat cable or a pair of powerline adapters (network over the mains wiring) is still usually steadier than Wi-Fi; mesh systems with a wired backhaul are the next best thing.
2. If you must use Wi-Fi, make it as clean as possible. Connect to the 5 GHz or 6 GHz band rather than 2.4 GHz, keep the router high and in the open, and avoid playing through several walls. Turn off other devices you are not using. Some laptops pause Wi-Fi now and then to scan for other networks, which shows up as regular spikes; updating the Wi-Fi driver often helps. Test again after each change.
3 and 4: Stop other traffic from causing lag
3. Pause the heavy users. A game update on a console, a phone backing up photos, a 4K stream or a large upload can all fill the line. Game consoles and PC launchers also download updates in the background; schedule them for the night. Cloud backup apps (OneDrive, Google Drive, iCloud) usually have a setting to limit upload speed.
4. Turn on SQM or QoS in the router. Bufferbloat happens when the router holds large queues of packets while the line is busy, so your small game packets wait behind them. Smart Queue Management (SQM, often using the fq_codel or CAKE algorithms) keeps those queues short. Many routers call it QoS, Adaptive QoS, Smart Queue or Gaming mode. Set the limits to about 85 to 95% of the speeds you measured; you give up a little bandwidth and gain steady ping. After turning it on, the bufferbloat grade in the speed test should improve to A or B.
Device prioritisation ("put my console first") helps a bit on some routers but does not fix bufferbloat on its own; SQM is the setting that does.
5 to 7: Game and computer settings
5. Choose the closest server. Every 1,000 km of distance adds roughly 10 ms of round-trip time. Most games let you pick a region or show the ping to each one; choose the lowest, not the one with the most players. In matchmaking games, a strict ping limit (if offered) keeps you on nearby servers.
6. Close background apps. Browsers with many tabs, streaming apps, voice chat with video, torrent clients and cloud sync all send traffic. On a PC, check Task Manager > Performance > Ethernet or Wi-Fi to see whether something is using the network.
7. Do not confuse ping with frame rate. Low FPS or a slow display also feels like lag but has nothing to do with the internet. If the game shows low ping but feels delayed, check your frames with the FPS test and the input delay of your mouse with the mouse latency test.
8 to 10: The connection itself
8. Restart the modem and router. Unplug both for 30 seconds. It clears overheating, memory leaks and stuck connections, which can cause random spikes. Update the router firmware while you are at it.
9. Check cables and the line. A damaged Ethernet cable, a loose coax connector or a noisy phone line causes packet loss. If the ping test shows lost requests on a cable with nothing else running, swap the cable first, then contact your provider with screenshots taken at different times. They can test the line from their side.
10. Consider the connection type. If you are on DSL, mobile or older satellite, the technology itself sets a floor for ping. Fibre gives the lowest and steadiest latency, followed by cable. A 5G home connection can be fine but varies with signal and tower load.
Things that rarely help
- Paying for a faster plan lowers ping only if your line was full. If the speed test shows plenty of headroom, extra Mbps change nothing in a game.
- Changing DNS speeds up how quickly websites and matchmaking start, but does not change the ping during a match. (It is still worth trying for slow page loads; see how to change your DNS server.)
- "Ping booster" apps and gaming VPNs help only when your provider routes traffic to a particular game server badly. Usually a VPN adds a stop and raises ping. If you try one, measure in-game ping with and without it.
- Registry tweaks such as Nagle's algorithm changes made sense for some old games but do nothing for most modern ones.