How to Calculate Aspect Ratios for Images and Video

Learn 16:9, 4:3, and 1:1 ratios, proportional scaling, and GCD-reduced forms so you can size images and video without distortion.

By Generatr Team

An aspect ratio compares width to height as a simplified pair like 16:9 or 1:1. You calculate it so crops, exports, and CSS frames stay consistent — scale one side and the other follows without stretching faces or UI.

This guide covers common ratios (16:9, 4:3, 1:1), proportional scaling, GCD reduction, and practical workflows for photo and video. Run the math instantly with the free aspect ratio calculator — detect ratio from dimensions, fill missing sides, and use presets.

You will also see how pixel counts, letterboxing, and “close enough” social sizes fit the same core idea.

Free tool

Use the Aspect Ratio Calculator now

Open the interactive aspect ratio calculator in your browser — free, instant, no signup.

Open Aspect Ratio Calculator

What Is an Aspect Ratio?

Aspect ratio is the relationship between width and height. If a frame is 1920 pixels wide and 1080 tall, the ratio is 1920:1080, which reduces to 16:9. The colon form is unit-free: it works for pixels, inches, or millimeters as long as both sides use the same unit.

  • Wider than tall — landscape (16:9, 21:9)
  • Taller than wide — portrait (9:16 stories)
  • Equal sides — square (1:1)

Ratio does not fix absolute size. A 16:9 image can be 640×360 or 3840×2160; only the shape matches. Absolute size is resolution; shape is aspect ratio.

Detect or convert with the aspect ratio calculator. When you need unit changes (inches to cm for print), use a unit converter guide after you lock the ratio.

When Should You Use 16:9, 4:3, or 1:1?

Pick the ratio that matches the destination, not only the camera’s default.

16:9

The modern default for HD and 4K video, YouTube, many monitors, and TV. Common sizes: 1280×720, 1920×1080, 3840×2160. If you deliver widescreen video, start here unless the platform says otherwise.

4:3

Classic monitors, older TV, some presentations, and a “taller landscape” feel than 16:9. Common references: 1024×768, 1600×1200. Cropping 16:9 to 4:3 removes side content; scaling without crop letterboxes.

1:1

Square frames for profile-style posts, album art, and many product thumbnails. Easy to reason about: width equals height. Social apps may still center-crop from other ratios, so export square when the feed is square-first.

  • 21:9 / ultrawide — cinematic and ultrawide monitors
  • 9:16 — vertical video and stories
  • 3:2 — many still photo sensors

Presets in the aspect ratio calculator speed up the common cases so you are not reducing fractions by hand every time.

How Does GCD Simplify an Aspect Ratio?

To reduce width:height, divide both by their greatest common divisor (GCD). For 1920 and 1080, GCD is 120, and 1920÷120 : 1080÷120 = 16:9.

  1. Take integer width W and height H.
  2. Compute g = gcd(W, H).
  3. Report (W/g):(H/g).

That reduced form is what people mean when they say “this video is 16:9.” Sensors and odd crop tools sometimes produce “messy” ratios (e.g., 851:478 after a freeform crop). The calculator still reports the reduced pair and may map nearby values to a named preset when appropriate.

Non-integer sides

If you work in inches with decimals, convert to a consistent precision or to pixels first, then reduce. Floating noise can make gcd-style reduction awkward; pixel dimensions stay clean.

Percent-based layouts (“width 100%, height auto”) still rest on an intrinsic ratio. For general percent math outside frames, see the percentage calculator guide.

How Do You Scale Width and Height Proportionally?

Proportional scaling keeps the ratio fixed while changing size. If you know the ratio W:H and a target width, height = width × (H/W). If you know target height, width = height × (W/H).

Examples

  • 16:9, width 1280 — height = 1280 × 9/16 = 720
  • 1:1, width 1080 — height = 1080
  • 4:3, height 768 — width = 768 × 4/3 = 1024

Design tools call this “constrain proportions” or a lock icon. Breaking the lock stretches the image. CSS object-fit: cover vs contain chooses crop versus letterbox when the box ratio disagrees with the media ratio.

  1. Lock the ratio (or pick a preset).
  2. Enter the side you know.
  3. Read the computed other side.
  4. Export or set CSS to those pixels (or fluid width with matching aspect-ratio property).

Use the aspect ratio calculator to fill missing dimensions instead of mental arithmetic mid-export.

How Do Image and Video Workflows Differ?

Still images often tolerate multiple delivery crops (hero, card, thumbnail). Video timelines usually fix a sequence ratio; changing mid-edit means scaling, padding, or reframe keyframes.

  • Photography — shoot loose, crop to 3:2, 4:5, or 1:1 per channel
  • YouTube / landscape social — master 16:9, then derive vertical center crops if needed
  • Stories / Reels / TikTok — master 9:16 or safe-zone reframes from landscape
  • UI / web — define frame ratio in design system; generate image slots that match

Pixel count (resolution) still matters for sharpness. A correct ratio at 320×180 looks soft on a 4K display. Ratio answers shape; resolution answers detail.

Brand color next to framed media is a separate concern — convert hex/RGB with a hex color converter guide when building UI around the player or gallery.

What Mistakes Happen With Crops and Letterboxing?

Mismatch between content ratio and container ratio forces a choice.

  • Stretch — fills the box but distorts; avoid for faces and logos
  • Letterbox / pillarbox — keeps ratio, adds empty bars
  • Center crop (cover) — fills the box, loses edges

Common mistakes: exporting 16:9 into a 1:1 slot without checking faces near the sides; assuming “1080p” always means 1920×1080 (some phones use other 1080-tall sizes); and mixing orientation (9:16 vs 16:9) after thumbnails were already generated.

When a platform lists “recommended pixels,” those numbers already embed a ratio. Confirm both: 1080×1920 is 9:16; 1920×1080 is 16:9. Swapping width and height flips orientation.

For quick sanity checks on reduced form and missing sides, return to the aspect ratio calculator before a long render queue.

How Do You Use an Aspect Ratio Calculator?

Three modes cover almost every day-to-day task.

  1. Open the free aspect ratio calculator.
  2. Detect — enter width and height to see the reduced ratio and pixel count context.
  3. Preset — choose 16:9, 4:3, 1:1, or another common pair.
  4. Scale — provide one dimension and compute the other proportionally.
  5. Copy the results into export dialogs, CSS, or editor sequence settings.
  6. Decide crop vs letterbox when the destination frame still differs.

Keep a short cheat sheet of platform sizes for your team, but recompute when a client requests an odd display size. Related math tools on Generatr include percentage helpers for scale factors and unit conversion for print dimensions once the ratio is fixed.

Step-by-Step Instructions

  1. 1Open the free aspect ratio calculator on Generatr.
  2. 2To identify a ratio, enter the image or video width and height in matching units (usually pixels).
  3. 3Read the GCD-reduced ratio (for example 1920×1080 → 16:9).
  4. 4Or choose a preset such as 16:9, 4:3, or 1:1 for a known target shape.
  5. 5Enter the dimension you know and calculate the missing side proportionally.
  6. 6Apply the resulting width and height in your editor, CSS, or export dialog.
  7. 7If the container differs, choose letterbox/pillarbox or a deliberate crop — avoid stretching.
  8. 8Double-check orientation (landscape vs portrait) before batch exports.

Frequently Asked Questions

How do I calculate an aspect ratio from width and height?+

Divide width and height by their greatest common divisor and write the result as W:H. Example: 1920 and 1080 share gcd 120 → 16:9.

What is the difference between 16:9 and 4:3?+

16:9 is wider relative to height and is the common HD/4K video standard. 4:3 is taller in shape (less wide) and matches classic displays and some presentation formats.

How do I resize an image without stretching it?+

Keep the same aspect ratio while changing size: lock proportions and set one side so the other scales by the same factor. Use cover or contain strategies when the box ratio differs.

What does 1:1 mean?+

1:1 means width equals height — a square frame. It is common for profile images, album covers, and square social posts.

Why do calculators show a GCD-reduced ratio?+

Reduced form is the standard way people name shapes (16:9 instead of 1920:1080). It makes different resolutions with the same shape easy to compare.

Is Generatr’s aspect ratio calculator free?+

Yes. Detect ratios from dimensions, use common presets, scale proportionally, and review pixel-oriented results in the browser without an account.

Ready to try it yourself?

Use the free Aspect Ratio Calculator — no download, no account.

Launch Aspect Ratio Calculator