The short answer
Most online rulers are only accurate at the zoom level they were set up at. Zooming the browser stretches everything on the page — text, images, and the ruler itself. A ruler that does not actively re-scale is stretched along with everything else, so its centimetres stop being real centimetres. Zoom to 150% and an uncompensated “10 cm” is physically about 15 cm on your screen.
The online ruler on this site is built differently: it compensates for zoom automatically, so the size you calibrated stays the size you see at 50%, 100% or 200% zoom. This guide explains the mechanism, gives you a test that exposes any ruler in ten seconds, and is honest about what compensation can and cannot do.
What browser zoom actually changes
Your screen is a grid of physical pixels, but web pages are drawn in a unit called the CSS pixel. The ratio between the two is the device pixel ratio (DPR). On a standard display at 100% zoom, one CSS pixel is roughly one physical pixel; on a retina or high-density screen it is two or more.
Browser zoom works by changing that ratio. At 150% zoom, every CSS pixel is painted using 1.5 times as many physical pixels in each direction — which is why everything on the page gets physically bigger. That is zoom doing its job: it is meant to make things larger.
Now think about what a ruler is: a row of lengths, each defined in CSS pixels. If the ruler’s scale was calculated once and never recalculated, zoom multiplies its physical size by the zoom factor. The marks still say “10 cm”, but your eyes — and anything you measure against the screen — are looking at roughly 15 cm. The ruler did not break; it simply never adjusted.
Test any online ruler in 10 seconds
You only need one object with an exact, universal size: a bank card. Every standard credit, debit and ID card is 85.60 mm wide (the ISO/IEC 7810 ID-1 format).
- Open any online ruler and set your browser zoom to 100%.
- Hold the card’s long edge against the centimetre scale. It should span exactly 8.56 cm.
- Zoom the browser to 150% (Ctrl + or Cmd +). Do not recalibrate or touch the ruler’s settings.
- Hold the card against the scale again.
If the card’s edge no longer matches 8.56 cm, that ruler drifts with zoom. Try the same test on the 1 cm actual size page here after a one-time calibration: the match holds at every zoom level, because the scale re-renders the moment the zoom changes.
A typical ruler vs this ruler
| Typical online ruler | This ruler | |
|---|---|---|
| Pixels per inch | Assumed (the generic 96) or set once | Measured from your calibration and stored |
| When you zoom | The scale stretches with the page | The scale re-renders at the corrected size instantly |
| After zooming | Wrong until you recalibrate | Still true — no action needed |
| Before calibration | A guess | A device-based estimate, clearly labelled |
How this ruler stays true
When you calibrate — the calibration guide walks through it — the site stores two things in your browser: your screen’s pixels per inch, and the device pixel ratio at that moment. Every time the ruler draws, it works out the effective pixels per inch by scaling the stored value by the ratio then versus the ratio now. When zoom changes the ratio, the scale changes by the exact inverse, so the physical size never moves.
A small watcher also listens for resolution changes, so the ruler re-draws the instant you zoom, switch scaling, or move the window — you never see a stale, stretched scale. It is a small piece of engineering, and it is the whole difference between a ruler that is right at one zoom level and a ruler that is right at all of them.
The honest limits
Zoom compensation keeps a correct size correct; it cannot manufacture accuracy out of a wrong starting point.
- It depends on calibration. Before you calibrate, the ruler starts from a device-based estimate of your screen’s density. Zoom compensation keeps that estimate stable at every zoom — but for exact, true size, calibrate once with a bank card. It takes under a minute.
- A different screen is a different density. Calibration is saved per browser, for the screen you calibrated on. Move to an external monitor with a different pixel density and you should recalibrate there — the zoom handling will keep it stable afterwards.
- Operating-system scaling is the same story. Display scaling changes the pixel ratio just like zoom does, and it is compensated the same way — as long as the calibration itself was made on that screen.
Calibrate once, and the online ruler stays true at any zoom. That is the standard every on-screen ruler should be held to — now you know how to test whether one meets it.