Aspect ratio calculator
Get the ratio of any size, and resize it without stretching.
Ratio
CSS
Formula
ratio = (width ÷ gcd) : (height ÷ gcd) new height = new width × height ÷ width new width = new height × width ÷ height
Common aspect ratios
| Ratio | Sizes | Used for |
|---|---|---|
| 16:9 | 1280 × 720, 1920 × 1080, 3840 × 2160 | Video, YouTube, monitors |
| 16:10 | 1280 × 800, 1920 × 1200 | Laptops |
| 4:3 | 1024 × 768, 1600 × 1200 | Tablets, slides |
| 3:2 | 1080 × 720, 2160 × 1440 | Photos |
| 1:1 | 1080 × 1080 | Square posts, avatars |
| 4:5 | 1080 × 1350 | Instagram portrait |
| 9:16 | 1080 × 1920 | Reels, Shorts, TikTok |
| 21:9 | 2560 × 1080, 3440 × 1440 | Ultrawide |
Questions
How do I calculate an aspect ratio?
Divide the width and the height by their greatest common divisor. 1920 × 1080 divided by 120 is 16:9.
How do I resize without stretching?
Keep the ratio. New height = new width × height ÷ width, so 1920 × 1080 at 1280 wide is 720 high.
What is the aspect ratio of 1920 × 1080?
16:9, the same as 1280 × 720, 2560 × 1440, and 3840 × 2160.
Why do I get a ratio like 683:384?
Some sizes do not reduce to small numbers. 1366 × 768 is exactly 683:384, which is close to 16:9 but not equal to it.