Aspect ratio calculator
Find the ratio behind any width and height, or work out the height that goes with a width.
About Aspect Ratio Calculator
An aspect ratio is the width divided by the height, written as two small whole numbers such as 16:9. This page does two jobs. Enter a size and it reduces it to its simplest ratio and tells you the closest common one. Or enter a ratio and one side and it gives you the other side, so a 1280 pixel wide video at 16:9 turns out to be 720 pixels tall. A small box shows the shape.
- Resizing an image without stretching it.
- Picking the right height for a video of a known width.
- Checking what ratio a screen or photo really has.
- Setting a CSS aspect-ratio or an embed frame to match.
How to use Aspect Ratio Calculator
Step 1
On the first tab, type a width and height to get the ratio.
Step 2
On the second tab, type a ratio, say which side you know, and enter it.
Step 3
Use the result, rounding to whole pixels if you need to.
Good to know
- Many real sizes do not reduce to a neat ratio. 1366 by 768 becomes 683:384, and the page tells you it is close to 16:9.
- When the other side is not a whole number, both the exact and the rounded values are shown. Rounding changes the ratio very slightly.
- Decimals are accepted, up to four places.
Common questions
How do I find the aspect ratio of an image?
Divide the width and the height by their greatest common divisor. For 1920 by 1080 that divisor is 120, which leaves 16 and 9.
What aspect ratio is a phone screen?
It varies by model. Many recent phones are close to 19.5:9 or 20:9 in landscape terms, so type your own screen size to see it.
Why is the result not a whole number?
Because the ratio does not divide your known side evenly. You can round it, but the shape will be off by a fraction of a pixel.