Aspect Ratio Calculator

Find the aspect ratio of a screen, image, or video. Calculate a missing dimension and get the CSS aspect-ratio value.

Result
—

How to calculate

Divide width by height and reduce the fraction. To find an unknown width, multiply the known height by this ratio. To find an unknown height, divide the known width by it.

Worked example

Use Find Aspect ratio and CSS value · Width or ratio numerator 1920 · Height or ratio denominator 1080. The result is 16:9.

Input and result notes

Enter width and height in the same unit. When solving for a missing side, enter the two parts of the desired ratio and the known side.

MDN CSS aspect-ratio property

Related calculators