W:H

Aspect Ratio Calculator

Reduce a width and height to their aspect ratio, and find the missing side when you resize.

Everyday & ConversionsRuns in your browser

Result…

px
px
Resize by
px

 

…

How it's calculated

Ratio = (W ÷ gcd) : (H ÷ gcd)
New height = new width × H ÷ W

Divides both sides by their greatest common divisor to give the simplest whole-number ratio. Some common sizes reduce to odd-looking ratios (2560 × 1080 is 64:27, sold as "21:9"). Resizing keeps the ratio, so the other side is found by proportion.

Your numbers, step by step

    More in Everyday & Conversions