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
Calculation notebook
Calculation notebook

The formula and worked example below explain the calculation.

See the method

Enter your values

Runs on your device

Your answer

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.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
Original width (pixels)Numeric value. Minimum: 1. Maximum: 1000000.1920
Original height (pixels)Numeric value. Minimum: 1. Maximum: 1000000.1080
New width (pixels)Numeric value. Minimum: 1. Maximum: 1000000.1280

Result for these sample inputs

16:9
Height at target width
720
Nearest whole-pixel height
720
Scale factor
0.666666667

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

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.