How to use the Screen Ruler
- 1
Set browser zoom to 100%
Press Ctrl+0 (⌘+0 on Mac) first.
- 2
Hold a bank card to the screen
Line its left edge up with the blue rectangle.
- 3
Drag the slider
Until the rectangle is exactly as wide as the card.
- 4
Measure
The cm and inch rulers now show real size on this screen.
Features
Card calibration
Uses the ID-1 card width of 85.6 mm.
Millimetre ticks
Long ticks every centimetre, medium every 5 mm.
Sixteenth-inch ticks
With half-inch marks for quick reading.
Pixel ruler
CSS pixels with a label every 100.
Remembers calibration
Stored in this browser for next time.
Reset
Back to the browser’s 96-pixels-per-inch default.
Who uses it — and for what
Crafts
Check a button, bead or thread width.
Online shopping
Compare a listed size with something you own.
Designers
Check how big a design will look physically.
DIY
Measure small screws and washers.
Why calibrate?
Web pages don’t know the physical size of your screen: a “CSS centimetre” is based on 96 pixels per inch, so on most laptops and phones an uncalibrated on-screen ruler is noticeably wrong. Calibrating with a card fixes that: every bank and ID card is exactly 85.6 mm wide (ISO/IEC 7810 ID-1). Once the blue rectangle matches your card, all three rulers show true size on this device, and the setting is remembered in your browser.
Tips
- Use the browser at 100% zoom — zooming changes the scale (recalibrate if you change it).
- The rulers are about as long as your screen is wide; for longer objects, measure in sections.
- The pixel ruler shows CSS pixels; multiply by the device pixel ratio for physical screen pixels.
- For screen dimensions, see Screen Resolution.
Getting an accurate calibration
- Use a bank card. Debit and credit cards always follow the ID-1 size. Many other plastic cards do too, but some loyalty and membership cards are cut differently.
- Look straight at the screen. Viewing at an angle makes the card appear to line up at the wrong width.
- Use the keyboard for the last step. Click the slider, then press the arrow keys to move in half-pixel steps.
- Check the height too. The rectangle is 53.98 mm tall; if the width matches but the height does not, you have the card turned the wrong way.
- Calibrate per device. Calibration is stored per browser, so a phone, a laptop and an external monitor each need their own — and recalibrate after changing display scaling.
Limits of an on-screen ruler
Accuracy is limited by your screen’s pixels: each pixel is about 0.18 mm on a 141-PPI laptop and about 0.28 mm on a 92-PPI monitor, so measurements are good to a fraction of a millimetre at best. The rulers are only as long as the page area, so a 30 cm object on a 13-inch laptop has to be measured in sections. Don’t press objects hard against the screen — LCD panels can be damaged by pressure. For anything that needs real precision, such as engineering parts, use a physical ruler or calipers. The pixel ruler is for screen work: measure an element in CSS pixels, then multiply by the pixel ratio shown on the Screen Resolution page for physical pixels.
Worked examples
How wrong is an uncalibrated ruler?
A 15.6-inch 1920 × 1080 laptop has about 141 pixels per inch; at 125% scaling that is about 113 CSS pixels per inch. The uncalibrated ruler assumes 96, so its “1 cm” is really only about 8.5 mm — 15% short. Calibrated, the card rectangle is about 381 pixels wide instead of the default 323.5. On a 24-inch 1080p monitor at 100% (about 92 pixels per inch) the error goes the other way: “1 cm” measures about 10.5 mm.
Working the slider value out instead
If you know your screen’s pixels per inch and scaling, the card width in CSS pixels is 85.6 ÷ 25.4 × (PPI ÷ scaling). For a 27-inch 2560 × 1440 monitor (about 109 PPI) at 100%, that is about 367 pixels. Then fine-tune by eye with a real card.
Pro tips
- The status line says “(default — please calibrate)” until you move the slider, so you can tell at a glance whether calibration is active.
- If the ruler suddenly looks wrong, check the browser zoom level first — it is the most common cause.
Glossary
- ID-1
- The ISO/IEC 7810 card size used by bank cards: 85.60 × 53.98 mm.
- PPI
- Pixels per inch — how densely a screen packs its pixels.
- Display scaling
- An operating-system setting that enlarges everything, changing CSS pixels per inch.
Frequently asked questions
Is an online ruler accurate?
Yes, once calibrated with a card it is accurate to about half a millimetre.
Why is the ruler the wrong size without calibration?
Browsers assume 96 pixels per inch, which doesn’t match most real screens.
How big is a credit card?
85.6 × 53.98 mm (3.37 × 2.125 inches).
Why does the ruler change length when I resize the window?
The rulers stretch to fill the page width; the scale stays the same, only the visible length changes.
Does calibration work on a phone?
Yes. Calibrate on the phone itself with a card held against its screen; the value is saved separately in that browser.
What does “CSS px per inch” mean?
It is how many of the browser’s pixels make one real inch on your screen after calibration. Uncalibrated, browsers assume 96.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Device Tests (11 tools)