Calculating your megapixels is straightforward once you know the Megapixel formula and what each input means. This guide explains the method in plain language, walks through a manual calculation, and gives worked examples you can follow — then you can do it instantly with the Megapixel Calculator.
What is Megapixel?
The Megapixel calculation tells you your megapixels from a few simple inputs. The figure you are solving for here is the megapixels.
The Megapixel formula
The core formula is:
Megapixels = Width in pixels × Height in pixels ÷ 1000000
Here is what each input means:
- Width in pixels — a number. Example: 6,000.
- Height in pixels — a number. Example: 4,000.
How to calculate it step by step
- Write down the width in pixels (for example, 6,000).
- Write down the height in pixels (for example, 4,000).
- Apply the formula above to get your megapixels.
- Double-check the result with the Megapixel Calculator.
Worked examples
Example 1
| Input / Output | Value |
|---|---|
| Width in pixels | 6,000 |
| Height in pixels | 4,000 |
| Megapixels | 24.00 |
| Total pixels | 24,000,000 |
With width in pixels of 6,000 and height in pixels of 4,000, the megapixels works out to 24.00.
Example 2
With width in pixels of 12,000 and height in pixels of 4,000, the megapixels works out to 48.00.
| Result | Value |
|---|---|
| Megapixels | 48.00 |
| Total pixels | 48,000,000 |
Example 3
With width in pixels of 3,000 and height in pixels of 4,000, the megapixels works out to 12.00.
| Result | Value |
|---|---|
| Megapixels | 12.00 |
| Total pixels | 12,000,000 |
Tips for an accurate result
- Keep your units consistent — mixing, say, months with years or grams with kilograms is the most common source of error.
- Round only at the very end. Rounding inputs early can shift the final answer noticeably.
- Re-run the numbers whenever an input changes, rather than estimating from an old result.
Prefer not to do the maths by hand? — the Megapixel Calculator does it instantly, for free, with the formula and a worked example built in.
Related calculators
Continue exploring photography calculators with these tools: Crop Factor Calculator, Print Size Calculator, 35mm Equivalent Focal Length Calculator, Exposure Value Calculator, Hyperfocal Distance Calculator.