Aspect ratio calculator

Enter a width and height in pixels. You get the exact reduced ratio, the decimal, the size in megapixels and the closest common ratio. Type a new width or height and the other side is worked out in whole pixels. The exact value is shown next to the rounded one. Everything is calculated in this browser.

Aspect ratio calculator

How to find an aspect ratio and a new size

  1. Type the width and height in pixels, as whole numbers from 1 to 100,000.
  2. Read Aspect ratio, Width divided by height, Size in megapixels and Closest common ratio, and the sentence under them.
  3. To resize, type a New width or a New height in the lower boxes. The other side fills in.
  4. If the result says Rounded to a whole pixel, check Exact other side to see what was cut.

Real results to check yourself against

Each figure is from a test run. 1920 by 1080 is 16:9, 1.7778, 2.07 MP. 1024 by 768 is 4:3. 1080 by 1920 is 9:16. 3000 by 2000 is 3:2 and 6 MP. 1366 by 768 is 683:384, 1.7786, 1.05 MP, shown with ≈ 16:9 because it is 0.05 percent from 16:9 and not equal to it. 100000 by 1 is 100000:1.

The ratio is exact, so it can look odd

The page divides both sides by their greatest common divisor. That gives the true ratio and nothing rounded. A size like 1366 by 768 has no small form, so you see 683:384 instead of a tidy 16:9. Many screens are labelled 16:9 and are a few pixels off it.

When a common ratio is shown, and when it is not

The page checks 14 common ratios: 1:1, 5:4, 4:3, 3:2, 16:10, 16:9, 21:9, 2:1, 32:9, and the upright 9:16, 3:4, 2:3, 10:16 and 4:5. If your size is within 2.5 percent of the closest one, it is shown. At a height of 1000, widths 1735 to 1823 show ≈ 16:9 and 1734 and 1824 do not. 4096 by 2160 is 256:135 and is more than 5 percent from every common ratio, so none is shown.

One wording problem: a size that equals a common ratio in value but reduces to a different pair is called not exact. 1920 by 1200 is 8:5, which is 16:10, yet the page says it is close to 16:10. 2100 by 900 is 7:3, which is 21:9, and gets the same line. In our sweep of 4,356 sizes, 42 did this. Read those as exact.

Finding the other side

New height is height times new width divided by width. 1920 by 1080 at width 1280 is 720. 600 by 400 at width 300 is 200. 1366 by 768 at width 1000 is exactly 562.2255 and shows 562. At height 1000 it is 1,778.6458 and shows 1,779. Halves go up: 6 by 5 at width 3 is 2.5 and shows 3.

Rounding can shift the ratio a little. 1000 by 562 is 1.7794 and 1366 by 768 is 1.7786. If the exact side matters, use the Exact other side value, or pick a width that divides cleanly.

How the two new-size boxes behave

The box you typed in last is the input and the other is filled in. Change the width or height above and the new size is worked out again from your last box. If you clear the new width, the new height box keeps its old number but no result is shown.

Limits and messages

Width and height must be whole numbers from 1 to 100,000. 100.5, 100,5, 0, -1 and 100001 show the size message. 1920px, 1920x1080 in one box and plain text ask for whole numbers. 1,920 and 1 920 read as 1920, and Arabic-Indic and Persian digits work.

New sides can go to 1,000,000, and decimals such as 640.5 are accepted: 1920 by 1080 gives 641 by 360. When the other side would be under half a pixel, for example 100 by 1 at width 1, the page shows the 1 to 100,000 message even though the number you typed was fine. A new side that is text shows nothing.

This page does not resize a file

It finds numbers to type into an editor. To change a real photo, use the image resizer. For pixels against inches or centimetres, use the unit converter.

Where your numbers go

Nowhere. In a test run the page made 11 requests: 9 for its own files and 2 for the ad and analytics hosts. None had a body or named a typed number, and no keys were stored.

Other tools

For a percentage change between two sizes, use the percentage calculator.

Six sizes from the test runs

Test runs in Chromium 158. Percent is the distance from the closest common ratio.
SizeReduced ratioDecimalCommon ratio shown
1920 by 108016:91.777816:9, exact
1366 by 768683:3841.7786≈ 16:9 (0.05%)
1280 by 8008:51.6≈ 16:10 (equal in value)
3440 by 144043:182.3889≈ 21:9 (2.33%)
4096 by 2160256:1351.8963none within 2.5%
5120 by 144032:93.555632:9, exact

Prefer desktop software?

In Excel, with the width in A2 and the height in B2, =A2/GCD(A2,B2)&":"&B2/GCD(A2,B2) gives the reduced ratio. We did not run this. For video, VLC has an aspect-ratio setting under its Video menu, and Photopea can resize a still to the numbers you get here. We did not test either.

Frequently asked questions

What is the aspect ratio of 1920 by 1080?

16:9, or 1.7778.

Is 1366 by 768 exactly 16:9?

No. It reduces to 683:384 and is 0.05 percent from 16:9.

How do I find the new height for a new width?

Multiply the height by the new width and divide by the old width. 1920 by 1080 at width 1280 gives 720.

Why do I see 8:5 and not 16:10?

The page reduces the ratio fully, and 16:10 is 8:5. It is the same shape.

Does it resize my image?

No. It only gives numbers. The image resizer changes a file.

How are halves of a pixel handled?

They go up. 2.5 shows 3, and 0.5 shows 1.

Is anything sent anywhere?

No. A test run found no request carrying a typed number.