Aspect Ratio Calculator

Free aspect ratio calculator. Reduce any width and height to a simple aspect ratio (like 16:9), identify common formats, and report the decimal ratio.

AI-ready Use this tool with AI

This tool has a free JSON API. Copy a prompt or skill below to use it with ChatGPT, Claude, or any AI agent — no API key needed.

API docs
Enter width and height above.

How aspect ratio calculator works

An aspect ratio is the proportional relationship between an image or screen's width and height, written as width:height. 16:9 means the width is 16 units for every 9 units of height. Reducing a resolution like 1920×1080 to 16:9 makes the proportions easy to compare and to scale.

This calculator divides both dimensions by their greatest common divisor to get the simplest integer ratio. 1920 and 1080 share a GCD of 120, giving 16:9. It also recognises common named formats (16:9 widescreen, 9:16 vertical, 4:3, 1:1 square, 21:9 ultrawide, and others) and reports the decimal ratio (width ÷ height).

Enter a width and height and the tool returns the simplified ratio, the named format if it matches one, and the decimal ratio. Use it when resizing images, picking video resolutions, designing slides, or matching a layout to a target screen.

Frequently asked questions

How is the aspect ratio computed?
Both dimensions are divided by their greatest common divisor. 1920 and 1080 share a GCD of 120, so 1920/120 = 16 and 1080/120 = 9, giving 16:9.
What is the decimal ratio?
Width divided by height. 16:9 has a decimal ratio of about 1.778, meaning the width is 1.778 times the height. It is handy for calculating one dimension from the other.
Which common ratios are recognised?
16:9 (widescreen), 9:16 (vertical/mobile), 4:3 (standard), 3:4 (portrait), 3:2 (DSLR), 2:3, 1:1 (square), and 21:9 (ultrawide). Other ratios return "custom" with no name.
Can I use it for any units?
Yes. Pixels, inches, centimetres — the ratio is unitless and depends only on the proportion. Enter any two positive numbers and the calculator reduces them to the simplest integer ratio.