Aspect Ratio Calculator
Find the ratio of any width and height, solve the missing side of a resize, and get resolutions, fit-or-fill crops and CSS. Or drop a photo or video to read its size.
Read the size of a photo or video
Drop it here or tap · it stays on this device
Read another file or drop here
Next: crop a photo to this ratio · resize it to the new size
Common 16:9 resolutions
Tap a size to use it as the new size.
Fit or fill: contain and cover
How the original size above sits in a frame of another shape.
CSS for this ratio
Saved you some maths? .
Why use an aspect ratio calculator?
Every screen, feed and print has a shape, and an image of the wrong shape gets cropped, squashed or framed in black bars. Working out the right size by hand means finding a greatest common divisor or cross-multiplying. This calculator does it as you type: it simplifies any size to a ratio, solves the missing side when you resize, lists the standard sizes for each shape and shows what a fit or fill will cost you, before you export anything.
How to use it
- Type the original width and height, pick a ratio chip such as 16:9 or 9:16, or drop a photo or video to read its size.
- Read the simplified ratio, its decimal form and the closest standard ratio.
- Type a new width or height: the other side follows, rounded the way you choose (even numbers for video).
- Check the resolution list, the fit-or-fill crop and the CSS, then crop or resize your image with the linked tools.
How to calculate an aspect ratio
An aspect ratio is width divided by height, written as two whole numbers with nothing left to cancel. To find it, divide both sides by their greatest common divisor (GCD):
- 1920 × 1080: the GCD is 120, so 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9, giving 16:9.
- 1080 × 1350: the GCD is 270, giving 4:5.
- 1366 × 768, a common laptop size: the GCD is only 2, so the exact ratio is 683:384. It's 0.05% wider than 16:9, which is why it's sold as a 16:9 screen; the calculator shows both.
The decimal form divides once: 1920 ÷ 1080 = 1.78, written 1.78:1. Cinema uses decimals (1.85:1, 2.39:1) because those shapes don't reduce to small whole numbers.
How to find the new height or width
Keeping the ratio when you resize is cross-multiplication: new height = new width × original height ÷ original width, and new width = new height × original width ÷ original height. Shrinking 1920 × 1080 to 1280 wide gives 1280 × 1080 ÷ 1920 = 720. When the answer isn't whole, the rounding menu decides: most video encoders need even numbers (854 × 480 rather than 853.33 × 480), and some codecs work best with multiples of 8 or 16.
Common aspect ratios and where they're used
| Ratio | Decimal | Typical size | Used for |
|---|---|---|---|
| 16:9 | 1.78 | 1920 × 1080, 3840 × 2160 | YouTube, TVs, monitors, slides |
| 9:16 | 0.56 | 1080 × 1920 | Reels, Shorts, TikTok, Stories, Moj, Josh |
| 4:5 | 0.8 | 1080 × 1350 | Instagram portrait posts, 8 × 10 in prints |
| 3:4 | 0.75 | 1080 × 1440 | Instagram profile grid tiles, portrait photos |
| 1:1 | 1 | 1080 × 1080 | Square posts, profile pictures, album art |
| 4:3 | 1.33 | 4032 × 3024 | Phone camera photos, iPad, classic TV |
| 3:2 | 1.5 | 6000 × 4000 | DSLR and mirrorless photos, 4 × 6 in prints |
| 2:3 | 0.67 | 1000 × 1500 | Pinterest pins, portrait 4 × 6 and 12 × 18 in prints |
| 16:10 | 1.6 | 1920 × 1200 | Many laptop screens |
| 21:9 | 2.33 | 2560 × 1080 (really 64:27) | Ultrawide monitors, cinematic video |
| 1.91:1 | 1.91 | 1200 × 628 | Link previews, Instagram landscape posts |
| 1:√2 | 0.71 | 2480 × 3508 (A4, 300 DPI) | A4, A3 and A5 paper |
9:16, 4:5 and other social media sizes
Vertical video is 9:16 at 1080 × 1920 on Instagram Reels and Stories, YouTube Shorts, TikTok and India's Moj and Josh. Instagram feed photos can be as tall as 4:5 (1080 × 1350); since early 2025 the profile grid shows each post as a 3:4 tile, so 1080 × 1440 fills the grid exactly while a 4:5 post loses a thin strip at each side there. YouTube videos and thumbnails are 16:9, and link previews on Facebook and LinkedIn are about 1.91:1 (1200 × 628). Platforms adjust these from time to time; these were checked in November 2026. For a grid of posts that joins up into one picture, use the image splitter.
Print sizes and their ratios
Print sizes are named in inches, and their shapes rarely match a phone's 4:3 photos, so prints are cropped. Knowing the ratio tells you how much:
| Ratio | What it means | |
|---|---|---|
| 4 × 6 in | 2:3 | matches DSLR photos; a 4:3 phone photo loses about 11% along its short side |
| 5 × 7 in | 5:7 | crops a little from both phone (4:3) and camera (3:2) photos |
| 8 × 10 in | 4:5 | a 3:2 camera photo loses about 17% along its long side |
| 8 × 12 in | 2:3 | the same shape as 4 × 6, twice the size |
| 12 × 18 in | 2:3 | posters and enlargements from camera photos |
| 12 × 36 in | 1:3 | wedding album spreads (two 12 × 18 pages side by side) |
| A4 | 1:√2 (1:1.414) | certificates, documents and A-series frames |
For sharp prints, multiply inches by 300: a 4 × 6 in print wants 1200 × 1800 pixels and a 12 × 18 in enlargement 3600 × 5400. Photo studios laying out a 12 × 36 in album spread need 3600 × 10800 pixels at 300 DPI.
Fit versus fill (contain versus cover)
When the shapes differ you must choose. Take a 4032 × 3024 phone photo and a 1080 × 1920 Story:
- Fit (contain) scales by the smaller factor, 1080 ÷ 4032 = 0.268, so the photo becomes 1080 × 810 with 555 px bands above and below. Nothing is lost, but most of the screen is empty.
- Fill (cover) scales by the larger factor, 1920 ÷ 3024 = 0.635, making the photo 2560 × 1920; the 1480 px that overflow are cropped, 740 px at each side. Only the middle 1701 px of the photo's 4032 px width stays visible, about 42%.
These are exactly CSS's object-fit: contain and object-fit: cover, and the fit-or-fill calculator above runs the same numbers for any size.
Aspect ratio in CSS
Modern browsers size a box to a ratio with one property: aspect-ratio: 16 / 9;. Older code used the padding trick, a wrapper with padding-top: 56.25% (9 ÷ 16 × 100) and an absolutely positioned child. In Tailwind CSS the classes are aspect-video for 16:9, aspect-square for 1:1 and aspect-[4/5] for anything else (Tailwind v4 also accepts aspect-4/5). The CSS panel writes these for the current ratio.
Why "21:9" monitors aren't exactly 21:9
Ultrawide screens are sold as 21:9, but 2560 × 1080 simplifies to 64:27 (2.37:1) and 3440 × 1440 to 43:18 (2.39:1); a true 21:9 is 2.33:1. The same goes for "16:9" laptops at 1366 × 768. Type the real resolution in and design for the exact ratio. When you know your target, crop the image to the ratio, resize it to exact pixels, or combine several images into one of the right shape.
Frequently Asked Questions
How do I calculate an aspect ratio?
Divide the width and the height by their greatest common divisor. For 1920 × 1080 the largest number that divides both is 120, so the ratio is 1920 ÷ 120 : 1080 ÷ 120 = 16:9. Type a width and height into the calculator and it does this for you, shows the decimal form (1.78:1) and names the closest standard ratio when the numbers don't reduce neatly.
What is the aspect ratio of 1920 × 1080?
16:9. 1920 × 1080 (Full HD, 1080p) is the most common 16:9 resolution, alongside 1280 × 720 (HD), 2560 × 1440 (QHD) and 3840 × 2160 (4K UHD). All of them have the same shape, so a 16:9 video scales between them without stretching or black bars.
What size is 9:16 in pixels?
The standard 9:16 size is 1080 × 1920 pixels, which is what Instagram Reels and Stories, YouTube Shorts, TikTok, Moj and Josh use for full-screen vertical video. 720 × 1280 is the smaller HD version and 2160 × 3840 the 4K one. Any width works if the height is width × 16 ÷ 9.
What is 4:5 in pixels for Instagram?
1080 × 1350 pixels. 4:5 is the tallest shape Instagram has long accepted for feed photos, so it takes up the most room in the feed. Since early 2025 the profile grid shows every post as a 3:4 tile, so a thin strip at the left and right of a 4:5 post is hidden there; posting at 1080 × 1440 (3:4) fills the grid tile exactly.
How do I find the height for a new width?
Multiply the new width by the original height and divide by the original width. To resize a 1920 × 1080 image to 1280 pixels wide: 1280 × 1080 ÷ 1920 = 720, so the new size is 1280 × 720. Enter the original size and the new width above and the height appears instantly; switch rounding to even numbers for video, which most encoders require.
Is 16:9 the same as 1920 × 1080?
No: 16:9 is a shape, 1920 × 1080 is one size with that shape. 1280 × 720, 2560 × 1440 and 3840 × 2160 are 16:9 too. The ratio tells you whether an image fits a frame without cropping or bars; the resolution tells you how much detail it has.
What aspect ratio is A4 paper?
1:√2, about 1:1.414. A4 is 210 × 297 mm, and every A size has the same shape, so halving an A4 sheet gives two A5 sheets with the same proportions (ISO 216). At 300 DPI an A4 page is 2480 × 3508 pixels.
What is the difference between fit and fill?
Fit (CSS object-fit: contain) scales the whole picture down until it fits inside the frame, leaving empty bands (letterbox or pillarbox) where the shapes differ. Fill (object-fit: cover) scales it up until the frame is covered and crops whatever overflows. The fit-or-fill calculator shows the scale, the band sizes and exactly how many pixels a fill crops.
How do I change an image's aspect ratio without stretching it?
Either crop it to the new shape or add bands around it; never resize the width and height independently, which distorts faces and circles. Find the target size here, then crop to the ratio with the image cropper, or pad it with the image resizer's fit option. The calculator's links open both tools.
What aspect ratio do phone photos have?
Most phone cameras, iPhones included, take photos at 4:3 by default, for example 4032 × 3024 for 12 megapixels. The camera app also offers 1:1 and 16:9, which crop the sensor's 4:3 image. Phone screens are taller, around 19.5:9 or 20:9, which is why 4:3 photos show with bands when viewed full screen.
Why is my 21:9 monitor 2560 × 1080 and not exactly 21:9?
Because "21:9" is a marketing name. 2560 × 1080 simplifies to 64:27 (2.37:1) and 3440 × 1440 to 43:18 (2.39:1), while a true 21:9 is 2.33:1. They are close enough that 21:9 video fills them with only thin bands, but use the real numbers when you design for these screens.
Can I read the size of a photo or video?
Yes. Drop a photo or video on the small box (or tap it to choose one) and its width and height are filled in, with the ratio worked out. Phone photos are measured the right way up, iPhone HEIC photos included. The file is read by your browser only; nothing is uploaded.
Related tools
More free, private, browser-based utilities — no upload, no sign-up.