How to calibrate the ruler
Screens fit different numbers of pixels into an inch, and a web page has no way to look that number up. Browsers treat 96 pixels as an inch on every screen, so an uncalibrated ruler is usually too big or too small. Calibrating gives the ruler one real length to scale from.
With a bank card
This is the most accurate method. Credit cards, debit cards and most driver's licenses are made to the ISO/IEC 7810 ID-1 size, 85.60 × 53.98 mm (3.370 × 2.125 in).
- Tap Calibrate and choose Bank card.
- Hold the card flat against the screen with its top-left corner in the top-left corner of the yellow card.
- Drag the slider, or tap − and +, until the yellow card is exactly the size of yours. On a phone the card is wider than the screen, so line up the bottom edge.
- Tap Save. Your browser remembers the setting for next time.
For a precise match, make the yellow card a little too big, then shrink it one step at a time until the yellow edge just disappears behind your card. The dashed lines continue each edge past the card, which makes the last step easier to judge.
With your screen size
If you don't have a card, choose Screen size and type the diagonal in inches from your phone's or monitor's spec page. The ruler divides the diagonal your browser reports, in pixels, by that length. Set the browser zoom to 100% first, and use the most exact figure the spec page gives. Apple, for example, sells the iPhone 16 as a 6.1-inch phone and lists its screen as 6.12 inches when measured as a rectangle. A card usually gives a closer result than a rounded screen size.
Check the result
Lay a coin of known size on the ruler with one edge on the 0 line. A US quarter is 24.26 mm (0.955 in) across, a penny 19.05 mm (0.750 in) and a 1 euro coin 23.25 mm. If the far edge lands more than about a millimeter from where it should, calibrate again.
How to read inches, cm and mm on the ruler
- Choose Inches or Centimeters.
- Put one end of the object on the 0 line. On a phone held upright, the ruler runs down the left edge of the screen.
- Tap the ruler where the object ends, or drag the reading there. You get the length to the nearest 1/16 inch or millimeter, plus the same length in the other unit.
On the inch scale, the longest lines are whole inches, followed by half inches, quarters, eighths and sixteenths. On the centimeter scale, the numbered lines are centimeters, the short lines are millimeters, and the slightly longer line between two numbers marks 5 mm. Our guide to how to read a ruler has an inch fractions chart and a millimeter-to-inch chart.
A ruler on your phone or iPhone
Open this page on your phone and calibrate it once. Then tap Full screen to give the ruler as much of the screen as the browser allows. On the normal page you can still scroll past the ruler. Tap the ruler to move the reading there, or drag the reading itself. In full screen, drag anywhere along the ruler.
An iPhone has no built-in ruler drawn to scale on the screen. Apple's Measure app measures with the camera instead, and on models with LiDAR its Ruler view adds unit marks along a measured line. Our guide on how to use the iPhone Measure app covers both. A screen ruler suits things smaller than your phone, such as a screw, a bead, a cable end or a ring. For a doorway, a desk or a wall, a camera ruler is the better tool. The Width tool in our ruler app measures those from where you stand. How accurate camera measuring is, and when a real tape is still the right call, is covered in can I use my phone as a tape measure?
How accurate is an on-screen ruler?
An on-screen ruler is only as accurate as its calibration and your eye.
- The card match sets the scale. If the yellow card ends up half a millimeter off on its 85.60 mm side, every reading is off by about 0.6%, which is 0.6 mm over 10 cm.
- Readings snap to the nearest line, 1/16 inch (about 1.6 mm) or 1 mm, the same as reading a printed ruler.
- Look straight at the screen. The pixels sit under a layer of glass, so viewing at an angle shifts the line you see next to the object.
- Zoom changes the scale. Pinch-zooming or changing the browser zoom after you calibrate makes the marks bigger or smaller. The ruler warns you when it can detect the change, but not every browser reports it, so keep the zoom at 100%.
- Each screen needs its own calibration. The setting is stored in this browser on this device only. On an external monitor, in another browser or on another phone, calibrate again.
For anything you will cut, drill or order to size, check the number with a real ruler or tape measure. If you have neither, our guide on measuring without a tape measure lists everyday objects with exact sizes.
Sources
- ISO/IEC 7810:2003 Identification cards: Physical characteristics, ISO: the ID-1 card size is 85.60 × 53.98 mm (the current edition is ISO/IEC 7810:2019).
- SI Units – Length, NIST: the inch is defined as exactly 25.4 mm.
- CSS Values and Units Module Level 4, W3C: in CSS, 1in equals 96px, and on screens the physical units might not match their physical measurements.
- iPhone 16 Technical Specifications, Apple: the 6.1-inch display measures 6.12 inches diagonally as a standard rectangle.
- Coin Specifications, United States Mint: the quarter is 0.955 in (24.26 mm) across and the cent is 0.750 in (19.05 mm).
- Common sides, European Central Bank: the 1 euro coin is 23.25 mm in diameter.