ipconfig.co.uk

tracert vs pathping: which one, and how to read them


tracert shows the route; pathping shows where packets are lost. When to use each, and the one rule that stops you misreading the results.

Windows has two built-in commands for tracing the route to a host: tracert and pathping. They start the same way, by listing the routers between you and the destination, but they answer different questions. tracert tells you which way your traffic goes. pathping tells you where along that way packets are being lost. Picking the right one saves you either a wasted five minutes or a misleading answer.

The short version

tracertpathping
What it showsEach hop on the path and three round-trip times per hopThe path, then packet loss and latency for every hop and every link
How long it takesSeconds, usuallyMinutes: 25 seconds per hop with the defaults
Good forSeeing the route, finding where traffic stops completelyIntermittent loss, slow or choppy connections, evidence for your ISP
Default probes3 per hop100 per hop, 250 ms apart
Default max hops3030
Equivalent on macOS / Linuxtraceroute, tracepathmtr (install it first)

The parameters and defaults above are from Microsoft's own references for tracert and pathping.

How tracert works

tracert sends ICMP echo requests with a time-to-live (TTL) of 1, then 2, then 3, and so on. Each router decrements the TTL, and the router where it reaches zero sends back a time exceeded message, which reveals its address. Three probes go out at each TTL, which is why you see three times per line. It stops when the destination replies or it reaches 30 hops.

Windows · Command Prompt
tracert 1.1.1.1
:: skip reverse DNS lookups (much faster)
tracert -d 1.1.1.1
:: wait 1 second per probe instead of 4
tracert -d -w 1000 1.1.1.1
:: force IPv4 (or -6 for IPv6)
tracert -4 bbc.co.uk

tracert 1.1.1.1 is a popular test because 1.1.1.1 is Cloudflare's public DNS resolver: it is reliably up and is answered from a nearby Cloudflare location, so a short, clean trace there tells you your own line and your ISP's network are routing normally. The output looks like this (addresses illustrative):

Output
Tracing route to one.one.one.one [1.1.1.1]
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  192.168.1.1
  2     9 ms     8 ms     9 ms  198.51.100.1
  3     *        *        *     Request timed out.
  4    11 ms    10 ms    11 ms  203.0.113.9
  5    10 ms    10 ms    10 ms  one.one.one.one [1.1.1.1]

Trace complete.

Hop 1 is your router (the default gateway). A row of asterisks on one hop, with later hops answering normally, is not a fault: Microsoft notes that some routers simply do not return time exceeded messages, so they are invisible to tracert. Asterisks that start at one hop and continue to the end are different. That is where traffic is really stopping.

How pathping works

pathping first does a quick trace to find the hops, then sends 100 pings to every hop, 250 ms apart, and works out how many came back. With the defaults that is 25 seconds of testing per hop, so a 10-hop path takes over four minutes. Be patient; it prints nothing new while it is “computing statistics”.

Windows · Command Prompt
:: -n skips name lookups
pathping -n 1.1.1.1
:: 20 queries per hop instead of 100: about a fifth of the time
pathping -n -q 20 1.1.1.1
:: stop after 15 hops
pathping -n -h 15 example.com

The report has two loss columns, and reading the right one is the whole trick:

  • This Node/Link on a line with an address: pings addressed to that router that it did not answer. Busy routers often deprioritise replies to pings while still forwarding traffic perfectly well. Loss here on its own is usually harmless.
  • This Node/Link on the line with a vertical bar (|) between two hops: loss on the link between them, affecting traffic passing through. This is the figure that matters.
  • Source to Here: cumulative loss from you to that hop. Real loss shows up at one hop and carries on to every hop after it, including the destination.

Which one to use

  • A site will not load at all: start with ping, then tracert -d. If the trace stops at hop 1 or 2, the problem is your router or your ISP's line; see the troubleshooting playbook.
  • Everything works but video calls stutter or games lag: pathping -n to the far end, or to 1.1.1.1 to test your own connection. Loss at hop 1 points to Wi-Fi or your router; loss starting at hop 2 or 3 points to your line or ISP.
  • You need to show your ISP: a pathping report showing loss that starts at their first hop and persists to the destination is far more convincing than a speed test. Run it more than once, at different times.
  • On a Mac or Linux: traceroute (or tracepath, which needs no root) is the tracert equivalent, and mtr is the closest thing to pathping. The ping and traceroute reference covers both, including mtr report mode.

Common gotchas

  • Slow traces are usually reverse DNS lookups. Add -d to tracert or -n to pathping.
  • The last hop never answers: some servers and firewalls drop ICMP. A web server that loads in the browser but times out in tracert is working; try a different target to test your path.
  • IPv6 and IPv4 take different routes. If a problem only affects some sites, compare tracert -4 and tracert -6. The IPv6 guide explains how to check whether you have it.
  • VPNs change everything after hop 1. Disconnect the VPN to test your own line.

More from the blog

All articles and guides →

Last reviewed . Command syntax verified against Windows 11, Ubuntu 24.04, macOS 15 and FreeBSD 14 unless noted otherwise.

Spotted a mistake or a switch we have missed? Every page on this site is written to be checked against real output, so please test on your own machine and compare.