How to calculate aspect ratio, and resize without stretching
, 5 min read
To calculate an aspect ratio, divide the width and the height by the largest number that goes into both of them. A 1920 × 1080 image divides evenly by 120, which gives 16:9. The quick way is Aspect Ratio Calculator: type the width and height and it shows the simplified ratio and the same ratio as a decimal, such as 1.7778 : 1. Its second panel does the reverse. Enter a ratio and a new width, and it gives you the height that keeps the shape.
What an aspect ratio actually tells you
An aspect ratio describes shape, not size. A 1280 × 720 video frame and a 3840 × 2160 one are both 16:9; one simply has more pixels. That's why two images with the same ratio can be scaled into each other without distortion, while two images with different ratios can't. One of them has to be cropped, stretched or given empty bars.
Ratios are written width first, then height. A landscape iPhone photo of 4032 × 3024 is 4:3, and the same photo held upright is 3:4. Mixing up the order is the most common reason a "correct" size comes out sideways.
How to work it out by hand
- Write down the width and height in pixels, for example 6000 × 4000.
- Find the greatest common divisor, the largest whole number that divides both. For 6000 and 4000 that's 2000.
- Divide both sides by it: 6000 ÷ 2000 = 3 and 4000 ÷ 2000 = 2, so the ratio is 3:2.
To find a missing side, multiply instead. For a 16:9 image that must be 1280 pixels wide, the height is 1280 × 9 ÷ 16 = 720. For a 4:5 portrait that is 1080 wide, the height is 1080 × 5 ÷ 4 = 1350. If you know the height and need the width, swap the numbers: width = height × ratio width ÷ ratio height.
A few common sizes, worked out:
| Pixels | Exact ratio | Usually called |
|---|---|---|
| 1920 × 1080 | 16:9 | 16:9 widescreen |
| 1440 × 900 | 8:5 | 16:10 |
| 4032 × 3024 | 4:3 | 4:3 phone photo |
| 6000 × 4000 | 3:2 | 3:2 camera photo |
| 1366 × 768 | 683:384 | roughly 16:9 |
| 2560 × 1080 | 64:27 | "21:9" ultrawide |
The last two rows show why the decimal matters. Some sizes don't reduce to small numbers, so they are marketed under the nearest familiar ratio. 1366 × 768 is 1.7786 : 1, almost exactly 16:9 (1.7778 : 1), and 2560 × 1080 is 2.37 : 1, which is close to but not exactly 21:9. When you compare two sizes, compare the decimals.
Changing an image to a new ratio
Knowing the ratio is usually the first step toward making an image fit somewhere, such as a 16:9 slide, a square profile picture or a 9:16 story. There are three honest ways to do it.
- Crop. Crop Image cuts the largest possible area of the ratio you pick (1:1, 4:5, 3:4, 4:3, 3:2, 16:9 or 9:16) out of your photo. It starts from the center, and the horizontal and vertical focus sliders let you move the frame so a face or a product isn't cut off. Cropping a 4032 × 3024 photo to 16:9 keeps the full width and trims the height to 2268 pixels, so about a quarter of the picture goes.
- Resize. Resize Image changes the number of pixels but keeps the shape. Enter just a width and leave the height at 0, and it works out the height for you. If you enter both while Keep aspect ratio is ticked, the image is scaled to fit inside that box, so one side may come out smaller than you typed.
- Crop, then resize. To hit an exact size like 1280 × 720, crop to 16:9 first and then resize to 1280 wide. The height lands on 720 because the shape already matches.
Both image tools run in your browser, so your photos aren't uploaded anywhere, and you can add up to 50 images at once if a whole folder needs the same treatment.
Common mistakes
- Unticking "Keep aspect ratio" to force a size. Typing a width and height of a different shape with the lock off stretches or squashes the picture. Faces look wide, circles turn into ovals. Crop to the right shape first instead.
- Expecting resizing to change the ratio. Making a 4:3 photo smaller still leaves a 4:3 photo. Only cropping, stretching or adding bars changes the shape.
- Rounding too early. If you calculate a height and get 337.5 (600 wide at 16:9), the platform will round it, and the ratio shifts slightly. Pick a width that divides cleanly by the ratio's first number, such as a multiple of 16 for 16:9, and the height comes out whole.
- Confusing aspect ratio with resolution or DPI. The ratio says nothing about sharpness or print size. A 3:2 image can be tiny or huge. For printing, the number that matters is pixels per inch, which our guide to DPI for printing explains.
- Swapping width and height. A portrait 9:16 story and a landscape 16:9 video are the same rectangle turned on its side. Check which way round the place you are uploading to wants it.
When the ratio is close but not exact
If a site asks for 16:9 and your image is 1366 × 768, it will almost always be accepted as is, because at that width an exact 16:9 height would be 768.4 pixels, less than half a pixel away. When an upload form checks the exact pixel size, though, close isn't enough: crop to the ratio and resize to the exact numbers it lists. If you would rather not lose any of the picture, put it on a plain background of the right shape instead of cropping. That leaves bars at the sides or top, which is often fine for slides and video thumbnails but looks odd on a profile photo.