How the horizontal ruler works
The horizontal ruler runs along the top or bottom edge of the screen, which gives the longest scale on a laptop or monitor.
- Calibrate the screen with a credit card.
- Choose the top or bottom edge for the scale.
- Place the object's left end at the 0 mark.
- Drag the reading line to the right end.
- Read the width in centimetres, millimetres and inches.
Horizontal 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
Horizontal 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 |
Horizontal ruler FAQ
How do you measure width on a laptop screen?
Use the horizontal ruler along the top edge: put the left end of the object at 0 and drag the reading line to its right end. A MacBook Air with a 13.6-inch (34.5 cm) screen is about 29 cm (11.4 in) wide, so the horizontal ruler can be nearly that long. Measure longer objects in 2 segments with chain mode.
How much error is there over the full width of a monitor?
It depends on your calibration, and the verify step shows the error in percent. At its 1.5% limit that is 9 mm (0.35 in) across a monitor 60 cm (23.6 in) wide. The error grows with length, so verify the calibration with a long object, such as an A4 sheet (297 mm, 11.69 in), on a large screen. Use a tape measure for anything that needs millimetre accuracy over that length.
Does the horizontal ruler work on a phone in landscape?
Yes, turn the phone sideways to get the longest horizontal scale. A phone 150 mm (5.9 in) long gives a landscape ruler a little shorter than that, because the screen is smaller than the body. Calibrate in the orientation you measure in, and recalibrate if the readings look wrong after rotating.
How many inches wide is 30 cm?
30 cm is 11.81 in, or 11 13/16 in to the nearest 1/16 inch. The horizontal ruler converts every reading this way, so a 30 cm (300 mm) object shows centimetres, millimetres and inches side by side. The conversion uses the exact factor 1 in = 2.54 cm.
What is the longest object the horizontal ruler can measure?
The longest single reading equals the width of the browser window, for example about 29 cm (11.4 in) on a 13.6-inch laptop. Chain mode adds segments together, so you can measure a longer object in 2 or more steps: mark where the first segment ends, slide the object back to 0 and measure the rest.