Aspect Ratio Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

What this aspect ratio calculator does

This aspect ratio calculator converts any width and height into a simplified ratio such as 16:9, 4:3, or any other proportional pair. Enter your dimensions (in pixels, inches, or any consistent unit) and the tool returns the exact aspect ratio, plus values you can use to resize images or video without distortion.

Use it when you need to:

The calculator focuses on the proportional relationship between width and height. As long as you keep that ratio the same, your content will scale up or down cleanly.

What is aspect ratio?

An aspect ratio describes the shape of a rectangle by comparing its width to its height. It is written as two numbers separated by a colon, such as 16:9, 4:3, or 3:2. These numbers tell you how wide something is compared to how tall it is, but they do not specify an absolute size.

For example:

If you change one side without adjusting the other side proportionally, the aspect ratio changes, and the content can look stretched or squashed. Keeping a consistent aspect ratio ensures that shapes and people look natural on different screens and print sizes.

How to calculate aspect ratio from width and height

The calculator does the math for you automatically, but the underlying steps are straightforward. Given a width w and a height h, you want to find the simplest whole-number ratio wr : hr that has the same proportion.

In mathematical terms, you divide both width and height by their greatest common divisor (GCD). This simplifies the pair to its smallest whole-number form while preserving the same relationship:

AspectRatio = w h w GCD(w,h) : h GCD(w,h)

In plain language: divide both the width and the height by the same largest whole number that goes into both of them evenly.

Manual step-by-step method

  1. Measure or look up the width and height. Use the same unit for both, such as pixels, millimeters, or inches.
  2. Find a common divisor. Start with small numbers (2, 3, 4, 5, etc.) and see which one divides both width and height without leaving a remainder.
  3. Divide both numbers by that divisor. If possible, repeat with larger divisors until you can no longer simplify.
  4. Express the result as W:H. The simplified pair gives you the aspect ratio.

Worked example: 1920 × 1080

Suppose you have a video with a frame size of 1920 × 1080 pixels. To find its aspect ratio:

  1. Start with the dimensions: 1920 (width) and 1080 (height).
  2. Both numbers are divisible by 10, but you can simplify further. Compute the GCD, which in this case is 120.
  3. Divide both by 120:
    1920 ÷ 120 = 16
    1080 ÷ 120 = 9
  4. The aspect ratio is 16:9.

This is why many HD and 4K formats are described as 16:9, even though they have different pixel counts.

Using aspect ratios to resize without distortion

Once you know the aspect ratio, you can generate new dimensions that keep the same shape by multiplying both sides of the ratio by the same factor. This is true whether you are scaling up to a large display or down to a small thumbnail.

For example, consider a 16:9 ratio. Some proportional sizes include:

In each case, the width divided by the height is the same, so the image or video will look identical in shape. Only the resolution or physical size changes.

Worked example: scaling a design

Imagine you designed a slide at 1280 × 720 pixels (16:9), but your display requires 2560 × 1440 pixels. To check whether the new size matches, divide the target width and height by the original:

Both dimensions are exactly doubled, so the aspect ratio remains 16:9. You will not see stretching or pillarboxing.

Common aspect ratios and typical uses

Many devices and platforms favor a small set of aspect ratios. Knowing them helps you plan your projects so fewer adjustments are needed later.

Aspect ratio Example sizes Typical uses
16:9 1920 × 1080, 1280 × 720, 3840 × 2160 Modern TVs, computer monitors, most online video players, presentation slides.
4:3 1024 × 768, 1600 × 1200 Older monitors, some tablets, legacy broadcast formats.
1:1 1080 × 1080, 2000 × 2000 Square images, certain social feed posts, avatars, icons.
3:2 3000 × 2000, 6000 × 4000 Many DSLR and mirrorless camera sensors, some photo print sizes.
9:16 1080 × 1920, 720 × 1280 Vertical video for phones, stories, and short-form mobile content.
21:9 (approx.) 2560 × 1080, 3440 × 1440 Cinematic widescreen, some ultrawide monitors and film formats.

These examples are not strict rules—platforms can support multiple ratios—but they provide a helpful starting point when planning content.

Interpreting your calculator results

After you enter width and height, the calculator typically returns:

You can compare the simplified ratio to the common values above to understand how your content will behave on different screens:

Practical tips: web, print, and social media

Web and UI design

On the web, aspect ratio affects how images and video fit into responsive layouts. Designers often:

By matching your assets to the container ratio, you reduce the chance of unexpected cropping or whitespace.

Print layouts

Print sizes are usually described by their physical dimensions (such as 8 × 10 inches or A4), but they still have aspect ratios. If your photo does not match the paper ratio, then either whitespace or cropping is required.

For example:

If your camera produces 3:2 images and you print at 4:5 without adjustment, part of the image must be trimmed. Checking the ratio ahead of time helps you compose your shot with safe margins.

Social and mobile video

Social platforms favor vertical and square formats for mobile viewing. Typical choices include:

Using the calculator, you can confirm whether your exported video fits the expected ratio before uploading, reducing the need for re-exports or last-minute crops.

Limitations, assumptions, and notes

This aspect ratio calculator is designed to be simple and focused. To use it correctly, keep these points in mind:

Within these limits, the calculator gives you a fast, reliable way to understand and control the shape of your media across different sizes and formats.

Enter width and height to get the ratio.

Embed this calculator

Copy and paste the HTML below to add the Aspect Ratio Calculator – Instantly Convert Width and Height Withou... to your website.