Worked example: is a 3440×1440 monitor really 21:9?
Ultrawide monitors are sold as 21:9, so enter Width 3440 and Height 1440 into this calculator and check. The greatest common divisor of 3440 and 1440 is 80, so the simplified result is 3440 ÷ 80 = 43 and 1440 ÷ 80 = 18 — a ratio of 43:18, with a decimal ratio of 3440 ÷ 1440 = 2.389. A true 21:9 panel at 1440 px tall would be 1440 × 21 ÷ 9 = 3360 px wide, not 3440. The difference is small enough that games and video players treat the panel as 21:9, but it explains why a pixel-perfect 21:9 video can show hair-thin bars or a slight crop on a 3440×1440 screen: the shapes differ by about 2.4 percent. This is exactly the kind of near-miss the calculator catches, because it simplifies your real pixel counts instead of guessing the nearest familiar label.
Portrait ratios and the decimal below 1
Swap the same thinking to portrait content. A 1080×1350 social image has a GCD of 270, giving 1080 ÷ 270 = 4 and 1350 ÷ 270 = 5 — the 4:5 portrait ratio, with a decimal of 1080 ÷ 1350 = 0.800. Whenever the decimal ratio is below 1, the image is taller than it is wide; above 1 it is landscape, and exactly 1 means square. Swapping the two inputs flips the result: 1350×1080 returns 5:4 and 1.250. If a platform asks for landscape but your result starts with a decimal under 1, you have entered the dimensions in portrait order.
Finding a missing dimension, and living with rounding
The calculator itself only reduces the two dimensions you give it, but its decimal output is the key to sizing new work. Say a layout slot is 800 px wide and must hold a 3:2 photo (decimal 1.500). Height = 800 ÷ 1.500 = 533.33 px, so you export at 800×533. That one dropped third of a pixel shifts the true ratio imperceptibly — 800 ÷ 533 = 1.501 — but it matters for exact tiling: three 533 px rows total 1599 px, not 1600, so a background grid can drift by a pixel. Where an exact stack matters, adjust one element by a pixel rather than forcing every element to the rounded height.
Limits of this tool
Both inputs accept 1 to 16,384 px, which covers everything from favicons to 8K frames (7680×4320, GCD 480, 16:9). Dimensions with no useful common factor stay unsimplified: 1920×1081 returns 1920:1081 because 1081 shares no factor with 1920, a sign the size was probably cropped by a pixel somewhere. The math is unit-free — centimetres or inches give the same ratio as pixels provided both sides use the same unit — so the tool works for print frames and screen bezels too, not just image files.