Aspect Ratio Calculator
Calculate aspect ratios for images and video.
Simplified aspect ratio
16:9
Decimal 1.7778 : 1
1,920 × 1,080 simplifies to 16:9 (decimal 1.7778).
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
- Choose a mode with the switcher: Find the ratio or Find a dimension.
- To find a ratio, type the width and height; the simplified ratio appears immediately.
- 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.
- 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.
Tips and related calculations
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?
Can I enter decimal widths and heights?
What does the decimal ratio mean?
Why might my computed dimension not be a whole number?
Is anything I enter sent to a server?
Related tools
Unit Converter
Convert between length, weight, volume, and more.
Pixel to em & rem Converter
Convert pixels to em and rem units.
Pixel to Percentage Converter
Convert pixel values to percentages.
Circle Calculator
Calculate circle area, circumference, and more.
Image Resizer
Resize images to exact dimensions, one at a time or in bulk.
Image Dimensions Checker
Check the pixel dimensions of one or many images.