Keep Aspect Ratio Calculator: How It Works
- Aspect ratio
- Result
- Original width
- 1920 px
- You entered
- Original height
- 1080 px
- You entered
This calculator works out the missing dimension of an image, video, or screen when you change one side, keeping the aspect ratio intact. You enter the original width and height, plus the new width or height, and you get the corresponding other dimension in the same unit. The result is rounded to two decimal places, and the calculator also shows the simplified aspect ratio (like 16:9) for reference.
Formula
The core formula is a simple proportion: w1 / h1 = w2 / h2. Solving for the unknown gives:
h2 = w2 × h1 / w1
Where:
- w1 – original width (any unit: pixels, cm, inches)
- h1 – original height (same unit as w1)
- w2 – new width (same unit as w1)
- h2 – new height (calculated, same unit)
The same logic works if you know the new height instead – just swap w2 and h2 in the formula.
Worked Example
Using the defaults from the calculator: original width 1920 px, original height 1080 px, new width 1280 px.
- Write the proportion: 1920 / 1080 = 1280 / h2
- Cross-multiply: 1920 × h2 = 1280 × 1080
- Compute the right side: 1280 × 1080 = 1,382,400
- Divide by 1920: h2 = 1,382,400 / 1920 = 720
So the new height is 720 px, giving a 1280×720 image – exactly what the calculator shows.
Why Aspect Ratio Matters
Aspect ratio is the proportional relationship between width and height. It’s written as two numbers separated by a colon, like 16:9 or 4:3. The ratio itself has no units – it just describes the shape. Common ratios include:
- 16:9 – widescreen TVs, most YouTube videos, modern monitors
- 4:3 – older TVs, iPad (before Pro models), many presentations
- 1:1 – square photos for Instagram profiles
- 21:9 – ultrawide monitors and cinematic films
- 3:2 – many DSLR photos (e.g., 6000×4000)
When you change one dimension without keeping the ratio, the image stretches, distorts, or gets cropped. The calculator prevents that by giving you the exact matching dimension.
How to Use the Calculator Correctly
Enter the original width and height in any unit – they just need to match each other. Then enter either the new width or the new height. The calculator fills in the other. For example:
- You have a 3000×2000 photo and want it 1500 px wide → new height = 1500 × 2000 / 3000 = 1000 px
- You have a 1920×1080 video and want it 480 px tall → new width = 480 × 1920 / 1080 = 853.33 px
If you enter both a new width and a new height, the calculator only uses the width. To check if two dimensions already match a ratio, divide width by height and compare – if both pairs give the same decimal, they’re proportional.
Common Mistakes and Misconceptions
A frequent error is mixing units – entering width in pixels and height in inches. That breaks the proportion. Always use the same unit for both.
Another mistake is rounding too early. If you round the intermediate ratio (like 1920/1080 = 1.78) and then multiply, you get a slightly off result. The calculator keeps full precision until the final step.
People also confuse aspect ratio with resolution. Aspect ratio is a shape; resolution is the actual pixel count. A 1280×720 and a 1920×1080 screen both have a 16:9 ratio, but different resolutions.
One misconception: “keeping aspect ratio� doesn’t mean the image stays the same size – it means the shape stays the same. When you resize, the area changes, but the proportional relationship doesn’t.
When to Use This Calculator
You’ll need it in many everyday situations:
- Image resizing – preparing photos for a website, social media, or print without distortion
- Video editing – exporting at a specific width while keeping the original frame shape
- Responsive design – calculating height for a fluid-width element that must keep its ratio
- Printing – scaling a digital image to fit a paper size without cropping
- Projector or screen setup – finding the right throw distance or screen dimensions for a given ratio
For example, if you’re designing a banner that must be 1200 px wide and you want it to match a 4:3 ratio, the height is 1200 × 3 / 4 = 900 px.
Limitations of the Formula
The formula is purely mathematical – it assumes you want to scale proportionally. It doesn’t account for:
- Cropping – if you need to fit a fixed frame that doesn’t match the ratio, you’ll have to crop or add padding
- Pixel density – the same ratio at different resolutions has different file sizes and sharpness
- Interpolation – when resizing images, the software’s algorithm affects quality, but the ratio math stays the same
Also, the calculator rounds to two decimal places. For most purposes that’s fine, but for print or precise layouts you may want more precision – you can get it by doing the division yourself with a calculator that shows more digits.
Frequently Asked Questions
What does “keep aspect ratio� mean?
It means when you resize an image, the width and height change by the same factor, so the shape stays identical. For example, halving the width also halves the height. If you don’t keep the ratio, the image stretches or squashes.
How do I calculate aspect ratio from width and height?
Divide width by height and simplify the fraction. For 1920×1080, 1920/1080 = 16/9, so the ratio is 16:9. You can also use the calculator’s second output, which shows the simplified decimal (1.78 for 16:9).
Can I use this for video as well as images?
Yes, the math is the same for any rectangular visual medium – video frames, images, screens, or even printed materials. As long as you know the original dimensions and one new dimension, you can find the missing one.
What if I only know the aspect ratio and one dimension?
You can still use the calculator: set the original width and height to any pair that matches the ratio (e.g., for 16:9, use 16 and 9). Then enter the new width or height. The result will be proportional.
Does the unit matter – pixels, inches, centimeters?
No, as long as you use the same unit for all inputs. The ratio is unitless, so the output will be in the same unit you entered. Mixing units (like width in pixels and height in inches) will give a wrong result.
Why is my calculated height a decimal?
Because the proportion doesn’t always divide evenly. For example, 1920×1080 to width 1000 gives height 562.5. That’s perfectly fine – you can round to the nearest whole pixel when resizing, and the slight difference is usually invisible.