Aspect ratio
MDV ToolsType a ratio and one side; get the other.
- Ratio
- 16 : 9
- Decimal
- 1.7778
- Reduced
- 16 : 9
- Megapixels
- 2.07 MP
Both dimensions are whole numbers at this ratio.
How this works
Edit either width or height; the other is recomputed from the ratio, and a new ratio
recomputes whichever side you did not type last.
Height is width × rh / rw; width is height × rw / rh.
The reduced ratio divides both sides by their greatest common divisor, found with
the Euclidean algorithm on the values scaled to integers.
Results are rounded to the nearest whole pixel for display and the tool says so when
rounding actually changed the number — an aspect ratio of 1.618:1 rarely lands on an
integer. A zero or negative side has no defined ratio, so the tool refuses instead of
printing Infinity.
The Dark button remembers its setting in this browser's local storage. Nothing you type or drop into the page is stored.