Skip to content

VersusOS

tracert vs pathping: Which Windows Command Should You Use to Find Network Lag?

Windows has two built-in commands for tracking down network lag: tracert and pathping. We compare what each measures, how to run them, how to read hop-by-hop latency and per-router packet loss, why asterisks and single lossy routers are often harmless, and which tool to use for high ping or stutter.

By , Senior Hardware Editor

7 min read

tracert vs pathping: Which Windows Command Should You Use to Find Network Lag?

When games rubber-band or video calls stutter, the first question is where the problem is: your PC, your router, your broadband provider or somewhere further out on the internet. Windows has two built-in commands for answering that, tracert and pathping, and they're often confused. This guide compares what each one actually measures, how to run them and how to read the results, based on Microsoft's command documentation as of 29 November 2026.

The short answer

  • tracert shows you the route to a destination, hop by hop, with three round-trip times for each router. It's quick and good for seeing where traffic goes and where delay starts to climb.

  • pathping finds the same route, then spends a few minutes sending repeated pings to every hop and reports packet loss for each router and each link. It's slower, but it's the better tool when the problem is dropped packets rather than simple distance.

Microsoft's own tracert page makes the same point: to trace a path and get latency and packet loss for each router and link, use pathping.

How tracert works

Microsoft describes tracert as a diagnostic tool that determines the path to a destination by sending ICMP echo Request (or ICMPv6) messages with incrementally increasing time to live (TTL) values. Each router along the way must decrement the TTL by at least 1 before forwarding the packet, and when the TTL reaches 0 the router is expected to send back an ICMP time Exceeded message. tracert starts with a TTL of 1 and goes up by 1 each time until the target responds or the maximum number of hops is reached, which is 30 by default.

Run it from Command Prompt or Windows Terminal:

tracert www.microsoft.com

Reading tracert output

Each line is one hop. Microsoft explains the columns like this:

Column

What it means

First

The hop number, starting from 1

Middle three

Round-trip time in milliseconds to that router and back, one for each probe

Last

The router's IP address, or its hostname if reverse DNS lookup succeeds

On a home connection, the first hop is usually your own router. The useful pattern to look for is a jump in latency that persists from one hop to all the hops after it. Microsoft notes that latency can be affected by network congestion, the quality of network links and the distance between hops, so a step up when traffic crosses to another country is expected.

Don't panic about asterisks

A row of asterisks (*) doesn't automatically mean something is broken. Microsoft explains that some routers don't return time Exceeded messages for packets with expired TTL values and are invisible to tracert. In Microsoft's own sample output, hops 14 to 16 show "Request timed out" but the destination at hop 17 still responds and the trace completes. If later hops answer normally, a silent router in the middle is usually just ignoring the probes.

Useful tracert switches

Switch

What it does

/d

Stops tracert resolving router IP addresses to names, which can speed up results

/h <hops>

Sets the maximum number of hops (default 30)

/w <ms>

Sets how long to wait for each reply (default 4000 ms, i.e. 4 seconds)

/4 or /6

Forces IPv4 or IPv6 only

For most home troubleshooting, tracert /d <target> is the version to use: you rarely need router names, and skipping the lookups gets you an answer faster.

How pathping works

Microsoft describes pathping as a command that provides information about network latency and loss at intermediate hops between a source and destination. It first identifies the routers on the path, the same as tracert, then sends multiple echo Request messages to each router over a period of time and computes statistics from the replies. Because it shows the degree of packet loss at any given router or link, Microsoft says you can use it to work out which routers or subnets might be having network problems.

pathping /n www.microsoft.com

Be patient. After the route appears, pathping shows a busy message while it gathers statistics; Microsoft says this takes roughly 90 seconds, varying with the hop count. The defaults are 100 queries per router and 250 milliseconds between consecutive pings, and Microsoft notes that the interval between two pings to the same hop is the period multiplied by the number of hops. By our arithmetic, that means about 25 seconds per hop with default settings, which matches Microsoft's five-hop example that reports "computing statistics for 125 seconds". A long route can take several minutes.

Reading pathping output

The results table has two loss columns:

  • Source to Here shows the loss for packets sent from your PC to that hop.

  • This Node/Link shows loss attributed to that specific router (lines with an IP address) or to the link before it (lines with a vertical bar |).

Microsoft's guidance on interpreting them is the most useful part of the documentation. Loss shown on a link (the | lines) indicates congestion that is dropping packets being forwarded along the path. Loss shown on a router indicates that router might be overloaded. In Microsoft's example, the link between hops 1 and 2 drops 13% of packets, which carries through to every hop after it. The routers at hops 2 and 4 also drop some packets addressed to them, but Microsoft explains that this doesn't affect their ability to forward traffic that isn't addressed to them.

That's the key lesson: loss at one router that doesn't carry on to later hops is usually not your problem. As Microsoft's example shows, a router can drop pings addressed to it while still forwarding everyone else's traffic. Loss that starts at one hop and continues all the way to the destination is the pattern worth reporting.

Useful pathping switches

Switch

What it does

/n

Skips resolving router names, which can speed things up

/h <hops>

Maximum hops (default 30)

/q <number>

Echo requests sent to each router (default 100)

/p <ms>

Wait between consecutive pings (default 250 ms)

/w <ms>

Wait for each reply (default 3000 ms)

/4 or /6

IPv4 or IPv6 only

Microsoft notes that all pathping parameters are case-sensitive, and that pings should be sent at a sufficiently slow pace to avoid network congestion and minimise the effect of burst losses. In practice, that means resisting the urge to slash /p to get results faster.

Side by side

tracert

pathping

Shows the route

Yes

Yes

Latency per hop

3 samples per hop

Averaged RTT per hop

Packet loss per router and link

No

Yes

Typical time to finish

Seconds (longer if hops time out)

Minutes

Default reply timeout

4000 ms

3000 ms

Skip name lookups

/d

/n

Which should you use?

Use tracert first when you want a quick picture of the route, for example to confirm traffic is leaving your network normally, or to see if latency jumps at your router, at your provider's first hop or much further away. It's also handy for comparing routes to different game servers.

Use pathping when the symptom is stutter, rubber-banding or dropouts that feel like packet loss rather than consistently high ping. Run it while the problem is happening, wait for it to finish, and look for loss that starts at a hop and continues to the end.

A practical routine:

  1. Rule out your own setup first. If you can, repeat the test over a wired connection to see whether Wi-Fi is involved (our Wi-Fi vs Ethernet vs powerline guide explains the trade-offs).

  2. Run tracert /d to the game server or website to see the path.

  3. Run pathping /n to the same destination and save the output (add > pathping.txt to the end of the command).

  4. If loss starts at hop 1 or 2, look at your router and home network. If it starts within your provider's network and carries on to the destination, send the saved output to your provider's support team.

For a broader fix-it checklist, see how to fix high ping and packet loss. To check your PC's own IP configuration first, read how to use ipconfig in Windows 11, and for other free diagnostics see our best free network troubleshooting tools.

Limitations of both

Both tools send ICMP echo requests, and both can only report what routers choose to send back. Microsoft notes that some routers don't return time Exceeded messages at all, and its pathping example shows routers dropping pings addressed to them without affecting forwarded traffic, so a router can look slow or lossy even when it's passing your game traffic along normally, which is why the "does it carry on to later hops?" test matters so much. Neither tool measures your bandwidth; for that, use a speed test or iperf3.

The bottom line

Use tracert for a quick look at the route and where latency rises, and pathping when you suspect packet loss, because only pathping measures loss per router and per link. Judge results by whether loss or delay carries on to later hops: a single silent or lossy router in the middle is usually harmless.

Sources

  1. 01Microsoft Learn, tracert
  2. 02Microsoft Learn, pathping

About the author

Callum Reid

Senior Hardware Editor

Callum leads GPU, CPU and platform architecture coverage at Forge PC. Before joining the editorial desk, he spent nine years specifying, assembling and stress-testing custom gaming and workstation systems in the UK, with a focus on PCIe bandwidth, VRM thermal design, DDR5 memory tuning and 1440p/4K frame-time consistency.

More from Callum Reid

Read next

Best Free Emulators for PC in 2026

Best Picks

Best Free Emulators for PC in 2026

The best free emulators for PC in 2026: RetroArch for retro systems in one app, PCSX2 for PS2, Dolphin for GameCube and Wii, DuckStation for PS1 and PPSSPP for PSP. We compare the systems each covers, licences, BIOS needs, hardware requirements and features from each project's official site, and explain how to stay legal with your own games and BIOS dumps.

Hannah Vance6 min

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

How-To

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

PCSX2 can play much of the PlayStation 2 library on a Windows PC at higher resolutions than the original console. Using PCSX2's official documentation, we explain the hardware you need, how to install it, how to dump the BIOS from your own PS2 and your game discs, which renderer to choose, how to save safely and what to check if games run slowly.

Marcus Thorne8 min

Best Local AI Video Translation and Dubbing Tools in 2026

Best Picks

Best Local AI Video Translation and Dubbing Tools in 2026

Free AI tools can now transcribe a video, translate it and dub it into another language on your own PC. We pick the best: pyVideoTrans, VideoLingo, OpenCreator (formerly KrillinAI) and SoniTranslate, comparing offline use, languages, voices, setup, licences and hardware from each project's official docs.

Hannah Vance5 min

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

Versus

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

pyVideoTrans and VideoLingo are popular open-source tools for translating and dubbing videos with AI on your own PC. Using each project's official docs, we compare installation, speech recognition, translation engines, dubbing voices, offline use, GPU support and licences, and say which suits which job.

Callum Reid4 min