How the iPhone ruler works
The iPhone ruler is a vertical ruler with calibration steps for iPhone screens, including a preset for the iPhone 16.
- Open the page in Safari or another iPhone browser.
- Hold the iPhone in portrait and keep the same Display Zoom setting.
- Calibrate with a credit card held upright, or use the iPhone 16 preset if you have that model.
- Verify the result with a coin or a second card.
- Place the object along the long edge and drag the reading line to its end.
iPhone 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
iPhone 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 |
iPhone ruler FAQ
Is there a ruler on the iPhone?
Yes, iPhones include the Measure app, which uses the camera and augmented reality (AR); this page adds a flat on-screen ruler. The on-screen ruler suits small flat objects that you can lay on the glass, such as a screw or a 24.26 mm (0.955 in) US quarter. The Measure app suits larger objects and distances away from the phone.
How accurate is the iPhone 16 preset?
The preset is an estimate from Apple's published 6.12-inch (15.5 cm) diagonal and 2556 × 1179 resolution. Display Zoom and the browser zoom change the scale, so verify the preset with a coin or card. The verify step then shows the measured error; at its 1.5% limit that is 0.75 mm (0.03 in) over 5 cm.
Can the website tell which iPhone I have?
No, Safari does not report the iPhone model to websites. Pages can read the screen size in CSS pixels and the device pixel ratio, but different iPhone models can share those values. Pick the preset only if you know your model, or calibrate with a credit card (85.6 × 53.98 mm, 3.370 × 2.125 in).
How many CSS pixels are in 1 inch on an iPhone 16?
About 153 CSS pixels span 1 inch (25.4 mm) on an iPhone 16, not the 96 that browsers assume. The screen has 460 pixels per inch (PPI) and a device pixel ratio of 3, so 460 ÷ 3 = 153.3 CSS pixels per inch, or 6.04 per millimetre. That is why an uncalibrated 1 inch line looks small on an iPhone.
Does Display Zoom change the iPhone ruler?
Yes, Display Zoom changes the number of CSS pixels per inch, so recalibrate after you switch it. Display Zoom, in Settings under Display and Brightness, enlarges everything on screen. The browser then reports a narrower screen in CSS pixels, and each CSS pixel covers more glass, so a 1 cm (0.39 in) line drawn with the old calibration comes out too long.