Aspect Ratio Calculator

Simplify a size to its ratio and resize while keeping it.

Your input

px
px
px
px
Ratio 16:9 Widescreen, HD video, most monitors
Aspect ratio
16:9
Decimal
1.7778
CSS
aspect-ratio: 16 / 9;
Commonly
Widescreen, HD video, most monitors
Height at 1,280 px wide
720 px

What is an aspect ratio?

An aspect ratio is the proportion between width and height, written as two numbers with a colon. A screen of 1920 by 1080 pixels is 16:9, because dividing both numbers by their greatest common divisor, 120, leaves 16 and 9.

The ratio stays the same however big the image gets, so it tells you how to resize without stretching. Knowing one new side lets you find the other. At 1280 pixels wide, a 16:9 image is 720 pixels tall. The tool also gives the CSS aspect-ratio value and names common formats such as 4:3 and 21:9.

How to use the Aspect Ratio Calculator

  1. Enter the width and height.
  2. Optionally enter a new width or a new height.
  3. Read the ratio and the CSS value.
  4. Use the calculated side when resizing.

Real situations

When people use the Aspect Ratio Calculator

  • 1

    Resize an image without distortion

    Enter a new width and see the matching height that keeps the proportions.

  • 2

    Set up video and thumbnails

    Check that a video or cover image matches a standard 16:9 or 4:5 frame.

  • 3

    Write the CSS aspect-ratio property

    Get the exact aspect-ratio: 16 / 9; line for a responsive box or embed.

  • 4

    Compare screens and sensors

    Find out whether a monitor or photo is 16:9, 3:2 or something less usual.

FAQ

Aspect Ratio Calculator: questions answered

What is the aspect ratio of 1920 by 1080?

16:9, or about 1.7778 as a decimal. It is the standard widescreen shape of HD video and most monitors. At 1280 pixels wide it is 720 tall.

What is 1080 by 1350?

4:5, which is the portrait shape commonly used for social media posts. At 400 pixels wide it would be 500 pixels tall.

How do I find the missing width?

Enter the original size and the new height. For 800 by 600 (4:3), a height of 300 gives a width of 400. The new width and new height fields are optional; use one at a time.

How is the ratio calculated?

Both numbers are divided by their greatest common divisor, the largest number that divides each exactly. For 1920 and 1080 that is 120, giving 16 and 9.

Why does my ratio look odd, like 683:384?

If the width and height share no common divisor, the exact ratio cannot be simplified to small numbers. The decimal value and nearby standard ratio are more useful then.

How do I use the result in CSS?

Copy the aspect-ratio line, such as aspect-ratio: 16 / 9;, and put it on a container. The browser keeps the box in that shape as its width changes.

Is this Aspect Ratio Calculator free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way