Home ↓
CalculatorsVerified

Tech & Digital

Image Resolution Calculator: Megapixels, Print Size and DPI

Find out how large you can print a photo and how its pixels relate to physical size. A digital image is a grid of pixels: a 24-megapixel camera typically produces images of 6000 by 4000 pixels. How big that image can be printed depends on how many pixels are placed in each inch of paper, the print resolution in pixels per inch (ppi), often called dots per inch (dpi) in printing. At 300 ppi, the usual standard for high-quality photo prints viewed at reading distance, a 6000 by 4000 pixel image prints at 20 by 13.3 inches, or about 51 by 34 centimetres; at 150 ppi, adequate for a poster seen from a few metres, it can be twice as large in each direction. Enter the pixel dimensions, the print resolution and, if you have a print size in mind, its width, and the calculator gives the megapixels, the print size in inches and centimetres, the aspect ratio, the resolution at your chosen print width, the uncompressed file size and a table of print sizes at common resolutions.

How to use this calculator

  1. Enter the image width and height in pixels, from the file properties.
  2. Enter the print resolution you want, such as 300 ppi.
  3. Optionally enter a print width in centimetres to see the resulting ppi.
  4. Choose 8-bit or 16-bit colour for the uncompressed size.
  5. Use the table to choose a print size.

How much resolution do you need?

The resolution required depends on viewing distance. A photo book or small print held in the hand benefits from 300 ppi, while a large poster viewed from two metres looks sharp at 100 to 150 ppi, and billboards use far less.

Upscaling software can increase pixel counts, but it cannot add real detail; starting with enough pixels for the intended print gives the best results.

Aspect ratios and cropping

Most cameras produce 3:2 or 4:3 images, while common print sizes such as 8 × 10 inches have different proportions, so some cropping is often needed. Check the aspect ratio before ordering prints to avoid losing important parts of the picture.

Phone screens and social media also use their own aspect ratios, so a single image may need several crops for different uses.

Formula & method

Megapixels = width × height ÷ 1,000,000Print size (inches) = pixels ÷ pixels per inch; centimetres = inches × 2.54Resolution at a given print width = width in pixels ÷ print width in inchesUncompressed size = width × height × 3 channels × bit depth ÷ 8 bytes

Megapixels = width × height ÷ 1,000,000. Print width (in) = width (px) ÷ ppi; print height (in) = height (px) ÷ ppi; centimetres = inches × 2.54. Effective resolution at a chosen print width = width (px) ÷ (print width (cm) ÷ 2.54). Aspect ratio = width ÷ height. Uncompressed RGB size (bytes) = width × height × 3 × bit depth ÷ 8, which is 3 bytes per pixel for 8-bit colour and 6 bytes for 16-bit; compressed formats such as JPEG are usually 5 to 20 times smaller, and raw files vary by camera. The dpi value stored in an image file’s metadata does not change its pixels; only the number of pixels and the print size determine print quality.

Worked example

A 24-megapixel photo (6000 × 4000)

  1. Megapixels = 6000 × 4000 ÷ 10⁶ = 24 MP.
  2. At 300 ppi: 6000 ÷ 300 = 20 in and 4000 ÷ 300 = 13.33 in.
  3. In centimetres: 50.8 × 33.9 cm; uncompressed 8-bit RGB size = 72 MB.

Answer: Prints at about 51 × 34 cm at 300 ppi.

Frequently asked questions

How big can I print a 12 MP photo?

About 13.3 × 10 inches (34 × 25 cm) at 300 ppi for a 4000 × 3000 image.

What resolution should I print at?

About 300 ppi for close viewing; 150 ppi for posters.

What is the difference between dpi and ppi?

PPI refers to image pixels per inch; DPI to printer ink dots, but the terms are often used interchangeably.

Does changing dpi in the file change quality?

No. Only the number of pixels and the print size matter.

How do I calculate megapixels?

Width × height in pixels, divided by one million.

Why is my JPEG smaller than the uncompressed size?

JPEG compression removes data, typically reducing size many times.