How the vertical ruler works
The vertical ruler runs down the side of the screen, so you can measure height on a phone or tablet held upright.
- Calibrate the screen with a credit card held upright.
- Hold the phone or tablet in portrait.
- Place the object with its bottom end at the 0 mark.
- Drag the reading line to the top of the object.
- Read the height in your chosen unit, with the other units beside it.
Vertical 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
Vertical 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 |
Vertical ruler FAQ
How do you measure height with a phone screen?
Turn on the vertical ruler, stand the object against the long side of the screen and drag the reading line to its top. A phone screen 150 mm (5.9 in) tall measures objects up to that height in one reading. For taller objects, use chain mode to add segments, or use a tape measure.
Is the vertical ruler as accurate as the horizontal one?
Yes, both directions use the same calibration, so they have the same error, which the verify step shows. Pixels on current screens are square, so one scale works in both directions. Use a physical ruler for tolerances under 1 mm (0.04 in), or for engineering, medical or legal work.
Does the vertical ruler work on a computer monitor?
Yes, the vertical ruler works on monitors and laptops as well as phones and tablets. On a 27-inch (68.6 cm) monitor in landscape, the screen is about 33.6 cm (13.2 in) tall, so the vertical scale is a little shorter than that inside the browser window. Rotate a phone or tablet to portrait for the longest vertical scale.
How do you convert a height in cm to inches?
Divide the height in centimetres by 2.54: 15 cm is 5.91 in. The vertical ruler does this for you and shows centimetres, millimetres and inches together. For fractions, it rounds to the nearest 1/16 inch (1.5875 mm), so 15 cm reads as 5 7/8 in.
Can I move the vertical ruler to the right edge?
Yes, choose the right edge in the ruler's edge setting; the ruler stays vertical. Pick the edge that the object can rest against, for example the right edge if you hold the phone in your left hand. The calibration stays the same on either edge, so a 5 cm (1.97 in) object reads 5 cm on both.