Image aspect-ratio calculator

Find your image’s ratio and a matching height for a new width. Keep the artwork in proportion before resizing.

Image aspect-ratio calculator: annotated studio reference
Illustrative reference. Your result uses the values or files you enter below.
Original image
New dimensions

Ready when you are. Enter your settings, then run the tool to see your result.

Find proportional image dimensions without stretching

  1. Enter the original width and height as whole pixel values.
  2. Enter a new width. Keep the original orientation: width is always the horizontal dimension.
  3. Calculate the simplified ratio and corresponding whole-pixel height. Use the PNG resizer when you need an exported image.

Worked examples

Reference examples for this tool
Original dimensionsRatioAt 1200 px wide
3000 × 30001:11200 × 1200 px
4500 × 56254:51200 × 1500 px
3600 × 24003:21200 × 800 px

A 4500 × 5625 px portrait illustration has a 4:5 ratio. Setting a width of 1800 px gives a height of 2250 px. Entering 1800 × 1800 instead would change the ratio: an editor must crop the image, stretch it, or add space around it to reach that square canvas.

Questions about this tool

Why is the new height rounded?

Raster images need whole pixel dimensions. If the proportional height contains a fraction, this calculator rounds to the nearest pixel. Very small images may show a more noticeable ratio difference.

Can the calculator turn a portrait image into landscape?

It preserves the original width-to-height relationship. For a landscape layout, change the composition or rotate the artwork in your editor rather than swapping just one dimension.

Does a matching ratio guarantee a sharp print?

No. Ratio describes shape, not available detail. A 400 × 500 px image and a 4000 × 5000 px image are both 4:5, but they have very different print-size limits.

Method and production notes

Find the simplest ratio

Divide the original width and height by their greatest common divisor. For 4500 × 5625 pixels, divide both by 1125 to get 4:5. Ratios are written width first; a 5:4 image is landscape, while 4:5 is portrait.

Calculate a new height

New height = new width × original height ÷ original width. A 4500 × 5625 image resized to 1800 pixels wide needs 2250 pixels of height. The tool rounds to the nearest whole pixel, so some ratios have a tiny rounding difference.

Ratio is not resolution

A 400 × 500 image and a 4000 × 5000 image have the same 4:5 ratio, but different available detail. Check the effective print resolution before enlarging. To save an actual file, use the PNG resizer.

Put the result to work