Aspect Ratio Calculator
Calculate the aspect ratio of any width and height. Enter a target width to get the scaled height — perfect for video, images, and screen design.
Enter your values and click Calculate
How It Works
The aspect ratio is calculated by dividing both the width and height by their greatest common divisor (GCD) — the largest integer that divides both numbers evenly. For example, 1920 and 1080 share a GCD of 120, so 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9, yielding the ratio 16:9. The decimal ratio is simply width ÷ height (1920 ÷ 1080 ≈ 1.7778 for 16:9). When a target width is provided, the scaled height is calculated by keeping the ratio constant: target height = target width × (original height ÷ original width). For example, scaling 1920×1080 to a target width of 1280: target height = 1280 × (1080 ÷ 1920) = 1280 × 0.5625 = 720 px. This ensures the scaled image or video fills the frame without distortion.