GlossQuote-Labs Aspect Ratio Calculator

Switching pages clears the current input.

Aspect Ratio Calculator

Enter a width and height to get the exact simplified ratio, or enter a ratio plus one side to solve the other. All arithmetic uses integers and fractions with no early rounding; when your size is merely near a famous ratio, the page says so — it never swaps your numbers for the famous one.

This browser cannot start the calculator. Please open it in a browser that supports JavaScript modules. The usage notes and preset list below remain readable.

Aspect ratio calculator workspace
Mode

A whole number from 1 to 100,000.

A whole number from 1 to 100,000.

Result

Simplified ratio 16:9

Decimal (width ÷ height) 1.7778

Height as a share of width 56.25%

Nearest preset Exactly 16:9

How to use it and its limits

In Mode A, width and height must be whole numbers from 1 to 100,000. In Mode B, both ratio parts are greater than 0 and at most 10,000 with up to 3 decimal places; the known side is greater than 0 and at most 100,000 with up to 2 decimal places. Input with too many decimal places is refused with the limit stated — it is never silently truncated.

While a field is invalid, that mode's results stay at their last valid values and are marked out of date; the other mode is unaffected. Reloading the page returns to the defaults; nothing you type is saved.

The preset list

How the numbers are computed

Simplification uses the greatest common divisor. Mode B first scales decimal ratio parts into integers, then simplifies (2.39:1 becomes 239:100). The other side is solved as an exact fraction: an integer result is shown plainly; otherwise the page shows the value rounded to 2 decimals together with the exact fraction, for example 418.41 (100000/239). Rounding is display-only, half away from zero, and never feeds back into the arithmetic.

How your data is handled

The calculation runs in this page in your browser. The tool does not write to browser storage and does not upload your numbers; numbers never appear in the address bar or the page title, and reloading clears the input. The web host may still receive the connection information any page request requires.

Frequently asked questions

Why is 1366×768 not shown as 16:9?
Because it simplifies to 683:384, not 16:9. The two are close (they differ by 0.0009), so the tool notes “Close to 16:9 (differs by 0.0009)” while still presenting the exact 683:384, so a crop is not misled.
What does the fraction next to a result mean?
The fraction is the exact value. A height of 3000/7 is about 428.57; the page gives you both the rounded number and the fraction so you can choose your own rounding.
Why does entering 21:9 show 7:3?
21:9 simplifies to 7:3; the two are exactly equal. The page writes “21:9 = 7:3” so you can see the typed form and the simplified form together.
Can this tool resize or crop images?
No. It calculates ratios and side lengths only; it never reads or processes any file.