Toolvito

Works on this device

Screen Resolution Calculator

Work with the pixel counts and the sizes of screens. Find the aspect ratio and the total pixels of a resolution, find a missing side, scale a resolution, turn a diagonal into a width and a height, or compare screen sizes side by side.

Enter your values

Use this when you know the width and height in pixels.

Your values

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

How to use this calculator

  1. Choose what you want to work out, for example Aspect ratio and pixel count of a resolution.
  2. Enter the values you know. You can pick a common resolution or a common aspect ratio from the list above the boxes.
  3. Choose Calculate. The result shows the exact numbers and how they were worked out.
  4. To compare screens, choose Compare screen sizes side by side. Type one screen in each row: its diagonal, and its aspect ratio or its pixels. Choose Add a screen for more rows. The result draws the screens to one scale.
  5. To see what your own browser reports, choose What your browser reports about this screen, then Show.

The formulas

  • Total pixels = width × height. Megapixels = total pixels ÷ 1,000,000.
  • Aspect ratio = width to height, each divided by their greatest common divisor. 1920 and 1080 share the divisor 120, so 1920 × 1080 is 16:9.
  • Missing side: height = width × height part ÷ width part, and width = height × width part ÷ height part.
  • Scale: new side = old side × factor. A factor on each side changes the pixel count by the square of the factor. A factor on the pixel count changes each side by the square root of the factor.
  • Screen sides from the diagonal: width = diagonal × width part ÷ √(width part² + height part²). The height uses the height part in the same way.
  • Screens side by side: each screen gets its width, height and area from its diagonal and aspect ratio in the same way. Pixel density = √(pixels across² + pixels down²) ÷ diagonal in inches. Each screen is compared with the first one: difference = this screen − the first, and area against the first = this area ÷ the area of the first.

Worked example

A screen has 1920 × 1080 pixels. The greatest common divisor is 120, so the aspect ratio is 16:9. The total is 1920 × 1080 = 2,073,600 pixels, which is 2.0736 megapixels. The usual name is Full HD (1080p).

A 16:9 picture that is 2560 pixels wide is 2560 × 9 ÷ 16 = 1440 pixels tall. A 16:9 picture that is 1366 pixels wide would be 768.375 pixels tall. That is not a whole number. The nearest whole resolution is 1366 × 768, and its true aspect ratio is 683:384.

1920 × 1080 scaled to 150% on each side is 2880 × 1620. That has 2.25 times the pixels.

A 27 inch screen with a 16:9 shape: √(16² + 9²) = √337 = 18.3576. The width is 27 × 16 ÷ 18.3576 = 23.5325 inches and the height is 27 × 9 ÷ 18.3576 = 13.2371 inches.

Side by side, a 24 inch 16:9 screen is 20.9178 × 11.7663 inches and a 27 inch 16:9 screen is 23.5325 × 13.2371 inches. The 27 inch screen is 2.61473 inches wider and has (27 ÷ 24)² = 1.265625 times the area, which is 26.5625% more. With 1920 × 1080 pixels the 24 inch screen has √(1920² + 1080²) ÷ 24 = 91.7878 pixels per inch. With 2560 × 1440 pixels the 27 inch screen has 108.786.

Comparing screen sizes

Type one screen in each row: its diagonal, and its aspect ratio or its pixels. When you type both, they must give the same shape. 2560 × 1080 is 64:27, not 21:9, so leave the aspect ratio empty for such a screen: the shape then comes from the pixels.

The diagonal alone does not say how big a screen is. A 34 inch ultrawide screen with 3440 × 1440 pixels (43:18) is 31.363 inches wide but only 13.1287 inches tall, a little less than a 27 inch 16:9 screen (13.2371 inches). Its area is 411.755 square inches, 1.67295 times the area of a 24 inch 16:9 screen.

The calculator also draws the screens to one scale, each from the same bottom left corner, with the larger ones under the smaller ones. So you see at once how much wider and how much taller each screen is. A name that does not fit in its screen is shown as the number of the screen, and the key under the drawing says which screen the number stands for.

The tables give every number. Download them as a CSV file, or print the page with the drawing.

For the distance to sit from each size, use the Monitor Viewing Distance Calculator.

Names of shapes and resolutions

The calculator shows the exact aspect ratio first. It also shows the usual name, because the trade writes some shapes in another way. 8:5 is written as 16:10. Screens sold as 21:9 are often 64:27 (2560 × 1080) or 43:18 (3440 × 1440). These names are conventions, not rules. When a shape is within 3% of a named shape, the calculator says "about".

Resolution names that this calculator knows
Resolution Usual name Aspect ratio
640 × 480 VGA 4:3
800 × 600 SVGA 4:3
1024 × 768 XGA 4:3
1280 × 720 HD (720p) 16:9
1280 × 800 WXGA 8:5 (16:10)
1280 × 1024 SXGA 5:4
1600 × 900 HD+ 16:9
1600 × 1200 UXGA 4:3
1680 × 1050 WSXGA+ 8:5 (16:10)
1920 × 1080 Full HD (1080p) 16:9
1920 × 1200 WUXGA 8:5 (16:10)
2560 × 1440 QHD (1440p) 16:9
2560 × 1600 WQXGA 8:5 (16:10)
3440 × 1440 UWQHD 43:18 (about 21:9)
3840 × 2160 4K UHD (2160p) 16:9
4096 × 2160 DCI 4K 256:135 (about 17:9)
5120 × 2880 5K 16:9
7680 × 4320 8K UHD (4320p) 16:9

What your browser reports

The option What your browser reports about this screen shows three facts as reported by your browser: the screen size, the size of the browser window, and the device pixel ratio. The sizes are in CSS pixels.

Browsers and the scaling setting of the operating system can report logical pixels and not the physical pixels of the panel. A laptop panel with 2560 × 1600 physical pixels at 200% scaling is reported as 1280 × 800 with a device pixel ratio of 2. The calculator multiplies the two to give an estimate of the physical pixels. Browser zoom also changes the device pixel ratio, so use 100% zoom.

The numbers are read when you choose Show. They stay on this page. They are not stored and not sent.

Limits you should know

  • Sides can be from 1 to 100,000 pixels. A result side can be at most 1,000,000 pixels.
  • The calculator takes square pixels: one pixel is as wide as it is tall. This is true for almost all computer and phone screens.
  • A screen has whole pixels. When a side is not a whole number, the calculator shows it with 4 decimal places and gives the nearest whole resolution.
  • Screen width, height and area are for the lit part of the screen, without the frame. They are shown with 6 significant digits. A television or a monitor with its frame and stand is larger.
  • The compare option takes 2 to 12 screens. It does not work backwards from a measured width to a diagonal.
  • The scale option changes pixel counts. For the display scaling setting of an operating system, use the Display Scaling Calculator. For pixels per inch, use the Display PPI Calculator.
  • The page cannot read the true resolution of your panel. It can only show what the browser reports.

Related tools