HomeEveryday Life › Screen PPI Calculator

Screen PPI Calculator

Computes pixels per inch and per centimetre, dot pitch, total pixels, the simplified aspect ratio and the physical width and height of a display from its diagonal size and pixel resolution, plus the distance beyond which 20/20 vision can no longer resolve individual pixels.

When to use

You are comparing monitors, phones or TVs by sharpness, need the physical width of a screen, or want to know at what distance a display looks 'retina'.

Do not use when: You need viewing-distance recommendations for a TV (use tv-viewing-distance) or only the aspect ratio (use aspect-ratio).

Formula

ppi = √(width_px² + height_px²) / diagonal_inches; dot_pitch_mm = 25.4 / ppi; width_in = width_px / ppi; height_in = height_px / ppi; aspect = width_px : height_px reduced by their gcd; retina_distance = dot_pitch / tan(1/60°)

Assumes square pixels and that the quoted diagonal is the active area (manufacturers round it, e.g. a 6.1-inch phone panel gives ~457 ppi here versus the advertised 460). The 1-arcminute criterion is the classic 20/20 limit; people with sharper vision resolve about 0.6 arcminutes.

Inputs

ParameterTypeUnitRequiredDescription
diagonal_inchesnumberinyesScreen diagonal in inches (the advertised size). Range: > 0, ≤ 500
width_pxintegerpxyesPixels across. Range: ≥ 1, ≤ 100000
height_pxintegerpxyesPixels down. Range: ≥ 1, ≤ 100000

Outputs

OutputTypeUnitDescription
ppinumberppi√(width_px² + height_px²) / diagonal_inches.
ppcmnumberpx/cmppi / 2.54.
dot_pitch_mmnumbermmCentre-to-centre pixel spacing = 25.4 / ppi.
aspect_ratiostringSimplified width:height.
total_pixelsintegerpxwidth_px × height_px.
megapixelsnumberMPtotal_pixels / 10⁶.
screen_width_cmnumbercmActive-area width = width_px / ppi × 2.54.
screen_height_cmnumbercmActive-area height.
screen_width_innumberinWidth in inches.
screen_height_innumberinHeight in inches.
retina_distance_cmnumbercmViewing distance beyond which one pixel subtends less than 1 arcminute (20/20 acuity): dot_pitch / tan(1′).

Example

27-inch 2560 × 1440 monitor: {"diagonal_inches":27,"width_px":2560,"height_px":1440}{"ppi":108.79,"ppcm":42.83,"dot_pitch_mm":0.2335,"aspect_ratio":"16:9","total_pixels":3686400,"megapixels":3.69,"screen_width_cm":59.77,"screen_height_cm":33.62,"screen_width_in":23.53,"screen_height_in":13.24,"retina_distance_cm":80.3}

15.6-inch 1920 × 1080 laptop: {"diagonal_inches":15.6,"width_px":1920,"height_px":1080}{"ppi":141.21,"dot_pitch_mm":0.1799,"aspect_ratio":"16:9","total_pixels":2073600,"screen_width_cm":34.54,"screen_height_cm":19.43,"retina_distance_cm":61.8}

GET https://tttkmbb.com/api/v1/calculate/screen-ppi?diagonal_inches=27&width_px=2560&height_px=1440

Machine access

Sources

FAQ

What PPI counts as sharp?

It depends on distance: at 60 cm a monitor needs about 145 ppi to hide pixels for 20/20 vision, a phone at 30 cm about 290 ppi, and a TV at 2.5 m only about 35 ppi.

Why does my 1366 × 768 screen show 683:384?

That is the exact reduced ratio; it is only approximately 16:9. Use aspect-ratio for the closest common ratio.

Related calculators