Math

Aspect Ratio Calculator

Simplify image dimensions into an exact ratio and calculate a matching height for a new width.

Exact method explained belowEditable inputs

Set up your calculation

Runs on your device

SOLUTION

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter original width (pixels), original height (pixels), new width (pixels).
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Divide width and height by their greatest common divisor. Matching height = new width × original height ÷ original width.

A WORKED EXAMPLE

1920 × 1080 simplifies to 16:9. Resizing to 1280 pixels wide gives a height of 720 pixels.

What to keep in mind

Whole-pixel inputs only. The exact scaled height can be fractional; the nearest-pixel result may differ slightly from the original ratio. This tool calculates dimensions but does not resize an image file.

Common questions

Does the ratio change between landscape and portrait?

Yes. Width comes first; 16:9 landscape becomes 9:16 when rotated.

Will this crop an image?

No. It calculates proportional dimensions with no cropping or file upload.

Methodology maintained by ClarityKit. How these tools are built and checked.