- Open an image, or choose Enter dimensions instead and type a width and height.
- 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.
- Calculate works out the height for a width, or the width for a height.
- Crop / Pad shows the largest crop of that ratio and where it sits, or the smallest canvas that keeps the whole image.
- Sizes lists sizes that match the ratio exactly.
- Copy result copies the numbers.
How to use the calculator
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.
| Ratio | Typical use | Example size |
|---|---|---|
| 1:1 | Square posts, avatars | 1080 x 1080 |
| 4:5 | Portrait feed posts | 1080 x 1350 |
| 9:16 | Stories, Reels, Shorts | 1080 x 1920 |
| 16:9 | Video, slides, thumbnails | 1920 x 1080 |
| 3:2 | Most camera photos | 6000 x 4000 |
| 4:3 | Many phone photos | 4032 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.