All guides

How to calculate aspect ratio and resize without stretching

Reduce width and height to a ratio, calculate a matching height, and decide when an image needs a crop instead of a resize.

Open the tool

Start with width and height in the same unit

Aspect ratio describes shape: width compared with height. A 1920 × 1080 image and a 1280 × 720 image both have a 16:9 ratio, even though their pixel dimensions differ. You can also compare two measurements in centimetres or inches, provided both sides use the same unit. Do not enter a width in centimetres and a height in pixels. The ratio alone does not specify file size, sharpness, physical print size or the amount of detail in a photograph.

Calculate a matching height in the tool

Open the Aspect Ratio Calculator. Enter 1920 in Width and 1080 in Height. The Aspect ratio result is 16:9. Enter 1280 in New width; Matching height becomes 720. Check those results and use the Calculate action. The calculator works with numbers and does not need an image upload. It does not resize, crop or export an image itself. To change the actual picture, use the matching dimensions in the image resizer and inspect the downloaded file.

Check the calculation and orientation

The matching-height formula is new width × original height ÷ original width. Here, 1280 × 1080 ÷ 1920 = 720. For a portrait image, 1080 × 1920 reduces to 9:16; a new width of 720 gives a matching height of 1280. Swapping width and height changes the orientation, so check which measurement is horizontal before copying the result. The displayed matching height may be rounded. If an editor requires whole pixels, choose a suitable integer size and check the final proportions.

Choose between resizing and cropping

Resizing with the ratio preserved keeps the same shape. A crop changes the shape by removing part of the image. For example, a 4000 × 3000 photo is 4:3. A 3000 × 3000 square crop removes 1000 pixels of its original width; it does not keep the complete photograph. Another option is to fit the whole photo inside a square with extra space. Stretching the full rectangle into a square changes the proportions of faces, lettering and circles.

Check the destination and exported image

Read the destination’s current width, height and file-size requirements before preparing the image. A ratio such as 16:9 describes a shape and does not guarantee acceptance by a particular website or social app. After resizing or cropping in an editor, open the exported copy and check its actual pixel dimensions, orientation and subject placement. Keep the original so you can make another crop later. If the task is a physical print measurement, use the pixel-to-centimetre or print-size calculator with the required image density.

Sources

Updated:

Try it in the tool →