Aspect Ratio Calculator

Type a width and a height to get the simplest ratio, then scale it to a new size without stretching the picture. Nothing is uploaded — there is no file here at all.

Scale it, keeping this shape

Fill in one side. The other is worked out from the ratio above.

Near 16:9 is not 16:9

A calculator that answers “16:9” to 1918 x 1080 has rounded your picture into a shape it does not have. This one reduces your two numbers by their greatest common divisor and prints that, then names the nearest standard separately, with the percentage it is off by and a plain sentence saying it is not that ratio.

There is no file here

This tool takes two numbers and does arithmetic on them in your browser. Nothing is uploaded, nothing is stored and no account is needed, because there is nothing to upload in the first place. If you want the dimensions read out of an actual image, our Image Resizer and Pixel Ruler do that locally too.

Advertisement

How it works

The ratio comes from the greatest common divisor

A ratio is just your two numbers with everything common taken out of them. 1920 and 1080 share a divisor of 120, so the pair becomes 16 and 9 and the shape is written 16:9. That is the whole calculation, and it is done on the numbers you typed rather than on a lookup table of famous resolutions — which is why an odd size like 1366 x 768 comes back as 683:384 instead of being quietly filed under 16:9, the shape it is close to but does not have.

The nearest standard is labelled as nearest

Underneath the ratio, the closest common shape is named — 16:9, 4:3, 9:16 and the rest — together with how far your numbers sit from it as a percentage. When the match is exact the page says so in those words. When it is not, the page names the distance and then says outright that your picture is not that ratio. Both halves matter: the nearest standard is useful for deciding what to export, and it becomes a lie the moment it is printed as though it were the measurement.

Scaling shows the exact number, not just the rounded one

Hold 16:9 and ask for a width of 1000 and the honest height is 562.5. Pixels do not come in halves, so the usable answer is 563 — but 1000 x 563 is 1.7762:1, not 1.7778:1, and the picture has moved a fraction off the shape you asked for. The exact value is printed first, the whole-pixel pair second, and a line says whether the rounding changed the shape. Most calculators show you the rounded pair alone and let you assume the ratio survived it.

A number that is not whole does not get a whole-number pair

If you type 1920.5 x 1080 — which happens when a figure has come out of a layout tool rather than an image — there is no honest 16-and-9-style pair to give you, because the greatest common divisor is an operation on whole numbers. The page shows the decimal form instead and says why. Inventing a tidy whole-number pair for a measurement that was not whole would be reporting a shape you never typed, which is the same class of mistake as rounding a near miss up to a standard.

Frequently Asked Questions

What is an aspect ratio?

It is the proportion between width and height, written as two numbers with a colon between them. 16:9 means sixteen units across for every nine down. It says nothing about how big the picture is: 1280x720 and 3840x2160 are both 16:9, one of them nine times the area of the other. Size is a pixel count; ratio is a shape.

How do you get 16:9 out of 1920 by 1080?

By dividing both numbers by everything they have in common. The greatest common divisor of 1920 and 1080 is 120; 1920 divided by 120 is 16, and 1080 divided by 120 is 9. That is the whole method, and it works on any pair of whole numbers, which is why unusual sizes come back as unusual ratios rather than being matched to the nearest famous one.

Why does my 1366x768 laptop screen not say 16:9?

Because it is not 16:9, quite. Reduced properly it is 683:384, which works out to 1.7786:1 against 16:9's 1.7778:1. The difference is under a tenth of a percent and nobody can see it, but it is real, and this page reports the ratio you typed and then names 16:9 separately as the nearest standard with that distance stated. A calculator that just answers "16:9" has made a decision on your behalf without telling you.

I scaled to a width of 1000 and got a height with a decimal in it. What do I use?

Use the whole-pixel pair, and know what it cost. 16:9 at a width of 1000 is exactly 562.5 high, and pixels are not divisible, so the practical answer is 563. That pair is 1.7762:1 rather than 1.7778:1 — a shift far too small to see, but it is a shift, and the page says so instead of presenting 563 as though it were exact. If the ratio has to be exact, pick a width that divides cleanly: for 16:9 that is any multiple of 16.

Does this change my image?

No, and it cannot. There is no file input on this page. It takes two numbers, does arithmetic on them in your browser and prints the result. To actually resize a picture to the dimensions you worked out here, use our Image Resizer, which also runs locally.

Is anything uploaded or stored?

Nothing. There is no upload, no server call and no account. The calculation runs in JavaScript on your own device, and the numbers you type are not sent anywhere or kept after you close the tab.

Which ratio should I use?

That depends on where the picture is going, and the destination usually dictates it. 16:9 is the standard for video and most screens, 9:16 for vertical phone video, 1:1 and 4:5 for square and portrait social posts, 3:2 for photographs out of most cameras, and 21:9 for ultrawide monitors and some cinema. The presets on this page load the pixel sizes those shapes are normally exported at.

Can I type centimetres or inches instead of pixels?

Yes, as long as both numbers are in the same unit. A ratio is a comparison between two lengths, so the unit cancels out and 21 by 29.7 gives the same shape whether those are centimetres or anything else. The scaling half works the same way. The only thing to watch is the whole-pixel rounding note, which is written for pixels and does not apply when you are working in physical units.

Why does a non-whole number not get a simplified ratio?

Because the method needs whole numbers. The greatest common divisor is defined on integers, so 1920.5 x 1080 has no honest 16-and-9-style pair to reduce to. The page gives you the decimal form instead and explains why the other form is missing, rather than rounding your numbers off and handing back a tidy pair for a shape you did not type.

What is the difference between aspect ratio and resolution?

Resolution is how many pixels there are; aspect ratio is how they are arranged. Two files can share a ratio and differ enormously in detail, and two files with the same pixel count can be completely different shapes. When someone asks for "16:9" they are describing a shape and any matching resolution will do; when they ask for "1920x1080" they mean that exact pixel count, and only one file satisfies it.