Design tools

Aspect Ratio Calculator

Aspect Ratio Calculator

Simplify a ratio, resize while keeping proportions and get CSS aspect-ratio.

About this tool

About Aspect Ratio Calculator

Resize an image, video or frame without stretching it. Enter the original width and height (or pick a preset ratio such as 16:9 video, 4:5 Instagram portrait, 9:16 Stories, 1.91:1 link cards, 21:9 ultrawide or A-series paper) and the calculator reduces it to the simplest whole-number ratio, so 1920 × 1080 becomes 16:9. Then choose whether you know the new width or the new height and it fills in the other side, rounded to whole pixels or kept exact. For awkward sizes it names the closest common ratio and how far off it is: 1366 × 768 is 683:384, within a fraction of a percent of 16:9. You also get the decimal ratio, a ready CSS aspect-ratio declaration, and the padding-top percentage for older layouts. A table lists standard widths from 320 to 3840 pixels with matching heights and flags which ones divide exactly. Copy any value or export the table as CSV. It all runs in your browser.

Built and maintained by Abhi JainUpdated

How to Calculate an Aspect Ratio

  1. 1

    Enter the original size

    Type the original width and height, or pick a ratio preset.

  2. 2

    Choose what to resize by

    Select New width or New height and type the value.

  3. 3

    Read the results

    See the simplified ratio, the resized dimensions, the CSS aspect-ratio value and the table of common sizes.

Aspect Ratio Calculator: questions and answers

How do I calculate an aspect ratio?

Divide the width and height by their greatest common divisor. For 1920 × 1080 the GCD is 120, so the ratio is 16:9.

How do I calculate the new height for a width?

New height = new width × original height ÷ original width. Resizing 1920 × 1080 to 1280 wide gives 1280 × 1080 ÷ 1920 = 720.

What sizes are 16:9?

Common 16:9 resolutions are 1280 × 720 (HD), 1920 × 1080 (Full HD), 2560 × 1440 (QHD) and 3840 × 2160 (4K UHD).

How do I keep an aspect ratio in CSS?

Use aspect-ratio: 16 / 9 on the element and set only its width. In very old browsers, the padding-top percentage technique (56.25% for 16:9) does the same job.

What aspect ratio should social images use?

Instagram feed posts work best at 4:5 or 1:1, Stories and Reels at 9:16, and link preview cards at 1.91:1 (1200 × 630).