Skip to content

Aspect Ratio Calculator

Simplify width × height to a ratio like 16:9, find the closest standard, or resize without distortion.

Your details

What do you want to do?
px
px

Results update as you type

Aspect ratio

16:9

Decimal ratio (width ÷ height)
1.7778 :1
Closest common format
16:9 — HD and 4K video, TVs, YouTube
Difference from that format
0 %
Orientation
Landscape
Resolution
2.07 MP

Step-by-step solution
  1. GCD(1920, 1080) = 120
  2. 1920 ÷ 120 = 16, 1080 ÷ 120 = 9 → 16:9
  3. 1920 ÷ 1080 = 1.7778

The aspect ratio of an image, a screen or a video is the relationship between its width and its height, written as two numbers separated by a colon. A Full HD frame of 1920 × 1080 pixels and a 4K frame of 3840 × 2160 pixels look the same shape because both reduce to 16:9; only the number of pixels differs.

This calculator works in two directions. In Find the ratio mode you type a width and a height in pixels and get the ratio in lowest terms, the same ratio as a decimal (width ÷ height), the closest common format with the percentage gap, the orientation and the resolution in megapixels. In Resize mode you give a ratio and one new dimension, and it returns the other dimension so that the picture is neither stretched nor squashed.

It is handy for designers preparing social-media visuals, video editors choosing an export size, developers sizing responsive images, photographers cropping prints, or anyone buying a monitor who wants to know what "21:9" really means.

How to use this calculator

  1. Choose Find the ratio or Resize.
  2. To find a ratio, enter the width and height in pixels (whole numbers). The ratio, decimal value and nearest standard appear instantly.
  3. To resize, enter the two terms of the ratio (for example 16 and 9, or 2.39 and 1), say whether you know the new width or the new height, and type it.
  4. Read the missing side. If the exact answer is not a whole number of pixels, the calculator rounds it and shows the exact value too.
  5. Open the steps to see the greatest common divisor and the division behind the result.

The formula

For a width ww and a height hh in pixels, the ratio is reduced by their greatest common divisor (GCD), found with Euclid's algorithm:

wgcd⁡(w,h):hgcd⁡(w,h)r=wh\frac{w}{\gcd(w,h)} : \frac{h}{\gcd(w,h)} \qquad r = \frac{w}{h}

Euclid's algorithm repeatedly replaces the larger number with the remainder of the division, gcd⁡(a,b)=gcd⁡(b,a mod b)\gcd(a,b) = \gcd(b, a \bmod b), until the remainder is zero.

To keep a ratio a:ba:b while changing size, the sides stay proportional:

h′=w′×baw′=h′×abh' = w' \times \frac{b}{a} \qquad w' = h' \times \frac{a}{b}

The closest common format is the one whose long-side-to-short-side ratio is nearest to yours on a logarithmic scale, so that a 2% gap counts the same for wide and narrow shapes.

Worked example

A camera produces photos of 6000 × 4000 pixels. The GCD of 6000 and 4000 is 2000, so the ratio is 3:2 — the classic 35 mm film shape — and the resolution is 24 MP. To publish it 1080 pixels wide without cropping, the height must be 1080×2/3=1080 \times 2 / 3 = 720 px.

A monitor sold as "21:9" has 2560 × 1080 pixels. It reduces to 64:27 (2.3704:1), and the calculator labels it 21:9 (64:27): the marketing name rounds a slightly wider shape.

An older laptop screen of 1366 × 768 gives the awkward ratio 683:384; the closest standard is 16:9, only 0.05% wider. Resizing a 16:9 video to 1280 pixels wide gives a height of 720 px.

Common aspect ratios and where they are used

Ratio Decimal Typical use
1:1 1.00 Square social posts, album covers
5:4 / 4:5 1.25 Old 1280 × 1024 monitors; 4:5 portrait posts
4:3 / 3:4 1.33 Standard-definition TV, iPad, compact and phone cameras
3:2 / 2:3 1.50 35 mm film, most DSLR and mirrorless cameras, 10 × 15 cm prints
16:10 1.60 Laptops and office monitors (1920 × 1200, 2560 × 1600)
16:9 / 9:16 1.78 HD and 4K TV, YouTube, presentations; 9:16 for vertical video
1.85:1 1.85 Cinema "flat" widescreen
21:9 (64:27) 2.37 Ultrawide monitors
2.39:1 2.39 Anamorphic "scope" cinema
32:9 3.56 Super-ultrawide monitors

The 16:9 shape for high-definition television is set in ITU-R Recommendation BT.709 and kept for ultra-high definition in BT.2020.

Aspect ratio, form factor and image format

In French the aspect ratio is often called facteur de forme or format d'image. In English, form factor usually means the physical size and shape of a device (a "compact form factor" PC, a phone's form factor), while aspect ratio is the width-to-height proportion of a picture or screen. A screen's diagonal tells you its size; only the aspect ratio tells you its shape. Two 27-inch monitors, one 16:9 and one 21:9, have very different widths and heights.

Cropping versus letterboxing

When content and screen have different ratios, something has to give. Letterboxing adds bars (black bands above and below a wide film on a 16:9 TV, or at the sides of 4:3 material — "pillarboxing"). Cropping cuts part of the picture to fill the frame. Stretching distorts circles into ovals and should be avoided. Use Resize mode to find a size that keeps the original shape, then crop deliberately if a platform demands a fixed format.

Frequently asked questions

How do I calculate an aspect ratio from pixels?

Divide the width and the height by their greatest common divisor. For 1920 × 1080 the GCD is 120, which gives 16:9. The calculator does this automatically and also shows the ratio as a decimal (1.7778:1).

Why does my resolution give a strange ratio like 683:384?

Some resolutions, such as 1366 × 768, are not an exact multiple of a neat ratio. Their reduced form looks odd, but they are very close to a standard: 1366 × 768 is only about 0.05% wider than 16:9. Check the "closest common format" line.

How do I resize an image without distorting it?

Keep the ratio constant: new height = new width × original height ÷ original width. In Resize mode, enter the ratio (or the original width and height as the two terms) and the new width, and read the height.

Is 21:9 really 21:9?

Not exactly. Most "21:9" monitors are 2560 × 1080 or 3440 × 1440, which reduce to 64:27 (2.37:1) and 43:18 (2.39:1). The name is a rounded marketing label chosen to sound related to 16:9.

What ratio should I use for vertical videos?

Vertical short videos use 9:16, the 16:9 frame turned on its side, typically 1080 × 1920 pixels. Portrait photo posts often use 4:5, for example 1080 × 1350.

Sources

Last updated:

More Other calculators

People also use