How to calculate aspect ratio
Short answer
Divide width and height by their greatest common divisor to express the ratio in simplest form. For 1920x1080, both divide by 120 to give 16:9. To resize proportionally, multiply both sides by the same factor.
What aspect ratio means
Aspect ratio is the proportional relationship between width and height, written like 16:9. It describes shape, not size — a 1280x720 and a 1920x1080 image share the same 16:9 ratio. See common aspect ratios explained.
Reduce a resolution to its ratio
Divide the width and height by their greatest common divisor (GCD). For 1920x1080, the GCD is 120, so 1920/120 : 1080/120 = 16:9.
ratio = width/GCD : height/GCD
1920 x 1080 -> GCD 120 -> 16:9
1600 x 1200 -> GCD 400 -> 4:3Resize while keeping the ratio
To find a missing dimension, keep the ratio constant: new height = new width x (original height / original width). For 16:9 at 1280 wide: 1280 x 9/16 = 720.