Skip to main content
Preparing workspace

Aspect Ratio Calculator

Find the exact aspect ratio from width and height, resize to common formats, or compare Fit and Fill with pixel-by-pixel padding and crop amounts.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Aspect Ratio Calculator

Find the aspect ratio of any width and height, or the missing width or height for 16:9, 4:3, 9:16 or any ratio.

Aspect ratio is width ÷ height in lowest terms: divide both by their greatest common divisor, so 1920×1080 ÷ 120 = 16:9. To resize without stretching, height = width × H ÷ W: a 1280-wide 16:9 frame is 1280 × 9 ÷ 16 = 720 tall. Compare Fit and Fill to see the padding or crop a fixed frame needs.

How to use Aspect Ratio Calculator

  1. 1

    Type a width and height (or tap an example) to get the simplified ratio, its decimal, the nearest common ratio and a preview.

  2. 2

    In Resize, pick a ratio such as 16:9, 9:16 or 4:5 (or type your own, like 2.39:1), choose whether you know the width or the height, and enter it.

  3. 3

    Read the missing side with its formula and common sizes for that ratio, and copy the ratio or the CSS aspect-ratio rule.

  4. 4

    In Fit or fill a frame, enter the target width and height to compare the proportional dimensions and amount of centered padding or crop on each edge.

Why use Aspect Ratio Calculator

  • Both directions

    Ratio from a size, and the missing width or height from a ratio.

  • Nearest named ratio

    Odd sizes like 1366×768 (683:384) are matched to the shape they are sold as, with the percentage difference.

  • Any ratio, decimals too

    16:9, 4:5, 2.39:1 or 1.85 — typed or picked from the chips.

  • Reference built in

    Common ratios with their decimals and uses, common sizes per ratio, and a copyable CSS aspect-ratio rule.

Exact aspect ratios for common pixel dimensions

These ratios are reduced from the actual pixel dimensions. Displays sold as 16:9 or ultrawide can use slightly different ratios.
Width × heightExact ratioWidth divided by height
1920 × 108016:91.7778
1366 × 768683:3841.7786
1080 × 19209:160.5625
1080 × 13504:50.8000
3440 × 144043:182.3889

Common use cases

  • Finding the ratio of a screen, photo or video resolution such as 1366×768 or 3440×1440.
  • Working out the height of a 16:9 thumbnail at a new width, or the width of a 9:16 vertical video at 1920 px tall.
  • Sizing a banner, print or CSS box so it keeps its proportions.

Frequently asked questions

How do I calculate an aspect ratio?

Divide the width and the height by their greatest common divisor. 1920 and 1080 share 120, so 1920×1080 = 16:9. For a decimal form, divide width by height: 1920 ÷ 1080 = 1.78, often written 1.78:1.

Link to answer
What is the difference between Fit and Fill?

Fit (contain) scales the whole source inside the frame and leaves padding where the shapes differ. Fill (cover) scales the source until it covers the frame and crops the excess. For a 1920×1080 source in a 1080×1350 frame, Fit produces 1080×607.5 with 371.25 pixels of padding at each of the top and bottom edges. Fill scales to 2400×1350 and crops 660 pixels from each side after scaling.

Link to answer
What is the height of a 16:9 image that is 1280 pixels wide?

720 pixels, because height = width × 9 ÷ 16 = 1280 × 9 ÷ 16. Other 16:9 sizes are 1920×1080, 2560×1440 and 3840×2160.

Link to answer
What size is a 9:16 vertical video?

1080×1920 pixels is the usual full-HD vertical size, and 720×1280 is the HD one. Both are the 16:9 frame turned on its side.

Link to answer
Is 1366×768 16:9?

Not exactly. Its exact ratio is 683:384, which is 1.7786:1 against 1.7778:1 for true 16:9. That is 0.05% off, so the calculator shows 683:384 with the note Close to 16:9 (0.05% off), and the size is sold and treated as 16:9.

Link to answer
What aspect ratio is 4:5?

4:5 is a portrait shape, 0.8 times as wide as it is tall; 1080×1350 is the common pixel size for portrait feed posts. In print it matches 8×10 inch photos.

Link to answer
Is 21:9 really 21 by 9?

Usually not exactly. 21:9 is a marketing name for ultrawide screens: 2560×1080 is 64:27 (2.37:1) and 3440×1440 is 43:18 (2.39:1). The calculator shows the exact ratio and the nearest common one.

Link to answer

Embed this tool on your site

Add the Aspect Ratio Calculator widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.

<iframe src="https://www.altftool.com/embed/widget/aspect-ratio-calculator"
  title="Aspect Ratio Calculator — free AltFTool widget"
  width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
  loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/aspect-ratio-calculator?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>

Browse all embeddable widgets →