Skip to content

Aspect Ratio Calculator

Enter width or height with a ratio (or use presets) to compute the missing side and CSS aspect-ratio.

Edit width to solve height, or height to solve width (last edited field wins).

Visual

Example

16:9 at width 1920 → height 1080. CSS: aspect-ratio: 16 / 9;

FAQ

Enter the known dimension. Changing width recomputes height; changing height recomputes width.
Yes in modern browsers. For older ones, use padding-top percentage tricks or fixed dimensions.