Aspect Ratio Calculator

Find a missing dimension or reduce width and height to a ratio using common size presets.

On-device No sign-up Free to use

Calculate controls

Showing an example. Edit to see your own.

What do you want to work out?
?

The missing-side mode uses the ratio above and one known side. The ratio mode reduces a real width and height to its simplest whole-number ratio.

?

The first number in the ratio, such as the 16 in 16:9.

?

The second number in the ratio, such as the 9 in 16:9.

Which side do you know?
?

The measurement you already have. The answer uses the same unit, whatever that unit is.

?

Used by the ratio-from-a-size mode. Any unit works as long as both sides use the same one.

?

Used by the ratio-from-a-size mode. 1920 by 1080 reduces to 16:9.

?

Optional. One line per breakpoint as breakpoint,width in pixels, such as 375,320. Up to 20 lines, and each height is worked out from the same ratio in the decimal places above.

More options
Decimal places
?

Applies to answers that do not divide evenly. A whole answer prints without decimal places.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Find the height needed to keep a 1920-wide frame at 16:9.

At a 16:9 ratio, a width of 1920 gives a height of 1080 in the same unit.

https://usefreetools.net/aspect-ratio-calculator · 20 November 2026

Was this helpful?

How to use Aspect Ratio Calculator

  1. Choose The missing side to calculate a dimension, or The ratio from a size to reduce two measurements to a ratio.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

You add
What do you want to work out?: missing-side; Ratio width: 16; Ratio height: 9; Which side do you know?: width; Known side value: 1920; Width for the ratio (px): 1920; Height for the ratio (px): 1080; Decimal places: 2
You get
At a 16:9 ratio, a width of 1920 gives a height of 1080 in the same unit.

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.

Page updated · Project managed by Tony Hines · Report a problem with Aspect Ratio Calculator

Related reading

All guides