CSS Aspect Ratio Calculator

Your details

Choose whether to compute the ratio from pixel dimensions, or solve for a missing dimension given the ratio.
The width of the element in pixels.
px
The height of the element in pixels.
px
Simplified ratio
16:9

Width:height reduced to the lowest whole-number form.

Decimal ratio (w/h)1.7778
Padding-bottom56.25%
CSS aspect-ratio value16 / 9
Common name16:9 (HD Video / Widescreen)

Aspect ratio: 16:9 - 16:9 (HD Video / Widescreen)

  • This is the well-known 16:9 (HD Video / Widescreen) format, widely used in responsive web and video design.
  • The ratio is landscape (wider than tall), with a decimal value of 1.7778.
  • For the legacy CSS padding trick, set padding-bottom: 56.2500% on a container with height: 0.

Next stepUse aspect-ratio: 16 / 9; in modern browsers (all evergreen browsers support this). Fall back to the padding-bottom trick only if you need to support IE 11 or very old mobile browsers.

= Powered by OnlyCalculators