Mouse Latency Test

Measure the delay between clicking and the next screen update. Reports the click-to-frame time across many clicks, with best, average, and worst.

Click Latency
Clicks recorded: 0
Click anywhere in this box, repeatedly

Click inside the box to record your first sample.

What this measures, and what it does not

This times from the browser receiving your click event to the moment it could next draw a frame — the software half of "input lag." It cannot see the mechanical or electrical delay inside your mouse itself, which needs specialized hardware to measure. Treat this as browser-and-display responsiveness, not a full click-to-photon figure.

See how fast your clicks reach the screen

A click travels from the mouse switch through the operating system, the browser, and finally onto the screen. This test times the last leg of that journey — the moment your browser gets the click to the moment it could next draw — which is the part most affected by your browser, your display, and what else is running on your machine.

How this Mouse Latency Test works

The moment you click, your browser creates an event carrying the timestamp of when the click was generated. This page requests to be called back right before the next repaint, and measures the gap between that original timestamp and the moment the repaint callback actually runs. That gap is the click-to-frame figure: how long it took for your click to result in a chance to update what is on screen.

That gap is bounded by your display's refresh rate, because a repaint can only happen once per refresh cycle. On a 60Hz screen a click can land anywhere in that cycle, so the honest result spreads across roughly zero to sixteen milliseconds depending on timing alone, with faster refresh rates compressing that range. This is why the tool reports a spread across many clicks rather than treating any single one as the answer — the average and the gap between best and worst tell you far more than one number.

What this test cannot see is everything that happens before your browser gets the click: the mechanical switch inside the mouse settling, any debounce delay the firmware applies, and the time it takes the connection — wired or wireless — to deliver the report. That portion requires hardware built specifically to measure it, typically a photodiode or high-speed camera comparing a physical press against a screen response. What you get here is the software half of the pipeline, which is still the part most within your control through your browser, drivers, and background load.

Nothing about your clicks is stored or transmitted; the timing happens entirely inside your browser tab.

How to use this Mouse Latency Test

1

Click repeatedly

Click anywhere inside the box fifteen or twenty times at a natural pace.

2

Watch the average settle

A few clicks are noisy on their own; the average becomes meaningful after a dozen or so.

3

Compare best to worst

A narrow gap between best and worst means a consistent, responsive setup.

Example Usage

A typical desktop result with little running in the background:

Input
20 clicks on a 144 Hz display
Output
Click to next frame: best 0.3 ms · average 3.9 ms · worst 6.8 ms

Frequently Asked Questions

What is mouse latency or input lag?
It is the delay between a physical action, like pressing a mouse button, and something visibly responding on screen. The full chain includes the mouse hardware, the connection, the operating system, the browser, and the display itself — this test can only see the part that happens once the browser has the click.
Can a website measure my mouse’s hardware latency?
No. The switch inside the mouse, its debounce logic, and how it reports over USB or wirelessly all happen before any browser gets involved, and none of it is exposed to web pages. Measuring that part requires external tools such as a high-speed camera or dedicated latency-testing hardware.
What is a good result here?
Sub-millisecond to a few milliseconds for the click-to-frame figure is typical on a responsive setup. Because it is bounded by your refresh rate, results naturally spread across roughly 0 to 16 milliseconds at 60Hz and less at higher refresh rates, so look at the average and the spread rather than any single click.
Why do results vary so much between clicks?
Timing depends on exactly where in the display’s refresh cycle each click lands, which is effectively random from one click to the next. Background load — other tabs, running programs, browser extensions — adds further, less predictable delay on top of that.
Is this the same as the polling rate test?
No. Polling rate measures how often the mouse reports its position, independent of whether you clicked. This measures the delay for one specific click event to be handled and reach the next frame — a different stage of the same overall input pipeline.
Does a wired mouse have lower latency than wireless?
Usually, though the gap has narrowed a lot. A good wired connection or a modern low-latency 2.4GHz receiver both perform well; Bluetooth typically adds more delay due to its connection protocol, which is why gaming mice rarely rely on it exclusively.
How do I reduce click latency in practice?
Close unnecessary tabs and background programs, keep your refresh rate as high as your display supports, use a wired connection or the mouse’s own USB receiver rather than Bluetooth, and make sure your browser is up to date.

Related Tools

The Mouse Latency Test is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

Comments

Questions, corrections, and useful tips are welcome. Comments are reviewed before publication.

Loading comments...

Comments are stored and moderated using Cusdis Cloud. Email is optional. Privacy Policy

As featured on

CodeItBro - Free dev tools + practical guides to help you ship faster | Product HuntCodeItBro - Free Online Developer Tools badgeCodeItBro badge