Aspect Ratio Calculator

Find the aspect ratio of any width and height, see the decimal ratio and shape, and work out the new height or width that keeps a picture from stretching.

Math & Science Runs in your browser · no upload

Reviewed 23 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Enter the original width and height, in pixels or any unit. You can also press a common ratio such as 16:9 to start from it.
  2. Read the ratio in the smallest whole numbers, the decimal ratio, the shape and the size in megapixels.
  3. Under Resize, choose whether you know the new width or the new height and type it. The other side is worked out for you.
  4. Use the table of common widths to pick a standard size for the same ratio, and press Copy to take a value.

Example

Input: 1920 × 1080, new width 1280

Output: 16:9, new size 1,280 × 720

How it works

The tool divides both sides by their greatest common divisor to get the smallest whole-number ratio. To resize, it multiplies the known new side by the original proportion so the shape stays the same. It also compares your shape with a list of common ratios and names the nearest one when it is within 2 percent.

Ratio = width ÷ g : height ÷ g, where g is the greatest common divisor of width and height. New height = new width × height ÷ width. New width = new height × width ÷ height. Megapixels = width × height ÷ 1,000,000.

Another example

For 1920 × 1080 the greatest common divisor is 120, so the ratio is 16:9. For a new width of 1280 the height is 1280 × 1080 ÷ 1920 = 720. For a new width of 1000 the height is 562.5, which rounds to 563 pixels.

Limits and edge cases

  • Sizes must be greater than zero and no larger than 100,000.
  • Decimals up to three places are allowed, so 8.5 × 11 gives 17:22.
  • A resized side that is not a whole number is shown exactly and also rounded. Round it when you export, because pixels are whole.
  • The tool does not open, change or upload any image. It only does the arithmetic.
  • A size such as 1366 × 768 reduces only to 683:384, but it is within 2 percent of 16:9, so the tool says it is close to 16:9.
  • Decimal sizes are scaled to whole numbers first, so 1.5 × 1 gives 3:2.
  • Swap turns a landscape size into a portrait one and the reverse.
  • Rounding a side to whole pixels changes the ratio by a tiny fraction of a percent at normal sizes.

Privacy

Everything is calculated in this browser tab. The numbers you enter are never sent to a server or stored.

About this page

Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.

Further reading

Guides that use Aspect Ratio Calculator

All guides →

Related tools

FAQ

Questions about Aspect Ratio Calculator

What is an aspect ratio?

It is the proportion between the width and the height of a picture or screen, written as two numbers such as 16:9. A 16:9 shape is 16 units wide for every 9 units high. Two sizes with the same ratio have the same shape, however large they are.

How do I resize an image without stretching it?

Keep the aspect ratio. Choose a new width, then set the height to the new width times the original height divided by the original width. This tool does that for you, and you can type a new height instead to get the width.

What are the most common aspect ratios?

16:9 is used for most video and monitors, 4:3 for older screens and some cameras, 1:1 for square posts, 3:2 for many cameras, 21:9 for ultrawide screens and 9:16 for vertical video and stories.

Why is my result not a whole number?

Some widths do not divide evenly into the ratio. At 16:9 a width of 1000 gives a height of 562.5. Pixels are whole, so round to 563 or 562. The picture will look the same.

Is 1920 by 1080 exactly 16 to 9?

Yes. Both numbers divide by 120, which leaves 16 and 9.

Is anything uploaded?

No. The ratio is worked out in your browser from the numbers you type. No image is opened and nothing is sent anywhere.