DPI / PPI calculator
Work out the pixel density of any monitor, phone, or tablet from its resolution and diagonal size. It is useful for comparing screen sharpness across products, checking whether a display qualifies as high-DPI (“Retina”), or deciding what monitor resolution you actually need at a given desk distance.
How it works
Screens are marketed by their diagonal size, so the calculation combines the pixel diagonal with that physical measurement. The Pythagorean theorem gives the pixel diagonal, which is then divided by the inch diagonal to yield PPI:
PPI = √(width² + height²) ÷ diagonal in inches
From the PPI, the tool also derives:
- Dot pitch = 25.4 ÷ PPI — the distance in millimetres between neighbouring pixel centres. Smaller dot pitch means sharper output.
- Active display area — the physical width and height in both inches and centimetres, derived from pixel dimensions divided by PPI.
Worked example
For a 2560 × 1440 display on a 27-inch panel:
diagonal pixels = √(2560² + 1440²) = √(8,627,200) ≈ 2937.8
PPI = 2937.8 ÷ 27 ≈ 108.8
dot pitch = 25.4 ÷ 108.8 ≈ 0.234 mm
Pixel density reference — common screens
| Screen | Resolution | Diagonal | Approx. PPI |
|---|---|---|---|
| 27” QHD desktop | 2560 × 1440 | 27” | ~109 |
| 24” 1080p desktop | 1920 × 1080 | 24” | ~92 |
| 27” 4K desktop | 3840 × 2160 | 27” | ~163 |
| 15.6” 4K laptop | 3840 × 2160 | 15.6” | ~282 |
| 6.1” 1080p phone | 1080 × 2400 | 6.1” | ~432 |
What PPI means in practice
The right pixel density depends on viewing distance, not an absolute number. At a typical desk distance of about 60–70 cm, most people cannot distinguish individual pixels above roughly 110–120 PPI — which is why 4K at 27 inches (~163 PPI) appears noticeably crisper than 1080p at 27 inches (~82 PPI), but both look smoother than a phone held at arm’s length needs to.
Apple’s original “Retina” threshold was approximately 300 PPI at phone-in-hand distance (~25 cm). For laptop screens viewed at ~50 cm, Apple uses ~200–220 PPI. For desktop monitors at ~60–70 cm, they target ~110 PPI. These are useful calibration points when choosing a display for a specific use case.
DPI vs PPI — what’s the difference?
PPI (pixels per inch) is the correct term for screen pixel density. DPI (dots per inch) technically describes printer resolution, where each ink dot is smaller than a pixel. For displays the two terms are used interchangeably in everyday language, but this calculator computes pixels per inch. Everything runs in your browser — nothing is uploaded.