Aspect Ratio Calculator
Simplified ratio, orientation, and megapixels from pixels.
What it does
Aspect ratios reduce pixel dimensions through their greatest common divisor: 1920 by 1080 shares 120, leaving the familiar 16:9. Orientation follows which side runs longer, with equal sides reading square.
The tool above takes width with height in pixels. It returns the simplified ratio with orientation and megapixels beside them.
The default 1920x1080 divides by 120 into 16:9 landscape at 2.07 MP. A square 1080x1080 reads 1:1 while portrait 1080x1920 flips to 9:16.
Pixel math follows W3C web definitions with MDN web documentation matching integer handling. Both treat ratio as shape alone, separate from physical size or density.
How to use
- Enter the width in pixels.
- Enter the height in pixels.
- Read the ratio first for the shape.
- Use orientation for layout decisions.
- Use megapixels for print and sensor talk.
Formula
- GCD
- Greatest shared divisor simplifying the pair.
- 16:9
- Widescreen shape from 1920x1080.
- MP
- Millions of pixels in the frame.
Whole pixels 1 to 100000 accepted; decimals round to nearest whole first. Ratio order always reads width then height.
Worked example
Example: 1920x1080
Defaults: 1920 wide, 1080 tall.
- GCD: 1920 and 1080 share 120.
- Ratio: 1920/120 : 1080/120 = 16:9.
- Orientation: wider than tall, landscape.
- Pixels: 1920 x 1080 = 2,073,600 = 2.07 MP.
- Tool shows 16:9, Landscape, 2.07 MP.
Reference table
| Size | Ratio | Use |
|---|---|---|
| 1920x1080 | 16:9 | Widescreen video |
| 1080x1080 | 1:1 | Square posts |
| 1080x1920 | 9:16 | Vertical stories |
| 3840x2160 | 16:9 | 4K video |
Limits
- Shape only; physical size needs density.
- Whole pixels 1 to 100000.
- Anamorphic pixels stretch outside.
- Crop intent needs human eyes.
Common mistakes
- Reading 1920x1080 as 16:10 by habit.
- Swapping width with height.
- Confusing ratio with resolution size.
- Forgetting portrait flips the pair.
- Upscaling past sensor megapixels.
Try it yourself
Quick checks. Answers sit tucked under each question.
1080x1080?
1:1 Square, 1.17 MP.
1080x1920?
9:16 Portrait, 2.07 MP.
3840x2160?
16:9 Landscape, 8.29 MP.
Questions
What is 1920x1080 ratio?
16:9 landscape at 2.07 MP.
How do you simplify?
Divide both by their GCD: 120 here.
Portrait or landscape?
Wider reads landscape, taller portrait, equal square.
What are megapixels?
Width times height in millions: 1920x1080 is 2.07.
Does ratio set quality?
No, only shape. Pixels set detail.
Vertical video ratio?
Usually 9:16, like 1080x1920.