Skip to main content

Image Aspect Ratio Calculator

Open an image or type a width and height to see its aspect ratio, work out matching sizes, and find the exact crop or padding for another ratio.

Upload an image to find its aspect ratio

Drag and drop files here, or click to browse

Choose file

or paste an image (Ctrl+V)

Processed in your browser, never uploaded. You keep full ownership of your images. View license

How to use the calculator

  1. Open an image, or choose Enter dimensions instead and type a width and height.
  2. Ratio shows the exact ratio, the decimal value, the orientation and the closest common ratio. Pick a target ratio there, or type your own, such as 7:5 or 2.35:1.
  3. Calculate works out the height for a width, or the width for a height.
  4. Crop / Pad shows the largest crop of that ratio and where it sits, or the smallest canvas that keeps the whole image.
  5. Sizes lists sizes that match the ratio exactly.
  6. Copy result copies the numbers.

What an aspect ratio is

Aspect ratio is width divided by height, written as two whole numbers. A 1920 x 1080 image is 16:9 because both numbers divide by 120. The tool divides the width and height by their greatest common divisor and shows the result. Sizes with no common factor stay as they are. 1366 x 768, a common laptop screen, simplifies to 683:384, which is close to 16:9 but not equal to it, so the tool also names the closest common ratio and how far off it is.

RatioTypical useExample size
1:1Square posts, avatars1080 x 1080
4:5Portrait feed posts1080 x 1350
9:16Stories, Reels, Shorts1080 x 1920
16:9Video, slides, thumbnails1920 x 1080
3:2Most camera photos6000 x 4000
4:3Many phone photos4032 x 3024

Calculating a matching width or height

With the ratio locked, typing a width calculates the height for the ratio you chose, and the other way round. The formulas are simple: height = width x second number / first number, and width = height x first number / second number. At 16:9, a width of 1280 gives 1280 x 9 / 16 = 720.

Unlock the ratio to type both numbers freely; the ratio then follows the numbers.

Rounding and exact sizes

Pixel counts are whole numbers, so an exact ratio is not always possible. 1000 px wide at 16:9 needs a height of 562.5, which rounds to 563. The calculator tells you when a size is rounded, by how much, and offers the nearest exact sizes: 992 x 558 and 1008 x 567. An exact size is always a whole multiple of both numbers, which is how the Sizes list is made.

Crop or pad to another ratio

There are two ways to change the shape of an image without stretching it. Cropping trims the sides; the calculator gives the largest crop, its X and Y position (drag it on the image to move it) and the share of pixels kept. Padding adds space around the image so nothing is lost; the calculator gives the smallest canvas of that ratio.

This tool only calculates and never changes your file. To apply the numbers, use Crop Image to crop, or Pad in the Image Resizer.

Where the processing happens

The image is only opened in your browser to read its dimensions and show it. It is not modified or uploaded. The site itself loads analytics and advertising scripts, described in the Privacy Policy.

Questions about this tool

What is the aspect ratio of my photo?

Open the photo and the Ratio panel shows it in the simplest form, for example 4:3 or 16:9. Nothing in the image is changed.

Can I use it without an image?

Yes. Choose Enter dimensions instead and type a width and height.

I need my photo at 16:9 for a slide. What size should I crop it to?

Open the photo, choose 16:9 under Ratio, then open Crop / Pad. It shows the largest exact 16:9 crop and its position. Apply it with Crop Image.

I want to make my image 800 pixels wide without changing its shape. What height do I need?

Keep Original selected under Ratio, open Calculate and type 800 as the width. The height that keeps the shape appears, with a note if it had to be rounded.

Why does 1366 x 768 show 683:384 instead of 16:9?

It is close to 16:9 but not equal to it. The calculator shows the exact ratio, then names 16:9 as the closest common one and how far off it is.

Does this tool resize my image?

No. It only calculates. To change the size, use the Image Resizer.