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.