HisabCalc

Aspect Ratio Calculator

Reduce a width and height to the simplest whole-number ratio and show the width divided by the height as a decimal.

Enter your numbers

Example: 1920

Example: 1080

Result
Share on WhatsApp

Figures are computed on your device; nothing is sent anywhere.

Formula

reduce width:height by gcd; decimal = width/height; widthPerHeight = decimal.

How the calculation works

The tool takes the width and height you enter, checks that both are positive numbers, and then finds their greatest common divisor with the Euclidean method.

Dividing each side by that divisor produces the smallest whole numbers that keep the same proportion, which is printed as a colon ratio such as 16:9.

The decimal value divides the width by the height directly, and widthPerHeight repeats that same figure so a single panel or container can be sized from either reading.

Common mistakes

When to use it

Worked example

With the default width 1920 and height 1080 you get the ratio 16:9, a decimal of 1.78 and a width per height of 1.78.

Decimal 1.78
Width per height 1.78

Common questions

What does the ratio value show?

It is the width and height divided by their greatest common divisor, so 1920 by 1080 becomes 16:9.

Why are decimal and widthPerHeight the same?

Both equal width divided by height, reported twice so a designer can read the value in either context.

Last updated: 2026-10-03