CALCULATE ALL — every calculation, from tomorrow

Math • Finance • Health • Conversion • Education — 100% free, no sign-up

Tech

Aspect Ratio Calculator

Simplify any resolution to its ratio.

Enter any width and height in pixels to get the simplified aspect ratio (like 16:9) plus the decimal form designers use. It divides both numbers by their greatest common divisor, the same math behind every '16:9' or '4:3' label you have ever seen. Handy for wallpapers, video exports, and CSS work.

Introduction

Aspect ratio is the proportional relationship between width and height, written as width:height — 16:9, 4:3, 1:1, 21:9. It describes shape, not size: a phone screen and a cinema screen can share 16:9 while differing enormously in inches. To reduce a resolution to its ratio, divide both numbers by their greatest common divisor: 1920x1080 shares GCD 120, giving 16:9; 3840x2160 ('4K') shares 240, also 16:9 — which is why 4K is exactly four 1080p frames in area. Common ratios: 16:9 (HD video, most screens), 4:3 (old TV, some tablets), 21:9 (ultrawide monitors), 1:1 (social square), 9:16 (vertical video), 3:2 (DSLR photos).

The two directions of calculation: given both dimensions, reduce to the ratio; given one dimension and the ratio, find the other — height = width x (ratio height / ratio width). A 16:9 design at 1280 wide is 1280 x 9/16 = 720 tall. Mismatched ratios cause letterboxing (black bars top and bottom, e.g., 21:9 film on a 16:9 TV) or pillarboxing (bars on the sides, e.g., 4:3 content on widescreen) — or stretching, which distorts everything and should never be used.

For creators, match the delivery ratio: YouTube favors 16:9, Instagram Reels and TikTok want 9:16, and print work uses paper ratios (A-series is 1:√2). Shooting or designing in the wrong ratio means cropping away pixels you already paid to capture. This calculator reduces resolutions and finds missing dimensions from any ratio.

How it's calculated

Both dimensions are divided by their greatest common divisor to get the 'W:H' text, and width ÷ height gives the decimal ratio.

Worked examples

Reducing 1920x1080

Find the GCD of 1920 and 1080. 1920 = 2^7 x 3 x 5; 1080 = 2^3 x 3^3 x 5. Shared factors: 2^3 x 3 x 5 = 120. Divide: 1920 / 120 = 16, 1080 / 120 = 9 — the ratio is 16:9. Check 2560x1440 the same way: GCD 160, giving 16:9 as well (QHD is exactly 16:9). An oddball like 1366x768: GCD is 2, giving 683:384 — not a clean ratio, which is why 1366x768 laptop panels slightly distort perfect 16:9 content. Clean ratios come from dimensions designed together; random dimensions give random ratios.

Finding height for 16:9 at 1280 wide

Height = 1280 x 9/16. Compute: 1280 / 16 = 80, x 9 = 720. So a 1280-wide 16:9 image is 1280x720 (720p). Reverse: a 9:16 vertical video at 1080 tall has width 1080 x 9/16 = 607.5 — round to 608, since pixels are whole. Designers use this constantly: a hero banner at 21:9 and 2560 wide needs height 2560 x 9/21 = 1097.14, or 1097 px. The fractional results are normal — round to the nearest whole pixel and the ratio stays visually exact.

Frequently asked questions

What is the most common aspect ratio?

16:9 is the standard widescreen ratio used by TVs, monitors, and YouTube. Older 4:3 screens and most phone photos in portrait are closer to 3:4 or 9:16.

How do I find the width for a given ratio?

Multiply the decimal ratio by the target height. For 16:9 (1.778) at 720 px tall: 1.778 × 720 = 1,280 px wide — the familiar 1280×720.

Is the decimal ratio exact?

It rounds to three decimals, which is precise enough for layout work. The ratio text itself is always exact because it is simplified from the real pixel counts.

Is the Aspect Ratio Calculator free to use?

Yes. The Aspect Ratio Calculator on CalculateAll is completely free — no sign-up, no usage limits and nothing to install. The calculation runs entirely in your browser, so the numbers you enter never leave your device.

Does the Aspect Ratio Calculator work on mobile phones?

Yes. The Aspect Ratio Calculator is fully responsive and works on phones, tablets and computers. Open the page, enter your values, and the result updates instantly — no app download needed.

Aspect ratios in practice: ultrawides, portraits and odd sizes

Worked example: is a 3440×1440 monitor really 21:9?

Ultrawide monitors are sold as 21:9, so enter Width 3440 and Height 1440 into this calculator and check. The greatest common divisor of 3440 and 1440 is 80, so the simplified result is 3440 ÷ 80 = 43 and 1440 ÷ 80 = 18 — a ratio of 43:18, with a decimal ratio of 3440 ÷ 1440 = 2.389. A true 21:9 panel at 1440 px tall would be 1440 × 21 ÷ 9 = 3360 px wide, not 3440. The difference is small enough that games and video players treat the panel as 21:9, but it explains why a pixel-perfect 21:9 video can show hair-thin bars or a slight crop on a 3440×1440 screen: the shapes differ by about 2.4 percent. This is exactly the kind of near-miss the calculator catches, because it simplifies your real pixel counts instead of guessing the nearest familiar label.

Portrait ratios and the decimal below 1

Swap the same thinking to portrait content. A 1080×1350 social image has a GCD of 270, giving 1080 ÷ 270 = 4 and 1350 ÷ 270 = 5 — the 4:5 portrait ratio, with a decimal of 1080 ÷ 1350 = 0.800. Whenever the decimal ratio is below 1, the image is taller than it is wide; above 1 it is landscape, and exactly 1 means square. Swapping the two inputs flips the result: 1350×1080 returns 5:4 and 1.250. If a platform asks for landscape but your result starts with a decimal under 1, you have entered the dimensions in portrait order.

Finding a missing dimension, and living with rounding

The calculator itself only reduces the two dimensions you give it, but its decimal output is the key to sizing new work. Say a layout slot is 800 px wide and must hold a 3:2 photo (decimal 1.500). Height = 800 ÷ 1.500 = 533.33 px, so you export at 800×533. That one dropped third of a pixel shifts the true ratio imperceptibly — 800 ÷ 533 = 1.501 — but it matters for exact tiling: three 533 px rows total 1599 px, not 1600, so a background grid can drift by a pixel. Where an exact stack matters, adjust one element by a pixel rather than forcing every element to the rounded height.

Limits of this tool

Both inputs accept 1 to 16,384 px, which covers everything from favicons to 8K frames (7680×4320, GCD 480, 16:9). Dimensions with no useful common factor stay unsimplified: 1920×1081 returns 1920:1081 because 1081 shares no factor with 1920, a sign the size was probably cropped by a pixel somewhere. The math is unit-free — centimetres or inches give the same ratio as pixels provided both sides use the same unit — so the tool works for print frames and screen bezels too, not just image files.

Related calculators