Aspect ratio calculator

Work out the ratio of an image, screen or video, and resize it without stretching.

Find the ratio
–
Resize keeping the ratio

This free aspect ratio calculator works in your browser. All inputs and calculations run locally on your device without server uploads; details on browser processing and storage are set out in the privacy policy.

Common aspect ratios

RatioTypical sizesUsed for
16:91920×1080, 3840×2160TVs, YouTube, laptops
9:161080×1920Reels, Shorts, Stories, TikTok
4:51080×1350Instagram portrait posts
1:11080×1080Square posts, profile pictures
4:31024×768Older screens, iPad, many cameras
3:26000×4000DSLR photos, prints
21:92560×1080Ultrawide monitors, cinema

Resizing without stretching

Enter the ratio and either the new width or the new height; the other is worked out for you. To make a video fit a different ratio without cropping, use the Instagram video resizer, which adds a blurred background.

Worked example: Scaling a 4K 16:9 frame down for a 1,080 px web column

Suppose you have a 4K UHD video still measuring 3,840 × 2,160 pixels and need to find its simplified aspect ratio and the exact height required when resized to a width of 1,200 pixels:

  • Step 1 — Greatest common divisor (GCD): Using Euclid's algorithm on `3,840` and `2,160`, `gcd(3840, 2160) = 240`.
  • Step 2 — Simplified ratio: Divide both dimensions by 240: `3840 / 240 = 16` and `2160 / 240 = 9`, giving an exact 16:9 ratio (`1.7778:1`).
  • Step 3 — Proportional height at 1,200 px width: Multiply the new width by `9 / 16`: `1200 × (2160 / 3840) = 675 pixels`. Setting CSS or image dimensions to 1,200 × 675 prevents any horizontal or vertical stretching.

Limits and what this tool cannot do

  • Assumes square pixels (1:1 Pixel Aspect Ratio): Calculations assume modern square digital pixels. Anamorphic cinema formats (such as DV PAL 720 × 576 or 2× anamorphic lenses) have non-square pixel aspect ratios where display aspect ratio differs from storage pixel counts.
  • Odd pixel rounding in video encoders: If you scale a 16:9 frame to a width of 1,000 px, the exact mathematical height is `562.5 px`. Because H.264 and VP9 encoders using YUV 4:2:0 chroma subsampling require even pixel dimensions (divisible by 2), you must use `1,000 × 562` or `1,024 × 576`.
  • Does not resize image files directly: This calculator computes pixel dimensions and CSS ratios; to resize an actual photo file, use the Resize Image tool.

Questions

What ratio is 1920×1080?

16:9.

What ratio is 1080×1350?

4:5, Instagram’s tallest feed post shape.

Why is my ratio not a round number?

Some sizes, like 1366×768, are close to 16:9 but not exact. The tool shows the exact ratio and the nearest common one.

Why does 1920 × 1080 reduce to 16:9 while 1366 × 768 reduces to 683:384?

1,920 and 1,080 share a greatest common divisor of 120 (`1920/120 = 16`, `1080/120 = 9`). Common laptop screens at 1,366 × 768 are only an approximation of 16:9 (`1.7786:1` vs `1.7778:1`) because 1,366 is only divisible by 2.

What dimensions around 1080p are cleanly divisible by 16 for video encoding?

Standard 1,920 × 1,080 has a width divisible by 16 (`1920 = 16 × 120`), while its height is `1080 = 16 × 67.5`. For strict 16×16 macroblock alignment without padding, 1,280 × 720 and 2,560 × 1,440 divide evenly by 16 on both axes.

How do I write the calculated aspect ratio in modern CSS?

Use the native CSS property `aspect-ratio: 16 / 9;` on your image or video container so the browser reserves the exact vertical space before the media loads.

Last reviewed .

Related converters and guides