ToolJutsu
All tools
Calculator Tools

Aspect Ratio Calculator

Calculate aspect ratios for images and video.

Preset ratios

Simplified aspect ratio

16:9

Decimal 1.7778 : 1

1,920 × 1,080 simplifies to 16:9 (decimal 1.7778).

Processed on your device. We never see your files.

How to use Aspect Ratio Calculator

What this calculator does

This aspect ratio calculator works in two directions. In Find the ratio mode you enter a width and a height and it returns the simplified ratio — for example 1920 × 1080 becomes 16:9 — along with the decimal form. In Find a dimension mode you supply a target ratio and one known side, and it solves for the missing side. Preset buttons cover the common ratios — 16:9, 4:3, 21:9, 1:1, 3:2 and 9:16 — so you can load one with a single click. Results recalculate live as you type, and every calculation happens locally in your browser.

Why you might need it

Aspect ratio decides whether an image or video fits its frame without stretching, cropping, or leaving bars. A designer resizing a hero image needs the new height that keeps the original proportions. A video editor exporting for a 21:9 cinema frame needs matching pixel dimensions. A developer building a responsive embed must lock a container to 16:9. A photographer printing at 3:2 wants to know the print size that will not crop the shot. In each case the proportion has to stay fixed while the absolute size changes — exactly the calculation this tool automates, removing the risk of a distorted result.

How to use it

  1. Choose a mode with the switcher: Find the ratio or Find a dimension.
  2. To find a ratio, type the width and height; the simplified ratio appears immediately.
  3. To find a dimension, set the ratio (type it as W:H or tap a preset), choose which side you know, and enter that side’s value.
  4. Read the headline result and the summary line. Use the copy button to grab the ratio or the computed dimension.

How it’s calculated

To simplify a ratio the tool finds the greatest common divisor (GCD) of the width and height using Euclid’s algorithm, then divides both numbers by it. The GCD is the largest whole number that divides both exactly, so dividing by it produces the smallest equivalent whole-number pair — 16:9, 4:3, and so on. Decimal inputs are first scaled up to integers so they reduce cleanly.

To find a missing dimension the tool treats the ratio as a fixed proportion. If the ratio is W:H and you know the width, the height is width × H ÷ W; if you know the height, the width is height × W ÷ H. This keeps the cross-multiplied proportion width ÷ height = W ÷ H true, which is what preserving an aspect ratio means.

Common pitfalls

The most common error is resizing only one dimension and letting software stretch the other to fill — that distorts the content. Always change both sides together using the ratio. Another pitfall is confusing aspect ratio with resolution: 1280×720 and 1920×1080 are different resolutions but the same 16:9 ratio. Watch the orientation too — 16:9 is landscape while 9:16 is portrait, and swapping them rotates the frame. Finally, a computed dimension may land on a fraction of a pixel; decide deliberately whether to round up or down rather than letting it truncate silently.

When you need an exact whole-pixel match, pick a known dimension that is a multiple of the ratio’s larger number — a 16-wide-friendly width such as 1280, 1600 or 1920 will give a clean 16:9 height. The decimal ratio is useful when a CSS aspect-ratio property or a video preset wants a single value. For responsive embeds, the ratio itself is enough: set the container’s aspect-ratio to 16 / 9 and the browser handles the rest. Because this calculator runs entirely in your browser, you can test as many sizes as you like with nothing ever leaving your device.

Frequently asked questions

How does the tool simplify a ratio like 1920:1080?
It divides both numbers by their greatest common divisor — the largest whole number that divides both exactly. For 1920 and 1080 that divisor is 120, so the ratio reduces to 16:9. This is the same method used to reduce any fraction to lowest terms.
Can I enter decimal widths and heights?
Yes. In 'Find the ratio' mode the tool scales decimal inputs up to whole numbers before reducing, so a measurement like 12.5 by 7.5 still simplifies cleanly. In 'Find a dimension' mode any positive number is accepted for the known side.
What does the decimal ratio mean?
It is the width divided by the height expressed as a single number against 1. A 16:9 frame has a decimal ratio of about 1.778:1. It is handy when a tool or spec asks for the ratio as one value rather than a pair.
Why might my computed dimension not be a whole number?
Pixels are whole, but the maths is not always exact. If a width is not divisible cleanly by the ratio, the result has a fractional part. Round it to the nearest pixel for real use — the tool shows the precise value so you can decide how to round.
Is anything I enter sent to a server?
No. The calculator runs entirely as JavaScript in your browser. The dimensions and ratios you type are never uploaded, logged, or stored anywhere.

Related tools