Aspect Ratio Calculator - Resize Images & Video Without Distortion

Resize photos, video exports, or containers cleanly without stretching. Enter pixel dimensions to simplify the ratio via greatest common divisor, lock to presets like 16:9 or 1:1, and watch the proportional preview box resize.

Aspect Ratio Calculator

How to use the Aspect Ratio Calculator

  1. 1Click one of the six preset buttons (16:9, 4:3, 1:1, 9:16, 21:9, or 3:2) or enter custom integers into Ratio Width and Ratio Height.
  2. 2Type a new Pixel Width to solve proportional Pixel Height automatically, or edit Pixel Height to solve proportional Pixel Width.
  3. 3Check the scaled rectangle preview box on the right and read the Simplified Ratio from Pixels line underneath.
  4. 4Verify the equations inside the Formula Box and click Copy to save the dimensions and ratio.

What the Aspect Ratio Calculator does

The calculator keeps image and video proportions locked using exact integer arithmetic inside your browser:

  • Solves proportional height as Math.round(Pixel Width × Ratio Height / Ratio Width) when width changes, and solves Pixel Width = Math.round(Pixel Height × Ratio Width / Ratio Height) when height changes.
  • Reduces your current Pixel Width and Pixel Height using Euclidean Greatest Common Divisor: (W / GCD(W,H)) : (H / GCD(W,H)).
  • Provides six quick presets (16:9 Widescreen, 4:3 Classic, 1:1 Square, 9:16 Vertical, 21:9 Ultrawide, and 3:2 Photo) alongside a proportional preview box.
  • Rejects zero or negative inputs with a clear error banner and includes a one-click Copy button.

Example

Sample resize under 16:9 preset
Preset: 16:9 | Pixel Width changed from 1920 to 1280
Calculated dimensions and simplified ratio
Dimensions: 1280 × 720 px · Simplified Ratio from Pixels: 16:9

Evaluating Math.round(1280 × 9 / 16) gives 720 px, and Euclidean GCD(1280, 720) = 80 reduces 1280:720 back down to 16:9 cleanly.

Frequently asked questions

What does aspect ratio mean?

Aspect ratio is the proportional relationship between width and height written as two numbers separated by a colon, such as 16:9 or 4:3, independent of total pixel resolution.

How do I resize an image or video without stretching or squishing it?

Keep the ratio constant while changing one dimension using Height = Math.round(Width × RatioHeight / RatioWidth) or Width = Math.round(Height × RatioWidth / RatioHeight). Editing either pixel box here recalculates the other side automatically.

What are the most common aspect ratios for video and web layouts?

16:9 is standard for widescreen HD and 4K displays, 9:16 is standard for vertical full-screen displays, 1:1 forms exact squares, 4:3 and 3:2 are classic photography formats, and 21:9 covers ultrawide cinema displays.

Why does changing Ratio Width keep Pixel Width fixed?

When you pick a preset or alter Ratio Width/Height, the calculator preserves your chosen horizontal Pixel Width and updates Pixel Height to match the new ratio cleanly.

Related tools

View All Tools