Skip to content
LoveToCalc

Aspect ratio calculator

Enter a width and a height — get the ratio, and the new height or width that keeps the shape.

Your numbers

Common ratios

Whole numbers, in pixels or any unit.

I know the new

1280 is only an example where the field opens.

Result

New height

720

Aspect ratio, width
16
Aspect ratio, height
9
Width divided by height
1.778

1,920 × 1,080 has the aspect ratio 16:9 (exactly 16:9). At a width of 1,280 the height is 720.

The aspect ratio is the width and the height divided by their greatest common divisor. The new size keeps width / height and is shown unrounded; round to whole pixels yourself. A size that is not exactly a common ratio, such as 1366 × 768, is called close to one when it is within 3 % of it.

What this answers

An aspect ratio is the shape of a picture or a screen: how wide it is compared with how tall. The calculator reduces a width and a height to the smallest whole numbers with the same shape, says whether that is one of the common ratios, and tells you the height (or width) a resized version needs so the picture is not stretched.

Formula

Ratio = w / gcd(w, h) : h / gcd(w, h)

New height = new width × h / w

New width = new height × w / h

Worked examples

1920 × 1080. The greatest common divisor is 120, so the ratio is 16:9. At a width of 1280 the height is 1280 × 1080 / 1920 = 720.

1366 × 768. The divisor is 2, so the ratio is 683:384. That is not a named ratio, but 1366 / 768 = 1.7786 is within 3% of 16:9 (1.7778), so the page calls it close to 16:9.

What this doesn’t cover

Common questions

Why is 2560 × 1080 called 21:9? Its exact ratio is 64:27, which is 2.370. A true 21:9 is 2.333. Marketing names round, so the page says close to 21:9 rather than exactly.

Last reviewed October 20, 2026 ·How pages are reviewed

All everyday calculators

Put this calculator on your site

Copy the code into your page where the calculator should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.