IMDTouchKnowledge BaseShop main store

Screen PPI calculator

Enter the resolution and the diagonal of a display or HMI panel and get its pixel density, pixel pitch and the size of the active area in millimetres.

Calculator

This calculator needs JavaScript. Without it, use the formulas under "How it works" and the worked example.

How it works

A screen is a grid of pixels laid on a known diagonal. Pythagoras gives the diagonal in pixels, and dividing by the diagonal in inches gives the pixel density. The rest follows from the aspect ratio.

  • Diagonal in pixels = square root of (horizontal pixels squared + vertical pixels squared).
  • Pixels per inch (PPI) = diagonal in pixels ÷ diagonal in inches.
  • Pixel pitch (mm) = 25.4 ÷ PPI. 25.4 is the number of millimetres in an inch.
  • Active width = diagonal × horizontal pixels ÷ diagonal in pixels. Active height uses the vertical pixels the same way.

The diagonal to enter is the visible active area, which is the figure on the datasheet, and not the outside size of the bezel or the case. The active area is what you need for a panel cut-out, a touch overlay and a cover glass. PPI here means pixels per inch of the display, and has nothing to do with the Siemens PPI serial protocol.

Worked example

A 10.1 inch HMI panel is 1280 by 800 pixels. The diagonal in pixels is the square root of (1280 squared plus 800 squared), which is 1509.44. Divided by 10.1 inches that is 149.4492 PPI, and the pixel pitch is 0.1699574 mm.

The active area is 217.5455 mm (8.564783 in) wide and 135.9659 mm (5.352989 in) high, a 16:10 (1.6 : 1) shape. A new overlay or a bezel cut-out has to be sized to that rectangle.

Common mistakes

  • Using the outside size of the housing as the diagonal. The datasheet's active-area diagonal is the one that counts.
  • Mixing up the PPI of a screen with its resolution. Two 1280 by 800 panels of 7 and 10.1 inches differ by almost half in pixel density.
  • Rounding the diagonal. A 10.1 inch panel read as 10 inches is 1 percent off in PPI and 1 percent off in the cut-out.
  • Taking the aspect ratio from the name. A panel sold as widescreen may be 16:10 or 15:9, which changes the active height.
  • Calling the result DPI. Print resolution is measured in dots per inch, and a display counts pixels.

Other calculators