How it works
Pixels per inch (PPI) tells you how sharp a screen looks: it is the diagonal pixel count divided by the diagonal size in inches. Above roughly 220 PPI at laptop distance, individual pixels disappear. Pixel pitch is the size of one pixel in millimeters; smaller is sharper. Enter the resolution and the diagonal size printed in the spec sheet.
Formula
PPI = diagonal pixels / diagonal inches.
Pixel pitch mm = 25.4 / PPI.
Megapixels = width x height / 1,000,000.
Example
Example in plain words. A 24-inch screen at 1920 x 1080.
Diagonal 2203 pixels, so 91.79 PPI.
Pixel pitch 0.277 mm, and the panel holds 2.07 megapixels.
Frequently asked questions
Is higher PPI always better?
Only up to what your eyes resolve at your viewing distance. Past that, you pay for pixels you cannot see and the GPU works harder.
What about phones?
Phones sit much closer, so 300 PPI and up became the norm there. A 1080p phone beats a 1080p monitor on sharpness at the same resolution.