How the Aspect Ratio Calculator Works
AnyTool Aspect Ratio Calculator performs every calculation in the browser. The simplified ratio comes from dividing both dimensions by their greatest common divisor — so 1920×1080 reduces to 16:9 — with fractional inputs first scaled to integers so ratios like 2.39:1 reduce correctly. Resizing solves the proportion W1:H1 = W2:H2 by cross-multiplication: the missing dimension equals one known dimension times the ratio of the other pair, for example new height = original height × (new width ÷ original width). The least-recently-edited of the four fields is the one computed, so you can leave any single field blank.
- Simplified ratio via greatest common divisor (GCD)
- Resize solver uses cross-multiplication of W1:H1 = W2:H2
- Any one of the four fields can be the auto-computed target
- Decimal, x:1 and 1:x forms are derived from width ÷ height
- All arithmetic is client-side JavaScript — no server round-trip
