Photo Size Lab — Megapixel, Print Size & Image File Size Calculator

Five calculators in one lab: megapixels from resolution, print size planner (how large can you print at 300 DPI?), image file size estimator (JPEG, RAW, HEIC, PNG, TIFF), memory-card storage planner, and social media image size specs. Free, instant, private.

🔒 100% client-side — your numbers never leave this browser. No uploads, no tracking.

Megapixel Calculator — resolution → MP → max print

Enter your photo's pixel dimensions to get its megapixel count and the largest print size at common DPI settings — a full pixels to print size conversion.

Max print size by DPI

DPIPrint size (in)Print size (cm)Use for

How large can I print my photo? — megapixel to print size chart

The most-searched question this lab answers. This MP to print size chart (a megapixel print size chart and photo print size chart in one) gives the maximum print size at the 300 DPI photo standard, straight from your megapixel count:

SensorMegapixelsMax print @ 300 DPI (in)Max print @ 300 DPI (cm)
12 MP12.213.4 × 10.1 in34.1 × 25.6 cm
20 MP20.018.2 × 12.2 in46.3 × 30.9 cm
24 MP24.020.0 × 13.3 in50.8 × 33.9 cm
45 MP44.827.3 × 18.2 in69.4 × 46.3 cm
61 MP61.131.9 × 21.3 in81.0 × 54.1 cm

Need the reverse — pixels needed for a target print size? Use the Print Size tab above.

Average photo file size by resolution

Typical sizes for a normally-detailed photo. Real files vary ±2× with image content:

ResolutionJPEG q90HEICRAW 14-bit
12 MP3.7 MB1.8 MB21 MB
24 MP7.2 MB3.6 MB42 MB
45 MP13.4 MB6.7 MB78 MB

How many photos fit on 64 GB, 128 GB, 256 GB?

Card capacity ÷ file size. Shown for 24 MP JPEG q90 (7.2 MB) and 24 MP RAW (42 MB). So how many photos fit on 64GB? 8,888 JPEGs or 1,524 RAW files at 24 MP:

Memory cardJPEG photosRAW photos
32 GB4,444761
64 GB8,8881,523
128 GB17,7773,047
256 GB35,5556,095

Planning a shoot? The Storage tab handles any card size and burst shooting.

Canvas print size calculator

Canvas prints hang on walls and are viewed from a metre or more away, so 150 DPI is plenty — you need half the pixels of a 300 DPI photo print:

Canvas sizePixels needed @ 150 DPIMegapixels
16×20 in2400 × 30007.2 MP
20×30 in3000 × 450013.5 MP
24×36 in3600 × 540019.4 MP

PPI vs DPI — print size on screens (a print size PPI calculator note)

This print size calculator works in DPI because it is about paper. If you are sizing for a screen, the equivalent concept is PPI (pixels per inch) — the math is identical: pixels ÷ PPI = inches on that display. A 6000 px-wide photo on a 300 PPI phone screen would span 20 inches if the screen were that big; in practice it is downscaled to fit.

How the math works

Frequently asked questions

How do you calculate megapixels from resolution?

Multiply width × height in pixels and divide by 1,000,000. For example, a 6000 × 4000 photo is 24,000,000 pixels = 24 megapixels. The Megapixels tab above does it instantly.

How large can I print a 24 megapixel photo at 300 DPI?

Divide pixels by DPI: 6000 ÷ 300 = 20 inches, 4000 ÷ 300 = 13.3 inches. So a 24 MP (6000×4000) photo prints at 20 × 13.3 inches at 300 DPI — plenty for a 16 × 20 inch frame.

What is the difference between DPI and PPI?

DPI (dots per inch) is a printer setting: how many ink dots land per inch of paper. PPI (pixels per inch) describes image density on a screen. For printing they play the same practical role — pixels per inch on paper. A '300 DPI print' means the printer maps 300 image pixels onto each inch.

Do I need 300 DPI for large prints?

Not always. 300 DPI is the standard for prints viewed up close (up to ~12 inches wide). Larger prints are viewed from farther away, so you can drop to 240 DPI up to 24 inches, 150 DPI for posters, and 100 DPI or less for billboards — the viewing distance hides the lower resolution.

How do I convert cm to pixels for printing?

Divide cm by 2.54 to get inches, then multiply by DPI. Example: a 20 × 30 cm print at 300 DPI = 7.87 × 11.81 inches × 300 = 2362 × 3543 pixels (8.4 MP). The Print Size tab accepts cm directly.

What resolution do I need for an 8×10 inch print?

At 300 DPI: 8 × 300 = 2400 by 10 × 300 = 3000 pixels, i.e. 7.2 megapixels. Almost any modern camera or phone exceeds this, so an 8×10 print is easy.

How big is a 24 megapixel JPEG file?

Roughly 7 MB at quality 90 (≈10:1 compression) — but it is only an estimate. Real 24 MP JPEGs range from ~4 MB (simple scene, high compression) to ~15 MB (busy, noisy scene at high quality). Use the File Size tab with your quality setting.

What is the difference between JPEG quality 90 and 80 in file size?

Quality 90 compresses about 10:1, quality 80 about 15:1 — so the same 24 MP photo is roughly 7.2 MB at q90 and 4.8 MB at q80. Visually, q80–90 is nearly identical for most photos; the difference only shows on close inspection or heavy editing.

HEIC vs JPEG: which has smaller file size?

HEIC is typically about 50% smaller than JPEG at the same visual quality — a 24 MP photo that is 7.2 MB as JPEG q90 is roughly 3.6 MB as HEIC. That is why phones default to HEIC. The File Size tab compares both side by side.

How much bigger is a RAW file than a JPEG?

Much bigger. A 24 MP camera's 14-bit RAW is 42 MB of sensor data, versus ~7 MB for the same shot as JPEG q90 — about 6× larger. The trade-off is editing latitude: RAW keeps far more highlight and shadow detail.

How many photos fit on a 64 GB memory card?

Divide card capacity by file size: 64 GB ÷ 7.2 MB ≈ 8,888 JPEGs (24 MP, q90), or 64,000 ÷ 42 ≈ 1,524 RAW files. The Storage tab computes this for any card size and file size.

What is the best Instagram photo size?

Upload 1080 × 1350 pixels (4:5 portrait) — it is the tallest format allowed in the feed and gets the most screen space. Square posts are 1080 × 1080; Stories and Reels are 1080 × 1920. Instagram compresses everything to these widths anyway.

What size should a YouTube thumbnail be?

1280 × 720 pixels (16:9), under the 2 MB upload limit. Channel art is 2560 × 1440, but keep important content inside the 1546 × 423 safe area so it is visible on every device.

What aspect ratio is 6000 × 4000?

3:2 — the classic DSLR/mirrorless ratio (6000 and 4000 share a greatest common divisor of 2000). The ratio is shown as information only here; for resizing or cropping calculations use our aspect ratio calculator.

Does this photo size calculator upload my photos?

No. Photo Size Lab runs 100% in your browser — you only type numbers, and nothing (not even those) is sent anywhere. There are no accounts, no uploads, and no tracking.

Why are JPEG file size estimates not exact?

JPEG compression is content-dependent: a flat blue sky compresses far better than a detailed, noisy crowd scene. Estimates in this tool use standard quality-to-ratio anchors (q90 ≈ 10:1, q80 ≈ 15:1, q50 ≈ 30:1); real files commonly land within ±2× of the estimate.

Free tool by NRTechStudio