Aspect Ratio Calculator
Enter two of width, height and ratio to get the third. Common presets included.
Runs in your browser. Nothing you open or type here is uploaded.
How to use
- Enter any two of the three values: width, height, or a ratio such as 16:9.
- Read the third value, which fills in automatically.
- Or click a preset — 1:1, 4:3, 16:9 or 21:9 — to lock the ratio, then type a width or a height.
Details
An aspect ratio describes the shape of a rectangle: 16:9 means 16 units wide for every 9 units high. Given any two of width, height and ratio, the third follows by proportion, and that is what this tool computes. The presets cover the ratios that come up most often: 1:1 for square images, 4:3 for older screens and photos, 16:9 for video, 21:9 for ultrawide frames. The calculation runs at full precision and is rounded only for display. It is the quick check before resizing an image, sizing a video embed, or cutting material to fit a frame.
- The tool needs two values. A ratio on its own, with no width or height, leaves nothing to scale.
- Because only the display is rounded, a result shown as a whole number can still sit a fraction off the exact proportion.
- For a video embed, enter the ratio and your container's width to get the height that avoids empty bars.
Common questions
Which two values do I need?
Any two of width, height, or ratio (like 16:9). Leave the third blank and it fills in automatically.
What are the presets?
Common ratios like 1:1, 4:3, 16:9, and 21:9 — click one to lock the ratio, then type a width or height.
Is the calculation exact?
Yes — everything is computed in your browser with full precision, then rounded only for display.