Aspect Ratio Calculator
A 1920x1080 frame reduces to 16:9 because 1920 and 1080 share a greatest common divisor of 120. This aspect ratio calculator brings any width and height down to lowest terms, names the standard format when the reduced pair matches one, then fills in the missing side of a resize. Sizes with no standard name, such as 1280x1024 at 5:4, come back in the form they reduce to.
Aspect ratio
16:9
Resized to the same ratio
1280 × 720
At 1280 wide, the height must be 720 to keep the ratio.
Examples
How to use
- 1
Enter the source width and height. The defaults, 1920 and 1080, reduce to 16:9 as soon as the fields change.
- 2
Pick the side to solve for. Leave it on height to enter a new width; switch to width to enter a new height instead.
- 3
Enter the target dimension. A 16:9 source at a target width of 1280 returns a height of 720.
- 4
Read the rounded pixel value when the result falls between two integers. A 1366x768 source at 1000 pixels wide gives 562.2255, which rounds to 562.
How do you calculate aspect ratio from a width and a height?
Take a 1920x1080 frame: the largest number that divides both sides is 120, so the pair comes down to 16:9. Those two small integers are the aspect ratio. The decimal beside them, 1.7778, is the width divided by the height. The same reduction runs on every pair of dimensions, so a 3840x2160 frame lands on 16:9 too.
A 1280x1024 monitor reduces to 5:4, a real ratio that no manufacturer prints on a box. The calculator returns 5:4 and leaves the format name blank rather than nudging the answer toward the nearest famous number. By hand, that reduction is the same move as taking any ratio down to lowest terms. The number doing the work is the greatest common factor of the two sides, 256 in the case of 1280x1024. Halved to 640 pixels wide, that monitor comes back 512 high, still 5:4.
Which aspect ratios count as standard?
Six named formats cover most screens and cameras in circulation. The calculator stores each one in reduced form before it compares anything, so a size matches on its arithmetic rather than on the name printed in a spec sheet.
| Name | Reduced form | Decimal | Where it shows up |
|---|---|---|---|
| 16:9 | 16:9 | 1.7778 | 1920x1080 video, 3840x2160 panels |
| 4:3 | 4:3 | 1.3333 | 1024x768, older monitors and slides |
| 21:9 | 7:3 | 2.3333 | ultrawide monitors, sold under this name |
| 1:1 | 1:1 | 1 | 1080x1080 square social posts |
| 3:2 | 3:2 | 1.5 | 3000x2000 camera frames, prints |
| 9:16 | 9:16 | 0.5625 | 1080x1920 vertical video |
The decimal column sorts out any size that sits between two rows. Anything above 1.7778 is wider than 16:9 while anything below 1.3333 is squarer than 4:3. A decimal under 1 means the frame is taller than it is wide, which is why the tool calls 1080x1920 portrait.
Why does a 21:9 monitor come back as 64:27?
21:9 is a marketing label rather than a reduced ratio, since 21 and 9 both divide by 3. In lowest terms the format is 7:3, which is the form the calculator matches against. A 2100x900 frame reduces to exactly 7:3, so the name 21:9 comes back with it.
Real ultrawide screens miss that mark. A 2560x1080 screen reduces to 64:27 and a 3440x1440 screen to 43:18. Those two sit 1.6% and 2.4% away from a true 7:3, inside a 2.5% tolerance, so the calculator tags each one as close to 21:9 in a separate field while the printed ratio stays 64:27 or 43:18.
That tolerance stays narrow on purpose. The gap between 5:4 and 4:3 measures 6.25%, wide enough to keep a 1280x1024 monitor out of the 4:3 row. The approximate name goes in its own field and the reduced form stays untouched.
How do you resize an image without distorting it?
Multiply the new width by the original height then divide by the original width. A 1920x1080 image asked for a width of 1280 comes back at a height of 720. Platforms fix one side of the frame and leave the other open, which is where a resize starts to stretch. The same step runs the other way, so a 1080x1920 portrait at a target height of 1280 returns a width of 720.
Those same fields cover the everyday job of an image aspect ratio calculator, resizing a thumbnail or a banner crop without stretching faces sideways. An ultrawide capture works the same, with 2560x1080 brought down to 1920 wide landing on a height of 810.
A 1366x768 laptop screen reduces to 683:384, close enough for the tool to flag it near 16:9 without matching it. Scaled to 1000 pixels wide, that source needs a height of 1000 × 768 ÷ 1366 = 562.2255, which the tool rounds to 562. The fit comes back marked inexact. Rounding shifts the ratio by less than a tenth of a percent, invisible on screen yet worth knowing when a layout demands exact pixel counts.
Parameters
Every field of this tool can be prefilled from the URL. Use these query parameters:
| Parameter | Type | Default |
|---|---|---|
| width | number | 1920 |
| height | number | 1080 |
| solveFor | height | width | height |
| targetWidth | number | 1280 |
| targetHeight | number | 720 |
Example : https://www.veltotools.com/math/aspect-ratio-calculator?width=1920&height=1080&solveFor=height&targetWidth=1280
API
The same tool is available as a free JSON API, with the same parameters as above. No key, no sign-up.
Frequently asked questions
Updated Aug 11, 2026