Skip to main content
Calcimator

Megapixel Calculator

Calculate megapixels from image dimensions. See print sizes at different DPI and estimate file sizes for RAW and JPEG formats.

About this calculator

Megapixels are just width in pixels times height in pixels, divided by one million — this calculator does exactly that, then uses the same width and height to derive three practical numbers photographers actually need. Print sizes at 72, 150, and 300 DPI divide each pixel dimension by the DPI value to get inches, since DPI (dots per inch) defines how many pixels are packed into each printed inch: 300 DPI is the standard for sharp, close-viewing prints, 150 DPI is acceptable for larger prints viewed from a normal distance, and 72 DPI (historically a screen-resolution default) produces much larger dimensions but at a print quality too coarse for anything meant to be viewed up close. File size estimates come from three different assumptions about bytes per pixel: uncompressed 8-bit RGB assumes exactly 3 bytes per pixel (one byte each for red, green, blue channels) divided by 1024² to convert to megabytes; the RAW estimate uses roughly 1.75 bytes per pixel as a rough stand-in for 14-bit RAW sensor data with typical compression and file overhead (real RAW file sizes vary meaningfully by camera manufacturer and compression scheme, so treat this as an approximation, not a spec); and the JPEG estimate simply divides the uncompressed size by 10, reflecting JPEG's typical (but highly content-dependent) compression ratio.

The print quality assessment is a straightforward megapixel-count lookup table, from "thumbnails only" below 2MP up through "gallery prints, large format" at 50MP and above. It's worth knowing this only accounts for resolution, not other real limits on print quality — lens sharpness, sensor noise, and camera shake all affect how large you can genuinely print an image, so this calculator's guidance is a ceiling based on pixel count alone, not a guarantee that any given file will look good at that size.

Inputs

px
px

Results

Megapixels

24 MP

Print Size at 300 DPI

20" x 13.3"

Total Pixels24,000,000
Print Size at 150 DPI40" x 26.7"
Print Size at 72 DPI83.3" x 55.6"
Uncompressed RGB (8-bit)68.7 MB
Estimated RAW File40.1 MB
Estimated JPEG File6.87 MB
Print Quality AssessmentVery good — large prints up to 24x36"
How to Use This Calculator
  1. Enter Image Width and Image Height.
  2. Review Megapixels (MP) and Print Size at 300 DPI.
  3. Use Total Pixels and Print Size at 150 DPI to inform your decision.

How the result changes with Image Width

Image WidthMegapixelsPrint Size at 300 DPI
3,00012 MP10" x 13.3"
4,50018 MP15" x 13.3"
9,00036 MP30" x 13.3"
15,00060 MP50" x 13.3"

What each input means

Image Width
Image width in pixels.
Image Height
Image height in pixels.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    Image Width = 6000, Image Height = 4000 = 2 input(s) provided
  2. Calculate Megapixels
    Megapixels
    24 = 24
  3. Calculate Print Size at 300 DPI
    Print Size at 300 DPI = `${printAt300W
    20" x 13.3" = 20" x 13.3"
  4. Calculate Total Pixels
    Total Pixels
    24000000 = 24000000
  5. Calculate Print Size at 150 DPI
    Print Size at 150 DPI = `${printAt150W
    40" x 26.7" = 40" x 26.7"

Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why do the print sizes at 72, 150, and 300 DPI come out so different for the same image?

Each print size divides your pixel width and height directly by that DPI value, so a lower DPI produces larger printed dimensions from the exact same pixel count. 300 DPI is the standard for sharp, close-viewing prints, 150 DPI is acceptable for larger prints viewed from farther away, and 72 DPI yields much bigger dimensions but at quality too coarse for anything viewed up close.

How accurate are the RAW and JPEG file size estimates?

They're approximations built on assumed bytes-per-pixel: uncompressed RGB uses exactly 3 bytes/pixel, RAW uses roughly 1.75 bytes/pixel as a stand-in for 14-bit sensor data, and JPEG is estimated as one-tenth of the uncompressed size. Real RAW file sizes vary by camera manufacturer and compression scheme, and JPEG compression ratios depend heavily on image content, so treat these as ballpark figures rather than exact file sizes.

Does Print Quality Assessment factor in anything besides megapixel count?

No — it's a straight lookup table based only on total megapixels, from "thumbnails only" below 2MP up to "gallery prints, large format" at 50MP and above. It doesn't account for lens sharpness, sensor noise, or camera shake, all of which affect how large an image can genuinely print well, so the assessment is a resolution-based ceiling, not a quality guarantee.

If I crop an image after shooting, should I re-enter new dimensions?

Yes — Image Width and Image Height should reflect the actual pixel dimensions of the file you're evaluating, so after cropping you should enter the cropped dimensions rather than the original capture size. Megapixels, print sizes, and file size estimates all scale directly off whatever width and height you provide.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Creative, Media & Design.