- Home
- Tools
- Color & Design
- Aspect Ratio Calculator
Aspect Ratio Calculator
The ratio of a size, or the missing width or height for 16:9, 4:3 and others.
Aspect ratio
16:9
HD and 4K video, televisions, most monitors.
1920 × 1080
- Width ÷ height
- 1.778
- Height ÷ width
- 56.25%
aspect-ratio: 16 / 9;Common ratios
| Ratio | Where you find it |
|---|---|
| 16:91.778 | HD and 4K video, televisions, most monitors1280 × 720, 1920 × 1080, 2560 × 1440, 3840 × 2160 |
| 16:101.6 | Laptop screens and some monitors1280 × 800, 1920 × 1200, 2560 × 1600 |
| 4:31.333 | Older televisions and monitors, photos from phone cameras1024 × 768, 1600 × 1200, 4032 × 3024 |
| 3:21.5 | 35 mm film, most DSLR and mirrorless cameras, 6 × 4 inch prints2160 × 1440, 3000 × 2000, 6000 × 4000 |
| 5:41.25 | Older desktop monitors1280 × 1024 |
| 1:11 | Square posts and profile pictures1080 × 1080 |
| 21:92.333 | Ultrawide monitors, although the usual panels are really 64:27 and 43:182560 × 1080, 3440 × 1440 |
| 9:160.563 | Vertical video for phones1080 × 1920 |
| 4:50.8 | Portrait posts on Instagram, 8 × 10 inch prints1080 × 1350 |
| 2:30.667 | Portrait photos from 3:2 cameras, 4 × 6 inch prints1000 × 1500, 4000 × 6000 |
| 1.85:11.85 | Cinema, the “flat” widescreen format1998 × 1080, 3996 × 2160 |
| 2.39:12.39 | Cinema, the anamorphic “scope” format2048 × 858, 4096 × 1716 |
How a size becomes a ratio
An aspect ratio is the width set against the height, written as two whole numbers that have no factor in common. To get there, divide both sides by their greatest common divisor, the largest number that goes into both.
For 1920 × 1080 that number is 120. 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9, so the ratio is 16:9.
A size with decimals is multiplied by ten until both sides are whole. A US Letter page of 8.5 × 11 inches becomes 85 × 110, both divide by 5, and the ratio is 17:22.
The same shape can be given as one number, the width divided by the height: 16 ÷ 9 = 1.778. Cinema writes its ratios that way with ":1" behind them, as in 1.85:1 and 2.39:1.
Sizes that almost fit
Many real sizes do not reduce to the ratio on the box.
- 1366 × 768, a size many laptop screens have, is called 16:9 but reduces to 683:384. A true 16:9 screen that is 768 pixels high would be 1365.33 pixels wide.
- Ultrawide monitors are sold as 21:9, which would be 2.33. The panels are 2560 × 1080 (64:27, or 2.37) and 3440 × 1440 (43:18, or 2.39).
- The cinema format called 2.39:1 reaches digital projectors as 2048 × 858 or 4096 × 1716 pixels, which is 2.387.
The calculator always shows the exact ratio first. Underneath it names the common ratio the size is sold as, or is within 2% of.
Rounding, and why video wants even numbers
A ratio seldom gives whole pixels on both sides. 16:9 at a width of 1000 is 562.5 high. The calculator rounds to the nearest pixel, which bends the shape slightly: 1000 × 563 is 0.09% off 16:9, too little to see.
Video is stricter. It is normally stored with color at half the resolution of brightness in both directions (written 4:2:0), and that only works when the width and the height are even. x264, the usual H.264 encoder, stops with "height not divisible by 2" when it is given 563. Turn on Round to even numbers for anything that ends up in a video file.
In CSS
.video {
width: 100%;
aspect-ratio: 16 / 9;
}
aspect-ratio gives a box a shape: set one side and the browser works out the other. It has been in every major browser since 2021 (Chrome 88, Firefox 89, Safari 15).
The older way was a box without height and with padding-top: 56.25%. Padding in percent is measured against the width of the parent, so 56.25%, which is 9 ÷ 16, makes the box 16:9. The calculator shows that percentage as Height ÷ width.
On <img> and <video> the width and height attributes do the same job. Browsers take the ratio from them and keep the space free, so the page does not jump when the picture arrives.