Mouse Ruler

Turn your mouse into a ruler — slide it, or roll the wheel like an odometer.

  1. 1Calibrate
  2. 2Slide to measure
  3. 3Save your reading
Distance
Not calibrated
Calibrate your mouse to see a real distance here.
Speed now
–
Time moving
0.0 s
More stats
Average speed
–
Peak speed
–
Total path
–
Counts X / Y
0 / 0

Speed over time (counts/s)

Press Start and move to draw the speed graph.
Show as table
Time (s)Speed (counts/s)

Calibrate sliding

Not calibrated

mm

Slide along a ruler, as straight as you can, then press Space. Do 3 runs for a better average.

No ruler handy? Enter your mouse's DPI instead

This is quicker but less accurate than a ruler run. Redo calibration whenever you change the DPI or the surface.

Getting good readings
known distanceraw sensor counts

One ruler slide tells it how many counts = how many millimeters — that one ratio is the whole calibration.

✓

Flat, straight, against an edge

  • Keep the mouse flat. Tracking stops if it lifts about 1–2 mm.
  • Slide against a straight edge and don't let the mouse rotate.
  • Use a matte surface. Glass and gloss can lose counts.
  • Leave the touchpad and TrackPoint alone, because they count as movement too.

Saved readings

#LabelMethodDistanceTimeAveragePeak

No readings yet. To check accuracy, measure the same known distance 5 times and compare the spread.

About this tool

Your mouse is already a precision sensor — it just reports in counts, not millimeters. Mouse Ruler does the conversion: slide it like a ruler, or flip it over and roll the wheel like an odometer, and once it's calibrated against a known length or your mouse's DPI, you get a real distance. No install, no account, nothing leaves your browser.

Frequently asked questions

How does Mouse Ruler turn mouse movement into a real-world distance?

Your mouse already reports movement as raw counts. Calibrate once — slide a known distance against a ruler, or just enter your mouse's DPI — and those counts convert into millimeters, centimeters, inches, or feet.

How accurate is measuring distance with a mouse?

With a ruler-based calibration and a few runs averaged, sliding is typically accurate to within a millimeter or two over short distances. Accuracy depends on keeping the mouse flat, sliding in a straight line, and using a matte (non-glossy) surface.

What is the wheel odometer mode for?

Flip the mouse over and roll its scroll wheel against a surface to measure longer distances, or to measure on surfaces where the optical sensor loses tracking. Each wheel click is one step, so it is coarser than sliding but works over longer runs.

Do I need to install anything?

No. Mouse Ruler runs entirely in your browser using the Pointer Lock API — nothing is installed, and no data leaves your device. Saved readings are stored locally in your browser.

Which browsers are supported?

Chrome and Edge support raw, unaccelerated mouse input for the most accurate readings. Other browsers will still work but may be affected by OS-level pointer acceleration.