The formula
Print size (inches) = pixels ÷ DPI
Pixels needed = print size (inches) × DPI
Effective DPI = pixels ÷ print size (inches)
1 inch = 2.54 cm; megapixels = width × height ÷ 1,000,000
Worked example
- A 6,000 × 4,000 pixel photo (24 MP):
- At 300 DPI it prints at 20 × 13.33 in (50.8 × 33.9 cm).
- At 150 DPI, fine for a poster viewed from a distance, it prints at 40 × 26.67 in.
- A 16 × 20 in print at 300 DPI would need 4,800 × 6,000 pixels.
DPI, PPI and pixels
PPI, pixels per inch, describes how many image pixels are packed into each inch of a print or screen. DPI, dots per inch, strictly describes how many ink dots a printer lays down, but in everyday use, and in most software, DPI and PPI are used interchangeably for image resolution. A digital image has no physical size until you print it: a 6,000 × 4,000 pixel photo is 20 inches wide at 300 DPI or 40 inches wide at 150 DPI. The resolution setting in an image file's metadata only tells software the intended print size.
How much resolution do you need?
300 DPI is the long-standing standard for photo-quality prints viewed at arm's length, such as photo books, magazines and small prints. 200–240 DPI is usually indistinguishable for most prints. Large posters and canvases are viewed from further away, so 100–150 DPI is often enough, and billboards can be as low as 10–20 DPI. As a rule, the further away people stand, the lower the resolution can be. Printing services often warn when an image falls below their recommended resolution for a chosen size.
Checking an image for a print size
Choose the DPI mode and enter your image's pixel dimensions and the print size you want, to get the effective resolution. If the image's aspect ratio doesn't match the print's, the calculator tells you, since the image will need to be cropped or have borders. Common photo print sizes have different shapes: 4 × 6 in and most camera sensors are 3:2, while 8 × 10 in and 16 × 20 in are 5:4, so a full-frame camera image loses some of its width when printed at 8 × 10.
Upscaling and megapixels
If an image doesn't have enough pixels for a large print, upscaling can help. Simple resizing makes images larger but softer; modern AI upscalers do a much better job, though they can't recover detail that was never captured. As a rough guide, a 12 MP phone photo prints well up to about 8 × 12 in at 300 DPI, or larger at lower resolution. A 24 MP camera image reaches about 13 × 20 in at 300 DPI. Megapixels grow with the square of linear size, so doubling a print's width needs four times the pixels.
Screens versus print
Screen pixel density is a separate topic: phones have 400–500 PPI, laptops 100–250 and desktop monitors 90–220. For web images, what matters is pixel dimensions relative to the display, not the DPI setting. Retina and high-density displays benefit from images at twice the CSS size. Our screen size and PPI calculator works out display density, and the aspect ratio calculator helps resize and crop images to a target shape.
Print-ready files
For professional printing, also allow for bleed, typically 3 mm or 0.125 in beyond the trim edge on each side, so background colours and images run to the edge after cutting. Keep important text and details inside a safe area away from the edges. Books need extra care with spine width and cover layout; our book spine and cover calculator handles that. Use CMYK colour and the printer's recommended profile for accurate colours, and check text in a vector format where possible.