Image Aspect Ratio Calculator
Enter the pixel width and height of an image. The calculator gives its aspect ratio, and the height that matches any new width you choose.
Image Aspect Ratio Calculator
Result
16:9
At width 1280 px, height is 720 px.
What the Image Aspect Ratio Calculator does
The Image Aspect Ratio Calculator tells you the shape of an image: the relationship between its width and its height. You enter the pixel dimensions, and the calculator reduces the ratio to its simplest form, such as 16:9 or 4:3. It also works out the height that matches a new width, so a picture can be resized without stretching or squashing it.
Aspect ratio matters for websites, video, print and social media. An image forced into the wrong shape looks distorted, and a layout designed for one ratio can crop or stretch a picture badly. Knowing the ratio before you resize or design a space saves time and avoids those problems.
How the ratio is simplified
The calculator finds the greatest common divisor of the width and height, which is the largest number that divides both exactly. Dividing both sides by that number gives the simplest ratio. For 1920 by 1080, the common divisor is 120, and dividing gives 16 and 9, so the ratio is 16:9.
The decimal ratio is the width divided by the height. A 16:9 image has a decimal ratio of about 1.78 to 1, which is the figure many video and design tools use when they describe the shape.
Resizing without distortion
To keep the shape when you change the width, multiply the new width by the original height and divide by the original width. For a 1920 by 1080 image resized to 1280 pixels wide, the height is 1280 times 1080 divided by 1920, which is 720 pixels. The new picture is 1280 by 720, with the same 16:9 shape.
Rounding can leave an image a pixel out of proportion. For most purposes that difference does not show, but for precise work such as printing or pixel-perfect graphics, check the result visually or use a tool that preserves the ratio exactly.
Common ratios and where they appear
Several ratios are common. Widescreen video and most modern screens use 16:9. Older televisions and many photographs from some cameras use 4:3. Square images, often used for profile pictures and social posts, use 1:1. Many camera sensors produce 3:2 images, which suit printed photographs at standard sizes.
These are conventions rather than rules. A website or app may crop an image to its own ratio, so a picture that works in one place may need a different crop in another.
Worked example
A photograph is 1000 by 750 pixels. The greatest common divisor is 250, so the ratio is 4:3. If you want it 800 pixels wide, the height is 800 times 750 divided by 1000, which is 600 pixels. The new size is 800 by 600.
Set the width to the size a web layout needs, then check the height the calculator gives. If the layout wants a fixed height as well, you will need to crop, not just resize.
Cropping to a new shape
Cropping changes the ratio by removing part of the picture. Decide what the subject needs before you crop, and leave room around it so the composition does not feel cramped. For a fixed shape, such as a banner, crop the image to that ratio first, then resize it to the final pixel size, which keeps the detail where you want it.
Limitations
The calculator works with the pixel dimensions you enter. It does not check the image file, its resolution in print, its colour profile or any compression that may affect quality. Resizing an image larger than its original size can make it look soft, so enlarge only when necessary.
Designing for a fixed slot
Many layouts reserve a fixed slot, such as a card or a banner, with its own ratio. Decide the shape of the slot first, then choose or crop the picture to fit it. Cropping before exporting at the final size usually keeps more detail than resizing a large picture and then cropping it.
Responsive images
Responsive pages can show a different crop on small and large screens. Keep the subject in the same position in both crops, and check the framing on a phone as well as on a desktop. A subject near the edge of a tall phone crop may be cut off in a wide layout.
Print and paper sizes
Print sizes often differ from screen ratios. A photograph at 3:2 may need trimming to a 4:5 or 5:7 print, so plan the crop before the picture is printed. The calculator gives the shape, and the printer's size chart gives the exact paper dimensions.
Video and social formats
Video is usually delivered in 16:9, but vertical formats use 9:16, and square formats use 1:1. Shoot with the final format in mind, and keep the subject centred enough to survive a crop. Check the current guidance for each platform before exporting, because requirements change.
Keeping a list of slot sizes
A short list of the ratios and pixel sizes your site uses avoids repeated decisions. Note the width, height and ratio for each slot, and reuse those sizes across pages. Consistency makes a site look more deliberate.
Preserving quality when resizing
Shrinking an image keeps its detail better than enlarging it. Export from the original file rather than from a previous resized copy, and keep the largest version you have as the master from which smaller versions are made.
Designing for a fixed slot
Many layouts reserve a fixed slot, such as a card or a banner, with its own ratio. Decide the shape of the slot first, then choose or crop the picture to fit it. Cropping before exporting at the final size usually keeps more detail than resizing a large picture and then cropping it.
Responsive images
Responsive pages can show a different crop on small and large screens. Keep the subject in the same position in both crops, and check the framing on a phone as well as on a desktop. A subject near the edge of a tall phone crop may be cut off in a wide layout.
Print and paper sizes
Print sizes often differ from screen ratios. A photograph at 3:2 may need trimming to a 4:5 or 5:7 print, so plan the crop before the picture is printed. The calculator gives the shape, and the printer's size chart gives the exact paper dimensions.
Video and social formats
Video is usually delivered in 16:9, but vertical formats use 9:16, and square formats use 1:1. Shoot with the final format in mind, and keep the subject centred enough to survive a crop. Check the current guidance for each platform before exporting, because requirements change.
Keeping a list of slot sizes
A short list of the ratios and pixel sizes your site uses avoids repeated decisions. Note the width, height and ratio for each slot, and reuse those sizes across pages. Consistency makes a site look more deliberate.
Preserving quality when resizing
Shrinking an image keeps its detail better than enlarging it. Export from the original file rather than from a previous resized copy, and keep the largest version you have as the master from which smaller versions are made.
Privacy
The dimensions you enter stay in your browser. The calculator does not upload or store your image.
Frequently Asked Questions
Why is the simplified ratio sometimes not the true size?
The ratio shows the shape only. An image of 1920 by 1080 and one of 3840 by 2160 both simplify to 16:9.
How do I keep the ratio when I resize in an editor?
Lock the aspect ratio option in your editor, or enter a fixed width and let the height follow.
What is the most common ratio for websites?
Widescreen 16:9 is common for video and hero images, but the right ratio depends on the layout.
Does resizing change the file size?
Yes. Fewer pixels usually means a smaller file, but compression settings also affect size.
Can the calculator crop an image?
No. It finds the ratio and the matching height. Use an image editor to crop.
Related Tools
By the ToolHuby editorial team. Last updated November 16, 2026.