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
The aspect ratio of an image, video, or screen is the proportional relationship between its width and height, expressed as two numbers separated by a colon (for example, 16:9 or 4:3). This ratio stays constant when you scale the content up or down, which is why it matters so much for responsive design, video production, and print layouts. A 1920×1080 video and a 1280×720 video both have a 16:9 aspect ratio — the proportion is identical even though the pixel counts differ. This calculator takes any width and height, reduces the ratio to its simplest whole-number form using the greatest common divisor, and optionally computes the correct height for a given target width. Use it when resizing images to avoid distortion, when setting up video exports at a non-native resolution, when designing responsive UI components, or when checking whether an existing asset matches a required aspect ratio.
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.