Image aspect ratio calculator
Reduce a width-to-height ratio and calculate the other side for a new dimension.
Enter data
Source dimensions, fixed side and its new length in integer pixels 1–1,000,000. Fields marked with an asterisk are required.
About this tool
When changing one side of a photo, derive the other from its ratio unless cropping or stretching is intended. This calculator gives dimensions to enter in an editor. It opens no file, performs no resizing and assesses no quality. Rounding to whole pixels can slightly change the ratio.
How to use the calculator
- Enter positive integer source dimensions.
- Choose the fixed side, enter its new length and calculate. Review rounding.
Calculation details
Formula and calculation method
Ratio = (width ÷ GCD):(height ÷ GCD). New height = new width × old height ÷ old width; reverse for a fixed height. Round the other side to the nearest integer, halves up.
Worked example
1920 × 1080 px gives 16:9. A new width of 1280 px gives exactly 720 px height. For 3 × 2 px with width 2 px, ideal height is 1.333333 px and output 2 × 1 px; the ratio changes.
Limitations
- Dimensions and output allow 1–1,000,000 px per side. A rounded result below 1 px or above the cap is rejected. Dimension calculations do not use converters’ 8192 px file limit.
- No cropping, file resizing, EXIF inspection or quality enhancement. Source ratio is exact; descriptive values use up to six decimals. An editor can round differently.
Sources
Engine version: 1.0.0 · Last reviewed: 2 October 2026
Frequently asked questions
Will the tool change my photo?
No. It calculates dimensions to use in an editor.
Is the ratio always identical?
Not after the other side is rounded. The width-to-height ratio change is shown.
Can I reverse orientation?
Enter actual width and height for your orientation. The tool does not read EXIF.
Are files and data uploaded?
No. Inputs and results are processed locally, without sending them to analytics or keeping form history in localStorage or sessionStorage. Hosting handles page loading itself. Reset does not delete earlier downloads, printouts or clipboard copies. Extensions can have their own access to content.