Megapixel Calculator
By using our calculators, you agree to our Terms of Use.
Convert pixel dimensions to megapixels, or find dimensions for a target megapixel count.
Resolution
Megapixels
24 MP
6,000 × 4,000 px
- Total pixels
- 24,000,000
Related calculators
Megapixels explained
A megapixel is one million pixels. To find a sensor or image's megapixel count, multiply its width by its height in pixels and divide by one million. This is the number camera makers advertise (e.g. "24MP"), though real-world sharpness also depends on lens quality, sensor size, and processing.
You can also work backward: given a target megapixel count and an aspect ratio (like 3:2 for most DSLRs or 4:3 for many compacts), the calculator finds the pixel width and height that hit that megapixel count while keeping the ratio.
Example: a 6000 × 4000 pixel image is 24 megapixels (6000 × 4000 ÷ 1,000,000). Working backward, a target of 24 megapixels at a 3:2 ratio also produces 6000 × 4000 — the two directions are inverses of each other.
Common questions
Does more megapixels always mean better image quality?
Not necessarily. Megapixels only measure resolution (pixel count) — sensor size, lens sharpness, and low-light performance matter just as much for overall image quality.
What aspect ratio should I use when solving for pixel dimensions?
Match your camera or intended output: 3:2 is common for full-frame and APS-C DSLRs/mirrorless cameras, 4:3 for Micro Four Thirds and many compacts, and 1:1 for square formats.