Skip to content
Mouse Ruler

Measure real distance with the mouse on your desk.

Your mouse already counts its own movement in tiny sensor steps. Calibrate it once against a ruler, then slide it across the thing you want to measure, or turn it over and roll the scroll wheel like an odometer.

Typical accuracy
±1–2 mm on short runs
Install
None, runs in the browser
Your data
Never leaves this device

This needs a physical mouse. Measuring reads your mouse's sensor, which a touch screen doesn't have. Open this page on a computer, or use the on-screen ruler, which works with touch.

Finest over short distances: desks, boxes, printouts.

Step 1:Calibrate

Not calibrated yet. One slide takes about 20 seconds.

  1. Lay a ruler on the desk and line the mouse up against it.
  2. Press the button below, then slide the mouse exactly the known distance.
  3. Press Space. Repeat 2–3 times for a tighter average.
No ruler? Use your mouse's DPI instead

Quicker, but the number on the box is often a few percent off. Redo calibration if you change DPI or mousepad.

Step 2:Measure

Straight-line distance
0counts

Showing raw sensor counts. Calibrate in step 1 to read real distance.

Speed now
–
Time moving
0.0 s
Average speed
–
Peak speed
–
Acceleration and raw counts
Acceleration now
–
Peak acceleration
–
Total path
–
Counts X / Y
0 / 0

Speed over time (counts/s)

Your speed trace appears here as you measure.
Show as table
Time (s)Speed (counts/s)

Step 3:Compare saved readings

Nothing saved yet. Readings you save stay in this browser only. To check your accuracy, measure the same object five times and save each one. The spread between them appears here.

Getting a reading you can trust

Both methods turn raw counts into millimetres with one ratio. Most bad readings come from the mouse tilting, rotating or slipping, not from the math.

Sliding

Best for anything under about 50 cm.

known distanceraw sensor counts

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

Correct:
Flat, straight, against an edge
  • Keep the mouse flat. The sensor stops tracking if it lifts 1–2 mm.
  • Slide against a straight edge and don’t let the mouse rotate.
  • Use a matte surface. Glass and gloss can drop counts.
  • Leave the touchpad alone while measuring. It counts as movement too.

Rolling the wheel

Best for long runs, or surfaces the sensor can't read.

diameterone full turn

Every full turn rolls out exactly π × diameter — that's the math behind the wheel-size calibration method.

Correct:
Wheel square to your line of travel
  • Press Start before turning the mouse over. The pointer locks to this window.
  • Hold the wheel square to the line you’re measuring.
  • Roll slowly with light pressure. Pressing hard can middle-click or make the wheel skid.
  • Press Space to stop. Rolling backwards subtracts distance.

Each wheel click is one step, so a rolled reading can be off by about one click at each end.

Questions people ask

Short answers on accuracy, browsers and privacy. The longer story is in the guide above.

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.