Skip to content
Tejo Tools
Search
Menu
Processed on your device

Aspect ratio calculator

Find the ratio of any width and height, or resize to a ratio, as you type. Everything is worked out on your device.

Mode
Result

Your result will appear here.

Last updated

What it does

The aspect ratio calculator works two ways:

The answer updates as you type. For a ratio you also get the decimal ratio and, when it is close to a common one, its name. For a resize you get the other side to 2 decimals, and in whole pixels when it isn’t a whole number.

How to use it

  1. Under Mode, choose Find the ratio or Resize to a ratio.
  2. For Find the ratio, type the width and the height. For Resize to a ratio, type the ratio’s two parts, choose whether the width or the height is the side you know, and type its size.
  3. Select Copy result to put the answer on your clipboard.

Use any one unit for both sides: pixels, inches or centimetres. Sizes go from 0.01 to 100,000, and ratio parts from 0.01 to 10,000, in steps of 0.01. The calculator remembers your mode and numbers on this device.

How it’s calculated

To find the ratio, both sides are divided by their greatest common divisor, the biggest whole number that goes into both. For 1920 × 1080 it reads:

16:9 = 1920 ÷ 120 : 1080 ÷ 120 (120 is the greatest common divisor)

A side with decimals is scaled to hundredths first, so no rounding comes into the ratio:

1920.5 : 1080 = 192,050 : 108,000 in hundredths = 3,841 : 2,160

To resize, the other side is the known size times the other ratio part, divided by the known side’s part. For 16:9 at a width of 1,280 it reads:

Height = 1,280 × 9 ÷ 16 = 720

When the other side isn’t whole, it is shown to 2 decimals, with = when that is exact and ≈ when it is rounded:

Height = 1,000 × 9 ÷ 16 = 562.5

Height = 1,000 × 9 ÷ 21 ≈ 428.57

The calculation rests on these assumptions. Any one unit works for both sides: pixels, inches or centimetres. Sizes with decimals are scaled to hundredths before simplifying. The decimal ratio is rounded half up to 2 decimals. A common name is shown when the ratio is within 2% of one of 14 common ratios. The other side is rounded half up to 2 decimals, and to a whole number for pixels.

Good to know

Privacy

Everything is worked out in your browser, on your device. Nothing you type is uploaded. Only your chosen mode and numbers are kept, in this browser’s storage, so the page can show them again.

Advertisements

Frequently asked questions

What does 16:9 mean?

An aspect ratio compares the width of a picture or screen with its height. 16:9 means that for every 16 units across there are 9 units up. Any size with the same shape has the same ratio: 1280 × 720, 1920 × 1080 and 3840 × 2160 are all 16:9, because dividing the width by the height gives about 1.78 in each.

How do I resize a picture without stretching it?

Keep the ratio the same. Choose Resize to a ratio, enter the ratio of the original (16 and 9, for example), say whether you know the new width or the new height, and enter it. The other side is the size you know times the other ratio part, divided by the known side's ratio part. 16:9 at a width of 1,280 gives a height of 720.

What are the common aspect ratios?

The calculator knows 1:1, 5:4, 4:3, 3:2, 16:10, 16:9, 1.85:1, 2:1, 21:9, 2.39:1, 4:5, 3:4, 2:3 and 9:16. If your ratio is within 2% of one of them it names the nearest, and says whether it is exact or how far off it is. Other shapes get no name, only the ratio.

What is the aspect ratio of 1366 × 768?

1366 × 768 simplifies to 683:384, which is 1.78:1. That is close to 16:9 (0.05% off), but not exactly 16:9, because 1366 isn't a multiple of 16. Many screens with this size are sold as 16:9.

Why do 21:9 monitors show 2.39:1?

A 21:9 name is a round number. Real ultrawide screens such as 2560 × 1080 and 3440 × 1440 work out at about 2.37 to 2.39:1, so the calculator names the nearest ratio from its list, which for these is 2.39:1, the shape used in cinema. A size of exactly 7 × 3 is 21:9.

Advertisements