Aspect ratio calculator

Reduce aspect ratios and calculate matching sizes.

Processed only in this browser

Reduce an aspect ratio and calculate a matching width or height.

Inputs and settings
Examples

Inputs and results are processed in this tab. Reloading or closing clears them; files you choose to save remain on your device.

How to use this tool

  1. Enter the original width and height as positive integers.
  2. Choose whether the target fixes width or height, then enter its length.
  3. Inspect the matching size, reduced ratio and width/height scale factors.

Fit a 16:9 image to 800 px width

Input and settings
1920 × 1080; resize by width; target 800
Result
800 × 450 px; ratio 16:9

This tool calculates dimensions. Use Resize image to change an actual file.

A ratio is not a resolution

1920×1080 and 1280×720 contain different pixel counts but share a 16:9 ratio. Dividing the two dimensions by their greatest common divisor produces the reduced integer ratio. Portrait video simply uses a height larger than its width.

Swap inputs reverses width and height, making it easy to compare 16:9 with 9:16. This does not rotate or crop a source file; it keeps dimension arithmetic separate from image editing.

Integer pixels can change a ratio slightly

The matching dimension is rounded to the nearest whole pixel, with a minimum of 1 px. Very small targets or extreme proportions can produce different width and height scale factors, so the relative ratio difference is displayed explicitly.

Original and target dimensions are bounded to one million. The schematic is adjusted for legibility; it does not predict the sharpness, resampling method or file size of an exported image.

Common questions

How do 9:16 and 16:9 differ?

The order is width:height. 9:16 is portrait and 16:9 is landscape; Swap makes the distinction visible.

Can the dimensions be fractional?

This calculator accepts integer dimensions for pixel arithmetic. Use the unit converter for physical measurements.

Standards and references

Read alongside this tool