How to calculate aspect ratio

Two short methods, a resize formula and worked examples.

Method 1: divide by the greatest common divisor

  1. Write the width and height: 1920 and 1080.
  2. Find the largest number that divides both exactly. Use Euclid’s method: 1920 mod 1080 = 840; 1080 mod 840 = 240; 840 mod 240 = 120; 240 mod 120 = 0. The GCD is 120.
  3. Divide: 1920 ÷ 120 = 16, 1080 ÷ 120 = 9. The ratio is 16:9.

Method 2: divide width by height

1920 ÷ 1080 = 1.778. Compare with known decimals: 1.333 is 4:3, 1.5 is 3:2, 1.6 is 16:10, 1.778 is 16:9, 2.39 is cinema scope. This is quicker when a size does not reduce cleanly.

Resizing while keeping the shape

new height = new width × H ÷ W    new width = new height × W ÷ H

Example: a 3:2 photo printed 30 cm wide is 30 × 2 ÷ 3 = 20 cm tall. A 4:5 post at 1080 wide is 1080 × 5 ÷ 4 = 1350 pixels tall.

Worked examples

SizeGCDRatio
1280 × 7208016:9
1280 × 10242565:4
3000 × 200010003:2
1080 × 13502704:5
3440 × 14408043:18

Common mistakes

Questions

How do I calculate aspect ratio by hand?

Find the greatest common divisor (GCD) of width and height, then divide both by it. For 1280 × 1024 the GCD is 256, so the ratio is 5:4.

How do I calculate aspect ratio in a spreadsheet?

In Excel or Google Sheets, with width in A1 and height in B1: =A1/GCD(A1,B1)&":"&B1/GCD(A1,B1).

Can an aspect ratio be a decimal?

Yes. Cinema ratios are usually written as decimals against 1, such as 1.85:1 or 2.39:1. 1.85:1 is the same as 37:20.