Skip to content
K Knidox Search…
Tools · Design

Aspect Ratio Calculator

Simplify pixel dimensions to a ratio, or resize keeping the ratio.

Mode
px
px
Common ratios — tap to load
1920×1080 simplifies to
16:9

Decimal ratio 1.78:1 · gcd(1920, 1080) = 120.

An aspect ratio compares width to height. To simplify, divide both by their greatest common divisor: 1920 and 1080 share a gcd of 120, so 1920×1080 becomes 16:9 — a decimal ratio of 1.78:1. To resize, multiply the known side by the ratio of the other two terms.

What an aspect ratio is

An aspect ratio is the proportional relationship between the width and height of a rectangle, written as two numbers separated by a colon, such as 16:9 or 4:3. It describes shape, not size: a 1280×720 image and a 1920×1080 image are both 16:9, so they look identical when scaled. Because the ratio is proportional, any two resolutions with the same ratio crop and fit the same way.

Ratios matter wherever a rectangle has to fit a frame. Screens and video use 16:9 as the modern standard; ultrawide monitors use 21:9; classic photography uses 3:2; older TVs and many documents use 4:3; and social platforms favour 1:1 squares and 9:16 vertical video. Choosing the wrong ratio forces the software to letterbox (add bars) or crop, so matching the ratio to the destination keeps the whole image visible without distortion.

ratio = W : H ÷ gcd(W, H) · new side = known × (other term ÷ its term)

Divide width and height by their greatest common divisor to get the simplest whole-number ratio.

  1. 1
    Write down the width and height in pixels. For example a Full HD screen is 1920 pixels wide by 1080 pixels tall, written 1920×1080.
  2. 2
    Find the greatest common divisor (gcd). Use Euclid’s algorithm: gcd(1920, 1080) → 1920 mod 1080 = 840, gcd(1080, 840) → 240, gcd(840, 240) → 120, gcd(240, 120) → 0, so the gcd is 120.
  3. 3
    Divide both dimensions by the gcd. 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9, giving the simplified ratio 16:9.
  4. 4
    Express it as a decimal if you need one number. Divide width by height: 1920 ÷ 1080 = 1.78, written 1.78:1.
  5. 5
    To resize, keep the ratio fixed. For a 16:9 image with a known width of 1280, height = 1280 × (9 ÷ 16) = 720, so the full size is 1280×720.

Common aspect ratios and example resolutions

Decimal is width ÷ height. The same ratio covers many resolutions.

RatioDecimalExample resolutionsTypical use
16:91.78:11280×720 · 1920×1080 · 3840×2160HD/4K screens, video
4:31.33:1640×480 · 1024×768 · 1600×1200Older monitors, slides
21:92.33:12560×1080 · 3440×1440Ultrawide monitors
3:21.5:11080×720 · 3000×2000Digital photography
1:11.0:11080×1080 · 2048×2048Square social posts
9:160.56:11080×1920 · 720×1280Vertical phone video

Pitfalls to watch for

Non-integer results. Resizing can produce a fractional pixel, for example a 16:9 width of 1000 gives a height of 562.5. Screens use whole pixels, so round to 562 or 563 — the tiny change means the result is no longer a perfect 16:9, but it is visually indistinguishable.

Cropping vs stretching. Fitting a 4:3 photo into a 16:9 frame means either cropping the top and bottom or adding side bars. Never stretch to fill: changing the ratio distorts faces and circles. Match the source ratio to the target, or crop deliberately.

Portrait ratios. A ratio like 9:16 is just 16:9 turned on its side — its decimal is below 1 because the height is larger than the width. When you need clean whole pixels or want to check screen sharpness afterwards, pair this with a pixel density (PPI) calculator.

What is 16:9?
16:9 means the width is 16 units for every 9 units of height, a decimal ratio of about 1.78:1. It is the standard for HD and 4K screens and most online video — 1280×720, 1920×1080, and 3840×2160 are all 16:9.
What aspect ratio is 1920×1080?
It is 16:9. The greatest common divisor of 1920 and 1080 is 120, and 1920 ÷ 120 = 16 while 1080 ÷ 120 = 9, so the simplified ratio is 16:9 (1.78:1).
How do I resize an image keeping the ratio?
Multiply the known side by the ratio of the other two terms. For 16:9 with a width of 1280, height = 1280 × (9 ÷ 16) = 720. Switch the tool to Resize mode, enter the ratio and one dimension, and it solves the other.
How is the simplified ratio calculated?
The tool finds the greatest common divisor of the width and height using Euclid’s algorithm, then divides both by it. Dividing by the gcd guarantees the smallest possible whole-number ratio.
What is the difference between a ratio and a decimal ratio?
A ratio like 16:9 uses two whole numbers; a decimal ratio divides width by height to give one number, so 16:9 becomes 1.78:1. Both describe the same shape — the decimal is handy for quick comparisons.
Why did resizing give a fractional pixel?
Some ratios do not divide evenly into a given dimension — a 16:9 width of 1000 needs a height of 562.5. Screens use whole pixels, so round to the nearest pixel; the result is then very slightly off the exact ratio but looks identical.
Is 9:16 the same as 16:9?
No — it is 16:9 rotated to portrait. The two numbers are swapped, so the height is larger than the width and the decimal ratio (0.56:1) falls below 1. It is the standard shape for vertical phone video.