HandyBench

Aspect Ratio Calculator

Simplify ratios or lock one to solve dimensions.

×
16:9
Simplified ratio
1.778
Decimal
1280 × 720
1920 × 1080
2560 × 1440
3840 × 2160

How to use the Aspect Ratio Calculator

  1. 1 Enter a width and height to see the simplified ratio and decimal value.
  2. 2 Or lock a ratio (a preset like 16:9, or a custom one) and enter one dimension to solve the other.
  3. 3 Check the common-resolutions table for that ratio to pick a standard size.

How the ratio and the missing side are calculated

An aspect ratio is width divided by height, written in its smallest whole numbers. The calculator finds the greatest common divisor (GCD) of the two dimensions with the Euclidean algorithm and divides both by it. It also shows the decimal value, width / height, to three places. The pixel sizes must be whole numbers greater than 0; a blank, zero or fractional field shows a message instead of a result.

With "Lock a ratio and solve one dimension" ticked, you choose a preset (16:9, 4:3, 21:9, 1:1, 3:2 or 9:16) or type a custom ratio (both sides must be greater than 0), say which side you know, and the other side is solved and rounded to the nearest whole pixel:

  • known width: height = round(width × ratioH / ratioW)
  • known height: width = round(height × ratioW / ratioH)

Worked examples

1920 × 1080: the GCD is 120, so the ratio is 16:9 and the decimal is 1.778. A laptop panel of 1366 × 768 has a GCD of 2, which gives 683:384. That is a clumsy ratio, but it is the honest one: the screen is only approximately 16:9, because a true 16:9 panel 768 pixels tall would be 768 × 16 / 9 = 1365.33 pixels wide, and 1366 is the nearest whole number. To resize a 1000 px wide 16:9 image, the height is 1000 × 9 / 16 = 562.5, which rounds to 563.

Why a "21:9" screen does not simplify to 21:9

Ultrawide monitors are marketed as 21:9, but the pixel grids are close to it rather than exact. The 21:9 preset solves with the true 21:9 ratio (2.333), and its resolution list is labelled "ultrawide (~21:9)" because those panels are not exactly that shape. Entering the real resolutions shows it:

ResolutionSimplified ratioDecimal
2560 × 108064:272.370
3440 × 144043:182.389
3840 × 160012:52.400
1920 × 12008:5 (often written 16:10)1.600
1080 × 13504:50.800

The same effect hits 1366 × 768. If a layout has to match an exact ratio, calculate the second side from the ratio instead of assuming a "marketing" ratio fits your pixel grid.

Mistakes and limits

  • Rounding drift. Because the solved side is rounded, 1081 wide at 16:9 gives 608 (exactly 608.0625). Over a few hundred pixels this is invisible, but encoders such as H.264 also want even dimensions, so pick sizes that divide cleanly.
  • Odd custom ratios. A custom ratio of whole numbers is reduced with the same GCD step, so 32:18 is shown as simplifying to 16:9 and solves identically. Decimals are accepted in the ratio boxes and used as typed, but they are not reduced. A blank or zero side shows a message.
  • Portrait versus landscape. 9:16 is not the same as 16:9; swap width and height and the ratio flips. The common-resolutions list shows sizes for whichever preset is selected.
  • Ratio is not size. 1280 × 720 and 3840 × 2160 are both 16:9. The ratio tells you shape only, so pixel density and file size are separate questions.

To act on a result, scale a picture in the image resizer, or turn pixel sizes into relative CSS units with the PX to REM converter.

Examples

  • ▸ 1920×1080 simplifies to 16:9 (1.778).
  • ▸ Locking 16:9 and entering 1280 width solves height = 720.

Frequently asked questions

How is the aspect ratio simplified?

Width and height are divided by their greatest common divisor (GCD), the same method used to reduce a fraction — so 1920×1080 reduces to 16:9.

How do I find a missing dimension from a ratio?

Lock the ratio you want (like 4:3), enter the dimension you know, and the calculator multiplies by the ratio to solve the other — e.g. a 4:3 image that is 800px wide is 600px tall.

Why do my resized dimensions look slightly off?

Pixel dimensions must be whole numbers, so the solved value is rounded to the nearest pixel, which can shift the exact ratio by a fraction of a percent — this matches how real image and video tools round as well.

Why does a 21:9 ultrawide monitor not simplify to 21:9?

Marketing names are approximate, so the resolution list under the 21:9 preset is labelled ultrawide (~21:9). A 2560×1080 panel reduces to 64:27 (2.370), 3440×1440 to 43:18 (2.389) and 3840×1600 to 12:5 (2.4), while true 21:9 would be 2.333. Enter your actual resolution to see its exact ratio. Custom ratios you type, such as 32:18, are simplified with the same GCD method, and blank or zero values show a message.

What is the aspect ratio of 1920x1080, and of a phone screen?

1920×1080 is 16:9 (1.778). Portrait video such as phone stories uses 9:16, so 1080×1920 is the same shape turned on its side, and 1080×1350 reduces to 4:5.

Can I change an image to a new ratio without distorting it?

Only by cropping or padding. Resizing to a different ratio stretches the picture, so solve the matching size here and then crop or letterbox in an image editor.