Calculate the aspect ratio of an image
An aspect ratio compares width with height. Divide both dimensions by their greatest common divisor to simplify the ratio. An image measuring 1920 × 1080 pixels reduces to 16:9 because both dimensions divide by 120. An image measuring 1080 × 1350 reduces to 4:5. Enter width first so landscape and portrait ratios remain distinct.
Find a new width or height without stretching
Keep the same ratio when resizing: new height = new width × original height ÷ original width. A 1920 × 1080 image resized to 1280 pixels wide needs a height of 720 pixels. This calculator returns dimensions, not an edited image file. If a platform needs a different ratio, you must crop or add borders rather than stretch the picture.