Tech

Aspect Ratio Calculator

Simplify any resolution to its ratio.

Enter any width and height in pixels to get the simplified aspect ratio (like 16:9) plus the decimal form designers use. It divides both numbers by their greatest common divisor, the same math behind every '16:9' or '4:3' label you have ever seen. Handy for wallpapers, video exports, and CSS work.

How it's calculated

An aspect ratio describes the shape of a rectangle, not its size: how wide it is compared with how tall. You enter two inputs, a width in pixels and a height in pixels. The calculator first rounds both to whole pixels, because a screen cannot show a fraction of a pixel. It then finds the greatest common divisor of the two numbers, written GCD, which is the largest whole number that divides both of them exactly. Dividing each side by that GCD gives the ratio text: simplified width : simplified height. Separately, the decimal ratio is simply width ÷ height, shown to three decimal places.

Dividing both sides by the same number cannot change the shape, for the same reason that simplifying a fraction does not change its value: 1920/1080 and 16/9 describe identical proportions. The GCD is the largest safe divisor, so using it reduces the pair to the smallest whole numbers that still describe the exact shape, with nothing left to simplify. Any common divisor would preserve the proportion, but only the greatest one lands directly on the familiar labels, such as 16:9 or 4:3, that screens and cameras are sold by.

The two outputs suit different jobs. The ratio text is the label you recognise and search for when a platform asks for 16:9 or 1:1. The decimal is the working number: multiply a planned height by it to get the matching width, or use it in CSS and layout calculations. A decimal above 1 means a landscape image, wider than it is tall, exactly 1 means a square, and below 1 means portrait.

Worked example

Take the familiar full HD frame of 1920 × 1080 pixels, the calculator's starting example. Both numbers are already whole pixels, so no rounding is needed. Their greatest common divisor is 120, the largest number that divides both exactly, since 1920 = 120 × 16 and 1080 = 120 × 9. Dividing each side by 120 gives 16 : 9, the widescreen ratio behind almost every modern television and online video. The decimal tells the same story a second way: 1920 ÷ 1080 = 1.7777 recurring, which the calculator rounds to 1.778. So a frame with this shape is about 1.778 times as wide as it is tall, whatever its actual pixel count.

When to use it

Preparing a video for upload. A platform expects 16:9 for a standard video or 9:16 for a vertical short. Checking your export's dimensions here first reveals whether the file will fill the player or arrive with black bars or an unwanted crop.

Cropping a photo for a fixed slot. Profile banners, cover images and print sizes all demand a particular shape. Knowing the ratio you need lets you crop deliberately, choosing what to keep, instead of letting an upload tool slice the edges for you.

Building a responsive page or slide deck. An embedded video or image box must keep its proportions at every screen width. The decimal ratio from your media's real dimensions is exactly the number needed to size that box correctly.

Common mistakes

  • Entering the height in the width box. Fix: width always goes first, because swapping the inputs turns 16:9 into 9:16 and describes a portrait frame instead of a landscape one.
  • Expecting every resolution to reduce to a tidy ratio. Fix: trust the simplified result, since a common laptop size like 1366 × 768 reduces to 683:384 and is only marketed as 16:9, not exactly equal to it.
  • Mixing up ratio with resolution. Fix: treat them as separate facts, because the ratio says nothing about sharpness, and 1280 × 720 and 1920 × 1080 share the same 16:9 shape at very different quality.
  • Stretching content to fill a differently shaped frame. Fix: crop the edges or add bars instead, because stretching a 4:3 source into 16:9 visibly distorts everything in it.

Frequently asked questions

What is the most common aspect ratio?

16:9 is the standard widescreen ratio used by TVs, monitors, and YouTube. Older 4:3 screens and most phone photos in portrait are closer to 3:4 or 9:16.

How do I find the width for a given ratio?

Multiply the decimal ratio by the target height. For 16:9 (1.778) at 720 px tall: 1.778 × 720 = 1,280 px wide — the familiar 1280×720.

Is the decimal ratio exact?

It rounds to three decimals, which is precise enough for layout work. The ratio text itself is always exact because it is simplified from the real pixel counts.

What does a decimal ratio below 1 mean?

It means the image is taller than it is wide, a portrait orientation. A vertical 9:16 video, for example, has a decimal ratio of 0.563, because its width is a little over half of its height.

What is the aspect ratio of a square image?

A square is always 1:1, with a decimal ratio of 1.000, whatever its size. An 800 × 800 image, for instance, has a greatest common divisor of 800, and dividing both sides by it leaves exactly 1 : 1.

Why does 1366 × 768 not simplify to exactly 16:9?

Because the greatest common divisor of 1366 and 768 is only 2, so the exact simplified ratio is 683:384. The size is extremely close to 16:9 and is sold as part of that family, but its pixel counts do not divide into a perfect 16 by 9 grid.

Ultrawide, portrait and other shapes this calculator settles

Second worked example: a 3440 × 1440 ultrawide monitor

Enter a Width of 3440 px and a Height of 1440 px, the native resolution of many ultrawide monitors. Both values are already whole pixels, so the rounding step changes nothing. Their greatest common divisor is 80, because 3440 = 80 × 43 and 1440 = 80 × 18. Dividing each side by 80 gives a ratio text of 43:18. The decimal ratio is 3440 ÷ 1440 = 2.3888 recurring, which the calculator rounds to 2.389. In plain terms the panel is about 2.389 times as wide as it is tall — noticeably wider than the 1.778 decimal of a standard 16:9 screen, which is exactly why 16:9 video on this monitor leaves black bars at the sides unless it is cropped.

Where the two inputs earn their keep

Checking a game or video before you buy an ultrawide screen: enter the Width in px and Height in px your content was made at, and compare its ratio text with 43:18. A match fills the panel; a 16:9 source will not, however high its resolution. Cropping a portrait post: a 1080 × 1350 px image has a greatest common divisor of 270, so it simplifies to 4:5 with a decimal of 0.800 — enter those pixel counts here to confirm the shape before uploading, rather than discovering a platform crop afterwards. Sizing a CSS box from a real file: read the decimal from your actual Width and Height, then multiply it by any planned height to get the matching width in the same units.

Limits to keep in mind

The calculator rounds each input to the nearest whole pixel before simplifying, so entering 1440.6 px is treated as 1441 px. Both inputs must be above zero: a Height of 0 px leaves no shape to describe and the decimal falls back to 0. The ratio text is exact, but the decimal is rounded to three places, so working backwards from it can land a pixel out — 2.389 × 1440 gives 3440.16, not exactly 3440. Finally, neither output says anything about physical size or sharpness: a 43:18 result describes proportion only, whether the panel is small or wall-sized.

Related calculators