MEASUREMENT GUIDE

Why online rulers are wrong when you zoom

If an online ruler has ever disagreed with a real ruler, browser zoom is the most likely reason — and it is not your screen's fault. Here is what zoom actually does to an on-screen scale, how to prove it in ten seconds, and how this site's ruler avoids the problem.

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).

  1. Open any online ruler and set your browser zoom to 100%.
  2. Hold the card’s long edge against the centimetre scale. It should span exactly 8.56 cm.
  3. Zoom the browser to 150% (Ctrl + or Cmd +). Do not recalibrate or touch the ruler’s settings.
  4. 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 rulerThis ruler
Pixels per inchAssumed (the generic 96) or set onceMeasured from your calibration and stored
When you zoomThe scale stretches with the pageThe scale re-renders at the corrected size instantly
After zoomingWrong until you recalibrateStill true — no action needed
Before calibrationA guessA 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.

FAQ

Frequently asked questions

01

Why is the online ruler the wrong size on my screen?

Two causes cover almost every case. Either the ruler is guessing your screen's pixel density (an uncalibrated estimate), or it was right at 100% zoom and drifted when the zoom changed. Calibrating once with a bank card fixes the first; a ruler with zoom compensation — like this one — fixes the second automatically.

02

Does browser zoom change an online ruler's size?

On most rulers, yes. Zoom stretches everything drawn in CSS pixels, including the ruler, by exactly the zoom factor: at 150% zoom an uncompensated 10 cm segment is physically about 15 cm. This site's ruler re-scales by the inverse of the pixel-ratio change the moment zoom changes, so the physical size stays the same.

03

How can I check whether an online ruler is accurate?

Use a bank card: its long edge is exactly 85.60 mm. Hold it against the ruler's centimetre scale at 100% zoom — it should span 8.56 cm. Then zoom to 150% and check again without recalibrating. If the card no longer matches the scale, that ruler drifts with zoom.

04

Is an online ruler accurate at 200% zoom?

It can be, if it compensates. Here, calibration stores your screen's pixels per inch together with the pixel ratio at calibration time, and the ruler re-scales in inverse proportion whenever the ratio changes — which is exactly what zoom does. So a size that was true at 100% stays true at 200%, and at any other level.

GUIDES

All guides

Browse every measurement guide: accuracy, calibration and reading scales, in plain language.

Open the guides hub

How to Calibrate an Online Ruler

Match an on-screen outline to a standard bank card once, and every measurement on this site is true size on your screen.

Read the guide

How to Read a Ruler

Centimetres, millimetres and inch fractions explained in plain language, with common mistakes and practice examples.

Read the guide

How to Measure Without a Ruler

Bank cards, A4 sheets, coins and your own hand all hide exact, standard sizes. How to measure with them — and when a calibrated screen beats them.

Read the guide

Paper Sizes in cm and Inches

The complete A-series chart — A0 to A6 in millimetres, centimetres and inches — plus A4 vs US Letter and the right sheet for printing a ruler.

Read the guide

What Is PPI?

Pixels per inch in plain language: how PPI decides sharpness, why screen size beats resolution alone, and how to find your own screen's PPI.

Read the guide

Ruler to Scale: What 1:1 Really Means

A ruler 'to scale' shows lengths at true size. Why screens break that, the bank-card check, and how calibration restores a true 1:1 scale.

Read the guide

How Accurate Is an Online Ruler?

The honest error range of an on-screen ruler before and after calibration, what causes it, and a one-minute test to check yours.

Read the guide

How Long Is 10 cm?

See 10 cm at true size on your screen and next to a bank card, two AA batteries and your phone — plus every other common length in inches.

Read the guide

Online Ruler in cm

How to show centimetres on your screen: set the ruler to cm, read the cm and mm marks correctly, and measure at true size on any device.

Read the guide

How Many Centimeters Are in a Ruler?

A standard ruler holds 30 cm — and 12 inches. The common ruler sizes in both units, why the two scales never quite match, and each length shown at true size.

Read the guide

How Long Is 6 Inches?

See 6 inches at true size on your screen and next to a dollar bill, three AA batteries and a phone — plus the exact 15.24 cm conversion.

Read the guide

How Long Is 12 Inches?

One foot at true size: exactly 30.48 cm, why it is not 30 cm, and how it compares with an A4 sheet, a vinyl LP and a school ruler.

Read the guide