About the Megapixel Calculator
Convert between megapixels and image dimensions for any aspect ratio.
Also known as: mp calculator, megapixels to resolution, camera megapixels, sensor resolution.
How to use this calculator
- Enter calculate and the other fields.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
megapixels = width × height ÷ 1,000,000
Worked example
Using the values pre-filled in the calculator above:
- Calculate: Megapixels from dimensions
- Width = 6,000 px
- Height = 4,000 px
the calculator returns:
- Megapixels: 24 MP
- Total pixels: 24,000,000
- Gigapixels: 0.024
- Uncompressed RAW size (14-bit): 40.05 MB