Aspect Ratio Calculator
Given width, height, or a W:H ratio, calculate the missing dimension and show the simplified ratio.
Aspect ratio formula and example
The ratio is width divided by height, reduced by their greatest common divisor:
1920 × 1080 greatest common divisor 120
1920 / 120 = 16
1080 / 120 = 9 → 16:9
To find a missing side, multiply or divide by the ratio:
height = width × 9 / 16 1280 × 9 / 16 = 720
width = height × 16 / 9 720 × 16 / 9 = 1280
A result that is not a whole number has to be rounded, and the rounded image is then slightly off the exact ratio: 1366 × 768 is sold as 16:9 but reduces to 683:384.
Common ratios and their sizes
16:9 1280×720, 1920×1080, 2560×1440, 3840×2160 video, monitors, television
4:3 1024×768, 1600×1200 older monitors, tablets
3:2 1080×720, 3000×2000 photographs, laptops
1:1 1080×1080 square social images
9:16 1080×1920 vertical video
21:9 2560×1080, 3440×1440 ultrawide monitors
1.91:1 1200×630 link preview images
- Embedding video. A container with the CSS property
aspect-ratio: 16 / 9keeps its shape at every width, which prevents the page from jumping when the video loads. - Resizing an image. Change one side and compute the other with the ratio; setting both sides freely distorts the picture.
- Cropping. To go from 4:3 to 16:9 at the same width, the new height is width × 9 / 16; the rest is cut off the top and bottom.
Related tools
Monitor Aspect Ratio Calculator automatically
Given width, height, or a W:H ratio, calculate the missing dimension and show the simplified ratio. NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.
Start monitoring free → See all monitoring productsFrequently Asked Questions
What is an aspect ratio?
An aspect ratio is the proportional relationship between a frame's width and height, expressed as W:H. Common ratios: 16:9 (widescreen High Definition (HD) video, most monitors), 4:3 (traditional TV, older monitors), 1:1 (square, Instagram posts), 9:16 (portrait video, smartphone screens). The ratio is simplified to its lowest terms — 1920×1080 simplifies to 16:9.
How do I calculate a proportional height from a width?
Enter the width and the target ratio. For a 16:9 container at 800px wide: height = 800 × (9/16) = 450px. This tool does this automatically — enter any two of width, height, or ratio and it calculates the third. Useful for maintaining consistent aspect ratios across responsive breakpoints in CSS or image cropping.
How do I maintain aspect ratio in CSS?
Modern Cascading Style Sheets (CSS): aspect-ratio: 16 / 9; on the element. For older browsers, the padding-top trick: padding-top: 56.25% (which is 9/16 = 56.25%) on a container with position: relative. For images: object-fit: cover with explicit width/height maintains ratio while filling the container.