Screen size and aspect ratio calculator
Enter the diagonal and the aspect ratio of a display or HMI panel and get the width, height and area of its lit image, without the pixel resolution.
Calculator
This calculator needs JavaScript. Without it, use the formulas under "How it works" and the worked example.
Width and height from diagonal and aspect ratio
Use the nominal diagonal in inches and the ratio as two numbers, width first: 16 and 9 for 16:9, 4 and 3 for 4:3.
How it works
The diagonal of a screen is the long side of a right triangle whose other two sides are the width and the height. The aspect ratio W:H fixes the shape, so one scale factor turns the two ratio numbers into real sizes.
- Scale factor k = diagonal ÷ square root of (W squared + H squared).
- Active width = k × W and active height = k × H, in inches. Millimetres = inches × 25.4.
- Active area = active width × active height, in square centimetres or square inches.
- Aspect ratio as a decimal = W ÷ H, written as that number to 1.
- Diagonal of a 16:9 screen of the same height = height × square root of 337 ÷ 9, because 16 squared + 9 squared = 337. For a 4:3 screen it is height × 5 ÷ 3.
The result is the lit image area for the nominal diagonal, and it assumes the aspect ratio entered is the shape of that lit area. Makers round the diagonal they quote, so a "15.6 inch" panel is not exactly 15.6 inches; where the datasheet gives the active width and height, those are the figures to design to. The bezel, housing, panel cut-out and mounting dimensions are larger and come from the mechanical drawing of the unit, never from this calculation. A resolution can be entered as the ratio, for example 1280 and 800; the result then assumes square pixels, and for a panel with non-square pixels, use the active width and height on the datasheet instead.
Worked example
A 15 inch 4:3 operator panel is to be replaced with a widescreen one. Its lit image area is 304.8 mm (12 in) wide and 228.6 mm (9 in) high, 696.77 cm² (108 in²).
A 16:9 screen of the same height has a diagonal of 18.358 in, so a 16:9 panel of about 18.5 inches keeps the full height of the old image and adds width at the sides. A 15.6 inch 16:9 panel is only 194.26 mm (7.6481 in) high, so screens drawn for the old panel no longer fit in height at the same size. The opening in the door and the mounting holes still come from the mechanical drawing of the new unit.
Common mistakes
- Sizing the panel cut-out from the active area. The cut-out, bezel and mounting holes come from the mechanical drawing of the unit.
- Treating the nominal diagonal as exact. Makers round it, and the active width and height on the datasheet are the figures to design to.
- Comparing screens by diagonal alone. A 15 inch 4:3 screen is taller than a 15.6 inch 16:9 one, so screens drawn for the old panel may not fit in height.
- Entering the ratio the wrong way round. Width comes first: 16 and 9 is a landscape screen, 9 and 16 the same screen turned to portrait.
- Reading widescreen as one ratio. A widescreen panel may be 16:9, 16:10 or 15:9, which changes the height for the same diagonal.