Home · Everyday · Tech, Text & Media · PPI Calculator (Pixels Per Inch)
PPI Calculator (Pixels Per Inch)
Calculates a display's pixel density in pixels per inch from its resolution and diagonal size, plus the pixel pitch.
What this calculator does
Calculates a display's pixel density in pixels per inch from its resolution and diagonal size, plus the pixel pitch. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The pixel count along the diagonal is √(w² + h²) by Pythagoras; dividing by the diagonal size in inches gives pixels per inch. Pixel pitch — the spacing between pixel centres — is 25.4 mm per inch divided by the PPI.
The formula assumes square pixels, which holds for virtually all modern LCD and OLED panels. Quoted diagonal sizes are sometimes rounded (a '24-inch' panel may be 23.8 viewable), which shifts the true PPI by about 1%.
Worked example
With the example inputs this page opens with (horizontal pixels 1920, vertical pixels 1080, diagonal size (in) 24), the result is 91.8 ppi — pixel density. Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| Diagonal size (in) | Pixel density | Pixel pitch |
|---|---|---|
| 13.3 | 165.632118 | 0.153352 |
| 15.6 | 141.211998 | 0.179871 |
| 21.5 | 102.460799 | 0.2479 |
| 24 | 91.787799 | 0.276725 |
| 27 | 81.589154 | 0.311316 |
| 32 | 68.840849 | 0.368967 |
| 42 | 52.450171 | 0.484269 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
What PPI can the eye no longer resolve?
At a typical 30 cm phone distance, around 300 ppi is the commonly cited threshold; at desktop viewing distances of 60 cm or more, roughly 150–200 ppi already looks sharp.
How does the PPI Calculator (Pixels Per Inch) work?
Calculates a display's pixel density in pixels per inch from its resolution and diagonal size, plus the pixel pitch. Horizontal pixels · Vertical pixels · Diagonal (in) → Pixels per inch. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the PPI Calculator (Pixels Per Inch) need?
Horizontal pixels · Vertical pixels · Diagonal (in) → Pixels per inch. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the PPI Calculator (Pixels Per Inch) free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.