Digital and AI · Calculator

Pixels, density and print size

Three calculations: how many centimetres a file gives at a set density, how many pixels a format needs, and what actual density your file gives on the chosen format, filled with cropping or fitted without it.

Exact calculation Formula shown Your data stays in your browser

Your data

1. What we calculate
2. Image

The image size in pixels.

3. Print density

300 PPI is often used for detailed prints viewed up close, but it is not a universal requirement.

Pixels per inch of the print.
4. Print format

The paper size or the area for the image.

In the chosen unit.
A reference for coverage and the pixels needed; not a quality rating.

How we calculate

  1. print size: inches = pixels ÷ density; centimetres = inches × 2.54; megapixels = width × height ÷ 10⁶
  2. pixels needed = ⌈size in inches × density⌉ (cm ÷ 2.54, mm ÷ 25.4); actual density along an axis = pixels ÷ format inches
  3. fill = the lower density of the two axes (the other axis is cropped: 1 − used pixels ÷ file pixels); fit = the higher density (print = pixels ÷ density); coverage = fill ÷ target × 100; upscaling = target ÷ fill

Assumptions

  • 1 inch = 2.54 cm; density is calculated from the file’s nominal size without resampling the pixels.
  • Filling the format keeps the image proportions and crops the excess on one axis; fitting keeps the whole image, and the format stays unfilled on one axis.
  • The target density is your reference for comparison, not a quality rating; 300 PPI is not a universal requirement. change

Limitations

  • Printer resolution and capabilities (DPI), bleed and margins, paper, sharpness and the quality of interpolation when upscaling, viewing distance and a particular print shop’s requirements are not taken into account.
  • Pixels for a format are rounded up to a whole number; the upscaling factor is linear along one axis.

Sources

A universal formula with no external constants. Default values are labelled as approximate examples, not verified facts.

Questions and answers

How is PPI different from DPI?

PPI is how many image pixels fall on one inch of the print; DPI is how many dots of ink the printer lays down. A 1,200 DPI printer does not make a 72 PPI file more detailed: no pixels are added to the file.

Will changing 72 PPI to 300 in an editor help?

Changing the value in the metadata without resampling adds no pixels: only the nominal print size changes. Pixels are added only by upscaling with interpolation, which creates no new detail.

Which should I choose, fill or fit?

Filling covers the whole format but crops the image on one axis; fitting keeps the frame whole but leaves an unfilled band. The calculator shows both options with their density. The choice depends on the composition.

Is 300 PPI mandatory?

No. It is a common reference for detailed prints viewed up close; for large formats viewed from a distance, much less is often enough. You set the target density, and the calculator only compares against it.

Related tools

Image pixel density (PPI) is not printer resolution (DPI): changing the PPI in the metadata without resampling adds no pixels. Bleed, margins, sharpness, paper, viewing distance and a particular print shop’s requirements are not taken into account here.

Formula version image-ppi-print-size@1.1.0 · checked 26 September 2026

Checked by the Calc editorial team: three independent implementations of the formula, test cases and the live page on a phone. Last check: 27 September 2026