Online ruler MacBook

Not calibrated
Drag from a ruler to add a guide.
0 in Estimate, calibrate for real size 

Default More Space Same card, fewer CSS pixels

Presets use Apple's published diagonal and resolution and account for the scaled resolution.

Reading details

Settings

px means CSS pixels, the browser's layout unit (1/96 in before calibration), not your screen's device pixels. A phone with a device pixel ratio of 3 has 3 × 3 device pixels in each CSS pixel.

History

Loading history

    All keyboard shortcuts

    Shortcuts work while the ruler is on screen. They are off while you type in a field, and Ctrl, Cmd and Alt combinations are left to the browser.

    ?
    Show or hide this list
    I C M
    Inches, centimetres, millimetres
    P
    CSS pixels as the reading unit
    Shift + P
    Show CSS pixels next to the length unit (cm + px)
    1 2 3 4
    Ruler, Calipers, Chain, Box
    ← → ↑ ↓
    Move the reading line 1 px
    Shift + arrow
    Move the reading line 1 mm
    G
    Add a guide at the reading line
    Shift + G
    Clear guides
    X
    Crosshair on or off
    E
    Next ruler edge (top, right, bottom, left, all four)
    O
    Horizontal or vertical ruler
    F
    Full screen on or off
    T
    Next colour theme (system, light, dark)
    S
    Save the reading to History
    H
    Open History
    Esc
    Clear guides and the box, or close a panel

    On a focused handle, arrow keys move it 1 px, Shift 10 px and Alt 0.1 mm. On a focused guide, arrow keys move it and Delete removes it.

    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.

    1. Open the page in Safari, Chrome or Firefox at 100% zoom.
    2. Check the resolution setting in System Settings, Displays.
    3. Choose your MacBook preset, or calibrate with a credit card.
    4. Verify the result with a coin or a second card.
    5. Place the object along the top edge and drag the reading line to its end.
    012345 cm reading
    The scale along the top edge of a MacBook screen.

    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

    Worked example, live

    √(2560² + 1664²) = 3053.3 px on the diagonal. 3053.3 ÷ 13.6 in = 224.5 PPI (8.84 pixels per mm). The diagonal is 34.5 cm.

    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.

    Apple screens: published diagonal and resolution, with the PPI they give
    DeviceDiagonal inDiagonal cmResolutionPPI
    MacBook Air 13-inch (M2 and later)13.634.52560 × 1664225
    MacBook Air 15-inch15.338.92880 × 1864224
    MacBook Pro 14-inch14.236.13024 × 1964254
    MacBook Pro 16-inch16.241.13456 × 2234254
    iMac 24-inch (4.5K)23.559.74480 × 2520219
    iPhone 166.1215.52556 × 1179460
    iPad Air 11-inch (M2 and later)10.8627.62360 × 1640265
    iPad Air 13-inch (M2 and later)12.932.82732 × 2048265

    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.

    Calibrate

    Not calibrated
    1. Most reliable method. Hold any bank card or driving licence flat on the screen (85.6 × 53.98 mm), top-left corner in the outline's corner.
    2. Drag the orange handle until the right edges line up. Arrow keys: 1 px, Shift 10 px.