📐 Aspect Ratio Calculator
By ToolNimba Web Dev Team · Updated 2026-06-19
Enter the original size, then a new width OR a new height. Leave the other new box empty and it is computed to keep the same proportions.
An aspect ratio calculator keeps your images, videos and layout boxes in proportion when you scale them. Enter the original width and height, then a single new dimension, and it works out the matching width or height so nothing ends up stretched or squashed. It also reduces any pixel size to its simplest ratio, so you can see at a glance that 1920x1080 is just 16:9. No installs, no uploads, everything runs in your browser.
What is the Aspect Ratio Calculator?
The aspect ratio of a rectangle is the relationship between its width and its height, written as two numbers separated by a colon, for example 16:9 or 4:3. It does not describe how big something is, only its shape. A 16:9 frame has the same proportions whether it is 1280x720, 1920x1080 or 3840x2160, because each of those widths divided by its height gives the same value (about 1.778). That constant ratio is what your eye reads as the shape of a screen, photo or video.
To resize while keeping the ratio you scale both sides by the same factor. If the original is W x H and you choose a new width w, the matching height is h = w x H / W. Choose a new height instead and the width is w = h x W / H. Because both dimensions are multiplied by the same number, the proportions are preserved and the picture is not distorted. This is exactly what the "lock aspect ratio" or chain-link icon does in image editors and CSS layouts.
To express a size as a clean ratio you divide both numbers by their greatest common divisor (GCD), the largest whole number that divides both exactly. For 1920 and 1080 the GCD is 120, so 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9, giving 16:9. Reducing by the GCD always lands on the smallest whole-number pair, which is why standard ratios like 16:9, 4:3, 3:2 and 1:1 are so compact. The decimal form (width ÷ height) is useful too: 1.778 is 16:9, 1.333 is 4:3 and 1.0 is a perfect square.
When to use it
- Resizing a photo or banner to a new width while letting the height follow so it is not stretched.
- Working out the height of a responsive video embed (such as 16:9) for a given container width.
- Checking whether an image is 16:9, 4:3, 3:2 or square before cropping or uploading it.
- Reducing an odd pixel size like 2560x1600 to its simplest ratio (16:10) to match a device.
- Planning thumbnail, hero and social-card dimensions that all share one consistent ratio.
How to use the Aspect Ratio Calculator
- Pick "Resize keeping ratio" to scale a size, or "Show simplified ratio" to reduce one.
- In resize mode, enter the original width and height in pixels.
- Type a new width OR a new height and leave the other box empty.
- Read the computed missing dimension and the ratio it preserves.
- In simplify mode, enter any width and height to see the lowest-term ratio and its decimal value.
Formula & method
Worked examples
You have a 1920x1080 image and want it 1280 pixels wide while keeping the ratio.
- Original width W = 1920, original height H = 1080.
- New width w = 1280, solve for the new height h.
- h = w x H ÷ W = 1280 x 1080 ÷ 1920
- h = 1,382,400 ÷ 1920 = 720
Result: New size 1280 x 720 px, which is still 16:9.
Reduce a 2560x1600 laptop resolution to its simplest aspect ratio.
- Find gcd(2560, 1600). 2560 = 1600 x 1 + 960, 1600 = 960 x 1 + 640, 960 = 640 x 1 + 320, 640 = 320 x 2 + 0, so the GCD is 320.
- 2560 ÷ 320 = 8
- 1600 ÷ 320 = 5
- Decimal check: 2560 ÷ 1600 = 1.6
Result: The ratio is 8 : 5 (also written 16:10), a decimal of 1.6 : 1.
Common aspect ratios and where they are used
| Ratio | Decimal (w ÷ h) | Example size | Typical use |
|---|---|---|---|
| 16:9 | 1.778 | 1920 x 1080 | HD video, monitors, YouTube |
| 4:3 | 1.333 | 1024 x 768 | Older screens, some cameras |
| 3:2 | 1.5 | 1080 x 720 | DSLR photos, prints |
| 1:1 | 1.0 | 1080 x 1080 | Square social posts, avatars |
| 21:9 | 2.333 | 2560 x 1080 | Ultrawide monitors, cinema |
| 9:16 | 0.5625 | 1080 x 1920 | Phone video, Reels, Stories |
Common mistakes to avoid
- Changing only one dimension by hand. Setting a new width but typing a rounded height (say 1280x700 instead of 1280x720) breaks the ratio and stretches the image. Let the calculator derive the matching side so both scale by the same factor.
- Confusing ratio with resolution. A ratio like 16:9 describes shape, not size. 1280x720 and 3840x2160 share the same 16:9 ratio but have very different pixel counts and sharpness, so check both ratio and resolution.
- Rounding before reducing. Rounding pixel values first can give a slightly wrong ratio. Reduce the exact original numbers by their GCD, then round only the final displayed size if you need whole pixels.
- Ignoring upscaling limits. The calculator will happily compute a larger size, but enlarging a small image adds no real detail. Scaling 640x360 up to 1920x1080 keeps the 16:9 ratio yet looks soft because the extra pixels are interpolated.
Glossary
- Aspect ratio
- The proportional relationship between width and height, written as width:height, such as 16:9.
- Resolution
- The actual pixel dimensions of an image or screen, for example 1920 x 1080.
- GCD
- Greatest common divisor, the largest whole number that divides two numbers exactly, used to reduce a ratio.
- Scale factor
- The single number you multiply both width and height by to resize without distortion.
- Portrait and landscape
- Landscape is wider than tall (ratio above 1), portrait is taller than wide (ratio below 1).
Frequently asked questions
How do I keep the aspect ratio when resizing an image?
Multiply both the width and the height by the same factor. In practice, fix one new dimension and let the other follow: new height = new width x original height ÷ original width, or new width = new height x original width ÷ original height. This calculator does that for you when you fill in one new box.
What is the aspect ratio of 1920x1080?
It is 16:9. The greatest common divisor of 1920 and 1080 is 120, so 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9. As a decimal that is about 1.778 to 1, the standard widescreen ratio for HD video and most monitors.
How do I calculate height from width for a 16:9 video?
Multiply the width by 9 and divide by 16. For a 1280 pixel wide container the height is 1280 x 9 ÷ 16 = 720. Use the resize mode here with an original size of 16 x 9 (or any 16:9 size) and enter your new width.
What does 16:9 mean exactly?
It means that for every 16 units of width there are 9 units of height. It describes the shape of the frame, not its size, so 1280x720, 1920x1080 and 3840x2160 are all 16:9 even though their resolutions differ.
Can I use decimal or non-whole dimensions?
Yes. The calculator accepts decimal widths and heights and will scale away the decimals before reducing to a whole-number ratio. The resize result is rounded to two decimal places so you can round to whole pixels yourself if needed.
Why is the simplified ratio not a familiar name like 16:9?
Not every size reduces to a well-known label. For example 1366x768 reduces to 683:384, which is close to but not exactly 16:9. The decimal value shown next to it tells you how near a standard ratio it really is.