Aspect Ratio Calculator: How It’s Calculated
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator works out the aspect ratio of a rectangle from its width and height, returning the simplified ratio (like 16:9) and the decimal value. You enter the width and height in any unit (as long as both use the same unit), and you get the ratio in both forms. The calculation itself is simple division and simplification, but the context matters a lot in screens, images, and video.
Formula
The aspect ratio is the ratio of width to height, written as width : height. The formula is:
Aspect Ratio = Width ÷ Height (as a decimal), and the simplified ratio is found by dividing both width and height by their greatest common divisor (GCD).
- Width (W) – the horizontal measurement, in pixels, inches, centimeters, or any unit.
- Height (H) – the vertical measurement, in the same unit as width.
- GCD(W, H) – the largest integer that divides both W and H evenly.
The simplified ratio is W/GCD : H/GCD. For example, 1920 × 1080 has a GCD of 120, so the ratio is 1920/120 : 1080/120 = 16 : 9.
Worked Example
Using the default values from the calculator: width = 1920 px, height = 1080 px.
- Compute the decimal ratio: 1920 ÷ 1080 = 1.7777…
- Find the GCD of 1920 and 1080. The factors are: 1920 = 2^7 × 3 × 5, 1080 = 2^3 × 3^3 × 5. The GCD is 2^3 × 3 × 5 = 120.
- Divide both by 120: 1920/120 = 16, 1080/120 = 9.
- Simplified ratio: 16 : 9.
The decimal value is 1.7778 (rounded to 4 decimal places), which matches the calculator output.
Why Aspect Ratio Matters
Aspect ratio determines how an image or screen fits a given space. A 16:9 screen is wide, good for movies and modern video. A 4:3 screen is nearly square, common in older TVs and computer monitors. When you display a 4:3 image on a 16:9 screen without cropping, you get black bars on the sides (pillarboxing). Conversely, showing a 16:9 video on a 4:3 screen gives black bars on top and bottom (letterboxing).
The same principle applies to print: a photo printed at 4:6 (same as 2:3) will not fit a 5:7 frame without cropping. Knowing the ratio helps you predict how content will look before you resize or print.
Common Aspect Ratios and Their Uses
- 1:1 – Square, used for profile pictures and some social media posts.
- 4:3 – Older TVs, early computer monitors, many digital cameras in still mode.
- 3:2 – Classic 35mm film photo, many DSLR cameras.
- 16:9 – HDTV, most modern monitors, YouTube videos, smartphones in landscape.
- 21:9 – Ultrawide monitors and cinematic films.
- 9:16 – Vertical video for TikTok, Instagram Stories, and Reels.
Each ratio has a purpose. 16:9 matches human peripheral vision better for movies; 4:3 was a compromise for early broadcast; 1:1 is convenient for thumbnails. When you know the ratio, you can choose the right one for your medium.
How to Choose an Aspect Ratio
Choosing depends on where the content will be viewed:
- For video – Use 16:9 for YouTube, Vimeo, and most TV. Use 9:16 for vertical platforms. Use 21:9 if you are making a cinematic film.
- For photos – Use 3:2 or 4:3 if you plan to print standard sizes. Use 1:1 for social media avatars.
- For presentations – 16:9 is now standard for projectors and screens; 4:3 is still used in some older conference rooms.
- For documents – Paper sizes have their own ratios (A4 is √2:1 ≈ 1.414:1), but that is usually not called an aspect ratio.
If you are unsure, 16:9 is the safest default for digital screens. For print, ask your printer for the required ratio or crop to the exact pixel dimensions.
Common Mistakes and Misconceptions
- Mixing units – Width in inches and height in centimeters will give a wrong ratio. Always use the same unit.
- Forgetting to simplify – 1920:1080 is technically correct, but 16:9 is clearer. The calculator simplifies for you.
- Confusing orientation – 16:9 and 9:16 are different. A vertical video is 9:16 (width:height), not 16:9.
- Assuming pixels are square – This is true for almost all modern displays, but some old formats (like anamorphic widescreen) used non-square pixels. For standard digital images, pixels are square.
- Rounding too early – If you round 1920/1080 to 1.78, you lose the exact ratio. Use the GCD method for precision.
A common misconception is that aspect ratio is the same as resolution. Resolution is the total pixel count (e.g., 1920×1080), while aspect ratio is just the relationship between width and height. A 1280×720 screen and a 1920×1080 screen have the same 16:9 ratio but different resolutions.
Limits of the Aspect Ratio Formula
The formula works for any rectangle, but it has limits:
- It assumes a flat rectangle – Curved or irregular shapes have no single aspect ratio.
- It ignores pixel density – Two screens with the same ratio can have very different sharpness (PPI).
- It does not tell you about cropping – If you change the ratio, you will lose part of the image unless you add padding.
- It is not a measure of quality – A 16:9 image can be low resolution; the ratio only describes shape.
For practical use, always check the exact pixel dimensions of your source and target. The ratio alone is not enough to resize an image without distortion – you must also maintain the ratio during resizing.
Frequently Asked Questions
How do I calculate aspect ratio from width and height?
Divide the width by the height to get a decimal (e.g., 1920 ÷ 1080 = 1.78). To get the simplified ratio, find the greatest common divisor of both numbers and divide each by it. For 1920 and 1080, the GCD is 120, giving 16:9.
What does 16:9 mean exactly?
It means that for every 16 units of width, there are 9 units of height. The units can be pixels, inches, or anything else – the ratio is unitless. A screen that is 16 inches wide and 9 inches tall has the same ratio as one 32 inches wide and 18 inches tall.
Is aspect ratio the same as resolution?
No. Resolution is the total number of pixels (e.g., 1920×1080). Aspect ratio is the proportional relationship between width and height (16:9). You can have many resolutions with the same ratio – 1280×720, 1920×1080, and 3840×2160 are all 16:9.
Why do some videos have black bars?
Black bars appear when the video’s aspect ratio does not match the screen’s ratio. If you play a 4:3 video on a 16:9 screen, the screen is wider, so you get black bars on the sides (pillarboxing). If you play a 21:9 movie on a 16:9 screen, you get bars on top and bottom (letterboxing).
Can I change the aspect ratio without cropping?
No, not without distortion or adding padding. If you stretch a 4:3 image to 16:9, everything looks wider and distorted. You can add black bars (or a blurred background) to fill the space, or you can crop the image, which removes part of the picture.
What is the best aspect ratio for social media?
It depends on the platform. For Instagram feed posts, 1:1 (square) or 4:5 (portrait) work well. For Instagram Stories and TikTok, use 9:16 (vertical). For YouTube, use 16:9. Check the platform’s current guidelines, as they occasionally change.
Related
Formula used
in w | Width | px | 1920 | 0 in h | Height | px | 1080 | 0 out ratio | Aspect ratio (decimal) | - | w / h | 4 out gcd | GCD (for simplification) | - | gcd(w,h) | 0 out simplified | Simplified ratio | - | (w/gcd) + ":" + (h/gcd) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.