How to calculate an aspect ratio
- Choose what to work out. Pick Dimensions to ratio if you know both sides, or Ratio to dimension if you know the ratio and one side.
- Enter the numbers. Type Width (px) and Height (px), or Ratio W and Ratio H, using Quick presets for common ratios.
- Give the known side. In Ratio to dimension, enter the Known value and set This value is the to Width or Height.
- Copy the result. Press Copy beside the simplified ratio, the calculated side or the full dimensions.
How the two calculations work
Dimensions to ratio
The calculator finds the greatest common divisor (GCD) of the width and height and divides both by it. Take 1920×1080: the largest number that divides both exactly is 120, and 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9, so the ratio is 16:9. It also shows the decimal ratio, width divided by height (1.77778 here), which is the quickest way to compare two sizes that do not reduce to the same pair of whole numbers. Pixel values are rounded to whole numbers first.
Ratio to dimension
The missing side comes from cross-multiplying:
- Height = known width × Ratio H ÷ Ratio W
- Width = known height × Ratio W ÷ Ratio H
A 4:5 portrait image 1080 pixels wide needs a height of 1080 × 5 ÷ 4 = 1350 pixels. A 2.39:1 frame 1920 pixels wide is 1920 × 1 ÷ 2.39 = 803.3, shown as 803. The result is rounded to a whole pixel, so it can be up to half a pixel away from the exact value.
Common ratios and where they are used
| Ratio | Decimal | Typical sizes | Used for |
|---|---|---|---|
| 16:9 | 1.778 | 1280×720, 1920×1080, 3840×2160 | HD and 4K video, most TVs and monitors |
| 16:10 | 1.600 | 1920×1200, 2560×1600 | Many laptop screens |
| 4:3 | 1.333 | 1024×768, 2048×1536 | Older monitors and tablets, many projectors |
| 3:2 | 1.500 | 6000×4000 | Many camera sensors, 6×4 inch prints |
| 5:4 | 1.250 | 1280×1024 | 10×8 inch prints |
| 4:5 | 0.800 | 1080×1350 | Portrait photos for social feeds |
| 1:1 | 1.000 | 1080×1080 | Square posts, profile pictures |
| 9:16 | 0.5625 | 1080×1920 | Vertical phone video |
| 21:9 | 2.333 | 2560×1080, 3440×1440 (approximately) | Ultrawide monitors |
Paper is different again. A4, A3 and A5 all have sides in the ratio √2:1 (about 1.414), the one ratio that survives being folded in half: fold A4 in half and you get A5 with exactly the same shape. That is why an A4 layout scales to A3 or A5 without distortion, but needs cropping or white space to fit a 3:2 photo print.
Fitting one ratio into another
When the picture and the space it goes into have different ratios, there are three choices:
- Letterbox: keep the whole picture and add bars. A 4:3 video on a 1920×1080 screen fills 1440×1080, leaving bars 240 pixels wide on each side.
- Crop: fill the space and cut the edges. Cropping 16:9 to 4:3 keeps three quarters of the width. Check where faces and text sit before you crop.
- Stretch: change the width and height by different amounts. Circles become ovals and faces look wrong, so avoid it.
Tips for accurate results
- Many video encoders need even dimensions. If a calculated side comes out odd, such as 549 from a width of 1280 at 21:9, round it to the nearest even number.
- Work from the original file’s size, not a size you have already rounded, so rounding errors do not build up over several resizes.
- For print, the ratio of the photo and the paper must match before you think about resolution. A 3:2 photo on A4 always leaves a margin or loses an edge.
- Open Common ratios at a glance and press any ratio to load it straight into Ratio to dimension mode.
Related tools
The pixel ruler measures an image or element on screen, the percentage calculator works out a resize as a percentage, and the unit converter turns inches and centimetres into one another for print sizes.