Online ruler for phone

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

Step 1: measure the first part of the object, then press Add segment.

Total: 0

Use 2 segments for objects of 15 cm (5.9 in) or more. Mark the object where segment 1 ends.

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 phone ruler works

    The phone ruler measures along the long side of a phone and adds segments in chain mode for objects longer than the screen.

    1. Calibrate the phone with a credit card held upright.
    2. Hold the phone in portrait with the object along the long edge.
    3. Measure the first part of the object and press Add segment.
    4. Mark the object where the first segment ends.
    5. Slide the object so the mark is at 0, measure the rest and press Add segment.
    6. Read the total length of all segments.
    reading
    Chain mode: measure one segment, mark it, slide the object back to 0 and measure the rest.

    Phone 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

    √(1080² + 2340²) = 2577.2 px on the diagonal. 2577.2 ÷ 6.1 in = 422.5 PPI (16.63 pixels per mm). The diagonal is 15.5 cm.

    Phone 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

    Phone ruler FAQ

    How do you use a phone as a ruler?

    Calibrate the phone with a credit card, then hold the object along the long edge of the screen and read the vertical scale. The scale is as long as the screen, for example about 14 cm (5.5 in) on an iPhone 16. For longer objects, chain mode adds 2 or more segments into one total.

    Is a phone ruler accurate enough for DIY?

    Yes, for cutting paper, fabric or craft material, once the verify step shows a small error. At the 1.5% verify limit, a 10 cm (3.9 in) cut could be 1.5 mm (0.06 in) off. Each chain segment adds a little marking error. Use a tape measure for long cuts, and a physical ruler or calipers for tolerances under 1 mm.

    Does the phone ruler work on Android and iPhone?

    Yes, the phone ruler runs in current versions of Chrome, Safari, Firefox and Samsung Internet on Android and iPhone. No app is needed. Calibrate once in each browser you use, because each browser stores its own calibration. A coin, such as a US quarter 24.26 mm (0.955 in) across, works when the card is awkward to hold.

    How many centimetres long is a phone screen?

    A phone screen with a 6.1-inch (15.5 cm) diagonal and a 19.5 : 9 shape is about 14 cm (5.5 in) tall in portrait. The diagonal runs corner to corner, so the height is shorter than the diagonal and the width is about 6.5 cm (2.6 in). Calibrate the ruler to see your exact screen size in centimetres and inches.

    How do I undo a chain segment I added by mistake?

    Press Reset to clear the chain and start again. Each segment is stored in millimetres, so changing the unit afterwards does not change the total. The total shows centimetres and inches together, for example 23.5 cm (9.25 in), so measure each part again after a reset.

    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.