An aspect ratio is two numbers separated by a colon, and it tells you the shape of a rectangle independent of its size. The practical consequence is that once you fix the ratio and one dimension, the other is determined — there is exactly one height that fits a given width without distortion. Most image and video problems come down to solving that one multiplication correctly.
For the divisions and rounding steps below you can use any free online calculator; the arithmetic is simple, but the rounding rules matter.
The Core Formula
For a ratio of W:H and a known width:
height = width × H ÷ W
And for a known height:
width = height × W ÷ H
Common Ratios and Their Decimal Forms
| Ratio | Decimal | Typical use |
|---|---|---|
| 16:9 | 1.778 | HD/4K video, YouTube, monitors |
| 4:3 | 1.333 | older TV, iPad, Micro Four Thirds |
| 3:2 | 1.500 | 35mm still photography |
| 21:9 | 2.333 | cinematic ultrawide, anamorphic |
| 1:1 | 1.000 | Instagram grid, album art |
| 9:16 | 0.563 | vertical video, Stories, Shorts |
| 2:3 | 0.667 | portrait print (4×6 turned) |
Worked Examples
- 1920 wide at 16:9: 1920 × 9 ÷ 16 = 1080. Exactly right, no rounding.
- 3840 wide at 16:9: 3840 × 9 ÷ 16 = 2160. The 4K standard.
- 1080 wide at 9:16: 1080 × 16 ÷ 9 = 1920. Rotate a 1080p frame and you get a 1920-tall portrait clip.
- 1000 wide at 4:3: 1000 × 3 ÷ 4 = 750.
- 1000 wide at 21:9: 1000 × 9 ÷ 21 = 428.57 → round to 429.
Note the difference in rounding. Ratios built from small integers like 16:9 and 4:3 usually divide evenly into standard resolutions. Ratios like 21:9 and 2.39:1 almost never do, because their decimal forms are repeating or irrational — they came from film projection geometry, not from pixel grids.
Matching a Container Without Cropping
If you have a fixed box and want to fill it completely while preserving the source’s shape, compute the scale factor for both dimensions and take the smaller one:
- scale_w = box_width ÷ source_width
- scale_h = box_height ÷ source_height
- Use min(scale_w, scale_h) to fit entirely inside (“contain”) — leaves letterbox bars.
- Use max(scale_w, scale_h) to cover the box fully (“cover”) — crops the overflow.
An example: a 4000 × 3000 photo (4:3) into a 1920 × 1080 box (16:9). scale_w = 0.48, scale_h = 0.36. Contain uses 0.36 and leaves vertical bars; cover uses 0.48 and crops about 288 pixels off the top and bottom combined.
Frequently Asked Questions
Why is 16:9 written that way instead of 1.78:1? Both are correct. The two-integer form is used for display and broadcast standards; the decimal form is standard in cinema, where ratios like 2.39:1 have no clean integer pair.
Does aspect ratio change file size? Indirectly. For the same viewing dimension, a wider ratio means more pixels overall, so a 21:9 frame contains about 31% more pixels than a 16:9 frame of the same height. That increases both file size and encoding time.
What about non-pixel ratios? The same math applies to paper sizes and physical dimensions. A 5:3 rectangle that is 15 cm wide is 9 cm tall. If you are converting between unit systems at the same time, run the numbers through the length converter first so both dimensions are in one unit before you apply the ratio.

Leave a Reply
You must be logged in to post a comment.