An aspect ratio is width divided by height, reduced to its simplest whole-number form such as 16:9. Enter a width and height and this calculator reduces them by their greatest common divisor, shows the decimal ratio, names the format, and scales either dimension so images and video resize without stretching or black bars.
Aspect ratio
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How to Use the Aspect Ratio Calculator
- Enter the original width and height in any unit, as long as both use the same one.
- Read the aspect ratio, its decimal form and the format name, which all update as you type.
- To resize, type a new width and the matching height that preserves the ratio appears instantly.
Each output answers a different question:
| Result | What it tells you |
|---|---|
| Aspect ratio | The width-to-height proportion in simplest whole numbers, such as 16:9. |
| Decimal (width / height) | The same proportion as a single number, handy for CSS and scripts. |
| Height at new width | The height that keeps the shape identical when you change the width. |
What Is an Aspect Ratio?
An aspect ratio describes the shape of a rectangle by comparing its width to its height, independent of its actual size. A 16:9 frame has the same proportions whether it is a phone thumbnail or a cinema screen, which is why the ratio, not the pixel count, decides whether an image looks correct.
The ratio is written as two numbers separated by a colon, so 16:9 means sixteen units of width for every nine of height. Because it is a proportion, you can scale both numbers by the same factor and the shape never changes, and that single fact is what lets designers move one layout across dozens of screen sizes.
How the Aspect Ratio Calculator Works
The tool divides the width by the height, then reduces that fraction to its smallest whole-number form using the greatest common divisor of the two values.
ratio = width : height, divided through by GCD(width, height)In symbols the reduced ratio is w/h = (w / d) : (h / d) where d is the greatest common divisor of the width and height. Dividing both sides by d cannot change the proportion, so the reduced pair describes exactly the same shape in the smallest numbers.
- Take the width and height as whole numbers.
- Find their greatest common divisor.
- Divide each by that divisor to get the simplest ratio.
To resize instead, it multiplies the new width by the original height and divides by the original width, which is the proportion h2 = (w2 * h1) / w1.
Aspect Ratio Example
Take a 1920 by 1080 image. The greatest common divisor of 1920 and 1080 is 120, and 1920/120 : 1080/120 = 16:9, the widescreen standard. The decimal form is 1920 divided by 1080, or about 1.778 to 1.
Now resize it to a 1280-pixel-wide thumbnail. Keeping 16:9 means the height must be (1280 * 1080) / 1920 = 720, giving 1280 by 720. The shape is untouched, so nothing looks stretched.
By contrast, forcing that same image into a 1280 by 800 box changes the ratio to 8:5, and the difference is what produces the subtle squashing you sometimes see in badly resized banners.
Common Aspect Ratios Compared
A handful of ratios cover almost everything you will meet, and knowing them saves time when a platform asks for a specific shape.
| Ratio | Decimal | Where it is used |
|---|---|---|
| 16:9 | 1.78 | YouTube, TVs, laptops, most modern video |
| 4:3 | 1.33 | Older monitors, many compact cameras, slideshows |
| 1:1 | 1.00 | Profile pictures and square social posts |
| 3:2 | 1.50 | DSLR photography and standard prints |
| 21:9 | 2.33 | Ultrawide monitors and cinematic film |
| 9:16 | 0.56 | Vertical phone video, Reels and Stories |
If a number here surprises you, the percentage calculator is handy for working out how far one shape sits from another as a percentage.
What Changes the Aspect Ratio
The ratio is fixed by the two dimensions alone, but a few habits quietly change it without you noticing.
Cropping
Trimming pixels from one edge alters width or height on its own, so cropping is the most common way a ratio shifts from, say, 3:2 to 16:9.
Non-Proportional Resizing
Dragging only one handle, or typing a width and height that are not linked, breaks the proportion and stretches the content.
Padding and Borders
Adding a frame or letterbox changes the overall dimensions of the canvas even when the picture inside keeps its shape.
Rounding to Whole Pixels
A device cannot show a fractional pixel, so a resized value is rounded, which nudges the true ratio by a tiny amount.
When to Use an Aspect Ratio Calculator
Preparing Images for a Platform
Social networks and video sites require exact shapes, and the calculator gives the resize height in one step so nothing is rejected or auto-cropped.
Responsive Web Design
Reserving space for a video or hero image needs the decimal ratio, which slots directly into CSS aspect-ratio rules to stop layout shift.
Printing and Framing
Matching a photo to a standard frame means checking whether 3:2 or 4:3 fits before you order, saving a wasted print.
Common Mistakes
1. Mixing Up Width and Height
16:9 and 9:16 are different shapes. The first number is always the width.
2. Resizing Without Locking the Ratio
Changing width and height independently distorts the image. Change one and let the other follow.
3. Comparing Ratios by Subtraction
Ratios are proportions, so compare them by division or by their decimal form, not by subtracting the numbers.
4. Assuming Pixels Equal Ratio
Two images with very different pixel counts can share the same ratio; it is the proportion, not the size, that matters.
5. Ignoring Rounding on Resize
A resized dimension is often not a whole pixel, so expect a value rounded to the nearest one.
Accuracy and Limitations
The reduction is exact for whole-number inputs, and the resize is mathematically precise before pixel rounding, but the tool describes shape only.
What it calculates accurately
- The simplest whole-number ratio via the greatest common divisor
- The exact decimal proportion
- A proportional resize height for any new width
- The name of common standard formats
What it does not account for
- Pixel density, DPI or physical print size
- Safe areas, bleed or platform crop guides
- Rounding once a device snaps to whole pixels
- Non-rectangular or rounded-corner canvases
How We Calculate the Ratio
Frequently Asked Questions About Aspect Ratios
What is an aspect ratio?
It is the proportion of width to height, written as two numbers such as 16:9. It describes shape independent of size, so any image with that proportion looks the same whether large or small.
How do I calculate the aspect ratio of an image?
Divide the width by the height, then reduce the two numbers by their greatest common divisor. For 1920 by 1080 the GCD is 120, giving 16:9. This calculator does both steps for you.
What is the most common aspect ratio?
16:9 is the standard for video, laptops and televisions. For photography 3:2 and 4:3 are common, and 1:1 and 9:16 dominate social media.
How do I resize an image without stretching it?
Change one dimension and let the other follow the same ratio. Enter a new width here and the matching height is calculated so the proportions stay identical.
What does 16:9 mean?
Sixteen units of width for every nine of height. A 1920 by 1080 screen is 16:9 because both numbers reduce by 120 to 16 and 9.
Is aspect ratio the same as resolution?
No. Resolution is the pixel count, such as 1920 by 1080. Aspect ratio is the shape those pixels form. Different resolutions can share the same ratio.
How do I convert an aspect ratio to a decimal?
Divide the first number by the second. So 16:9 is 16 divided by 9, about 1.78. The decimal is useful in CSS and code.
Why does my resized image have black bars?
The bars, called letterboxing, appear when content of one ratio is placed in a frame of a different ratio. Match the ratios, or expect padding to fill the gap.
Can an aspect ratio be a portrait shape?
Yes. When the height is greater than the width the ratio is a portrait one, such as 9:16 for vertical video. The decimal is then less than one.
Is anything I enter stored?
No. The calculation runs entirely in your browser, and nothing you type is sent anywhere unless you choose to Save a result, which stays on this device only.
Sources
- Aspect ratio (image) (Wikipedia).
- Ratios explained (Maths Is Fun).
- Greatest common factor (Maths Is Fun).
- 16:9 aspect ratio (Wikipedia).
Related Calculators
Looking for more math and design tools?
Explore all math calculatorsThis calculator is for general design and math help. It reduces a width and height to a ratio and scales dimensions proportionally; always preview the result in your actual layout before exporting. Spotted an error? Let us know.
Creator
Hamza Shakeel is the Chief Technology Officer at MultiCalculators.com, responsible for the platform's technical architecture, calculator engine performance, and infrastructure reliability. He leads engineering efforts focused on site speed, mobile responsiveness, Core Web Vitals optimization, and security. Hamza ensures every calculation runs accurately and instantly across all devices, while maintaining the platform's stability and scalability as it grows. His work directly supports the seamless, trustworthy experience users expect from MultiCalculators.com.
Areas of Expertise: Web Engineering, Core Web Vitals, Site Performance, Calculator Logic, Cloud Infrastructure, Security
