Aspect Ratio and Image Size Calculator
Enter two of width, height and aspect ratio, and the calculator works out the third. It also shows the simplest ratio of the size, so a 1920 by 1080 image is 16:9.
Fill in two fields and leave the third empty. Whole numbers or decimals, for example 1280, 16.5 or 1.85:1.
How to use
- Decide which of the three values you do not know: width, height or ratio.
- Fill in the other two boxes and leave the unknown one empty. The page opens with a width of 1920 and a ratio of 16:9, and the empty height is worked out for you.
- Type whole numbers or decimals for sizes, such as 1280 or 16.5. Write the ratio with a colon, such as 4:3 or 1.85:1.
- Read the sentence under the boxes and the three tiles: width, height and simplest ratio. When a value had to be rounded, the sentence shows the exact figure too.
- If all three boxes are filled, the tool asks you to clear one. If fewer than two are filled, it waits.
Worked example
You have a banner that is 1000 pixels wide and must be 16:9. Enter 1000 as the width, leave the height empty and keep the ratio as 16:9. The height is 1000 × 9 ÷ 16 = 562.5, which is not a whole pixel, so the tool rounds half up to 563 and tells you the exact value was 562.5.
| You enter | You get |
|---|---|
| Width 1280, ratio 4:3 | Height 960 (1280 × 3 ÷ 4) |
| Height 1080, ratio 21:9 | Width 2520, and the ratio is shown reduced to 7:3 |
| Height 1080, ratio 1.85:1 | Width 1998, ratio 37:20 |
| Width 1920, height 1200 | Ratio 8:5 |
| Width 3000, height 2000 | Ratio 3:2 |
How it works
An aspect ratio is a width compared with a height. The two sizes are linked by one equation, so any two values give the third:
width = height x a / b
height = width x b / a
ratio = width : height, divided by their greatest common divisor
where a:b is the ratio. The calculator uses exact fractions rather than floating-point numbers, so a decimal such as 1.85 is treated as 185/100 and nothing drifts. The simplest ratio divides both sides by their greatest common divisor, which is why 1920 by 1080 becomes 16:9 and 2520 by 1080 becomes 7:3.
Rounding. A width or height that the tool works out is rounded half up to a whole pixel, so 56.25 becomes 56 and 56.5 becomes 57. A value you type is never changed. If the worked value would round to zero, the tool refuses it and suggests a larger size.
The simplest ratio is calculated from the sizes after rounding. This means an image that was resized with a rounded side can show a ratio such as 563:1000 instead of 16:9. That is not a bug: it is the true ratio of the pixel grid you now have.
Nothing you type is sent anywhere. The sums run in your browser, and the page makes no request with your sizes.
Common sizes and where they appear
- 16:9: most video, monitors and TV. 1920 by 1080 and 1280 by 720 are both 16:9.
- 4:3: older monitors, some tablets and many photo prints.
- 3:2: many cameras, with sizes such as 3000 by 2000.
- 1:1: square images for profile pictures and some feed posts.
- 21:9: wide cinema-style screens. The calculator reduces it to 7:3.
Common mistakes
- Writing the ratio the wrong way round. 16:9 means wide, 9:16 means tall. Swapping them turns a landscape size into a portrait one.
- Using a comma or a slash. The ratio must have a colon and two positive numbers. Entries like 16/9 are refused with a hint.
- Leaving all three boxes filled. The tool cannot guess which one you want it to replace.
- Cropping versus resizing. Matching a ratio by scaling stretches the picture. To keep the shape, crop to the ratio first, then resize.
- Rounding twice. If you reuse a rounded result as the next input, errors can build up. Keep the original size where you can.
Frequently asked questions
What is the aspect ratio of 1920 by 1080?
16:9. Both numbers divide by 120, giving 16 and 9.
How do I resize an image without stretching it?
Keep the ratio the same. Enter the new width and the original ratio, and use the height the tool gives you.
Why is my height off by one pixel?
Whole pixels cannot hold a fraction. The tool rounds half up and shows the exact value, so you can see how far it moved.
Can I use decimals in the ratio?
Yes. 1.85:1 is accepted, and the simplest ratio is shown as 37:20.
Is the image uploaded?
There is no upload. You type numbers only, and they stay in your browser.
Related tools
- Image Converter to change an image's format.
- Clamp Generator for fluid sizes in CSS.
- Unit Converter for inches, centimetres and other units.
- All calculators and converters