Aspect Ratio Calculator

Find the simplified aspect ratio of any width and height, or resize an image or video to a new width or height while keeping its ratio. Presets: 16:9, 4:3, 21:9.

Any unit (pixels, inches, cm). Up to 4 decimal places.

Results

Aspect ratio
16:9
Width : height, in lowest terms (both divided by their greatest common divisor).
As a decimal (width ÷ height)
1.7778
Also written 1.78:1.
Shape
Landscape (wider than tall)

How it’s calculated

An aspect ratio is the proportional relationship between width and height, written width:height. To simplify it, divide both numbers by their greatest common divisor (GCD), found with Euclid's algorithm. Resizing while keeping the ratio means the ratio of the new size equals the ratio of the old size, a simple proportion.

ratio = (width ÷ GCD) : (height ÷ GCD) decimal = width ÷ height new height = new width × (old height ÷ old width) new width = new height × (old width ÷ old height)

Example: 1920 × 1080. GCD(1920, 1080) = 120, so the ratio is 1920 ÷ 120 : 1080 ÷ 120 = 16:9 (1.7778). To shrink it to 1280 wide: new height = 1280 × 1080 ÷ 1920 = 720, so 1280 × 720 has the same shape.

Some pixel sizes do not reduce to a tidy ratio. 1366 × 768 simplifies to 683:384 but is sold as 16:9, because it is within 0.1% of that shape. The calculator tells you when a result is close to a common ratio. When resizing, the new size may not be a whole number; round to the nearest pixel (the result is shown both ways).

Frequently asked questions

How do I calculate an aspect ratio?

Divide the width and height by their greatest common divisor. 1920 × 1080 has a GCD of 120, so the ratio is 16:9. 1600 × 1200 has a GCD of 400, giving 4:3.

How do I resize an image without stretching it?

Multiply the new width by the original height and divide by the original width to get the new height. Resizing 1920 × 1080 to 1280 wide gives 1280 × 720.

What is 16:9 as a decimal?

16 ÷ 9 = 1.7778, also written 1.78:1. For comparison 4:3 is 1.3333, 3:2 is 1.5 and 21:9 is 2.3333.

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

They are the same shape rotated: 16:9 is landscape (wider than tall) and 9:16 is portrait, as used for phone video and stories.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator