How the Android ruler works
The Android ruler is a vertical ruler with checks for Chrome zoom and the display size setting, which both change the scale.
- Open the page in Chrome or another Android browser.
- Set the browser zoom to 100%.
- Calibrate with a credit card held upright, or with a coin.
- Verify the result with a second object.
- Recalibrate, if you change the display size setting or the browser zoom.
Android ruler formula
Pixels per inch (PPI) equal the diagonal resolution in pixels divided by the diagonal size in inches. The diagonal resolution is √(width² + height²). Divide PPI by 25.4 for pixels per millimetre, and by the device pixel ratio for CSS pixels.
PPI = √(w² + h²) ÷ diagonal_in- w, h
- native resolution in pixels
- diagonal_in
- visible diagonal in inches
Android ruler conversion chart
Apple's published diagonals and resolutions give about 219 to 460 PPI for these 8 screens. PPI is computed from each published resolution and diagonal; the diagonal is also shown in centimetres.
| Device | Diagonal in | Diagonal cm | Resolution | PPI |
|---|---|---|---|---|
| MacBook Air 13-inch (M2 and later) | 13.6 | 34.5 | 2560 × 1664 | 225 |
| MacBook Air 15-inch | 15.3 | 38.9 | 2880 × 1864 | 224 |
| MacBook Pro 14-inch | 14.2 | 36.1 | 3024 × 1964 | 254 |
| MacBook Pro 16-inch | 16.2 | 41.1 | 3456 × 2234 | 254 |
| iMac 24-inch (4.5K) | 23.5 | 59.7 | 4480 × 2520 | 219 |
| iPhone 16 | 6.12 | 15.5 | 2556 × 1179 | 460 |
| iPad Air 11-inch (M2 and later) | 10.86 | 27.6 | 2360 × 1640 | 265 |
| iPad Air 13-inch (M2 and later) | 12.9 | 32.8 | 2732 × 2048 | 265 |
Android ruler FAQ
How do I use my Android phone as a ruler?
Open this page in Chrome, calibrate with a credit card, then lay the object along the vertical scale. No app or permission is needed. Keep the browser zoom at 100% and use the same display size setting each time, because both change the size of a CSS pixel. A coin, such as a US quarter 24.26 mm (0.955 in) across, also works for calibration.
Why is the uncalibrated ruler the wrong size on Android?
Android browsers assume 96 CSS pixels per inch, but the real number depends on the screen's pixel density and the display size setting. The difference can be several percent or more, and phones are often furthest off. A credit-card calibration fixes the scale, and the verify step shows the error that remains; at its 1.5% limit that is 1.5 mm (0.06 in) over 10 cm.
Are there Android device presets?
No, there are no Android presets, because Android browsers do not report the phone model and the display size setting changes the scale. A preset would be a guess. Calibrate with a credit card (85.6 × 53.98 mm, 3.370 × 2.125 in) or a coin instead; both methods work on every Android phone and tablet.
How do I switch the Android ruler between cm and inches?
Tap in, cm or mm in the unit buttons above the ruler. The choice is saved in the browser and applies to every ruler page on the site. Whatever the unit, the readout also shows the others, for example 5.00 cm beside 1.969 in and 50.0 mm.
Does Chrome zoom affect the ruler?
Yes, Chrome zoom scales every CSS pixel, so a ruler calibrated at 100% is wrong at 125%. At 125% zoom, each mark is 25% longer than it should be: 1 cm (0.39 in) draws as 1.25 cm. The site notices a zoom change when it can and offers to rescale the saved calibration; otherwise, recalibrate.