To calibrate a ruler on screen, hold an object of known size against the display, like a credit card (85.60 mm). Then adjust the on-screen overlay until it matches the object exactly. The ruler uses that match to work out how many screen pixels make one millimeter. From then on it’s an actual size ruler, accurate to about half a millimeter.
On ruleronphone, there are six ways to calibrate. Here’s how each one works, how accurate it is, and when to use it. For a short walkthrough with pictures of each step, see the calibration page.
Which calibration method should you use?
| Method | Reference | Accuracy* | Best for |
|---|---|---|---|
| 1. Credit card | 85.60 mm edge | ± 0.2–0.5 mm over 10 cm | Phones (recommended) |
| 2. A4 / Letter paper | 210–297 mm edge | ± 0.1–0.3 mm over 10 cm | Tablets, laptops, monitors |
| 3. Custom length | Anything you’ve measured | Depends on the reference | No card or paper; long references |
| 4. Device helper | Published PPI for known devices | Good starting point | Quick start on common phones |
| 5. Screen diagonal | Advertised inches | ± 1–3% | Rough start only |
| 6. Fine adjust | Any reference | 0.5% per press | Polishing any method |
*Assumes 100% zoom and careful alignment. The longer the reference, the smaller the error from a one-pixel mistake.
Before you start
- Set browser zoom to 100%. Zoom changes every measurement. If you calibrate at 110%, everything will be wrong at 100%.
- Use the browser you’ll measure in. Calibration is saved per browser on each device.
- Use a normal window, not private/incognito. Private windows delete the calibration when you close them.
- Lay the phone flat. It’s easier to hold a reference object steady on a table.
- Take the phone out of a thick case if the case lip stops the card lying flat.
How calibration works
The ruler needs one number: how many CSS pixels make one millimeter on your screen. Browsers can’t tell it this. They assume 96 pixels per inch, which is wrong on almost every phone (see What is PPI?).
When you stretch the overlay to match a card, the ruler knows the overlay is, say, 517 CSS pixels wide, and the card is 85.60 mm. It divides: 517 ÷ 85.60 = 6.04 pixels per millimeter. Every tick is then drawn using that number, and inches are derived from it using 1 in = 25.4 mm exactly.
That’s also why the reference’s length matters. If you’re off by one pixel on a 517-pixel card, the scale is off by 1 ÷ 517 ≈ 0.2%. On a 1500-pixel A4 sheet, the same one-pixel slip is only 0.07%.
Method 1: Credit card (recommended)
Every bank card, debit card and most ID cards share the ISO/IEC 7810 ID-1 size: 85.60 × 53.98 mm.
- Open the ruler on phone and open calibration.
- Choose Card.
- Hold the card flat against the screen, long edge along the active axis.
- Drag the overlay until it ends exactly at the card’s edge.
- Tap Apply.
Accuracy: typically about ±0.5 mm across the card, often better. It’s the best option for phones. A card’s details are never read: any card works, face down, including expired, gift and loyalty cards (bank cards are cut most precisely). → Credit card and reference sizes
Tips for a precise card match:
- Align the straight part of the short edge, not the rounded corner.
- Look straight down at the far edge. Screen glass is about 1 mm thick, so an angled view shifts the edge.
- Line the card up with the zero end first, then hold it still with one finger while you drag the overlay with another.
Method 2: A4 or US Letter paper
A4 is 210 × 297 mm. US Letter is 8.5 × 11 in (215.9 × 279.4 mm).
Paper is too big for a phone screen but works well on tablets, laptops and monitors. Choose A4 or Letter, align the paper’s edge, then Apply. Use a fresh sheet from a pack, because torn or trimmed edges reduce accuracy.
On a monitor: hold the sheet flat against the screen (don’t press hard on the panel), and use the long edge if it fits. Laptop screens tilt, so lay the laptop flat or ask someone to hold the sheet. Not sure which paper you have? A4 is 210 mm wide, Letter 216 mm. See A4 size in inches.
Method 3: Custom length
Have a printed ruler, a coin or a part with a known size? Use it.
- Choose Custom and enter the length, for example
100 mmor4 in. - Drag the overlay to match your reference.
- Apply.
A longer reference gives better accuracy, because any alignment error is spread over more millimeters.
Good custom references:
| Reference | Length to enter |
|---|---|
| A physical ruler (use a long span) | e.g. 100 mm or 4 in |
| US dollar bill (long edge) | 155.96 mm |
| Euro €20 note (long edge) | 133 mm |
| US quarter (diameter) | 24.26 mm |
| Euro €2 coin (diameter) | 25.75 mm |
Coins are short, so a one-pixel error is a bigger share of the length. They’re better for checking than for calibrating.
Method 4: Device helper and auto-detect
For some common phones, the ruler can estimate the scale from the device’s published pixel density divided by its device pixel ratio. It’s fast and needs nothing in your hand.
Treat it as a starting point. Display-size settings, OS scaling and model variants can all change the result, so follow up with a card check.
Method 5: Screen diagonal
Enter your screen’s advertised diagonal (e.g. 6.1”). The ruler combines it with the screen resolution to estimate the pixels per inch.
This is quick, but spec-sheet sizes are rounded and measured as if the corners were square. A “6.1-inch” phone might really be 6.06 or 6.12 inches, which is about a 1% difference before any other error. Follow up with a card check. → Why online rulers are inaccurate
Method 6: Fine adjust
After any method, use +/- to nudge the density until the ticks lock onto your reference. Each press changes the scale by 0.5%, which is about 0.4 mm over a card’s 85.6 mm length. Small nudges make a visible difference over 8–10 cm.
How to use it: place a card on the ruler. If its end sits past the 85.6 mm tick, press + (the ticks are too small); if it ends before 85.6, press −. Stop when the edge sits on the tick.
Check your calibration
| Test object | Should read |
|---|---|
| Credit card, long edge | 85.6 mm / 3.37 in |
| Credit card, short edge | 54.0 mm / 2.13 in |
| US quarter | 24.3 mm |
| US penny | 19.1 mm |
| Euro €1 coin | 23.3 mm |
| UK £1 coin | 23.4 mm |
| A4, short edge (tablet or monitor) | 210 mm |
If the card’s long edge reads correctly but the short edge doesn’t, check that the card is square to the ruler.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| Card won’t line up: overlay too short at maximum | Zoom is far from 100% | Reset zoom, reopen calibration |
| Calibration was fine yesterday, wrong today | Zoom or display scaling changed | Reset zoom; recalibrate |
| Calibration is gone | Private window or cleared site data | Calibrate in a normal window |
| Short edge reads wrong, long edge right | Card not square to the ruler | Re-seat the card at 90° |
| Reading changes as you move your head | Parallax | Look straight down |
| Right on laptop, wrong on external monitor | Each screen has its own scale | Calibrate on each monitor |
| Off by 10–40% on a phone, or 5–15% on a laptop | Never calibrated | Calibrate with a card |
| 1–2 mm off over a card length | Diagonal method or rough alignment | Recalibrate with a card |
| Only images or PDFs measure wrong | The content is scaled | View content at 100% |
| Right in one browser, wrong in another | Calibration is per browser | Calibrate in each browser |
When to recalibrate
- After changing browser zoom or system display scaling
- In a new browser or on a new device
- After an OS update that changes display settings
- After clearing browsing data, or if you used a private window
- If a quick card test reads more than 1 mm off
Once calibrated, try measuring something on the ruler on phone, or see how to read a ruler if you’re new to millimeters and sixteenths.
Why does an online ruler need calibrating at all?
Because the browser doesn’t know how big your screen’s pixels are. CSS defines 1 in = 96 px, and that’s only true on a 96 PPI display at 100% scaling. Phones pack far more pixels into each inch and then scale them by a device pixel ratio, so the browser’s “inch” ends up a different physical size on every model. Operating systems don’t pass the real screen size to web pages either, so no website can measure correctly out of the box.
Here’s how far off an uncalibrated ruler can be, using the nominal 96 px per inch:
| Screen | Real CSS px per inch | What an uncalibrated “1 inch” measures |
|---|---|---|
| 24” 1080p monitor at 100% (≈ 92 PPI) | ≈ 92 | ≈ 1.04 in (26.5 mm) |
| MacBook Air 13.6” (224 PPI, 2×) | 112 | ≈ 0.86 in (21.8 mm) |
| iPhone 15 (460 PPI, 3×) | ≈ 153 | ≈ 0.63 in (15.9 mm) |
Values are calculated from published pixel densities divided by the device pixel ratio. That 37% error on a phone is the main reason people find online rulers “wrong”. See why online rulers are inaccurate.
Worked example: calibrating with a card, step by step with numbers
- Zoom is 100%. You choose Card and lay a bank card on the screen.
- You drag the overlay until its end sits on the card’s short edge. The ruler records the overlay as 490 CSS px for 85.60 mm.
- Scale = 490 ÷ 85.60 = 5.72 px per mm, or 5.72 × 25.4 = 145.4 px per inch.
- Check: the card’s short edge (53.98 mm) should now span 53.98 × 5.72 ≈ 309 px. Turn the card and it should read 54.0 mm.
- If it reads 53.6 mm, the scale is about 0.7% too large. Press − once (0.5%) and check again.
The numbers here are an illustration; your screen will give its own pixel count. The point is that one careful match sets every tick on the ruler.
How accurate is a calibrated screen ruler?
After a careful card calibration at 100% zoom, readings across a phone screen are typically within about half a millimeter. The limits come from things you can see and fix:
| Error source | Typical size | How to reduce it |
|---|---|---|
| One-pixel alignment slip on a card (≈ 500 px) | ≈ 0.2% | Use a longer reference; fine adjust |
| Parallax through the cover glass | Up to a fraction of a mm | Look straight down at each edge |
| Rounded card corner used as the edge | Up to ≈ 3 mm | Align the straight edge, not the 3.18 mm corner radius |
| Zoom not at 100% | 10% or more | Reset zoom (Ctrl/⌘ + 0) |
| Worn or trimmed reference | Varies | Use a fresh card or new sheet of paper |
A screen ruler is a convenience tool. It is not a substitute for a certified, NIST-traceable or UKAS-calibrated steel rule when a measurement has to hold up for engineering, legal or quality-control use. Those physical rulers come with a calibration certificate; a phone screen can’t.
Calibrating different devices
iPhone and Android phones: use the card method in portrait. Phones are the only screens narrow enough that a card covers most of the width, which is ideal. If you turn the phone to landscape, the scale doesn’t change, so you don’t need to recalibrate.
iPad and Android tablets: a card works, but A4 or Letter along the short edge of the screen is more precise. Lay the tablet flat on a table.
Laptops: lay the lid back as flat as it will safely go, or prop the paper against the screen. Calibrate at the display scaling you normally use (Windows: Settings → System → Display → Scale; Mac: System Settings → Displays).
Desktop monitors: use Letter or A4 along the horizontal axis. If you have two monitors with different resolutions or sizes, calibrate on each; the browser window takes its pixel size from the monitor it’s on.
Chromebooks: same as laptops. ChromeOS display size settings change the scale, so recalibrate if you change them.
Calibrating without a card or paper
No card, no paper, no ruler? Look for something made to a published size:
| Object | Known size | Source |
|---|---|---|
| US nickel | 21.21 mm diameter | U.S. Mint |
| US dime | 17.91 mm diameter | U.S. Mint |
| US penny | 19.05 mm diameter | U.S. Mint |
| Euro 50 cent coin | 24.25 mm diameter | European Central Bank |
| US banknote | 155.96 × 66.29 mm (6.14 × 2.61 in) | U.S. Bureau of Engraving and Printing |
| Standard business card (US) | 3.5 × 2 in (88.9 × 50.8 mm) | Common trade size, varies by printer |
Use Custom, enter the size, and match it. Banknotes are the longest of these and the best choice; coins are better for a quick check. More ideas in how to measure without a ruler.
Common calibration mistakes
- Matching to the card’s rounded corner. ID-1 cards have corners rounded to a 3.18 mm radius. Align the flat part of the edge.
- Calibrating with the zoom changed. Pinch-zoom on a phone or Ctrl + scroll on desktop throws the scale off. Reload the page if you’ve pinched.
- Pressing the card into the screen. On some laptop and monitor panels this distorts the image. Rest it lightly.
- Calibrating in one browser and measuring in another. Chrome, Safari and Firefox each store their own calibration.
- Skipping the check. Always measure a known object after applying. It takes ten seconds.
Sources
- ISO/IEC 7810 (ID-1 card size); ISO 216 (A4); ANSI/ASME Y14.1 (US Letter).
- W3C CSS Values and Units Module Level 3 (CSS reference pixel, 1in = 96px).
- U.S. Mint, European Central Bank and Royal Mint coin and note specifications.