Home › Math & Science › Aspect Ratio Calculator

Aspect Ratio Calculator

Every screen, photo and video frame has a shape, and getting that shape wrong means black bars, cropped edges or a stretched picture. This free aspect ratio calculator turns any width and height into the simplified ratio — and when you need a new size, it works out the matching dimension so the shape never changes.

Common ratios (tap to fill)
—
Resize — keep the same ratio

Type a new width or a new height and the other dimension is calculated to match the ratio above.

How it works

An aspect ratio is a fraction in disguise: width ÷ height, reduced to the smallest whole numbers that keep the same value. The reduction uses the greatest common divisor (GCD) — the largest number that divides both dimensions evenly. Divide width and height by their GCD and the ratio falls out: 1920 and 1080 share a GCD of 120, and 1920 ÷ 120 : 1080 ÷ 120 is 16:9. Decimal dimensions are scaled to whole numbers first, so a print size like 8.5 × 11 inches simplifies cleanly to 17:22.

Aspect ratio = (width ÷ GCD) : (height ÷ GCD)  ·  Resizing: new height = new width × height ÷ width

Resizing keeps the ratio by scaling both sides by the same factor. If the new width is half the old one, the new height must be half too — the resize boxes apply that factor for you in whichever direction you type. The result line also reports the diagonal (from the Pythagorean theorem, √(width² + height²)), which is how screens are actually sold: a "27-inch" monitor is 27 inches corner to corner, at whatever ratio its resolution implies.

Worked example

A video frame is 1920 × 1080 pixels. Step 1: find the GCD of 1920 and 1080 — it is 120. Step 2: divide both sides — 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9, so the aspect ratio is 16:9, or 1.7778 in decimal. Step 3: the editor needs the same video 1280 pixels wide. The height follows the ratio: 1280 × 1080 ÷ 1920 = 720, so the resized frame is 1280 × 720 — still exactly 16:9, no stretching and no black bars. Try it above: the defaults are 1920 × 1080, and typing 1280 into the new-width box returns 720.

Tips for screens, photos and print

Match the ratio to the destination before you export: a 4:3 photo dropped into a 16:9 slideshow will be cropped or padded, and choosing the crop yourself beats letting the software center-cut it. For social feeds, portrait ratios (4:5 and 9:16) take more screen space on phones than landscape ones. And in print, remember ratios are unit-free — 8.5 × 11 in paper and 850 × 1100 px scans share the ratio 17:22, even though only one of them fits your printer.

FAQ

What is aspect ratio?

Aspect ratio is the shape of a rectangle expressed as width compared to height, reduced to the smallest whole numbers — 1920 × 1080 becomes 16:9. It says nothing about size: a phone screen and a cinema screen can share the same 16:9 ratio at completely different sizes.

How do you calculate aspect ratio from pixels?

Divide both dimensions by their greatest common divisor. For 1920 × 1080 the GCD is 120, giving 1920 ÷ 120 : 1080 ÷ 120 = 16:9. This calculator finds the GCD for you and also shows the decimal form (16 ÷ 9 = 1.7778) used by video software.

What resolution is 16:9?

Many: 1280 × 720 (HD), 1920 × 1080 (Full HD), 2560 × 1440 (QHD) and 3840 × 2160 (4K UHD) are all exactly 16:9. Any width works — multiply it by 9 ÷ 16 to get the matching height.

How do I resize an image without stretching it?

Change only one side and let the other follow the ratio: new height = new width × (old height ÷ old width). To shrink a 1920 × 1080 image to 1280 wide, the height becomes 1280 × 1080 ÷ 1920 = 720. The resize boxes under the calculator do this in both directions.

Why does 1366 × 768 show as 683:384 instead of 16:9?

Because it is not exactly 16:9 — 1366 ÷ 768 = 1.7786, while 16:9 is 1.7778. The GCD of 1366 and 768 is only 2, so the fully simplified ratio is 683:384. It is close enough that screens are marketed as 16:9, but the exact math keeps the tiny difference, and so does this calculator.

Disclaimer: Ratios are exact for whole-number dimensions. Display makers sometimes round marketed sizes (a "27-inch" panel is measured diagonally and may vary slightly), so treat physical measurements as approximate.