Free tool Aspect ratio calculator for images, video and screens
Enter a width and height to get the ratio, or lock a ratio and type one side to get the other. See exactly what a crop would cut and how big the bars would be, load the size of a picture from your device, and turn a screen diagonal into inches, centimetres and pixels per inch.
- Any ratio, any unit
- Crop and letterbox preview
- Images stay on your device
Calculate an aspect ratio
The example starts at 1920 × 1080. Change any box and everything updates.
Saved to My tools
Open the free tools page next time and it is right at the top under My tools (stored in this browser only).
You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.
View My tools1. Size to ratio
Pixels, centimetres, anything: only the proportion matters.
Aspect ratio
16:9
Exactly 16:9.
As a decimal
1.7778:1
Orientation
Landscape
Megapixels
2.07 MP
16:9You can also drop or paste an image: only its pixel size is read, in your browser.
2. Resize in proportion
Type a new width or height and the other side is calculated.
Leave empty to follow the size in step 1. Accepts 16:9, 4x3 or 1.85.
Keeping the original ratio, 16:9.
Video encoders usually want even numbers; some tools need multiples of 8, 16 or 64.
1280×7203. Crop or pad to another shape
What happens to the original size when it has to fit a different ratio.
- Keep 1080 × 1080
- Cut 420 from both the left and right (43.8% of the picture)
- The kept area starts at x = 420, y = 0
- Canvas 1920 × 1920
- Bars of 420 on the top and bottom (43.8% of the canvas)
4. Screen size and pixel density
Uses the width and height from step 1 as the shape and resolution.
23.53 × 13.24 in (59.8 × 33.6 cm)
81.6 pixels per inch at 1920 × 1080
Common sizes
Click a size to load it above.
| Ratio | Sizes |
|---|---|
| 16:9HD and 4K video | |
| 9:16Vertical video | |
| 4:3Older screens, many phone photos | |
| 3:2DSLR and mirrorless photos | |
| 1:1Square posts | |
| 4:5Portrait posts | |
| 3:4Portrait photos | |
| 16:10Laptop screens | |
| 21:9Ultrawide screens |
Share these inputs: the values go after the # in the link, so they never reach a server.
https://tapcub.com/tools/aspect-ratio-calculator
Done here? Try these next
Use this tool often? Save it to My tools.Saved to My tools. Find it any time at the top of the free tools page. You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.
Problem or suggestion?Send feedbackChat with support
Version v1.0Updated Update history
Ratio, resolution and size are three different things
The ratio describes shape only.
- Ratio from any size
- Resize with even or ×8 rounding
- Crop and pad preview

Aspect ratio
Width compared with height, written as the smallest whole numbers (16:9) or as a decimal (1.78:1). 1280 × 720 and 3840 × 2160 share it.
Resolution
The actual pixel count. Megapixels are width × height ÷ 1,000,000.
Crop to fill
Fills the new shape completely and throws away what sticks out. Good for thumbnails, risky near faces and text.
Fit with bars
Keeps the whole picture and adds space: letterbox bars above and below, or pillarbox bars at the sides.
Marketing names are not always exact. A 2560 × 1080 “21:9” monitor is really 64:27, and 1366 × 768 is 683:384, a hair away from 16:9. The calculator shows both the exact figure and the nearest familiar ratio.
Resize without stretching
Start from what you have, then decide what has to give.
-
1
Enter the original size
Type it, pick a common size, or drop an image to read its pixels.
-
2
Type the side you know
Need a 1280 px wide version? Enter 1280 and read the height. Choose even or multiple-of-8 rounding for video.
-
3
Check the other shape
Pick the target ratio and compare cropping with bars before you export.
Aspect ratio formulas
Divide both sides by their greatest common divisor to get the ratio. To resize, multiply or divide by that ratio.
- ratio = width : height, each divided by gcd(width, height)
- new height = new width × old height ÷ old width
- new width = new height × old width ÷ old height
- Screen width = diagonal × w ÷ √(w² + h²)
- PPI = √(pixel width² + pixel height²) ÷ diagonal in inches
| Ratio | Decimal | Typical use |
|---|---|---|
| 1:1 | 1.000 | Square posts, avatars |
| 4:5 | 0.800 | Portrait posts |
| 9:16 | 0.5625 | Vertical video |
| 4:3 | 1.333 | Many phone and compact camera photos |
| 3:2 | 1.500 | DSLR photos, 4 × 6 in prints |
| 16:9 | 1.778 | HD, 4K, most video players |
| 21:9 | 2.333 | Ultrawide monitors (name) |
| 2.39:1 | 2.390 | Widescreen cinema |
Turning a 1920 × 1080 frame into other sizes
The greatest common divisor of 1920 and 1080 is 120, so the ratio is 16:9.
| Task | Calculation | Result |
|---|---|---|
| Ratio | 1920 ÷ 120 : 1080 ÷ 120 | 16:9 (1.778:1) |
| 1280 wide | 1280 × 1080 ÷ 1920 | 1280 × 720 |
| Crop to square | keep the height; (1920 − 1080) ÷ 2 | 1080 × 1080, 420 cut from each side |
| Fit into square | keep the width; (1920 − 1080) ÷ 2 | 1920 × 1920, 420 bars above and below |
| On a 27 in screen | 27 × 16 ÷ √337 and 27 × 9 ÷ √337 | 23.53 × 13.24 in, 81.6 PPI |
Cropping to a square loses 43.8% of the picture, which is why a wide video rarely survives a square crop unless the subject is centred.
How pictures end up stretched or blurry
Almost every distortion comes from changing one side without the other.
Forcing both sides
Typing a width and height that do not match the ratio stretches faces and logos. Fix one side and calculate the other.
Enlarging small originals
Going from 640 wide to 1920 wide does not add detail; it only spreads the same pixels out.
Odd dimensions in video
Common H.264 settings need even width and height. Pick “Even numbers” to avoid export errors.
Trusting the 21:9 label
Real ultrawide panels are usually 64:27 or 43:18. Use the pixel size when you need precision.
Which screens do your visitors use?
Choosing image and video shapes is easier when you know what people view them on.
Screens card on the audience page
Visitors are grouped into CSS width ranges. Click a range to filter other reports by it.
Learn moreExact size on the visitor
A visitor’s details show the screen size for the session, next to device, browser and OS.
Learn moreCore Web Vitals by page
Large, unsized images show up in LCP and CLS. See both per page.
Learn moreAspect ratio questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
How do I calculate aspect ratio?
Divide the width and height by their greatest common divisor. For 1920 × 1080 the divisor is 120, giving 16:9. If the numbers stay large, express it as a decimal by dividing width by height.
What height goes with a 1280 width at 16:9?
720. Multiply the width by 9 and divide by 16. For 1920 wide it is 1080, and for 3840 wide it is 2160.
How do I change aspect ratio without stretching?
Either crop, which removes part of the picture, or add bars, which keeps everything but leaves empty space. Step 3 shows the exact numbers for both.
Which aspect ratio does YouTube recommend?
YouTube’s help page recommends 16:9 for videos watched on a computer, with sizes such as 1280 × 720, 1920 × 1080 and 3840 × 2160. Vertical formats use 9:16.
Why is my 1366 × 768 screen not exactly 16:9?
Because 768 × 16 ÷ 9 is 1365.33, which cannot be a pixel count. 1366 × 768 reduces to 683:384, about 0.05% away from 16:9.
Are my images uploaded?
No. When you choose or drop a picture, your browser reads its size and draws the preview locally. The file never leaves your device and is not part of the share link.
Is this tool working for you?
Rate it, or tell us what went wrong and what you’d like improved. A person reads every message, and frequent requests go into the next update.
Need help right now?
Chat with our support team, best for urgent problems; you can leave a message when we are offline.
Chat with supportUpdate history
New features, fixes and data refreshes for this tool, newest first.
-
· v1.0
LaunchedFirst release.
Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates
Recommend this tool in an article or on your site
This tool is free to cite and share. Copy the URL or link below into your article, tutorial or resource page; to write a review, embed a tool or partner with us, get in touch.
https://tapcub.com/tools/aspect-ratio-calculator<a href="https://tapcub.com/tools/aspect-ratio-calculator">Aspect ratio calculator - TapCub</a>Apply the size to real files
Once you know the numbers, resize or crop the images themselves.