Networking

How to Test Internet Speed (and Get a Result You Can Trust)

To test your internet speed, open a browser speed test such as Google's (search "internet speed test" and click Run Speed Test), speed.cloudflare.com or speedtest.net, and read the download, upload and latency figures. For a result that reflects your connection rather than your Wi-Fi, run it on a computer plugged into the router with an Ethernet cable, with other devices idle, and repeat it two or three times.

How to test internet speed in a browser

Any of these work without installing anything:

TestHow to start itWhat it showsPrivacy note
Google speed testSearch internet speed test on Google, click Run Speed TestDownload, upload, latencyRun by Measurement Lab (M-Lab); your IP address is published with the results in M-Lab's public research dataset
CloudflareOpen speed.cloudflare.comDownload, upload, latency, jitter, packet loss, plus streaming, gaming and video-call scoresCloudflare truncates your IP address to a /24 (IPv4) or /48 (IPv6) for its shared dataset
Speedtest by OoklaOpen speedtest.net, click GoDownload, upload, ping; lets you pick the serverRun by a commercial company; see its privacy policy

Google says its test takes about 30 seconds. Data use depends on your speed: Google quotes about 9.4 MB for a typical US test and 4.4 MB elsewhere, and Cloudflare notes its test can use up to 200 MB. On a metered mobile plan, that adds up.

How to get an accurate result

  1. Use a cable. Plug a computer into the router with Ethernet. Wi-Fi is often the slowest part of a home network, so a wireless test measures the Wi-Fi as much as the internet connection.
  2. Stop other traffic. Pause downloads, cloud backups, game updates and streaming on every device in the house. A 4K stream alone uses 15 Mbps or more by Netflix's figures.
  3. Close VPNs. A VPN routes traffic through its own server, so you are testing the VPN.
  4. Run it three times, a few minutes apart, and note the typical result rather than the best one.
  5. Test at different times of day. If speeds collapse every evening, the congestion is in the provider's network, not your home.

What the numbers mean

FigureUnitWhat it affects
DownloadMbps (megabits per second)Streaming, downloads, loading pages
UploadMbpsVideo calls, sending large files, cloud backup, livestreaming
Latency (ping)ms (milliseconds)How responsive things feel: games, calls, remote desktops
JittermsHow much latency varies; high jitter makes calls choppy
Packet loss%Data that never arrives and must be resent; anything above 0% under normal use is worth investigating

Speeds are in megabits, but file sizes are in megabytes. Divide by 8 to compare: a 100 Mbps connection moves at most 12.5 MB per second, so a 1 GB (1,000 MB) download takes at least 80 seconds.

Some tests also report "loaded" or "under load" latency, the latency measured while the download is running. If it is much higher than the idle latency, your router is queueing too much traffic (often called bufferbloat), which is why calls stutter when someone else starts a download.

Is it the Wi-Fi or the internet connection?

Compare a wired test with a wireless test from the same spot. If the wired result is close to your plan and Wi-Fi is far below it, the problem is the Wi-Fi. You can also see the speed your Wi-Fi adapter has negotiated with the router. On Windows:

netsh wlan show interfaces

Example output (trimmed):

    Radio type             : 802.11ax
    Band                   : 5 GHz
    Channel                : 104
    Receive rate (Mbps)    : 288
    Transmit rate (Mbps)   : 144
    Signal                 : 65%

The receive and transmit rates are the radio link speed, a ceiling rather than what you will actually get; real throughput over Wi-Fi is typically well below it. If the link rate is lower than your internet plan, Wi-Fi is the bottleneck. In PowerShell, Get-NetAdapter | Select-Object Name, LinkSpeed shows the same for every adapter, including Ethernet (a wired port showing 100 Mbps instead of 1 Gbps often means a damaged cable or an old switch).

On macOS, hold Option and click the Wi-Fi icon in the menu bar to see the Tx Rate. On Linux, iw dev lists wireless interfaces and iw dev wlan0 link shows the last transmit rate as tx bitrate (replace wlan0 with your interface name).

How to test internet speed from the command line

Ookla publishes an official command-line client, Speedtest CLI, useful for servers, scripts and machines without a desktop. On Ubuntu and Debian, Ookla's install instructions add its package repository and then install the package:

sudo apt-get install curl
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest

On macOS with Homebrew:

brew tap teamookla/speedtest
brew install speedtest

Then run speedtest. The second install line pipes a script from the internet into a root shell, so read it first if that is a concern. The CLI reports download, upload, latency and packet loss, and can output CSV or JSON for logging results over time. Note that the unofficial Python package speedtest-cli is a different program; Ookla's instructions say to remove it to avoid conflicts.

Why speed tests disagree

  • Server choice. A test to a server in your city is faster than one to another country. Ookla lets you pick the server; others choose for you.
  • Method. Many tests open several connections at once to fill the line. M-Lab's NDT, which powers Google's test, describes itself as a single-stream measurement, which is closer to what a single download sees and can read lower on fast connections.
  • Your device. An old laptop, a busy browser or a weak Wi-Fi card can cap the result on gigabit connections.

If your speed is consistently low

Restart the router and modem, then repeat the wired test. If wired speed is still well below your plan at several times of day, contact your provider with the dates, times and results; screenshots from a wired test are hard to argue with. If speed is fine but things feel slow, measure latency and loss to a specific host with the ping command, and find where delay builds up with tracert or traceroute. Slow first loads with fast downloads can also point to DNS; see how DNS works.

Frequently asked questions

Why is my speed test lower than the speed I pay for?
Advertised speeds are usually the maximum the line can deliver, measured to the provider's own network. Wi-Fi, an older router, other devices using the connection and the distance to the test server all reduce the result. Test over an Ethernet cable with nothing else running; if that is still well below your plan, contact your provider with the results.
What is a good internet speed?
It depends on use. Netflix recommends at least 5 Mbps for Full HD and 15 Mbps for 4K streaming per stream, so a household with several people streaming and on video calls needs a multiple of that. For gaming and video calls, low and stable latency matters as much as download speed.
Why do different speed tests give different results?
They use different servers and methods. Some measure with several parallel connections, which shows the line's full capacity; M-Lab's NDT uses a single connection, which is closer to what one download sees. Server distance and load also vary. Compare results from the same test over time rather than across tests.
How much data does a speed test use?
It varies with your speed. Google says a typical test in the US uses about 9.4 MB and about 4.4 MB elsewhere, while Cloudflare notes its test can use up to 200 MB. On a metered mobile connection, run tests sparingly.

Sources