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.
Example: Width 1,920 px · Height 1,080 px · New size: the given side is the: width · New width or height 1,280 px → Aspect ratio (simplified): 16:9. Source: MDN Web Docs – aspect-ratio. Updated: .
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.
How to calculate an aspect ratio
- Enter width and height, e.g. 1920 and 1080 – in pixels, cm or inches.
- Read the simplified ratio (16:9), the decimal value and the nearest standard format.
- For new dimensions, choose whether the width or height is given and enter it: at 1280 pixels wide, 16:9 gives a height of 720 pixels.
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?
Working with images: resize them to the new size with resize images, shrink files with compress images, and solve other ratios with the proportion calculator.
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 (accessed 27 Sep 2026)
- Rec. ITU-R BT.709: ITU-R BT.709 – HDTV, 1920 × 1080, 16:9 (accessed 27 Sep 2026)
- Rec. ITU-R BT.2020: ITU-R BT.2020 – UHDTV, 3840 × 2160 / 7680 × 4320, 16:9 (accessed 27 Sep 2026)
As of: · Editorial policy
Related tools
- TV viewing distance calculatorTV viewing distance calculator: the ideal seating distance for 4K, 1080p and 8K screens from the ITU factors – or the TV size that fits your couch distance.
- 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.
- What is my IP address?What is my IP? See your public IPv4 or IPv6 address at once, plus approximate location, internet provider and browser details. Free, never stored.
- Golden Ratio CalculatorGolden ratio calculator: split a length into a long and a short part, work out the other dimensions from any one and plan a golden rectangle, with working.
- Intercept Theorem CalculatorIntercept theorem calculator: find missing lengths from three values using the first and second intercept theorem, with ratio, steps and a parallel check.
- Map Scale CalculatorMap scale calculator for plans, maps and models: convert drawing length to real length and back, find the scale from two lengths, with area scale and a table.