Photography Calculators

Find a ratio or a missing side

Find the simplest width-to-height ratio, or calculate a missing dimension as you type.

Local browser processing · No upload · No account required

Dimensions to ratio
Ratio to dimensions

How to calculate an aspect ratio

  1. Type the width and height of your photo in the first two fields. The ratio appears under them, reduced to the smallest whole numbers.
  2. To find a missing side, press a ratio button such as 4:5 or 16:9, or type your own.
  3. Enter the side you know and say whether it is the width or the height. The other side appears at once.

The two crops I make most

My Sony A7 III saves 6000 × 4000 px frames. I have no full-size original on this site, so I typed that frame size into the calculator. It reduces to 3:2, and the 1200 × 800 px copies in my articles are 3:2 as well. Many places want another shape: 4:5 for an upright Instagram post and 16:9 for a wide header or a video thumbnail.

My Lake Jasna photo is already published in the first of those shapes. Its 960 × 1200 px come out as 4:5. For the other two crops below I used my own Metelkova frames from March 2023 and checked every number here first.

My photo sizes through the calculator

What I enteredResult
6000 × 4000, the A7 III frame size (typed)3:2
960 × 1200, Lake Jasna as published4:5
4:5, known height 4000Width: 3200
16:9, known width 6000Height: 3375
4:5, known height 800Width: 640
16:9, known width 1200Height: 675

A 4:5 crop from a full A7 III frame is 3200 × 4000 px. It keeps the whole height and only 53% of the width. A 16:9 crop keeps the whole width and drops 625 rows. The same pair on a 1200 × 800 px copy gives 640 × 800 and 1200 × 675.

Then I made those two crops in my image cropper. The clay figure at 4:5 with the frame left in the middle lost a slice off the right of the figure. Pushed to the right edge, the frame held all of him, with the painted house and its yellow window behind. The red bicycle at 16:9 was harder. Centred, the frame cut the top off the handlebar grip. Pushed to the top, it cut the bottom off the front tyre. At 1200 × 675 the whole bicycle does not fit, so that shape needs a photo with more room around the bicycle, or a different ratio.

Shape first, then size

A ratio says nothing about pixels. 1080 × 1350 and 3200 × 4000 are both 4:5; the second has almost nine times as many pixels. Settle the shape on the full-size file, crop, and resize last. Crop a 1200 × 800 px web copy instead, and an upright 4:5 post gets only 640 pixels of width.

When the answer is bigger than the photo

Asked for a 16:9 frame with a known height of 4000, the calculator answers Width: 7111.11. The A7 III frame is only 6000 wide, so that crop cannot exist. Wide shapes run out of width first, so on a 3:2 photo enter the width for 16:9 and the height for 4:5. The two decimals also show when a ratio does not land on whole pixels; round before you type the result into a resizer.

Tips for better results

  • Enter the width first. 800 × 1200 gives 2:3, an upright frame, not the 3:2 of the same photo lying down.
  • Work out the crop on the full-size file. A web copy leaves far fewer pixels to crop from.
  • If a form asks for exact pixels, such as 1080 × 1350, check the ratio here and then resize to those pixels.

Privacy

What you type never leaves your device. The ratio and the missing side are worked out in your browser, and no photo is needed.

Frequently asked questions

Does this change my image?

No. The calculator only works with the numbers you type and never opens a picture. To change the shape of a photo, use the image cropper; to change its pixel count, use the image resizer.

Why does 6000 by 4000 become 3:2?

Both numbers divide by 2000. That leaves 3 and 2, the smallest whole numbers with the same shape. A 1200 × 800 px copy reduces the same way, dividing by 400, so the web copy and the camera frame share one ratio.

Can I enter a decimal ratio?

Yes. Type the two parts of the ratio separately, for example 1.91 and 1. The missing side may then have decimals. An image always has whole pixels, so round the result before you enter it into an editor.

Which side is calculated?

The one you did not enter. Choose Width under Known dimension and you get the height; choose Height and you get the width. With 4:5 and a known height of 4000, the answer is Width: 3200.

Related tools