Network

How to check your network latency on a Mac

Video calls stutter and SSH feels sticky, but a speed test says 400 Mbps. Speed isn’t latency. Two built-in commands measure what actually matters for real-time work, and tell you whether to blame your Wi-Fi or your provider.

The quick answer

Open Terminal and ping a reliable host 20 times:

ping -c 20 1.1.1.1
--- 1.1.1.1 ping statistics ---
20 packets transmitted, 20 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 15.4/18.9/42.0/5.8 ms

Read the last two lines:

  • avg is your typical latency.
  • stddev is a good stand-in for jitter: how much latency jumps around. Small is good.
  • packet loss should be 0%. Even 1–2% makes calls choppy.
  • max far above avg means spikes, the kind that freeze a video frame.

Is it your Wi-Fi or your provider?

Ping your router, then the internet, and compare. Find the router address first:

route -n get default | grep gateway
ping -c 20 192.168.0.1   # use the gateway address from above
Router pingInternet pingProblem is
Low and steady (1–5 ms)High or lossyYour ISP or beyond
High or lossyHigh or lossyYour Wi-Fi or local network
LowLowProbably the service you’re using

On Wi-Fi, a router ping above 10 ms or with spikes into the hundreds points at signal or interference. Hold Option and click the Wi-Fi icon in the menu bar to see RSSI, noise, channel and transmit rate. An RSSI weaker than about −70 dBm is where things get unreliable.

Latency under load: networkQuality

Plain ping measures an idle connection. Most real lag happens when something else is uploading or downloading at the same time, which is called bufferbloat. macOS ships Apple’s own test for it:

networkQuality
==== SUMMARY ====
Uplink capacity: 47.133 Mbps
Downlink capacity: 63.303 Mbps
Responsiveness: Low (1.070 seconds | 56 RPM)
Idle Latency: 20.144 milliseconds | 2978 RPM

Compare Idle Latency with Responsiveness. In this example the line is 20 ms when quiet but over a second when busy: a video call will fall apart the moment a backup starts. That’s a router or ISP queueing issue. Turning on SQM or “Smart Queue” on your router, if it has one, is the usual fix.

Useful flags: -v for detail, -s to test download and upload one after the other, and -I en0 to test one interface.

Find where along the route it goes wrong

traceroute shows each hop between you and a host, with the time to each:

traceroute -n 1.1.1.1

A jump that stays high for every hop after it marks where the delay starts. A single slow hop followed by fast ones is just a router that answers traceroute slowly; ignore it.

Keep a record

Latency problems are often intermittent: fine when you test, bad at 8 pm. A one-liner can log a ping every 10 seconds with timestamps:

ping -i 10 1.1.1.1 | while read l; do echo "$(date '+%F %T') $l"; done >> ~/latency.log

It runs until you press Ctrl-C, and the log is plain text you can send to your provider.

Seeing it live

Stat Space has an opt-in latency monitor (Settings › History & backup): one ICMP echo every 10 seconds to 1.1.1.1 or a host you choose, from an unprivileged socket rather than a spawned ping. Latency, loss and jitter are charted and kept in its 30-day history, so you can scroll back to last Tuesday evening. A VPN chip appears when a tunnel carries your traffic, since that changes every number. The Network tab also has on-demand ping with a latency chart, traceroute, DNS lookup and a speed test that runs Apple’s networkQuality. All free.

Questions

What is good latency?

Under 20 ms to a nearby server is very good, 20–50 ms is fine for calls and games, and over 100 ms feels laggy. Jitter under 10 ms and 0% packet loss matter as much as the average.

What does RPM mean in networkQuality?

Round-trips per minute: how many request-response cycles your connection manages while it’s busy. Higher is better. Apple calls it responsiveness, and it’s the number that predicts whether calls stay smooth while something else downloads.

Why is my latency fine on Ethernet but bad on Wi-Fi?

Wi-Fi adds its own delay from interference, distance and channel congestion. Moving closer to the router, switching to the 5 GHz or 6 GHz band, or changing channel usually helps. Option-click the Wi-Fi menu to see your signal, noise and channel.

Can ping be blocked?

Yes. Some hosts and corporate networks drop ICMP, so ping times out even though the internet works. Try another host such as 1.1.1.1 or 8.8.8.8, or use networkQuality, which measures over HTTPS.

Get started

Know what your Mac is doing, without adding to it.

Free, no account. Pro is $9.99 once for the first 100 buyers.