Aspect ratio calculator
The same Euclidean simplification used on the homepage, with the comparison and missing-side tools beside the presets.
The same Euclidean simplification used on the homepage, with the comparison and missing-side tools beside the presets.
Dimension laboratory / 01
Calculate image proportions, find missing dimensions, compare aspect ratios, and resize images without unnecessary stretching.
The rectangle is scaled with the minimum of panel-width / image-width and panel-height / image-height. It is not stretched to fill the panel.
Equality uses cross-multiplication of the simplified integers, not the rounded decimal. 1.78 on screen can hide different exact ratios.
Width = height × A / B. Height = width × B / A. Rounding is shown beside the exact value because a nearest pixel can leave the ratio.
Each preset loads real dimensions. 2560×1080 is 64:27 and 3440×1440 is 43:18; neither is exactly 21:9. Nominal A4 millimetres are 70:99, not an exact root-two ratio.
For positive integers W and H, G is the greatest common divisor from the Euclidean algorithm. The simplified ratio is (W/G):(H/G). Decimals such as 8.5 and 11 are scaled to 85 and 110 before that division, which yields 17:22. Mixed physical units are converted to a common micrometre integer first. Pixels are not mixed with inches.
An exact integer grid for A:B is A×K by B×K. Inside a width of 1000, the largest 16:9 is 992×558. Relative error uses the exact fractions, with the target ratio as the reference.