Mouse DPI Analyzer: Measure Your Real Mouse DPI
This mouse DPI analyzer measures your mouse's real DPI. Move the mouse a distance you have measured with a ruler, and the tool works out how many counts it sent per inch. Enter the DPI set in your mouse software to see how close it is.
Click here to start
Your cursor will be hidden while the test runs. Press Esc to stop.
How to use the mouse DPI analyzer
- Lay a ruler or tape measure on your desk next to the mouse.
- Enter the distance you will move, in inches or cm. A longer distance gives a more accurate result, because a small error in where you stop matters less.
- Optionally, enter the DPI set in your mouse software so the tool can show the difference.
- Click the test area. Your cursor disappears while the test runs.
- Line the front of the mouse up with the start of the ruler. Hold the left button, move the mouse to the right in a straight line until the front reaches your distance, then let go.
- Do this at least three times, then press Esc. Your DPI is the average of all runs.
Keep the mouse flat on the desk the whole time. Lifting it stops the sensor counting.
How to read your results
- Counts is the movement the mouse reported during one run.
- DPI for each run is the counts divided by the distance in inches. For example, 3,200 counts over 4 inches is 800 DPI.
- Your DPI is the average of all your runs, so one slightly long or short run matters less.
- Off by compares that average with the DPI you entered. +2.0% means the mouse reported 2% more movement than its setting, and -2.0% means 2% less.
If you work in centimetres, the tool converts with 2.54 cm to the inch, so 10 cm counts as 3.94 inches.
Tips for an accurate measurement
- Use a hard ruler laid flat on the desk, not a soft tape that curls up at the ends.
- Line up the same point on the mouse each time, such as its front edge, at the start and at the end.
- Move slowly and in a straight line. Only left and right movement is counted, so drifting up or down does not change the result, but it makes it harder to stop at the right mark.
- Use at least 4 inches or 10 cm. The longer the distance, the less a few millimetres either way matter.
- Use a mouse pad or a plain desk surface rather than glass or a glossy table.
How the DPI analyzer works
Logitech describes mouse sensitivity, sometimes called dots per inch (DPI) or counts per inch (CPI), as a measure of how responsive a mouse is to movement. A mouse set to 800 DPI should report 800 counts for every inch it moves. The analyzer adds up the movement the mouse reports while you hold the button, then divides it by the distance you entered.
To read that movement, the test asks the browser for raw mouse input. According to MDN's documentation of requestPointerLock, this disables OS-level mouse acceleration and reads raw mouse input instead. MDN lists it as supported in Chrome and Edge 88 or later, Firefox 152 or later and Safari 18.4 or later. Chrome notes it is not yet supported on Linux. The note under the tool tells you whether raw input was used.
Why your result differs from the DPI you set
- Screen scaling and browser zoom. MDN notes that depending on the browser and operating system, mouse movement may be reported in physical pixels, logical pixels or CSS pixels. The tool corrects for your screen's pixel ratio, but for the most reliable reading set browser zoom to 100% and test with Windows display scale at 100%. The tool warns you when either is not at 100%.
- Enhance pointer precision. When raw input is not available, Windows mouse acceleration changes the result. In Windows 11, open Settings > Bluetooth & devices > Mouse and switch Enhance pointer precision off for the test. Logitech also suggests turning it off if your mouse sensitivity varies between apps. The setting is described in Microsoft's guide to changing mouse settings.
- Pointer speed. Without raw input, the Mouse pointer speed slider on the same Windows page also changes the result. Microsoft documents 10 as the default mouse speed on its 1 to 20 scale, so leave it at the default for the test.
- An uneven drag. If one run is far from the others, delete the runs with Clear runs and repeat them more carefully.
If three careful runs agree with each other but stay well away from the DPI you set after these checks, the mouse is not tracking at the DPI set in its software.
How to change your mouse DPI
- Logitech G mice: open G HUB, click your mouse, then the Sensitivity (DPI) tab. Logitech allows up to 5 DPI speeds, as its G HUB DPI guide explains.
- Razer mice: Razer says DPI is managed in Razer Synapse, on the PERFORMANCE tab under Sensitivity Stages, or with the sensitivity buttons on the mouse. See Razer's DPI settings guide.
- Other mice: use the maker's own software, or the DPI button on the mouse if it has one. Run the analyzer again after each change.
FAQ
Why did my cursor disappear?
The test locks the pointer to the page so the mouse can travel any distance without hitting the edge of the screen. Press Esc to get your cursor back.
Does the DPI analyzer work on a Mac?
Yes. MDN lists raw mouse input in Chrome on macOS Catalina 10.15.1 or later, and in Safari 18.4 or later. Use a mouse rather than a trackpad.
Does it work on a phone or tablet?
No. The test needs a mouse and a desktop browser. MDN lists no raw mouse input support in Safari on iPhone and iPad or in Firefox for Android.
Can I test my controller too?
Yes. Our gamepad tester shows every button and stick on an Xbox, PlayStation or other controller and checks the sticks for drift.
Is anything sent or saved?
No. The test runs in your browser and only reads mouse movement while you hold the button.
