Aspect Ratio Calculator

Type a ratio such as 16:9 and the width you have. The page gives the height, and the nearest sizes that come out in whole pixels.

How it works

An aspect ratio is width to height. To find a missing side, the page scales the ratio: at 16:9, a width of 1280 gives a height of 1280 × 9 / 16, which is 720.

Some sizes do not come out whole. At 16:9, a width of 1000 gives 562.5. In lowest terms, every exact 16:9 size is a multiple of 16 by the same multiple of 9, so the page gives the nearest ones: 992 × 558 and 1008 × 567.

Type both sides to check a size against the ratio and see its own ratio in lowest terms. Everything is worked out on this page.

How to use it

  1. 1 Type the ratio, such as 16:9 or 4:5, or a size such as 1920 x 1080 to use its ratio.
  2. 2 Type the width or the height you know, and leave the other blank.
  3. 3 Read the missing side, and the nearest exact sizes if it is not a whole pixel.
  4. 4 Copy the size, or the CSS aspect-ratio line for the ratio.

Good to know

  • The CSS aspect-ratio property keeps a box in shape as it resizes: aspect-ratio: 16 / 9 on a video frame needs no height at all.
  • Decimal ratios work too. Link previews are often described as 1.91:1, and a width of 1200 gives a height of 628.27.
  • To resize or crop an actual picture to the ratio, use the Image Resizer or the Image Cropper, which also run in your browser.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Resizing a video thumbnail and a social image to the right shape

A thumbnail must be 16:9 and the design is 1280 pixels wide. Type 16:9 and 1280, and the height is 720. That one is easy because 1280 is a multiple of 16: 1280 divided by 16 is 80, and 80 times 9 is 720. Now say the design is 1000 pixels wide. 1000 divided by 16 is 62.5, so the height is 562.5 pixels, and an image cannot have half a pixel.

There are two honest answers. Round the height to 563, and the image is 1000 × 563, which is off 16:9 by less than a tenth of a percent; no one will see it. Or move to the nearest size that is exact. Every exact 16:9 size is 16 times some whole number wide and 9 times the same number high, so the neighbours of 1000 are 992 × 558 and 1008 × 567. The page lists both, so you can pick the one that suits the layout.

The same method checks a size you already have. Type 1366 for the width and 768 for the height. At 16:9, 1366 wide would need 768.375 high, so the page says it does not quite match, and its own ratio is 683:384, which it names as approximately 16:9. Laptop screens of that size were sold as 16:9 for years. When a video looks letterboxed by a pixel on such a screen, this is the reason.

Ratios also need converting between the forms people use. Image specs often give a decimal, such as 1.91:1 for link preview images. Type it, and the page simplifies it to 191:100 and writes aspect-ratio: 191 / 100 for CSS. A width of 1200 then gives a height of 628.27, which is why the common size 1200 × 630 is very close to, but not exactly, 1.91:1.

The calculator has limits. It handles ratios of two parts, width to height, and not three-part ratios. It works out sizes; it does not change any image, so use an image tool to resize or crop. It treats pixels as square, which nearly all modern screens and cameras use. The common ratios in the table describe typical use, and each platform publishes its own exact sizes, which change from time to time.

Frequently asked questions

How do I calculate height from width and aspect ratio?

Multiply the width by the second number of the ratio and divide by the first. For 1080 wide at 4:5, that is 1080 × 5 / 4, which is 1350. For width from height, multiply by the first number and divide by the second.

How do I simplify a ratio such as 1920 x 1080?

Divide both numbers by their greatest common divisor. For 1920 and 1080 that is 120, which gives 16:9. Type the size into the ratio box and the page shows the simplest form.

Why is my 1366 x 768 screen not exactly 16:9?

Because 1366 × 9 / 16 is 768.375, not 768. The exact ratio is 683:384, which is within 1% of 16:9, so it is sold as 16:9. Type both sides and the page names both.

What aspect ratio should I use for video?

16:9 for landscape video such as YouTube, and 9:16 for vertical video such as Stories, Reels, Shorts and TikTok. The table below the calculator lists the common ratios and an example size for each.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.