Home Guides Image Guides

Image Guides

How to Calculate Image Aspect Ratio

Calculate an image aspect ratio from width and height, preserve proportions when resizing, and choose cropping or padding when frames differ.

In this guide Step-by-step explanations, practical examples and useful context to help you complete the task confidently.

An image's aspect ratio is the relationship between its width and height. It describes shape, not image quality or file size. Knowing the ratio helps you resize an image without stretching it, prepare assets for a website, and decide whether a crop is needed to fit a required frame.

Calculate the ratio from width and height

Write the pixel dimensions as width:height, then divide both numbers by their greatest common divisor (GCD). For a 1920 × 1080 image, the GCD is 120: 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9. The simplified aspect ratio is 16:9.

For dimensions that do not simplify to small whole numbers, the ratio can be left as a decimal or as the original width-to-height relationship, depending on the task.

Check dimensions with Tervilo

  1. Open the Tervilo Image Dimensions Checker.
  2. Select the image and read its width and height.
  3. Reduce the two values to a simplified ratio if you need the ratio in a compact form.
  4. Compare the result with the destination's required dimensions or ratio.
  5. If the shapes differ, use the Image Resizer for proportional resizing or the Image Cropper to select a new frame.

Worked examples

Image dimensionsSimplified ratioWhat it means
1200 × 8003:2Landscape image
1080 × 10801:1Square image
1920 × 108016:9Widescreen frame
2560 × 108064:27Much wider than 16:9

A 1200 × 800 image can be resized proportionally to 900 × 600 because both dimensions are multiplied by 0.75. A 1920 × 1080 image can become 1280 × 720 without changing its shape.

Resize without distortion

When preserving the aspect ratio, choose one dimension and calculate the other. For a 16:9 image set to 1280 pixels wide, the height is 1280 × 9 ÷ 16 = 720 pixels. Setting it independently to 1280 × 800 changes the shape unless the image is cropped or padded.

When cropping is better

If a destination uses a different ratio, a crop removes parts of the source image to fit the target frame while keeping the remaining content undistorted. Place the crop around the subject before exporting. Padding is another option when the whole image must remain visible, but it adds empty space around the content.

Aspect ratio, resolution, and file size

Aspect ratio describes proportions. Resolution refers to pixel dimensions, such as 1920 × 1080. Two images can both be 16:9 but have different resolutions. File size also depends on image format, visual complexity, metadata, and compression, so the ratio alone cannot predict the file size.

Common mistakes

  • Confusing aspect ratio with pixel resolution.
  • Changing width and height independently and stretching the image.
  • Resizing when a crop is required to fit a different frame.
  • Assuming a ratio alone satisfies a destination's exact pixel requirements.
  • Ignoring the position of the subject when cropping.

Before exporting

  • □ I have the original width and height.
  • □ I simplified the ratio correctly.
  • □ I checked whether the destination specifies a ratio, exact pixels, or both.
  • □ I used proportional resizing, cropping, or padding intentionally.
  • □ I inspected the exported image at its intended display size.

Quick answer

Simplify width:height by dividing both dimensions by their GCD. Preserve that ratio to resize without distortion; crop or pad when the destination frame has a different shape.

You've reached the end

Use the related tools, FAQs and next guides below to continue from the topic you just learned.

Use the solution

Try the Tervilo Tools

Finish the task with a practical Tervilo tool related to this guide.

Questions & answers

Frequently Asked Questions

How do I calculate a 1920 × 1080 aspect ratio?

The dimensions simplify to 16:9 after dividing both values by their greatest common divisor, 120.

Is aspect ratio the same as image resolution?

No. Aspect ratio describes shape; resolution/dimensions describe the pixel grid or, in print contexts, density.

How do I resize without changing aspect ratio?

Change one dimension proportionally and let the other follow the original ratio.

What should I do when the destination has a different aspect ratio?

Crop or add appropriate padding rather than stretching the image.

Learn more

Related Articles

Understand the wider topic with an informative Tervilo article.