Online ruler vertical

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

Height 0

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 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.

    1. Calibrate the screen with a credit card held upright.
    2. Hold the phone or tablet in portrait.
    3. Place the object with its bottom end at the 0 mark.
    4. Drag the reading line to the top of the object.
    5. Read the height in your chosen unit, with the other units beside it.
    reading
    A phone in portrait with the ruler down the left edge and an object 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

    Worked example, live

    √(1920² + 1080²) = 2202.9 px on the diagonal. 2202.9 ÷ 15.6 in = 141.2 PPI (5.56 pixels per mm). The diagonal is 39.6 cm.

    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.

    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

    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.

    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.