Aspect Ratio Calculator
Every picture, screen and sheet of paper has a shape. That shape is its aspect ratio. When the shape of your picture does not match the space you want to put it in, something has to give. You get empty bars, a cropped edge or a stretched, ugly image.
Isto aspect ratio calculator helps you avoid that. Type a width and a height to see the exact ratio. Type a ratio and one side to find the missing side. Or enter a picture size and a frame size to see how the picture will fit or fill the frame. Presets for common screens, photo prints and paper sizes save you typing.
1920 x 1080 and 3840 x 2160 are both 16:9. The shape is the same at every size.
A3, A4, A5 and A6 all share a ratio of about 1 to 1.414, which is why they scale cleanly.
A sheet of 8.5 by 11 inches has an exact ratio of 17:22, which is not the same shape as A4.
A 16:9 picture that is 1000 pixels wide would need to be 562.5 pixels tall.
A 1920 x 1080 picture in a 1080 x 1350 frame shows 45% of the frame when fitted and keeps 45% when filled.
At 300 pixels per inch, a 4 x 6 inch print needs about 1200 x 1800 pixels.
Ratio Is Shape, Not Size
A 1280 x 720 picture and a 3840 x 2160 picture have the same ratio. One is just bigger. If two sizes share a ratio, you can scale one into the other without any bars or cropping.
What Is an Aspect Ratio Calculator?
An aspect ratio calculator compares the width of something with its height and shows the result as a short ratio, such as 16:9 or 4:3. It also works the other way. If you know the ratio and one side, it finds the other side for you.
Our tool goes a step further. It handles three jobs in one place: the exact ratio, the missing side and fit or fill resizing. It also lets you pick a size in pixels, inches, centimeters or millimeters, so it works for screens and for print.
Everything runs in your browser. You do not upload a picture, and nothing you type is stored on our servers.
How to Use the Aspect Ratio Calculator
The form has three short steps. Here is what each one does.
- Choose a goal and a unit. Pick the exact ratio, the missing side, or fit and fill. Then choose pixels, inches, centimeters or millimeters.
- Pick a preset, or skip it. The presets fill the boxes for you with common screen, photo and paper sizes. You can still change any number after.
- Enter your numbers and press Calculate. The results show the answer, a small drawing, a details table and the same ratio at other sizes.
Find the Exact Ratio
Enter a width and a height. The tool divides both by their greatest common divisor and gives you the short form. It also shows the decimal ratio and the closest common ratio, so you can see if your size matches a standard shape.
Find a Missing Width or Height
Enter the ratio you need, say 16 and 9. Choose which side you already know and type its value. The tool gives you the other side. You can choose how to round it, which matters when the answer lands between two whole pixels.
Fit and Fill a Picture in a Frame
Enter the size of your picture and the size of the frame. The tool shows two results side by side. Fit keeps the whole picture and adds bars. Fill covers the whole frame and trims the edges.
What Is an Aspect Ratio?
An aspect ratio is the relationship between the width and the height of a shape. It is written with a colon. A ratio of 16:9 means that for every 16 units of width there are 9 units of height.
The units do not matter. A 16:9 screen can be 16 inches by 9 inches, or 1920 pixels by 1080 pixels. What counts is how the two sides relate to each other.
Wide, Tall and Square Shapes
If the first number is bigger, the shape is wide. This is called landscape. If the second number is bigger, the shape is tall, which is called portrait. If both numbers match, as in 1:1, the shape is a square.
How to Calculate an Exact Aspect Ratio
You only need one idea: the greatest common divisor, or GCD. This is the biggest whole number that divides both sides evenly.
The Formula
- Find the GCD of the width and the height.
- Divide the width by the GCD.
- Divide the height by the GCD.
- The two answers are the ratio, written as width:height.
A Worked Example
Take a screen that is 1920 by 1080. The GCD of 1920 and 1080 is 120. Divide 1920 by 120 and you get 16. Divide 1080 by 120 and you get 9. The exact ratio is 16:9.
You can also write the ratio as a decimal. Divide the width by the height: 1920 ÷ 1080 is about 1.7778. So a 16:9 shape is 1.7778 times as wide as it is tall.
When There Is No Tidy Ratio
Some sizes do not reduce to a short ratio. A laptop screen of 1366 by 768 has a GCD of only 2, so the exact ratio is 683:384. That is correct, but it is hard to use.
In this case the closest common ratio helps. 1366 ÷ 768 is about 1.7786, and 16:9 is about 1.7778. They differ by about 0.05 percent, so most people call it 16:9. The calculator shows both numbers, so you can see the exact answer and the practical one.
How to Find a Missing Width or Height
When you know the ratio and one side, the other side takes one multiplication and one division.
- Height = width × ratio height ÷ ratio width
- Width = height × ratio width ÷ ratio height
Say you want a 16:9 picture that is 1280 pixels wide. Multiply 1280 by 9 and divide by 16. The height is 720 pixels. Your picture is 1280 by 720.
What Happens at Half a Pixel?
Not every answer is a whole number. A 16:9 picture that is 1000 pixels wide needs a height of 562.5 pixels. Screens cannot show half a pixel, so you have to round. The calculator lets you choose how.
| Rounding choice | Result for 562.5 | When to use it |
|---|---|---|
| Nearest whole number | 563 | Most web images and graphics |
| Nearest even number | 562 | Video files, which often need even sizes |
| Round up | 563 | When the picture must not be smaller |
| Round down | 562 | When the picture must not be larger |
| Two decimals | 562.5 | Print sizes in inches or centimeters |
Rounding changes the ratio a tiny bit. At 1000 by 562, the ratio is about 0.09 percent away from true 16:9. The tool shows this drift, so you know it is small enough to ignore.
Fit and Fill: Two Ways to Resize a Picture
Suppose your picture and your frame have different shapes. You have two clean choices. Both keep the picture from being stretched.
What Fit Does
Fit scales the picture until the whole thing sits inside the frame. Nothing is cut off. If the shapes differ, you get empty bars. Bars on the sides are called pillarbox bars. Bars on the top and bottom are called letterbox bars.
What Fill Does
Fill scales the picture until it covers the whole frame. There are no bars. The part of the picture that sticks out past the frame is trimmed away, evenly on both sides.
A Worked Example
Put a 1920 x 1080 picture into a 1080 x 1350 frame, the shape of a tall social post. Here is what the numbers look like.
| Measure | Fit | Fill |
|---|---|---|
| Scale | 56.25% | 125% |
| Picture size | 1080 x 607.5 | 2400 x 1350 |
| Empty space | 371.25 above and below | Nenhum |
| Trimmed away | Nenhum | 660 from each side |
| Frame covered | 45% | 100% |
| Picture visible | 100% | 45% |

How to Choose Between Them
Pick fit when every part of the picture matters. Logos, charts and pictures with text near the edge are good examples. Pick fill when a clean, full frame matters more than the edges, such as a cover photo or a background.
Why Not Just Stretch It?
Stretching forces the picture to match the frame without keeping its shape. In the example above, the picture would look about 78 percent taller than it should. Faces get long and circles become ovals. The calculator shows how much stretch you would see, so you can avoid it.
Aspect Ratio and Resolution Are Not the Same
People mix these two up all the time. Aspect ratio is the shape. Resolution is the number of pixels. A 1280 x 720 picture and a 3840 x 2160 picture share the same ratio, 16:9, but the second has nine times as many pixels.
This matters for quality. You can make a picture smaller and keep its ratio with no harm. Making it bigger adds no detail, so it can look soft. Use the ratio to get the shape right, then check that the resolution is high enough for where it will be shown.
Common Aspect Ratios and Where They Fit
Some shapes show up again and again. Here are the ones you will meet most often.
| Ratio | Decimal | Example size | Common use |
|---|---|---|---|
| 16:9 | 1.78 | 1920 x 1080 | Video, monitors and TVs |
| 9:16 | 0.56 | 1080 x 1920 | Vertical video |
| 4:3 | 1.33 | 1600 x 1200 | Older TVs and many tablets |
| 3:2 | 1.50 | 1500 x 1000 | Film frames and many cameras |
| 1:1 | 1.00 | 1080 x 1080 | Square posts and profile pictures |
| 4:5 | 0.80 | 1080 x 1350 | Portrait posts and 8 x 10 prints |
| 16:10 | 1.60 | 1920 x 1200 | Some laptops and monitors |
| 64:27 (called 21:9) | 2.37 | 2560 x 1080 | Ultrawide monitors |
| 2.39:1 | 2.39 | 2048 x 858 | Wide cinema frames |
Notice the ultrawide row. Monitors are sold as 21:9, but a 2560 x 1080 screen is exactly 64:27. The name is a rounded label, not a true ratio. The calculator gives you the exact one.
Platforms change their preferred sizes from time to time, so check the current guide before you export for a particular site or app.
Paper Sizes and Print Ratios
Paper has its own set of shapes. They matter if you print a design, trim a photo or cut fabric to fit a frame.
Why A-Series Paper Scales So Well
ISO A paper uses a ratio of 1 to the square root of 2, about 1.414. When you cut an A4 sheet in half across its long side, you get two A5 sheets with the same shape. That is why A3, A4, A5 and A6 all scale into each other without waste or cropping.
US Paper Is a Different Shape
US Letter is 8.5 by 11 inches, an exact ratio of 17:22, or about 1.294. A4 is slightly longer and narrower, at about 1.414. A design made for one will not fit the other without bars or trimming. Use fit and fill mode to see exactly how much.
Photo Print Ratios
Common photo prints come in a few shapes. A 4 x 6 print is 2:3. A 5 x 7 print is 5:7. An 8 x 10 print is 4:5. A camera that shoots 3:2 will not fill an 8 x 10 print without cropping. Fill mode shows you how much of the picture would be trimmed.
| Paper or print | Size | Ratio | Pixels at 300 PPI |
|---|---|---|---|
| A4 | 210 x 297 mm | 70:99 (about 1:1.414) | 2480 x 3508 |
| US Letter | 8.5 x 11 in | 17:22 | 2550 x 3300 |
| 4 x 6 print | 4 x 6 in | 2:3 | 1200 x 1800 |
| 8 x 10 print | 8 x 10 in | 4:5 | 2400 x 3000 |
The last column uses 300 pixels per inch, a common target for sharp prints. Multiply the size in inches by 300 to get the pixels you need.
Tips for Print and Craft Projects
Ratios help well beyond screens. If you work with paper, fabric or frames, a few habits save time and material.
- Check the ratio before you buy a frame. A 5 x 7 frame will not hold an 8 x 10 print without cutting or a mat.
- Use fill for borderless prints. Fill shows how much will be trimmed from each edge, so you can keep faces and text safe.
- Use fit when you cannot trim. Fit shows how wide the bars will be, so you can plan a mat or a colored border.
- Add extra space for trimming. Printers often ask for a few millimeters of bleed beyond the final edge.
- Keep one unit. Do not mix inches and centimeters in the same calculation.
For fabric projects, shape planning is half the job. If you are cutting a printed panel for a quilt, our Quilt Backing Calculator e Quilt Binding Calculator help you work out the yardage. You can find more tools like these in the Printing and Craft section.
Aspect Ratio for Web Pages and Design Files
On the web, a fixed ratio keeps a layout steady while pictures load. In CSS you can set it with one line, such as aspect-ratio: 16 / 9. The calculator gives you this line ready to copy.
For pictures that must fill a box, designers often use the CSS value object-fit: cover. For pictures that must stay whole, they use object-fit: contain. These are the same two ideas as fill and fit, and the tool shows what each one does to your picture.
Erros comuns a evitar
- Comparing resolution when you mean shape. Two pictures with different pixel counts can share the same ratio.
- Rounding too early. Round only at the end, so small errors do not build up.
- Stretching to fit. It is quick, but the result looks wrong. Use fit or fill instead.
- Trusting marketing labels. A screen sold as 21:9 may be 64:27. Use the real pixel sizes.
Accuracy and Limits of This Tool
The exact ratio uses up to four decimal places from the numbers you type. The tool does not read your picture. It only works with the sizes you give it. It does not edit, crop or store any image, so you will still need an image editor or a print shop to apply the result.
Considerações finais
A good ratio saves you from stretched pictures, wasted paper and surprise crops. Use the exact ratio to learn the shape of any size. Use the missing side to size a design for a new space. Use fit and fill to decide how a picture should sit in its frame.
Pick a preset, press Calculate and compare the results. For more planning tools, browse the free tools hub.
Perguntas frequentes
An aspect ratio is the relationship between the width and the height of a shape, written as width:height. A ratio of 16:9 means 16 units of width for every 9 units of height. The units do not matter, only the shape.
Find the greatest common divisor of the width and the height, then divide both sides by it. For 1920 x 1080 the divisor is 120, which gives 16:9. You can also divide the width by the height to get a decimal, about 1.78 here.
Multiply the known side by the other side of the ratio and divide by the matching side. For a 16:9 picture that is 1280 pixels wide, the height is 1280 x 9 / 16, which is 720 pixels.
Fit scales the picture until all of it sits inside the frame, which can leave bars. Fill scales the picture until it covers the frame, which trims the parts that stick out. Neither one stretches the picture.
Aspect ratio is the shape of the picture. Resolution is the number of pixels. A 1280 x 720 picture and a 3840 x 2160 picture share the 16:9 ratio but have different resolutions.
Many sizes do not divide evenly. A 16:9 picture that is 1000 pixels wide needs a height of 562.5 pixels. The calculator shows the exact value and lets you round it to a whole or even number.
Yes. Both reduce to 16:9. The first has more pixels, but the shape is the same, so you can scale one to the other without bars or cropping.
A4 is 210 by 297 millimeters. It reduces to 70:99, and the design ratio is 1 to the square root of 2, about 1:1.414. Every A-series size shares this shape.
Yes. Choose a unit before you enter the numbers. The presets for paper and prints convert to the unit you pick, and the result tables use that unit too.
No. The calculator only works with the numbers you type. It does not read, upload, edit or store any picture, and it does not save the sizes you enter.