Skip to main content
ScreenRatioCalculator
Math & Design5 min read

How to Calculate Aspect Ratio Without Distortion (Formula & Examples)

Learn the step-by-step GCD aspect ratio formula, manual calculation examples, and distortion-free resizing rules.

Quick Answer

To calculate an aspect ratio without distortion, divide both the width and height by their Greatest Common Divisor (GCD). When resizing to a new width, calculate New Height = (New Width × Original Height) ÷ Original Width so the proportional multiplier stays identical.

The Greatest Common Divisor (GCD) Formula

Every rectangle has two dimensions: Width (W) and Height (H). To simplify those dimensions into a human-readable ratio like 16:9 or 4:5, find the largest whole number that divides both evenly—the Greatest Common Divisor (GCD).

1920 × 1080 pxWidth (W) × Height (H)1. Input Dimensions÷ GCD (120)16 : 91920÷120 : 1080÷1202. Simplified RatioScale Lock1280 × 720 pxZero Distortion3. Proportional Resize
Dividing width and height by their Greatest Common Divisor (GCD) yields the exact ratio for distortion-free scaling.

Worked Example: Scaling 1920×1080 Without Stretching

Suppose you have a Full HD banner at 1920 × 1080 px and need to resize it to 800 px wide for a blog post without stretching or squishing the graphic:

  1. Find the GCD: The GCD of 1920 and 1080 is 120.
  2. Simplify the ratio: 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9, giving 16:9.
  3. Solve for the new height: (800 × 9) ÷ 16 = 450 px. Your distortion-free size is 800 × 450 px.

Rather than doing GCD math by hand, you can type any width or height into our Aspect Ratio Calculator with Ratio Locked enabled, or drop your image directly into the local image detector.

3 Rules to Avoid Distortion in Web & Video Projects

  • Never hardcode both width and height in CSS unless you also apply object-fit: cover or use our 1-click aspect-ratio: W / H; snippet.
  • Lock proportions in design tools: Always enable the chain/lock icon in Figma, Photoshop, or Premiere Pro before typing a new dimension.
  • Crop before scaling: If your target container requires a different ratio (such as 16:9 into 4:5), crop the excess edges first instead of squeezing the image to fit.

Frequently Asked Questions

What is the easiest formula to calculate aspect ratio?

Divide both width and height by their Greatest Common Divisor (GCD): (Width ÷ GCD) : (Height ÷ GCD). If you only need to resize an image proportionally, use New Height = (New Width × Original Height) ÷ Original Width.

How do I prevent image distortion in CSS?

Set either width or height to auto (for example, width: 100%; height: auto;) or apply the CSS aspect-ratio property (aspect-ratio: 16 / 9; object-fit: cover;) so the browser preserves proportions automatically.

What if width and height do not divide cleanly into small integers?

Some custom crops (like 1200×627) have a GCD of 3, simplifying to 400:209. In those cases, express the ratio as a decimal (1.91:1) or check the nearest standard ratio badge in our calculator.

More Aspect Ratio Guides