Aspect Ratio Calculator

This screen ratio calculator turns any width and height into the simplest aspect ratio, such as 16:9, and tells you the nearest common name. Tick the lock to change one side and keep the same shape.

  1. Type a width and height in pixels, or start from a common size.
  2. Read the simplified ratio, the decimal value and the nearest common name.
  3. Tick Lock ratio to keep the shape, then change either side to scale it.

Common sizes

Simplified ratio16:9
Decimal (w ÷ h)1.778
Nearest common name16:9exact match

All calculations run in your browser.

The decimal is width ÷ height. The nearest name is the common ratio closest to that decimal, even when the exact ratio has no familiar name.

How the aspect ratio calculator works

An aspect ratio compares a width to a height. The calculator divides both numbers by their greatest common divisor, so 1920 × 1080 becomes 16:9 and 1600 × 1200 becomes 4:3. The decimal on the right is width divided by height: 16:9 is about 1.778, which means the width is 1.778 times the height.

Both boxes take whole pixels between 1 and 100,000. The page starts with your screen's size, and nothing is sent anywhere.

Why the nearest common name can differ from the exact ratio

Some screens are sold under a name that is close but not exact. 2560 × 1080 divides down to 64:27, not 21:9. The page still lists 21:9 as the nearest common name, because that is the label you will see on the box, and the small text underneath says how far the true shape is from it. Here the gap is about 1.6%, which is small enough to ignore for most layouts and visible if you are lining up two panels edge to edge.

Locking the ratio

With Lock ratio ticked, the calculator remembers the shape at the moment you tick it, pick a preset or open the page. Type a new width and the height follows; type a new height and the width follows. Because screens use whole pixels, the side that changes is rounded to the nearest pixel, so a pair can end up a pixel away from an exact match. Untick the box to set both sides by hand.

Common aspect ratios

These are the names the calculator recognises. Most have a resolution that matches the ratio exactly; 21:9 and 9:19.5 are labels for shapes that are close, so those two show typical sizes instead.

32:9
3840 × 1080, 5120 × 1440
21:9
2560 × 1080 (64:27), 3440 × 1440 (43:18)
16:9
1920 × 1080, 2560 × 1440, 3840 × 2160
16:10
1920 × 1200, 2560 × 1600
3:2
3000 × 2000, 2160 × 1440
4:3
1600 × 1200, 1024 × 768
5:4
1280 × 1024
1:1
1080 × 1080
4:5
1080 × 1350 (portrait)
3:4
1200 × 1600 (portrait)
2:3
1200 × 1800 (portrait)
10:16
1200 × 1920 (portrait)
9:16
1080 × 1920 (portrait)
9:19.5
1170 × 2532 (phone)
9:21
1080 × 2520 (phone)

Aspect ratio is not resolution or physical size

A 1280 × 720 panel and a 3840 × 2160 panel are both 16:9, but the second has nine times as many pixels. The ratio says nothing about sharpness, and nothing about how large the screen is. For the pixel count, scaling and window size of the screen you are using, open Screen Info.

Using the ratio in CSS

A CSS box can hold its shape with aspect-ratio: 16 / 9. Use the simplified pair from this page, or the decimal if a tool asks for a single number. Both describe the same shape.

Frequently asked questions

What is an aspect ratio?

The relationship between width and height. A 16:9 screen is 16 units wide for every 9 units high, which is the same shape as 1920 × 1080 and 3840 × 2160.

How do I simplify an aspect ratio by hand?

Divide both numbers by their greatest common divisor. For 1920 × 1080 that divisor is 120, giving 16:9. For 1600 × 1200 it is 400, giving 4:3. The calculator does the same division, including sizes that do not simplify to a familiar pair.

Why does 2560 × 1080 show 64:27 instead of 21:9?

64:27 is the exact simplified ratio. 21:9 is the name the display is sold under, and the page lists it as the nearest common name. 64:27 is slightly wider than 21:9: about 1.6% at this size.

Does Lock ratio change both numbers?

It changes only the side you are not typing on. With the lock on, the other side is recalculated to keep the shape. Turn it off to type both numbers freely.

Can I enter a decimal width or height?

No. Screens are made of whole pixels, so the boxes accept whole numbers from 1 to 100,000. Convert a measurement in another unit to pixels first.

Is anything saved?

No. The calculation happens in the page and the values are gone when you reload or close it. There is no cookie and nothing is uploaded.

Is aspect ratio the same as resolution?

No. Resolution is the number of pixels, such as 1920 × 1080. Aspect ratio is the shape those pixels make, such as 16:9. Two screens can share a ratio with very different resolutions.