DeviTest

PPI calculator

Enter a resolution and a diagonal size to get pixel density, aspect ratio and the real width and height of the screen.

Pixel density PPI
Aspect ratio
Width × height
In centimeters
Total pixels
Sharpness

What PPI means

PPI (pixels per inch) tells you how many pixels fit in one inch of the screen. Higher PPI means smaller pixels and sharper text. It's calculated from the diagonal resolution — the square root of width² + height² — divided by the diagonal size in inches.

How much PPI do you need?

Why "Use my screen resolution" might differ from the spec sheet

Browsers report a scaled resolution multiplied by the device pixel ratio. On most phones the result matches the real panel, but some devices round the numbers or use display scaling, so check your manufacturer's specs if the values look slightly off.

Frequently asked questions

Where do I find the diagonal?

In the device's specifications, in inches. Phone makers measure the diagonal of the full glass area, including rounded corners.

Is a higher PPI always better?

Only up to the point where your eyes can no longer see single pixels at your viewing distance. Beyond that, more pixels mostly cost battery and performance without a visible gain.

Related tests and guides