Blog · Design tools

How to calculate aspect ratio (formula and examples)

To calculate an aspect ratio, divide the width and the height by their greatest common divisor: 1920 × 1080 share 120, so the ratio is 16:9. To resize, new height = new width × original height ÷ original width.

Title card reading “How to calculate aspect ratio” beside a screenshot of the Digital Sauce aspect ratio calculator resizing 1920 × 1080 to 1280 × 720, with the ratio 16:9 in large type.

You need two small bits of maths: one to find the ratio, and one to keep it when you change the size. Both are below with worked examples, or let our free aspect ratio calculator do it as you type.

Step 1: find the ratio

Find the greatest common divisor (GCD), the largest number that divides both sides exactly, then divide both sides by it.

  1. Take the larger side and divide it by the smaller: 1920 ÷ 1080 = 1 remainder 840.
  2. Repeat with the smaller side and the remainder: 1080 ÷ 840 = 1 remainder 240, then 840 ÷ 240 = 3 remainder 120, then 240 ÷ 120 = 2 remainder 0.
  3. The last number you divided by, 120, is the GCD.
  4. Divide both sides by it: 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9. The ratio is 16:9.
1920 × 1080 tiles exactly into 120 px squares, 16 across and 9 down. That is why 120 is the GCD and the ratio is 16:9.

That method is Euclid's algorithm, and it is exactly what the calculator runs.

Step 1b: or use a decimal

Sometimes a decimal is clearer than a ratio. Divide width by height: 1920 ÷ 1080 = 1.78, written as 1.78:1. Film formats are usually described this way, such as 1.85:1 and 2.39:1. Decimals are also the quickest way to compare two sizes: if the decimals match, the shapes match.

Step 2: resize without stretching

new height = new width × original height ÷ original width
new width  = new height × original width ÷ original height
OriginalChangeMathsResult
1920 × 1080Width to 12801280 × 1080 ÷ 19201280 × 720
4032 × 3024Width to 16001600 × 3024 ÷ 40321600 × 1200
1080 × 1350Height to 10001000 × 1080 ÷ 1350800 × 1000
16:9Height to 500500 × 16 ÷ 9888.9, so 889 × 500 (or 888 × 500 for video)
Cross-multiplying keeps the shape: the smaller size sits on the same diagonal as the original, so nothing stretches.

What about decimals in the result?

Pixels are whole numbers, so round to the nearest one. The shape changes by a fraction of a pixel, which nobody can see. For video, round to an even number, because many encoders need even dimensions. The calculator has a toggle for whole, even or exact values.

How to check two sizes have the same ratio

Cross-multiply: two sizes match if width A × height B equals width B × height A. For 1920 × 1080 and 1280 × 720: 1920 × 720 = 1,382,400 and 1280 × 1080 = 1,382,400. Same shape.

For the common ratios and their standard sizes, see the aspect ratio cheat sheet. To apply a ratio in a web layout, see CSS aspect-ratio.

Aspect ratio calculatorFind the ratio of any size and work out the missing width or height. Free, no sign-up, runs in your browser.

Open the tool →

FAQ

What is the formula for aspect ratio?

Aspect ratio is width divided by height. To write it as whole numbers, divide both by their greatest common divisor, for example 1920 × 1080 becomes 16:9.

How do I calculate the height from a width and ratio?

Multiply the width by the second number of the ratio and divide by the first. For 16:9 at 1280 wide: 1280 × 9 ÷ 16 = 720.

How do I find the aspect ratio of an image?

Check its pixel width and height in your file browser or image editor, then simplify them, or type them into an aspect ratio calculator.

What is 1.78:1 as a ratio?

It is 16:9. Dividing 16 by 9 gives 1.777…, which rounds to 1.78.

Can an aspect ratio have decimals?

Yes. Film formats are often written as decimals, such as 1.85:1 or 2.39:1. They are the same idea as whole-number ratios, just compared with 1.

Last updated 16 November 2026. Sources are linked in the text. Spotted something out of date? Email development@digitalsauce.io.

Need a design system that ships?

Digital Sauce designs and builds apps and websites in Melbourne, from brand colours to the code.

Start a project →