Home · Math · Ratios & Proportions · Aspect Ratio Calculator

Aspect Ratio Calculator

The aspect ratio of an image or screen is its width divided by its height; dividing both by their greatest common divisor gives the familiar whole-number form such as 16 : 9.

Your figures

Example result — edit the figures to make it yours

1.7778

Aspect ratio as a decimal (w ÷ h)

Simplified ratio first term16
Simplified ratio second term9
Diagonal (pixels)2,202.9

What this calculator does

The aspect ratio of an image or screen is its width divided by its height; dividing both by their greatest common divisor gives the familiar whole-number form such as 16 : 9. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Aspect ratio = Width : Height, simplified by gcd(width, height)

The aspect ratio of an image or screen is its width divided by its height; dividing both by their greatest common divisor gives the familiar whole-number form such as 16 : 9.

Inputs use the units shown in the field labels and every denominator or total must be non-zero. The result is an arithmetic value from the stated formula only; it is not a quote, a rating or professional advice.

Worked example

With the example inputs this page opens with (width (pixels) 1920, height (pixels) 1080), the result is 1.7778 — aspect ratio as a decimal (w ÷ h). Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying width (pixels)
Width (pixels)Aspect ratio as a decimal (w ÷ h)
9600.8889
15361.4222
19201.7778
24002.2222
28802.6667
38403.5556

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Aspect Ratio Calculator work?

The aspect ratio of an image or screen is its width divided by its height; dividing both by their greatest common divisor gives the familiar whole-number form such as 16 : 9. Width · Height → Aspect ratio as a decimal (w ÷ h). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Aspect Ratio Calculator need?

Width · Height → Aspect ratio as a decimal (w ÷ h). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Aspect Ratio Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.