Aspect Ratio Calculator
An aspect ratio calculator with two modes: keep a ratio and type a width or a height to get the other, or type any width and height to get the simplified ratio and its decimal form. Presets for 16:9, 21:9, 32:9, 16:10, 4:3, 3:2, 1:1, 4:5, 9:16 and 2.39:1, a live preview box, a button that fills in your own screen, rounding to even numbers for video, and a link that opens with your numbers. Below: the formula, where each ratio is used, and resolution tables for 16:9 and ultrawide.
Type a width or a height; the other follows the ratio.
Result
1920 × 1080 · 16:9 (1.78:1)
Nearest common ratio: 16:9 (widescreen). 2,073,600 pixels (2.1 MP).
Settings
Runs in your browser. Nothing is uploaded.
How to use
- Pick a preset chip or type a custom ratio, then type a width (or a height); the other side is calculated and the preview box takes the shape. Use Settings to round to even numbers or multiples of 8 for video encoders.
- Switch to "Find the ratio of a size", type any width and height, and read the simplified ratio (for example 2560 × 1080 → 64:27, 2.37:1) with the nearest common name.
- Press Use my screen to fill in your display's own pixel size, Swap W/H for portrait, Copy result for the figures, or Copy link for an address that reopens the calculator with your numbers.
How to calculate aspect ratio
Aspect ratio is width compared with height, written as two numbers with a colon (16:9) or as a single decimal with the height normalised to 1 (1.78:1). The calculator opens in the mode most people need: pick a ratio, type one side, get the other. Choose a preset chip or type a custom ratio in the two small boxes, then enter a width or a height; the missing side appears, the preview box takes the shape, and the result line shows the size, the simplified ratio and the decimal. The second mode answers the reverse question: type any width and height and read the ratio reduced to its smallest whole numbers, with the nearest common name and the difference from it. Use my screen fills in your display’s pixel dimensions (including the device pixel ratio, so a Retina or scaled display reports its physical pixels), Swap W/H turns a landscape size into portrait, Copy result copies the figures and Copy link makes an address that reopens the page with your numbers.
The result class is Calculated: the arithmetic is exact and the only rounding is the one you choose in Settings for the computed side.
The formula
Three formulas cover everything the calculator does. Height from width: height = width × (ratio height ÷ ratio width). For 16:9 and a width of 1920: 1920 × 9 ÷ 16 = 1080. Width from height: width = height × (ratio width ÷ ratio height). For 21:9 and a height of 1440: 1440 × 21 ÷ 9 = 3360. Ratio from a size: divide both sides by their greatest common divisor. For 2560 × 1440 the GCD is 160, so the ratio is 16:9; for 3440 × 1440 the GCD is 80, so the ratio is 43:18, which is 2.39:1 and is sold as 21:9. When the reduced numbers are large, the decimal form is the readable one: 1.85:1 and 2.39:1 are cinema’s two standard frames, and the calculator shows both forms side by side.
Two practical notes. Rounding: computed sides are rounded to whole pixels, or to even numbers or multiples of 8 if you set that, because video encoders and some displays require it; the preview shows that the shape barely changes. And scaling: keeping the aspect ratio means multiplying both sides by the same factor, which is what every “fit” or “fill” option does; cropping changes the ratio, scaling does not.
Common aspect ratios and where they’re used
16:9 is the default for monitors, televisions, laptops, YouTube and broadcast HD; nearly every screen sold today is 16:9 unless it says otherwise. 16:10 survives on laptops and tablets because the extra height suits documents and web pages; 1920 × 1200 and 2560 × 1600 are its common sizes. 3:2 is taller still, used by Microsoft Surface devices and some laptops, and it is the ratio of a 35 mm photo frame. 4:3 was the standard for CRT monitors and standard-definition TV and remains the ratio of many tablets and of presentations in older templates. 5:4 (1280 × 1024) lingers on older office monitors. 21:9 and 32:9 are the ultrawide and super-ultrawide monitor classes; the real pixel ratios are slightly different, which the table below shows. 1:1 is the square post and the shape of many album covers and avatars. 4:5 is the portrait post that fills more of a phone’s feed than a square. 9:16 is vertical video: Shorts, Reels, TikTok and Stories. 1.85:1 and 2.39:1 are cinema’s flat and scope frames; a 2.39:1 film on a 16:9 screen gets black bars top and bottom, and a 16:9 programme on a 2.39:1 screen gets bars at the sides.
16:9 resolutions table
| Name | Pixels | Megapixels | Typical use |
|---|---|---|---|
| nHD | 640 × 360 | 0.2 | low-bandwidth video |
| qHD | 960 × 540 | 0.5 | small video previews |
| HD / 720p | 1280 × 720 | 0.9 | streaming, small screens |
| HD+ | 1600 × 900 | 1.4 | budget laptops |
| Full HD / 1080p | 1920 × 1080 | 2.1 | most monitors, TVs, video |
| QHD / 1440p | 2560 × 1440 | 3.7 | gaming monitors |
| QHD+ | 3200 × 1800 | 5.8 | some laptops |
| 4K UHD / 2160p | 3840 × 2160 | 8.3 | TVs, 4K monitors, video |
| 5K | 5120 × 2880 | 14.7 | 27-inch high-density monitors |
| 8K UHD / 4320p | 7680 × 4320 | 33.2 | 8K TVs |
Every row divides exactly by 16:9; type any of the widths into the calculator with the 16:9 preset and the height in the table appears. Note that cinema 4K (DCI, 4096 × 2160) is not 16:9 but 1.90:1, which is why 4K films are letterboxed slightly on UHD screens.
21:9 and 32:9 ultrawide resolutions
| Marketed as | Pixels | Exact ratio | Decimal | Typical panel |
|---|---|---|---|---|
| 21:9 | 2560 × 1080 | 64:27 | 2.37:1 | 25–34-inch ultrawide |
| 21:9 | 3440 × 1440 | 43:18 | 2.39:1 | 34-inch ultrawide (the common one) |
| 21:9 | 3840 × 1600 | 12:5 | 2.40:1 | 38-inch ultrawide |
| 21:9 | 5120 × 2160 | 64:27 | 2.37:1 | 40-inch 5K2K |
| 32:9 | 3840 × 1080 | 32:9 | 3.56:1 | 49-inch super ultrawide (two 1080p side by side) |
| 32:9 | 5120 × 1440 | 32:9 | 3.56:1 | 49-inch super ultrawide (two 1440p side by side) |
| 32:10 | 3840 × 1200 | 16:5 | 3.20:1 | 43-inch wide |
None of the “21:9” monitors is exactly 21:9 (2.33:1); they sit between 2.37:1 and 2.40:1, close to the cinema scope frame, which is why 2.39:1 films fill them with no bars. The 32:9 panels are exactly two 16:9 screens joined, which is what makes them work well for two full windows side by side. The screen resolution page reports what your current display is running; the PPI calculator and the screen size calculator turn a resolution and a diagonal into pixel density and physical dimensions.
Social media sizes
Platforms publish recommended pixel sizes that change from time to time; the ratios are stable, and that is what the presets give you. Landscape video and thumbnails are 16:9 (1920 × 1080 or 1280 × 720). Vertical video for Shorts, Reels, TikTok and Stories is 9:16, and the calculator with the 9:16 preset and a width of 1080 returns 1920. Square posts are 1:1 (1080 × 1080). Instagram’s portrait feed post is 4:5 (1080 × 1350), which fills more of the screen than a square and is why it became the default for photos. Profile images are square and then cropped to a circle by most apps, so keep the subject centred. When a platform’s recommended width differs from these, type it with the matching preset and round to even numbers in Settings; the exported file keeps the shape and the encoder stays happy.
Frequently asked questions
How do I calculate aspect ratio?
Divide the width by the height and reduce the fraction. 1920 ÷ 1080 = 1.777…, and 1920:1080 reduces to 16:9 because both divide by 120. The calculator does the reduction with the greatest common divisor and shows the decimal form (1.78:1) as well, which is how cinema ratios are written.
What is the 16:9 aspect ratio in pixels?
Any size where the width is 16/9 of the height: 1280 × 720, 1920 × 1080, 2560 × 1440, 3840 × 2160 and 7680 × 4320 are the standard ones. For a custom width, height = width × 9 ÷ 16; for 1600 wide that is 900. The 16:9 table below lists the common sizes with their names.
What is 21:9 in pixels?
Marketing calls ultrawide monitors 21:9, but most are 2560 × 1080 (exactly 64:27, 2.37:1) or 3440 × 1440 (43:18, 2.39:1), slightly wider than a true 21:9 (2.33:1). The calculator shows the exact simplified ratio and the decimal so you can see the difference; the ultrawide table lists the real resolutions.
Why does the calculator show a strange ratio like 64:27?
Because that is the exact reduced fraction of the pixel counts: 2560 and 1080 share no factor larger than 40. Marketing ratios round to something memorable; the exact ratio is what you need when cropping or scaling without distortion. The note under the result names the nearest common ratio and how far off it is.
What aspect ratio should a video or image be for social media?
16:9 for YouTube and most landscape video, 9:16 for Shorts, Reels, TikTok and Stories, 1:1 for square posts and 4:5 for Instagram portrait posts. The presets cover all of these; type the width your platform recommends and the calculator gives the matching height, rounded to even numbers if you choose that in Settings.
Does rounding matter?
For video, yes: most encoders need even dimensions, and some hardware prefers multiples of 8 or 16. A 16:9 frame 1000 pixels wide is 562.5 high; the calculator rounds to 563 by default, to 562 with even rounding and to 560 with multiples of 8. The preview and the decimal ratio show how much the rounding changes the shape (very little).