Measure your mouse's real DPI right in the browser: say how far you will move the mouse, lock the pointer, and slide it that distance along a ruler. Nothing is installed and nothing leaves your device.
Lay a ruler along the desk beside the mouse, put the mouse at the start and note where you will stop. Longer is better: over 20 cm a millimetre of error barely matters, over 5 cm it ruins the result. You do not have to stop exactly on the mark - after the run you can correct the distance you actually covered.
Press start, then slide the mouse along the ruler for about 20 cm. The cursor disappears while it runs - that is normal.
The measurement above divides the counts your sensor reported by the distance you moved. Here is what that number means, why it may not match the box, and what to do with it.
DPI - dots per inch, or CPI, counts per inch - is how many steps of movement the sensor reports for every inch the mouse travels. At 800 DPI an inch of desk produces 800 counts. It is a property of the sensor and its current setting, not of the screen, the cable or the operating system.
Sensitivity is a multiplier applied to those counts afterwards, by Windows, macOS or the game. Halving the DPI and doubling the sensitivity moves the cursor the same distance, but the mouse now reports half as many steps, so the movement is coarser. Set DPI where the sensor is happy and leave sensitivity to do the fine-tuning.
Pointer acceleration makes the cursor travel further when you move fast. The counts the browser sees are then scaled by how quickly you moved, and dividing them by a distance no longer gives DPI. This page asks the browser for unadjusted movement, which bypasses the system's scaling; when it is refused, the result carries a warning.
There is no correct value, only a comfortable one. Shooter players commonly sit between 400 and 1600 so that big arm movements aim precisely; office and design work suits 800 to 1600 on a normal monitor and more on a 4K one, where everything is physically smaller. Very high settings mostly buy headroom, not accuracy.
Many mice have a button behind the wheel that steps through preset levels, usually with an LED colour per step. Gaming mice let their software - Logitech G HUB, Razer Synapse, SteelSeries GG, Corsair iCUE - set exact values, and most store them in the mouse itself so they survive a different computer. Office mice often have one fixed setting and only sensitivity to adjust.