Aspect Ratio Calculator
Find the aspect ratio of any width and height, the nearest standard ratio, and the other side for a new size — with even-pixel rounding, crops and letterbox bars.
16:9
1.7778:1 · a standard ratio
Resize to this ratio
1,280 × 720 px
Exact 16:9 sizes
Both sides in whole pixels, between 240 and 7,680 px wide: the first 50 of 466. A larger multiple narrows the list.
| Size |
|---|
| 240 × 135 |
| 256 × 144 |
| 272 × 153 |
| 288 × 162 |
| 304 × 171 |
| 320 × 180 |
| 336 × 189 |
Reduces a width and height to their aspect ratio in lowest terms and names the standard one it is or is close to, with how far off it is: 1,920 × 1,080 is 16:9. From there it resizes to a new width or height, rounding the other side to whole pixels or to a multiple of 2, 8 or 16, and lists the exact sizes at the ratio. Crop & fit works out the largest centred crop to another shape, and the bars when one fits inside the other.
How to use it
Ratio & resize takes the sides in any unit, decimals included, up to 1,000,000: a ratio can be typed as its two sides, 1.85 and 1. Type a new width or a new height (one clears the other) for the other side at the same ratio, rounded to the multiple you choose. The exact sizes table lists sizes 240 to 7,680 px wide with both sides whole multiples, smallest first, the first 50 of them. A ratio whose terms pass 10,000 shows as a decimal only.
Crop & fit takes a source and a target size in whole pixels; the target sets the shape. All of it runs in your browser.
How it works
The ratio is the width over the height in lowest terms: both sides are scaled to whole numbers and divided by their greatest common divisor. A size within 1% of a standard ratio in proportion reads ≈ it, with how much wider or narrower the size is; one further from every standard ratio is given as its own ratio only. A portrait size is compared with the portrait forms, so 1,080 × 1,920 is 9:16.
Resizing multiplies the new side by the ratio; when that does not land on the multiple, the other side rounds to the nearest one, a tie rounding up, and the result says the ratio the rounded size really has. A crop keeps the full width or height of the source and cuts the other side to the target's shape, rounded down to whole pixels so the box never exceeds the source, and centred, any odd pixel going to the bottom or right. A fit scales the source by the smaller of the two side ratios, rounds each side half up, and leaves the rest as bars.
ratio = width ÷ gcd(width, height) : height ÷ gcd(width, height)
new height = new width × height ÷ width
fit scale = min(target width ÷ source width, target height ÷ source height)
Examples
A laptop screen that is almost 16:9
1,366 × 768 reduces to 683:384, which is 1.7786:1: ≈ 16:9, 0.05% wider. The two sides share only a factor of 2, so the exact terms are large.
A 16:9 video 1,000 px wide, at an even height
At 16:9, a width of 1,000 needs a height of 562.5. With Round to a multiple of 2, it becomes 562, the nearest even number; 1,000 × 562 is 500:281, 0.09% wider than 16:9.
A 4:3 picture on a 16:9 screen
In Crop & fit, a 1,440 × 1,080 source fitted inside 1,920 × 1,080 stays 1,440 × 1,080. Pillarbox: 240 px bars left and right. Cropped to 16:9 instead, it keeps 1,440 × 810: removes 135 px from the top and bottom.
Common aspect ratios
| Ratio | Decimal | Width at 1,080 px |
|---|---|---|
| 1:1 | 1:1 | 1,080 |
| 5:4 | 1.25:1 | 1,350 |
| 4:3 | 1.3333:1 | 1,440 |
| 3:2 | 1.5:1 | 1,620 |
| 16:10 | 1.6:1 | 1,728 |
| 16:9 | 1.7778:1 | 1,920 |
| 1.85:1 | 1.85:1 | 1,998 |
| 2:1 | 2:1 | 2,160 |
| 64:27 | 2.3704:1 | 2,560 |
| 43:18 | 2.3889:1 | 2,580 |
| 2.39:1 | 2.39:1 | 2,581.2 |
| 12:5 | 2.4:1 | 2,592 |
| 32:9 | 3.5556:1 | 3,840 |
Frequently asked questions
See also
- Ratio Calculator — to solve any proportion, split an amount or scale a ratio.
- Crop Image — to crop a photo to a ratio, choosing what to keep.
- Pixels to Inches Converter — to see how large an image prints at a DPI.
- PPI Calculator — for a screen's pixel density and its width and height from the resolution.