Robince Studio
Calculators

Aspect ratios explained: 16:9, 4:3, 4:5 and resizing without distortion

An aspect ratio is the proportion between width and height. Keeping it unchanged is what stops a photo from looking squashed or stretched. This guide shows how to calculate a ratio from pixels, how to find a missing dimension and what to do when your picture does not match the target shape.

3 min read Reviewed Published by Abdul Gani, Robince Studio

On this page
  1. What an aspect ratio is
  2. Calculating the ratio from pixels
  3. Finding the missing dimension
  4. When the image does not match the target
  5. Aspect ratio on the web
  6. Frequently asked questions
  7. Try these tools

What an aspect ratio is

An aspect ratio is written as width:height, such as 16:9. It describes the shape, not the size. A 1920×1080 image and a 1280×720 image are different sizes with the same shape, so both are 16:9.

The ratio stays the same if you multiply or divide both sides by the same number. That is why a screen and its downscaled preview can have the same shape despite different pixel counts.

Calculating the ratio from pixels

Divide both numbers by their greatest common divisor (GCD). For 1920×1080, the GCD is 120, so the ratio is 16:9. For 1600×1200 the GCD is 400, which gives 4:3. For 1080×1350 the GCD is 270, which gives 4:5. A square, such as 1080×1080, is 1:1.

If you do not want to work out the GCD, divide the width by the height. 1920 ÷ 1080 = 1.777…, which is 16 ÷ 9. Comparing that decimal with a known ratio also works.

ResolutionRatioTypical use
1920 × 108016:9Full HD video and monitors
3840 × 216016:94K UHD video
1600 × 12004:3Older monitors, many compact cameras and tablets
1080 × 10801:1Square posts
1080 × 13504:5Portrait posts on many social platforms
1080 × 19209:16Vertical stories and short videos

Finding the missing dimension

To keep the shape when you change the width, use height = width × (ratio height ÷ ratio width). At a width of 1,200 pixels, a 16:9 image needs a height of 1,200 × 9 ÷ 16 = 675 pixels. A 4:5 image that is 1,080 pixels wide needs to be 1,080 × 5 ÷ 4 = 1,350 pixels tall, and a 9:16 image 1,080 wide needs 1,920 tall.

Always round to a whole number of pixels, and if the result is fractional, check whether the tool you use is happy with it. Some video formats also need even dimensions.

When the image does not match the target

  • Crop: cut away part of the image so it fits the ratio. You lose edges but keep the proportions. Choose the crop so the subject stays inside.
  • Pad (letterbox): keep the whole image and add bars or a background colour to fill the extra space. Nothing is lost, but the bars may look dated.
  • Stretch: change the width and height independently. This distorts faces and circles, so avoid it.
  • Plan ahead: when taking photos for a specific shape, leave space around the subject so you can crop to several ratios later.

Lock the aspect ratio when resizing. Changing only one dimension and letting the other follow keeps the picture undistorted.

Aspect ratio on the web

In CSS, the aspect-ratio property keeps a box in proportion, for example aspect-ratio: 16 / 9. It prevents layout shifts as images and videos load. Also set width and height attributes on images so the browser reserves the right space before the file arrives.

Provide images at several sizes with the same ratio, and let the browser choose, so mobile users do not download a huge file.

Frequently asked questions

What is the aspect ratio of 1920×1080?

16:9. Divide both numbers by 120, their greatest common divisor, to get 16 and 9.

How do I resize an image without stretching it?

Change width and height by the same proportion, which most tools do when "lock aspect ratio" is on. Or crop the image to the target ratio first.

What is the difference between 4:3 and 16:9?

4:3 is nearly square and was common for older screens. 16:9 is a wider rectangle and is now standard for video and most monitors.

Does the aspect ratio change the quality?

The ratio itself does not. Quality depends on resolution and compression. Cropping or upscaling a small image can reduce apparent quality.

Try these tools

Keep reading