How to use Aspect Ratio Calculator
- Choose The missing side to calculate a dimension, or The ratio from a size to reduce two measurements to a ratio.
- For a missing side, enter the ratio width and height, select the side you know, and enter its measurement. A common ratio button can fill the ratio inputs.
- For a ratio from a size, enter both dimensions in the same unit. A common resolution button fills the width and height for you; you can edit them afterward.
- Choose 0, 2 or 4 decimal places for fractional dimensions. To plan layout sizes, optionally add one breakpoint,width pair per line, such as 375,320.
- Read the calculation and copy the dimensions or ratio. Check whole-pixel rounding in your image, video or layout editor before applying the size.
Example: Aspect Ratio Calculator
Find the height needed to keep a 1920-wide frame at 16:9.
Options
- Calculation mode
- The missing side uses a ratio and one measurement. The ratio from a size reduces two measured sides to their simplest whole-number ratio, including decimal measurements with up to six decimal places.
- Ratio and known side
- Ratio width is the first term and ratio height is the second. To find height, multiply the known width by ratio height and divide by ratio width. To find width, multiply the known height by ratio width and divide by ratio height.
- Decimal places
- Choose 0, 2 or 4 for fractional dimensions. Whole-number results print without a decimal point. Very small positive answers that would round to zero retain their digits.
- Breakpoint widths
- Each line supplies a layout label and an available width, separated by a comma. At 16:9, 375,320 gives a height of 180 and 1440,1280 gives 720. The label does not measure your browser or generate a responsive layout.
Supported inputs and limits
- Each ratio side accepts 0.000001 to 100000, and the known side or measured dimensions accept 0.000001 to 1000000 in a single unit.
- Zero and negative dimensions are refused.
- Ratio-from-size measurements can have up to six decimal places.
- Missing dimensions and breakpoint heights above 1000000000000 stop the run.
- Fractional dimensions round half up to the selected 0, 2 or 4 decimal places, except that a positive result that would round to zero keeps its digits.
More details
The optional breakpoint list accepts up to 20 nonempty lines and 2,048 characters, with a positive breakpoint and width on each line.
It does not check whether a breakpoint fits your actual layout.
The page calculates numbers; it does not open, crop or resize image or video files.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Keep width and height in the same order
A 16:9 frame has 16 units of width for every 9 units of height. A width of 1920 therefore gives 1920 × 9 ÷ 16 = 1080. Starting with a height of 1080 reverses the calculation: 1080 × 16 ÷ 9 = 1920. Switching the ratio to 9:16 makes a portrait shape rather than a landscape one.
Choose dimensions your editor can use
A calculated size can include a fraction of a pixel. Use whole pixels for an image or video export, then check the resulting pair against the intended ratio. Some encoders impose further dimension requirements. This calculator does not check a file format or encoder. For a physical measurement, keep both sides in the same unit and choose enough decimal places for the job.
Questions about Aspect Ratio Calculator
What does a 16:9 ratio mean?
The first number is the width and the second is the height, both measured in the same unit. A 16:9 frame is 16 units wide for every 9 units high, so 1920 wide gives 1080 high.
Can the ratio sides be decimals?
Yes. A ratio of 1.5:1 works the same way as 3:2, because only the relationship between the two numbers matters. Decimals are read exactly, not rounded first.
Why does my answer have decimals?
Not every ratio and size divide evenly. Set Decimal places to 4 for a closer figure, or keep 2 for a practical measurement.
Does this change my image?
No. The calculator works with the numbers you type. It never opens, resizes or saves a picture, and nothing leaves your browser.