# Aspect Ratio Calculator

## Calculate the aspect ratio to match any custom width and height combination.

## Understanding ratio 5:4

A ratio of 5:4, with the name of SXGA is often pronounced as "5 to 4" or "5 by 4," represents a proportional relationship where for every 5 units of width, there are 4 corresponding units of height. It serves as a clear and concise way to express the relative size or magnitude of two quantities in a 5-to-4 relationship. SXGA stands for "Super eXtended Graphics Array." It is a display resolution standard in the field of computer monitors and screens. SXGA offers a resolution of 1280x1024 pixels, with an aspect ratio of 5:4. The "super" in SXGA indicates that it provides higher resolution and clarity compared to the previous standard, XGA (1024x768 pixels).

## How to use?

### How to calculate a Custom Size

- Insert the first value (width or height).
- Select a preset, or insert the other value.

### How to calculate a SXGA aspect ratio

- Select a preset from the list, for example 5:3 aspect ratio.
- Insert one of the values: width or height.

## About Aspect Ratio Calculator

The aspect ratio of an image defines the proportion between its width and height. It is always expressed as two numbers separated by a colon `x:y`

.

For example, images with an aspect ratio of 4:3 will always have a width of 4 units and a height of 9 units of the same length. This is easy to understand when the numbers are simple: an image of 1600x900 pixels has an aspect ratio of 16:9, or an image of 3000x1500 has an aspect ratio of 2:1.

But it is more complicated when the numbers do not round to anything known, for example with Social Media sizes used by Facebook, Instagram, or Twitter, an image of 1200x628px needs to have an aspect ratio of 1.91:1.

We use a complicated formula that rounds in special cases to give a human-understandable fraction to achieve results. For example, when the left unit of the formula results in 8 units and the right unit results in 5 units, instead of using the mathematical value of 8:5 is standard to convert it to 16:10.