Online Ruler (Actual Size, cm and Inches)
Calibrate an on-screen ruler with your screen size, pixel density or a bank card (85.60 mm), then measure in cm/mm or inches. Includes a printable true-scale PDF ruler.
A screen cannot know its own physical size, so an on-screen ruler is only accurate after calibration. This ruler converts your screen's size or pixel density into CSS pixels per millimetre, draws a centimetre or inch ruler at that scale, and adds a bank-card outline so you can check and fine-tune it against a card you already have — every standard bank or ID card is exactly 85.60 mm wide. It is a handy approximation, not a measuring instrument. For paper, it also makes a printable PDF ruler that is true to size when printed at 100%.
How to use this tool
- Choose how to calibrate: the screen diagonal from the device's specifications, its pixel density (PPI), or a value you saved earlier.
- Hold a bank or ID card against the card outline and adjust the percentage until the card exactly covers its width.
- Choose centimetres or inches and a length; a ruler too long for your screen is shortened to fit. Then measure.
- Tick the PDF option for a printable ruler; print it at 100% (“Actual size”) and check the 5 cm square.
Formula
CSS px per inch = √(width² + height²) ÷ diagonal; px per mm = px per inch ÷ 25.4
width and height are the screen size in CSS pixels as the browser reports it. With a pixel density, CSS px per inch = PPI ÷ devicePixelRatio. ID-1 cards (bank, credit and most ID cards) are 85.60 × 53.98 mm under ISO/IEC 7810, which makes them a handy reference. In a PDF, 1 inch is exactly 72 points.
Example
A 15.6-inch laptop that reports 1536 × 864 CSS pixels has a diagonal of √(1536² + 864²) ≈ 1762 px, so 1762 ÷ 15.6 ≈ 113 px per inch (4.45 px per mm). A 10 cm ruler is then about 445 px long, and the card outline about 381 × 240 px.
Frequently asked questions
Why is the default ruler not real size?
Browsers assume 96 CSS pixels per inch, but typical computer and phone screens show roughly 70 to over 160 CSS pixels per inch, depending on the screen and the system's display scaling. Without your screen size the page cannot know the true scale, so calibrate with one of the options and check it against a card.
How accurate can it be?
Only as accurate as the calibration. The screen-size method is often a few percent off, because stated diagonals are rounded and some browsers do not report the full screen. After matching the card, the error is roughly the mismatch you can still see: a 1 mm gap over the card's 85.60 mm is about 1.2 mm per 10 cm. Browser zoom other than 100% breaks the scale.
Does the printed ruler work?
Yes, if your printer prints at 100%. Many print dialogs default to “Fit to page”, which shrinks it; choose “Actual size” and measure the 5 cm check square with any ruler to confirm.
An on-screen ruler is only as accurate as its calibration: the true scale depends on your screen's pixel density, the operating system's scaling and the browser zoom, which a web page cannot measure exactly. Use a physical ruler for anything that must be exact. How we check our calculators · Full disclaimer
Last updated:
Page address with these inputs: https://kakao.mobile/tools/ruler-cm-tool/
Cite or embed this tool
kakaoCalc. (2026, November 8). Online Ruler (Actual Size, cm and Inches). https://kakao.mobile/tools/ruler-cm-tool/
“Online Ruler (Actual Size, cm and Inches).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/ruler-cm-tool/.