How it’s calculated
An aspect ratio is the proportional relationship between width and height, written width:height. To simplify it, divide both numbers by their greatest common divisor (GCD), found with Euclid's algorithm. Resizing while keeping the ratio means the ratio of the new size equals the ratio of the old size, a simple proportion.
Example: 1920 × 1080. GCD(1920, 1080) = 120, so the ratio is 1920 ÷ 120 : 1080 ÷ 120 = 16:9 (1.7778). To shrink it to 1280 wide: new height = 1280 × 1080 ÷ 1920 = 720, so 1280 × 720 has the same shape.
Some pixel sizes do not reduce to a tidy ratio. 1366 × 768 simplifies to 683:384 but is sold as 16:9, because it is within 0.1% of that shape. The calculator tells you when a result is close to a common ratio. When resizing, the new size may not be a whole number; round to the nearest pixel (the result is shown both ways).
Frequently asked questions
How do I calculate an aspect ratio?
Divide the width and height by their greatest common divisor. 1920 × 1080 has a GCD of 120, so the ratio is 16:9. 1600 × 1200 has a GCD of 400, giving 4:3.
How do I resize an image without stretching it?
Multiply the new width by the original height and divide by the original width to get the new height. Resizing 1920 × 1080 to 1280 wide gives 1280 × 720.
What is 16:9 as a decimal?
16 ÷ 9 = 1.7778, also written 1.78:1. For comparison 4:3 is 1.3333, 3:2 is 1.5 and 21:9 is 2.3333.
What is the difference between 16:9 and 9:16?
They are the same shape rotated: 16:9 is landscape (wider than tall) and 9:16 is portrait, as used for phone video and stories.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- Prealgebra 2e, §5.6 Ratios and Rate (writing and simplifying ratios) — OpenStax
- Prealgebra 2e, §6.5 Solve Proportions and their Applications (resizing with a proportion) — OpenStax
- Media Queries Level 4: the aspect-ratio feature (ratio of width to height) — W3C
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator