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.

Related calculators