T

images

How to resize an image without changing its aspect ratio

Learn how to resize an image while keeping the same shape, avoid stretching, and calculate the missing width or height.

Updated 2026-05-11

When you resize an image, the goal is usually simple: make it larger or smaller without making people, products, text, or logos look stretched.

To do that, you need to keep the same aspect ratio. In plain English, the width and height must change together.

The basic rule

If you change the width, calculate the new height from the same ratio. If you change the height, calculate the new width from the same ratio.

For an image with original size:

original width × original height

and a new width:

new height = new width × original height ÷ original width

If you know the new height instead:

new width = new height × original width ÷ original height

That is the whole idea.

Example: resize a 1920 × 1080 image

A 1920 × 1080 image is 16:9. Suppose you want the new width to be 1280 pixels.

Use the formula:

new height = 1280 × 1080 ÷ 1920
new height = 720

So the resized image should be:

1280 × 720

The shape is unchanged, and the image will not stretch.

Example: resize by height instead

Suppose the same 1920 × 1080 image needs to be 600 pixels tall.

new width = 600 × 1920 ÷ 1080
new width = 1066.67

You cannot use two-thirds of a pixel in most image exports, so you would round to 1067 pixels.

The result is approximately:

1067 × 600

Small rounding differences are normal.

Why images get stretched

Images usually get distorted when width and height are changed independently.

For example:

Original: 1600 × 900
Wrong resize: 800 × 800

The original is widescreen. The resized version is square. If the whole image is forced into a square without cropping, it will look squeezed.

If you need a square version, crop it intentionally instead of stretching it.

Resize, crop, or pad?

There are three common ways to fit an image into a new space.

Resize

Resize keeps the whole image and preserves the shape.

Example:

1600 × 900 → 800 × 450

Use this when you want the complete image to remain visible.

Crop

Crop cuts off part of the image to fit a different shape.

Example:

1600 × 900 → 1080 × 1080

Use this when the destination requires a different ratio, like a square profile image or a vertical story.

Pad

Padding keeps the whole image but adds empty space around it.

Example:

16:9 image inside a 1:1 square with margins

Use this when you must fit a different frame but cannot crop important content.

Common resize targets

GoalCommon ratioExample size
Widescreen video16:91920 × 1080
Smaller widescreen image16:91280 × 720
Square post1:11080 × 1080
Vertical short video9:161080 × 1920
Classic presentation4:31024 × 768

The exact platform requirements can change, so treat these as common examples rather than permanent rules.

How to choose which dimension to set first

Choose the dimension that is constrained by the place where the image will appear.

  • If a website layout says the image area is 900px wide, choose the width first.
  • If a print template says the image must be 4 inches tall, choose the height first.
  • If a video editor requires 1080 × 1920, you need both dimensions and may need to crop.
  • If a file size limit is the problem, resize down while keeping the same ratio.

Quick mental check

If the original image is 2,000 × 1,000, the width is twice the height. Any proportional resize should keep that relationship:

1000 × 500
800 × 400
400 × 200

If the new numbers do not keep the same relationship, the shape changed.

When to use an aspect ratio calculator

The formulas are not difficult, but they are easy to mistype when you are preparing several images.

Use an image ratio calculator when you need to:

  • calculate a missing width or height;
  • check whether two sizes share the same ratio;
  • resize an image to a common format like 16:9 or 1:1;
  • avoid stretching a graphic, thumbnail, or product photo.

Simple rule to remember

To resize without changing aspect ratio, never guess both dimensions separately. Pick one dimension, calculate the other, and keep width and height moving together.