How to Calculate Aspect Ratio
Calculate aspect ratio, diagonal, and megapixels for any screen or image resolution.
The Formula
width / heightThe aspect ratio formula uses the mathematical relationship: width / height. Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the aspect ratio formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Width (pixels) | Input (you provide) | 1,920 |
| Height (pixels) | Input (you provide) | 1,080 |
| Aspect Ratio (decimal) | Result (calculated) | — |
| Diagonal (same unit) | Result (calculated) | — |
| Total Pixels | Result (calculated) | — |
| Megapixels | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Width (pixels), Height (pixels).
- 2Substitute your known values into the formula: width / height.
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive Aspect Ratio Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: width (pixels) = 1,000, with the other inputs at the typical values from the variables table above. Substituting into the formula gives aspect ratio (decimal) = 0.9259, diagonal (same unit) = 1472, total pixels = 1080000, megapixels = 1.08. These numbers are solved by the same engine that powers the Aspect Ratio calculator, so you can reproduce them exactly by entering the same inputs there.
| Width (pixels) | Aspect Ratio (decimal) | Diagonal (same unit) | Total Pixels | Megapixels |
|---|---|---|---|---|
| 1 | 0.0009 | 1080 | 1080 | 0.00 |
| 1,000 | 0.9259 | 1472 | 1080000 | 1.08 |
| 2,000 | 1.8519 | 2273 | 2160000 | 2.16 |
| 3,000 | 2.7778 | 3188 | 3240000 | 3.24 |
| 4,000 | 3.7037 | 4143 | 4320000 | 4.32 |
| 5,000 | 4.6296 | 5115 | 5400000 | 5.40 |
| 6,000 | 5.5556 | 6096 | 6480000 | 6.48 |
| 8,000 | 7.4074 | 8073 | 8640000 | 8.64 |
How each result changes as width (pixels) changes, holding the other inputs constant.
Practice Problems
1. 1080p Full HD: Plug in Width (pixels) 1,920, Height (pixels) 1,080. What is the answer?
Answer: The calculator returns Aspect Ratio (decimal) 1.7778, Diagonal (same unit) 2,203, Total Pixels 2,073,600, Megapixels 2.07 for Width (pixels) 1,920, Height (pixels) 1,080.
2. Given Width (pixels) 4,800, Height (pixels) 2,160, what does it come out to?
Answer: With Width (pixels) 4,800, Height (pixels) 2,160, the results are Aspect Ratio (decimal) 2.2222, Diagonal (same unit) 5,264, Total Pixels 10,368,000, Megapixels 10.37.
Frequently Asked Questions
What is the formula for aspect ratio?
The formula is: width / height. Calculate aspect ratio, diagonal, and megapixels for any screen or image resolution.
What values do I need to calculate aspect ratio?
You need width (pixels), height (pixels). The calculator produces aspect ratio (decimal), diagonal (same unit), total pixels, megapixels from those inputs.
What is the aspect ratio when width (pixels) is 1,000?
With width (pixels) = 1,000, the result is aspect ratio (decimal) = 0.9259, diagonal (same unit) = 1472, total pixels = 1080000, megapixels = 1.08. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free Aspect Ratio calculator.
