Convert cm to DPI from the number of dots or pixels across a length, convert dots per cm to DPI, or find the pixels a print size in cm needs at any DPI.

Viewing distance (optional)
Blank omits this comparison. Uses an illustrative one-arcminute detail size.

Calculator Functions

FunctionWhat it doesWhat it requires
DPI from dots and a lengthFinds the resolution in dots or pixels per inchRequires the number of dots or pixels across a length, and that length
Pixels needed for a print lengthFinds how many pixels cover a length at a chosen resolutionRequires the physical length and the target resolution
Print length from pixelsFinds how long a row of pixels prints at a chosen resolutionRequires the pixels along one dimension and the target resolution
Full print size from pixel dimensionsFinds the printed width and height of an imageRequires the image width and height in pixels and the target resolution
Dots per cm to DPIConverts dots per cm or dots per mm to DPI, and DPI backRequires the resolution in dots/cm, dots/mm or DPI

Lengths can be entered in cm, mm, in, m or ft. The target resolution starts at 300 and has presets of 72, 96, 150, 200, 240, 300 and 600. Every function except Dots per cm to DPI also accepts an optional viewing distance.

cm To DPI Formulas

DPI = D × 2.54 ÷ L [1]
DPIDots or pixels per inch
DNumber of dots or pixels across the length
LPhysical length (cm)
2.54Centimeters in one inch, an exact value [1]

DPI from dots and a length

The main formula applies directly. 500 pixels across 10 cm is 500 × 2.54 ÷ 10 = 127 DPI. The result also gives the pixel pitch (0.2 mm), the dots per cm (50) and the length the same pixels would cover at 300 PPI (4.2333 cm).

Pixels needed for a print length

px = L × PPI ÷ 2.54

A 10 cm length at 300 PPI needs 10 × 300 ÷ 2.54 = 1,181.1 pixels, which the calculator rounds up to 1,182 whole pixels. Common lengths work out as follows.

Length (cm)72 DPI96 DPI150 DPI300 DPI
128.3537.8059.06118.11
2.54 (1 in)7296150300
5141.73188.98295.28590.55
10283.46377.95590.551,181.10
14396.85529.13826.771,653.54
15425.20566.93885.831,771.65
20566.93755.911,181.102,362.20
21 (A4 width)595.28793.701,240.162,480.31
29.7 (A4 height)841.891,122.521,753.943,507.87
30850.391,133.861,771.653,543.31

Print length from pixels

L = px × 2.54 ÷ PPI

3,000 pixels at 300 PPI print 3,000 × 2.54 ÷ 300 = 25.4 cm long, which is 10 in.

Full print size from pixel dimensions

The print length formula is applied to the width and to the height. A 3,000 × 2,000 pixel image at 300 PPI prints at 25.4 × 16.9333 cm, or 10 × 6.6667 in. The result also gives the megapixels (6 MP) and the aspect ratio (3:2).

Dots per cm to DPI

DPI = dots per cm × 2.54

100 dots per cm is 100 × 2.54 = 254 DPI, a dot pitch of 0.1 mm. Dots per mm are multiplied by 25.4. Lines per cm and pixels per cm convert the same way, and switching the unit to DPI converts a DPI value back to dots per cm.

Viewing distance

PPI = 1 ÷ (d × tan 1′)

With a viewing distance d in inches, and 1′ standing for one arcminute, a sixtieth of a degree, the result adds the resolution at which one pixel spans one arcminute of the eye’s view. At 12 in that is 286.4789 PPI. It is an illustrative reference for comparing with the calculated resolution, not a print-quality standard.

Limits of This Estimate

  • DPI strictly counts printer dots and PPI counts image pixels. The arithmetic is the same for both, but a printer may lay down several dots for each image pixel.
  • 300 and the other presets are editable references. The resolution a print needs depends on the printer, the detail in the image, the paper and the viewing distance.
  • Changing the resolution stored in an image file without resampling changes its print size, not its pixel count.
  • 96 pixels per inch is a layout ratio used on the web, not the physical pixel density of every screen.

Sources