Toolstia / Aspect ratio calculator
Aspect ratio calculator
A wrong aspect ratio shows up as black bars on a video, a stretched logo, or a thumbnail that crops someone's head. This calculator reduces any width and height to the simplest ratio, shows the decimal value, and then finds the missing side when you want the same shape at a different size.
Type a width and a height in pixels (or any unit, as long as both use the same one), or tap a preset such as 16:9, 4:3, 1:1, 9:16, 3:2 or 21:9. Then enter a new width to get the matching height, or a new height to get the matching width. Entering one clears the other so there is only one answer on screen.
It is useful for designers sizing banners, editors exporting video, developers writing responsive layouts and anyone preparing photos for a frame or print.
How it works
- Enter the width and height, or tap a common ratio.
- Read the aspect ratio.
- Enter a new width or height to get the matching size.
What it means
The aspect ratio is the width compared with the height, reduced to the smallest whole numbers. 1920 x 1080 reduces to 16:9, and 1080 x 1080 is 1:1.
Resizing without stretching
To keep a picture from looking squashed, change both sides by the same factor. If a 1920 x 1080 image becomes 1280 wide, the height should be 720.
Common ratios
16:9 is used for widescreen video, 4:3 for older screens, 1:1 for square social posts, 9:16 for vertical stories, 3:2 for many photos and 21:9 for ultrawide.
Rounding
The new size is rounded to the nearest whole pixel. Some sizes cannot keep the ratio exactly, so the ratio may be off by a fraction of a pixel.
Worked example: resizing 1920 x 1080 to a 1280 wide banner
The ratio 1920:1080 reduces by the greatest common divisor, 120, to 16:9, with a decimal value of 1.7778. Enter a new width of 1280 and the height is 1,080 x 1,280 / 1,920 = 720.
Take a 4000 x 3000 photo, which is 4:3. For a width of 1200, the height is 900. For a portrait Instagram frame of 1080 x 1350, the ratio is 4:5, and a height of 1920 gives a width of 1,536.
When the ratio does not reduce neatly
The ratio is only as simple as the numbers allow. A 1366 x 768 laptop screen reduces to 683:384, because the two numbers share no factor. Its decimal value, 1.7786, is very close to 16:9 at 1.7778, which is why it is sold as 16:9.
A 1000 x 667 photo does not reduce at all and stays 1000:667. In those cases the decimal value and the new-size fields are more useful than the ratio itself.
Marketing names versus exact ratios
Ultrawide monitors are sold as 21:9, but a 2560 x 1080 screen is exactly 64:27 (2.3704), and 21:9 is 2.3333. Likewise, cinema formats and phone screens often carry names that are rounded labels.
If you must match a particular device, use its pixel dimensions, not its label. The 21:9 preset in this tool loads 2560 x 1080 and so shows 64:27.
Rounding and video encoders
New sizes are rounded to the nearest whole number. Scaling 1366 x 768 to a width of 1000 gives 562.2, shown as 562. The rounding error is 0.2 pixel, about 0.04 percent of the height, which is invisible in practice.
Many video encoders need even width and height. If the result is odd, move by one pixel to the nearest even number, or crop instead of scaling.
Scale or crop: which one fits the job
Resizing keeps the whole picture and the same shape. If you need a different shape, such as turning a 16:9 image into a 1:1 square, resizing alone will distort it. You must crop away part of the image or add padding.
This tool only calculates numbers. It does not resize or crop files, and it needs whole numbers above zero for width and height. Use an image tool for the actual change.
Questions
Can I use it for print sizes?
Yes, as long as you use whole numbers. For example, enter 60 and 40 for a 6 x 4 inch photo.
How do I resize the picture itself?
Use the image resizer, which also keeps the ratio.
Why is my ratio not simple?
Some sizes, such as 1366 x 768, do not reduce to small numbers. The decimal value is also shown.
Is it free?
Yes, and it works offline in your browser.
What is the aspect ratio of a 1080 x 1920 phone video?
It reduces to 9:16, a vertical format used for stories and short videos.
Can I use inches or millimeters?
Yes, if both values use the same unit and are whole numbers. For fractions, multiply both by 10 or 100 first.
Why does the decimal value matter?
It is the width divided by the height, which is what CSS aspect-ratio and many design tools use. 16:9 corresponds to 1.7778.
Why can't I type 16.5 as a width?
The ratio is reduced using whole numbers, so decimals are rejected. Multiply both sides by 10 to get whole numbers.
Which preset should I use for YouTube?
Standard YouTube video is 16:9, such as 1920 x 1080. Shorts and vertical video use 9:16.