LLION/ PDF, print & document engineering

Aspect ratio calculator

Find the aspect ratio of any width and height, calculate a missing dimension from a ratio, or get the largest crop and padded canvas for a target ratio.

Runs entirely in your browser

An aspect ratio is width divided by height, written as two numbers with a colon. This calculator reduces any size to its simplest ratio and names the nearest standard one, fills in a missing dimension from a ratio, and works out how to crop or pad an image to a different ratio.

What do you want to find?
Size
Any unit: pixels, millimetres or inches, as long as both use the same one.

Ratio
Decimal
Nearest common ratio
Orientation

The formulas#

Reduce
divide width and height by their greatest common divisor: 1920 and 1080 share 120, so 1920 × 1080 is 16:9
Decimal
ratio = width ÷ height: 16:9 is 1.7778, 3:2 is 1.5, A4 is 0.7071 (or 1:1.4142)
Missing dimension
height = width ÷ ratio, or width = height × ratio
Crop to a ratio
if the source is wider than the target, keep the height and set width = height × target; otherwise keep the width and set height = width ÷ target
Pad to a ratio
the same rule with the comparisons reversed: the canvas grows instead of the image shrinking

Worked examples. 1920 × 1080 reduces to 16:9. 3000 × 2000 reduces to 3:2, the ratio of a 35 mm frame, and at 16:9 the largest crop is 3000 × 1687.5 px, losing 15.6 percent of the area. An A4 sheet, 210 × 297 mm, reduces to 70:99, which is 1:1.4142; the standard calls it 1:√2 because every ISO size keeps that ratio when folded in half. To fill in a missing side, use the decimal ratio: at 3:2, which is 1.5, a 576 px height needs a width of 576 × 1.5 = 864 px, and a 1080 px width at 4:5, which is 0.8, needs a height of 1080 ÷ 0.8 = 1350 px.

Nearest standard ratio#

Few real sizes are an exact standard ratio, so the calculator reports the closest one and the percentage difference, in either orientation. A difference under about half a percent is a rounding artefact; a 4000 × 2250 photo is 16:9 to within 0.01 percent and should be treated as 16:9. Larger differences mean a visible letterbox or a crop will be needed.

The list of standard ratios covers screens (4:3, 16:10, 16:9, 64:27 for "21:9" ultrawides), photography (3:2, 5:4, 1:1), cinema (1.85:1 and 2.39:1), paper (1:√2 for ISO sizes and 8.5:11 for US Letter) and the golden ratio. The "21:9" marketing name is not the real ratio of those monitors: 2560 × 1080 is exactly 64:27, and 3440 × 1440 is 43:18, which is nearer to the 2.39:1 cinema ratio. The calculator reports whichever is closest.

Rounding and orientation#

Decimal inputs are allowed. A size entered as 8.5 × 11 is scaled to integers before reducing, which gives 17:22. Results that must be pixels are shown rounded to whole pixels alongside the exact value; a 16:9 width of 1000 px gives a height of 562.5, which a video encoder will round to 562 or require to be 564 because many codecs want even dimensions.

Orientation is reported with the ratio: landscape when the ratio is above 1, portrait when below, square at exactly 1. Swapping width and height inverts the ratio, so 9:16 is the portrait form of 16:9; the nearest-ratio match considers both forms.

Pixel aspect ratio#

Everything above assumes square pixels, which is true for every modern display and camera. Standard-definition video is the exception: PAL and NTSC DV frames of 720 × 576 and 720 × 480 use non-square pixels, so the picture ratio (4:3 or 16:9) differs from the ratio of the pixel counts. If you work with those formats, use the display aspect ratio your editing software reports rather than the raw frame size. For print, a related trap is the resolution tag: pixels are always square, but an image's physical size depends on its resolution, which is what the DPI calculator handles.

For the dimensions behind the paper ratios, see the paper sizes reference; to turn a named sheet into pixels at a resolution, use the paper size to pixels calculator.

Sources

LLION Editorial · Updated