Aspect Ratio Calculator
Enter width and height in pixels (or cm, inches …): the calculator simplifies the aspect ratio and shows its decimal value and the nearest standard ratio. Add a new width or height and it works out the missing side – resize without distortion.
How it is calculated
How the aspect ratio is calculated
The aspect ratio is width to height, divided by the greatest common divisor (GCD). Example 1920 × 1080: the GCD of 1920 and 1080 is 120. 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9 – so 16:9. The decimal value is 1920 ÷ 1080 = 1.778 : 1.
Finding the missing side
To resize an image or video proportionally, use the rule of three: new height = new width × height ÷ width. 1920 × 1080 at a new width of 1280 gives 1280 × 1080 ÷ 1920 = 720, i.e. 1280 × 720 px. The other way round: new width = new height × width ÷ height. If the result is not a whole number of pixels, the calculator rounds it and shows the exact value.
Common aspect ratios
- 16:9 – HD and Ultra HD (1280 × 720, 1920 × 1080, 3840 × 2160; ITU-R BT.709 and BT.2020), YouTube, most monitors and TVs.
- 9:16 – the same in portrait: Stories, Reels, Shorts, TikTok.
- 16:10 – many laptops and office monitors (1920 × 1200, 2560 × 1600).
- 4:3 – classic TV, tablets, many compact cameras; 3:2 – 35 mm film and most interchangeable-lens cameras.
- 1:1 – square; 21:9 – ultrawide monitors (2560 × 1080); 1.85:1 and 2.39:1 – cinema formats.
The nearest standard ratio is found by the smallest relative distance. That shows, for example, that 1366 × 768 (simplified 683:384) is practically 16:9.
Aspect ratio in CSS
aspect-ratio: 16 / 9; keeps an element's proportions as it scales – handy for videos, cards and image placeholders so the page does not jump while loading. The property is defined in the CSS Box Sizing Module Level 4 and supported by all current browsers.
Which tool for which question?
This calculator answers general ratio questions. Exact pixel sizes for Instagram, YouTube and co. are listed under social media image sizes; your own display is measured by What is my screen resolution?
Frequently asked questions
How do I calculate an aspect ratio?
Divide width and height by their greatest common divisor. 1920 × 1080: GCD 120, so 16:9. 1080 × 1350: GCD 270, so 4:5.
What is the height of 16:9 at 1280 pixels wide?
1280 × 9 ÷ 16 = 720 pixels. Other 16:9 sizes: 1920 × 1080, 2560 × 1440 and 3840 × 2160.
Is 1366 × 768 really 16:9?
Almost: it simplifies to 683:384, and its decimal value of 1.779 is only 0.05% above 16:9 (1.778). That is why it is sold as 16:9.
What aspect ratio is a 3440 × 1440 “21:9” monitor?
It simplifies to 43:18, i.e. 2.39 : 1. “21:9” is a marketing label; exactly 21:9 would be 2.33 : 1. 2560 × 1080 is 64:27 (2.37 : 1).
How do I set an aspect ratio in CSS?
Use aspect-ratio: 16 / 9; on the element. If only the width is set, the browser derives the height from it.
Does it work with cm or inches?
Yes. A ratio has no unit – just enter both sides in the same unit. Decimals such as 2.35 × 1 are turned into whole numbers before simplifying (47:20).
Sources and legal basis
- MDN Web Docs – aspect-ratio
- W3C – CSS Box Sizing Module Level 4: aspect-ratio (abgerufen 27.09.2026)
- Rec. ITU-R BT.709: ITU-R BT.709 – HDTV, 1920 × 1080, 16:9 (abgerufen 27.09.2026)
- Rec. ITU-R BT.2020: ITU-R BT.2020 – UHDTV, 3840 × 2160 / 7680 × 4320, 16:9 (abgerufen 27.09.2026)
As of:
Related tools
- Social Media Image Sizes 2026Image sizes for Instagram, Facebook, YouTube, LinkedIn, X, Pinterest and Threads – official specs only, each with source. Copy dimensions, calculate height.
- What is my screen resolution?Instantly see your screen resolution, physical pixels, browser viewport, devicePixelRatio, aspect ratio and CSS breakpoint. Live, right in your browser.
- Resize imagesResize images online by pixels or percent, keep the aspect ratio or crop to fit, with presets for Instagram and YouTube. Up to 20 images, no upload.
- Proportion CalculatorSolve direct and inverse proportion problems (rule of three) online: find x from a ↔ b and c, with the unit value and step-by-step working.
- Base64 Encode and DecodeEncode and decode Base64 and Base64url with proper UTF-8, plus URL encode/decode (percent-encoding). Clear error messages, runs locally in your browser.
- CSS border radius generatorRound corners with sliders: all corners linked or each on its own, px or %, elliptical 8-value syntax – shortest CSS shorthand, live preview and copy button.