Aspect Ratio Calculator

Enter a width and height to simplify their ratio, then resize from either a new width or a new height.

Use the same units for both original dimensions. Positive decimal values from 0.000001 to 1000000000000, with up to six decimal places, are supported. Ratios are reduced exactly; resized dimensions show up to 12 significant digits.

Simplified ratio
—
Proportional new width
—
Proportional new height
—
Decimal ratio
—
Pixels (rounded)
—

Approximate results show up to 12 significant digits. Decimal fields use a dot, up to 12 digits on each side, an exponent from −24 to 24 and absolute values up to 10¹². Rational intermediate numerators and denominators are limited to 512 bits. Integer and scientific-notation exceptions are specified below. r=W/H; H₂=W₂/r; W₂=H₂r; W,H,W₂,H₂ > 0.

How aspect ratio simplification works

The simplified ratio is found by dividing both the width and height by their greatest common divisor (GCD) — the largest number that divides both evenly — reducing them to the smallest whole numbers that preserve the same proportion, like 1920×1080 reducing to 16:9.

Enter a width and height to simplify their ratio, then resize from either a new width or a new height. Use the same units for both original dimensions. Positive decimal values from 0.000001 to 1000000000000, with up to six decimal places, are supported. Ratios are reduced exactly; resized dimensions show up to 12 significant digits.

Frequently asked questions

Why does 1920×1080 simplify to 16:9?

1920 and 1080 share a greatest common divisor of 120. Dividing both by 120 gives 16 and 9 — the smallest whole numbers in the same proportion, which is why 16:9 is the standard name for this common widescreen ratio.

Why does resizing without matching the aspect ratio distort an image?

If you change width and height independently without keeping their ratio constant, every pixel gets stretched unevenly in one direction more than the other, making circles look like ovals and square objects look rectangular.

Can I use this for ratios other than screen resolutions?

Yes — this works for any two related dimensions, including print sizes, aspect ratios for cropping photos, or scaling physical objects like a scale model proportionally.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Resize direction = Find height from width
Width = 1920
Height = 1080
New width = 1280
Simplified ratio: 16:9
Proportional new width: 1280
Proportional new height: 720
Decimal ratio: 1.77777777778
2
Resize direction = Find width from height
Width = 1920
Height = 1080
New height = 2160
Simplified ratio: 16:9
Proportional new width: 3840
Proportional new height: 2160
Decimal ratio: 1.77777777778
3
Resize direction = Find height from width
Width = 2560
Height = 1080
New width = 3440
Simplified ratio: 64:27
Proportional new width: 3440
Proportional new height: 1451.25
Decimal ratio: 2.37037037037
4
Resize direction = Find width from height
Width = 1.5
Height = 1
New height = 4.2
Simplified ratio: 3:2
Proportional new width: 6.3
Proportional new height: 4.2
Decimal ratio: 1.5
5
Resize direction = Find height from width
Width = 1366
Height = 768
New width = 1000
Simplified ratio: 683:384
Proportional new width: 1000
Proportional new height: 562.225475842
Decimal ratio: 1.77864583333
6
Resize direction = Find width from height
Width = 36
Height = 24
New height = 10.5
Simplified ratio: 3:2
Proportional new width: 15.75
Proportional new height: 10.5
Decimal ratio: 1.5

How we test our calculators →

Also try:

Back to category →