Formula
The diagonal in pixels comes from the Pythagorean theorem: d_px = √(width² + height²). Pixel density is that divided by the diagonal size in inches: PPI = d_px ÷ d_in.
Dot pitch, the distance between pixel centers, is 25.4 mm ÷ PPI. The physical width is the horizontal resolution ÷ PPI and the height is the vertical resolution ÷ PPI.
Worked example
A 24-inch 1920 × 1080 monitor: √(1920² + 1080²) = 2,202.9 pixels. 2,202.9 ÷ 24 = 91.79 PPI. Dot pitch is 25.4 ÷ 91.79 = 0.277 mm, and the screen is 20.92 in wide by 11.77 in high with 2.07 megapixels.
A 27-inch 2560 × 1440 monitor has √(2560² + 1440²) ÷ 27 = 108.79 PPI.
| Screen | Resolution | PPI |
|---|---|---|
| 24 in | 1920 × 1080 | 91.79 |
| 27 in | 2560 × 1440 | 108.79 |
| 27 in | 3840 × 2160 | 163.18 |
Assumptions
The formula assumes square pixels and that the advertised diagonal is the visible area. Phone screens with rounded corners and marketed sizes rounded to one decimal can make the true value differ by a few PPI. Screen PPI is not the same as printer DPI, which counts ink dots.