Use Andrew Hedges’ Aspect Ratio Calculator …
“to calculate the missing value for a particular aspect ratio. This is useful, for example, when resizing photos or video.
Say you have a photo that is 1600 x 1200 pixels, but your blog only has space for a photo 400 pixels wide. To find the new height of your photo—while preserving the aspect ratio—you would need to do the following calculation:
original height / original width x new width = new height
1200 / 1600 x 400 = 300”