Worked examples
4000×3000, 3 bytes, 10×
12 MP, 36 MB, about 3.6 MB
1920×1080, 4 bytes
about 2.07 MP, 8.29 MB
12 MP at 4:3
4,000 × 3,000
How to use it
- Choose pixels or megapixels.
- Enter width and height (or megapixels and ratio).
- Read megapixels and size.
What this calculates
Megapixels are width times height in pixels divided by one million. A 4000×3000 photo has 12 million pixels, 12 megapixels, and at 3 bytes a pixel it is 36 MB uncompressed; 10 times compression gives about 3.6 MB. 1920×1080 is about 2.07 megapixels. It helps size menu boards or product photos.
The formulas
- Megapixels = width × height ÷ 1,000,000
- Raw size (MB) = width × height × bytes ÷ 1,000,000
- Estimate = raw size ÷ compression
Reference table
| Size | Megapixels | Raw (MB) |
|---|---|---|
| 1280x720 | 0.92 | 2.8 |
| 1920x1080 | 2.07 | 6.2 |
| 2560x1440 | 3.69 | 11.1 |
| 3840x2160 | 8.29 | 24.9 |
| 4000x3000 | 12 | 36 |
Good to know
- For printing, dots per inch matter; use the print-dpi calculator.
- For ratios alone use the aspect-ratio calculator.
Frequently asked questions
Which bytes per pixel?
Photos use 3 (RGB), transparency 4, gray 1.
How do I know the compression?
It depends on quality; work it out from a real file.
Is more megapixels better?
Not by itself; the sensor, lens and light matter more.
1 MB is 1,000 KB?
Here, yes, 1,000.
When the ratio cannot be exact?
Rounded to the nearest whole pixels.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.