How the MacBook ruler works
The MacBook ruler is a horizontal ruler with presets for MacBook Air and MacBook Pro that account for the scaled resolution.
- Open the page in Safari, Chrome or Firefox at 100% zoom.
- Check the resolution setting in System Settings, Displays.
- Choose your MacBook preset, or calibrate with a credit card.
- Verify the result with a coin or a second card.
- Place the object along the top edge and drag the reading line to its end.
MacBook 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
MacBook 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 |
MacBook ruler FAQ
How do you measure something on a MacBook screen?
Calibrate the screen, then hold the object against the horizontal ruler and drag the reading line to its far end. A MacBook Air 13-inch screen is about 29 cm (11.4 in) wide, so a 15 cm (5.9 in) object fits in one reading. Keep the lid steady and the object flat against the glass.
How accurate are the MacBook presets?
The presets are estimates: they use Apple's published diagonal and native resolution and the scaled resolution your Mac reports. Browser zoom and rounded corners are not in the specifications, so verify with a coin or card. The verify step then shows the measured error; at its 1.5% limit that is 2.25 mm (0.09 in) over 15 cm.
Does the MacBook ruler work on an external monitor?
Yes, but calibrate the external monitor separately, because it has its own pixel density. The MacBook presets apply only to the built-in screen. Move the browser window to the monitor, calibrate with a credit card (85.6 mm, 3.370 in) and keep that window on the monitor while you measure.
How many pixels per millimetre does a MacBook Air 13-inch have?
The MacBook Air 13-inch screen has 224 pixels per inch (PPI), which is 8.82 pixels per millimetre. The browser draws in CSS pixels, not screen pixels, and the scaled resolution in System Settings sets how many screen pixels each CSS pixel uses. The preset accounts for that, and a card calibration measures it directly.
Do I need to recalibrate after changing the display resolution?
Yes, recalibrate after you change the resolution in System Settings, Displays. Each scaled setting, from Larger Text to More Space, changes the physical size of a CSS pixel, so a 1 cm (0.39 in) line drawn with the old calibration has the wrong length. The site stores one calibration per screen setting, so switching back restores the earlier one.