Aspect Ratio Calculator

Find the aspect ratio of a width and height, or work out the missing side to keep a ratio. Includes the CSS aspect-ratio value.

Processed on your device. Files are not uploaded

How to find an aspect ratio

  1. Enter the width and height

    In pixels, or any unit.

  2. Optionally resize

    Give a new width or a new height to find the other side.

  3. Read the result

    Every value has its own Copy button.

Worked example

This is what Aspect Ratio Calculator gives for its own sample values. Open the tool above and change anything to try your own.

Width
1920
Height
1080
Find the other side of a resized version
No

Result

Aspect ratio
16:9
As a decimal
1.7778
CSS
aspect-ratio: 16 / 9;

About Aspect Ratio Calculator

Find the aspect ratio of a width and height, such as 1920 by 1080 is 16:9, and work out the matching side for a resized copy. You also get the CSS aspect-ratio value.

FAQs

How do I keep the ratio when resizing?

Choose I know the new width or the new height and read the other side.

What are common ratios?

16:9 for video, 4:3 for older screens, 1:1 for squares, 3:2 for photos and 9:16 for vertical video.

Does CSS support ratios?

Yes. The aspect-ratio property keeps a box in proportion.

Related tools