Aspect ratio calculator and resizer
Find the simplest ratio for any pair of dimensions, then resize to a new width or height while keeping the same shape.
Enter the dimensions
Ratio and resized dimensions
Loading the calculator…
How to use it
- Enter the current width and height in pixels.
- Choose whether you know the new width or the new height, and enter it.
- Read the simplified ratio and the new dimensions.
The formula
ratio = width / g : height / g (g = greatest common divisor) new height = new width x height / width new width = new height x width / height
Dividing both sides by their greatest common divisor gives the smallest whole numbers with the same shape.
Worked example
For 1,920 × 1,080, the greatest common divisor is 120. Then 1,920 ÷ 120 = 16 and 1,080 ÷ 120 = 9, so the ratio is 16:9.
To resize to a width of 1,280: 1,280 × 1,080 ÷ 1,920 = 720. The new size is 1,280 × 720.
What it assumes
- Width and height must be whole numbers of pixels.
- The new size is rounded to the nearest whole pixel. The exact value is listed too.
- Scaling both sides by the same factor keeps the shape.
Limits
- A ratio that does not reduce to small numbers is still correct. For example, 1366 × 768 reduces to 683:384, which is close to 16:9 but not equal to it.
- Resizing changes the pixel count, so the file size changes too. See the image file size calculator.
This is an estimate. The ratio is exact. Resized dimensions are rounded to whole pixels, so treat them as an estimate when the exact value has decimals.
Your numbers stay here
The math runs in your browser and nothing you type is sent to us. Your last calculation is saved in your browser (localStorage) so the calculator is filled in when you return. Press Reset to clear it. See the privacy policy.


