Aspect ratio calculator
Work out the ratio of any size, or type a new width or height and get the other side at the same shape. Nothing is uploaded; it all runs on this page.
Find the ratio of a size
Pixels, inches, centimetres – any unit works as long as both sides use the same one.
Resize to a ratio
Type in either width or height; the other side updates. Ratio accepts 16:9, 16x9, 16/9 or a decimal like 2.39.
How the calculator works
To find a ratio, the calculator divides both sides by their greatest common divisor. 1920 and 1080 share 120, which leaves 16:9. Sizes that do not reduce neatly, like 1366 × 768, also show the nearest common ratio and how far off they are.
To resize, it uses one line of algebra:
new height = new width × (ratio height ÷ ratio width)So 16:9 at 2560 wide is 2560 × 9 ÷ 16 = 1440. When the answer is a fraction, such as 16:9 at 1000 wide (562.5), pick whole-pixel or even-pixel rounding. The result line always shows the exact value too.
More tools: screen size from diagonal, fit or crop one ratio into another, and a chart of common resolutions.
Questions
What is an aspect ratio?
It is the shape of a rectangle written as width:height. A 1920 × 1080 image is 16:9 because 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9. Two images with the same ratio have the same shape at different sizes.
How do I keep the same ratio when resizing?
Multiply the new width by height ÷ width of the ratio. For 16:9 and a new width of 1280, the height is 1280 × 9 ÷ 16 = 720.
Why does 1366 × 768 not reduce to 16:9?
Because 1366 ÷ 768 = 1.7786, slightly wider than 16 ÷ 9 = 1.7778. It reduces to 683:384, which is about 0.05% away from 16:9, so it is usually sold as 16:9.
Why round to even pixels?
Many video codecs that use 4:2:0 chroma subsampling, including common H.264 and HEVC settings, need even width and height. Choosing even rounding avoids an encoder error or a silently added pixel.