How Aspect Ratio Calculators Work

An aspect ratio is a comparison of width and height after both numbers have been divided by their greatest common divisor. It is not a rounded slogan and it is not a file format. The aspect ratio calculator on Ratio Canvas uses that definition for pixels and for physical lengths.

The Euclidean algorithm

For 1920 and 1080, the algorithm replaces the larger number with the remainder of the division until the remainder is zero. 1920 divided by 1080 leaves 840. 1080 divided by 840 leaves 240. 840 divided by 240 leaves 120. 240 divided by 120 leaves 0. The divisor is 120. Dividing both sides by 120 produces 16 and 9. The exact ratio is 16:9. A display that says 1.777778 is only the decimal 1920/1080 rounded to six places. Two different ratios can share that rounded look, so the calculator also keeps the integer fraction.

Decimals and paper

US Letter portrait is 8.5 by 11 inches. Those values become 85 and 110, which simplify to 17:22. A4 portrait is entered as the nominal 210 by 297 millimeters and simplifies to 70:99. That pair is not an exact square root of two. The root-two ideal is an irrational number; the millimetre size used on paper labels is a rounded industrial size. Landscape A4, 297 by 210, is 99:70.

If one side is in inches and the other is in centimeters, both are converted to a common micrometre count before the divisor is taken. 8.5 inches and 27.94 centimeters describe the same Letter proportion and still simplify to 17:22. A pixel measurement is not converted into inches inside the ratio step, because those units do not describe the same kind of quantity. The form asks you to pick one system.

Three worked results

First, a 16:9 frame with a known width of 1280 has height 1280 × 9 / 16 = 720. Both numbers are integers, so the rounded grid and the exact grid are the same.

Second, a 4:3 frame with a known height of 900 has width 900 × 4 / 3 = 1200. Again the result is exact.

Third, a 3:2 frame with a known width of 1000 has height 1000 × 2 / 3 = 666.666…. The nearest integer is 667. The stored grid 1000×667 is not a perfect 3:2, and the calculator reports the relative error against the target fraction. Exact-ratio mode instead searches for A×K and B×K. For 16:9 inside a width of 1000, K is 62, so the grid is 992×558.

Nicknames that are not the fraction

2560×1080 simplifies to 64:27. 3440×1440 simplifies to 43:18. 1366×768 simplifies to 683:384. People group some of these with 16:9 or 21:9 displays, but the integer ratios differ. 2520×1080 is an exact 21:9 example. 4096×2160 is 256:135, not the same grid as 3840×2160.

Questions

Does the calculator round before it simplifies?
No. It scales decimals to integers, then divides by the greatest common divisor.
Is a larger drawing a larger screen?
No. The diagram is fit inside the panel so the ratio stays visible.

How to read the diagram

The rectangle on the calculator is scaled by the smaller of available-width divided by image-width and available-height divided by image-height. A very wide 32:9 frame stays wide and short. It is not stretched to the edges of the panel, and a bigger drawing does not mean a bigger monitor. Center guides and a thirds grid are optional overlays. A comparison rectangle can share the width, share the height, sit beside the first shape, or overlay it. The label tells you which normalization is in use.

Exact equality ignores the six-digit decimal. 1920×1080 and 1280×720 both simplify to 16:9, because 1920×720 equals 1080×1280. Relative error is 100 times the absolute difference between the two decimal ratios, using the target as the reference. If the source is wider, cover will crop the sides and contain will pad the top and bottom. Orientation is landscape when width exceeds height, portrait when height exceeds width, and square when they match.

Load the 24 presets when you want a known example rather than a blank form. 1.85:1 as 1850×1000 is exactly 37:20. 2.39:1 as 2390×1000 is exactly 239:100. The preset notes say so, because a cinema nickname and a simplified fraction should stay attached to the numbers you actually entered. From there, copy the ratio or move to a missing-side calculation without retyping the fraction.

Compare a second ratio on the calculator page, or continue with resizing without stretch.