- Lay a ruler or tape measure flat on your desk. Pick the distance above that matches it: a longer distance gives a more precise reading.
- Click the test area. The cursor disappears; Escape brings it back.
- Line the edge of the mouse up with the start of the ruler. Hold the left button, slide the mouse straight to the right until the same edge reaches the mark, and let go.
- Repeat at least three times. If the strokes disagree by more than a few percent, slow down and keep the mouse against the ruler.
How to run the mouse DPI test
What a browser can and cannot measure
A web page never sees your mouse's DPI setting. It sees the movement values the browser delivers, and this test adds them up over a distance you measured. That gives the counts per inch arriving at the browser, which equals the mouse's setting only when nothing in between changes them.
Two things can. Without raw movement, the operating system's pointer speed and acceleration scale the values, and acceleration makes them depend on how fast you move. On a display set above 100% scaling, browsers do not all report movement in the same unit, so a reading can come out lower by the scale factor. The tool shows which case applies and, on a scaled display, the corrected figure. Your own measuring is the third source of error: a stroke that is a few millimetres short changes the result by a few percent.
Related tests
The polling rate test measures how often your mouse reports, in Hz, and the mouse accuracy test shows how a DPI change affects your aim. Check every button with the mouse test.
Mouse DPI test questions
Put a ruler on your desk. Click the test area to lock the pointer, set the mouse at the start of the ruler, hold the left button, move exactly the chosen distance to the right, and let go. The page divides the counts your browser received by the distance in inches. Do three or more strokes and use the average.
For this purpose, yes. CPI (counts per inch) is the more precise name for what a mouse reports: how many movement counts it sends per inch travelled. DPI is the name most mouse software uses for the same setting.
Small differences are normal: sensors are not exact, a hand-measured stroke is never perfectly straight, and some mice run a little above or below their setting. Large differences usually come from the operating system. If the browser could not get raw movement, your pointer speed and acceleration change the counts; on Windows, set pointer speed to the middle notch (10 of 20) and turn off Enhance pointer precision. On a scaled display some browsers report movement in scaled pixels, which lowers the reading by the scale factor; the result panel shows the corrected figure when your display is scaled.
Chromium-based browsers such as Chrome and Edge can lock the pointer with unadjusted movement, which passes the mouse's counts through without the operating system's pointer speed or acceleration. The test asks for it and tells you whether it was granted. Other browsers lock the pointer without it, so system settings apply.
No to the phone: a touch screen has no counts to measure. A trackpad does report movement, but it applies its own speed curve, so the result describes the trackpad setting rather than a sensor DPI.
No. DPI only sets how far the cursor moves for each inch of hand movement. What suits you depends on your screen size, your game or system sensitivity and your preference.