Aspect Ratio Calculator

Find the aspect ratio of a resolution and scale it to new dimensions.

What the Aspect Ratio Calculator does

An aspect ratio is width divided by height, reduced to its smallest whole-number form by the greatest common divisor. Scaling preserves that ratio, though the arithmetic rarely produces whole pixels — which is why encoders fuss about even dimensions.

Formula

  • Ratio = Width : Height, divided by their GCD
  • Decimal ratio = Width ÷ Height
  • Scaled height = Target width ÷ Decimal ratio
  • Scaled width = Target height × Decimal ratio

Inputs explained

InputUnitRequiredNotes
Original widthnumberYesAccepts 1 or more.
Original heightnumberYesAccepts 1 or more.
Scale toone of 3 optionsYes
Target widthnumberIn some modesAccepts 1 or more. Shown Scale to is A target width.
Target heightnumberIn some modesAccepts 1 or more. Shown Scale to is A target height.

How to use it

  1. Choose Scale to.
  2. Enter Original width and Original height.
  3. Fill in the remaining inputs the form shows for your choice.
  4. Select Calculate.

Worked example

A 1920 × 1080 resolution scaled to 1280 wide.

Width
1920
Height
1080
Scale to width
1280

GCD is 120, so the ratio is 16:9 (1.7778). At 1280 wide the height is exactly 720.

Frequently asked questions

Why is 21:9 not exactly 21 divided by 9?

It is a marketing label. Real ultrawide panels are 64:27, which is 2.37:1 rather than 2.33:1.

Why do video encoders want even dimensions?

Chroma subsampling formats such as 4:2:0 halve the colour resolution in both directions, so odd dimensions cannot be divided cleanly.

Related calculators