Formula and method
PPI creates the bridge between a pixel count and a physical length. Without a PPI value there is no single correct pixels-to-centimeters conversion.
Assumptions and limits
- PPI is known or intentionally selected for the target medium.
- The same PPI applies horizontally and vertically.
- Rounding is for display only; calculations keep full precision.
Worked examples
300 pixels at 300 PPI
300 ÷ 300 = 1 inch. Multiplying by 2.54 gives exactly 2.54 cm.
10 cm at 96 PPI
10 ÷ 2.54 × 96 = about 377.95 pixels, usually rounded to 378 pixels for a bitmap.
300 pixels at common densities
| PPI | Inches | Centimeters |
|---|---|---|
| 72 | 4.167 in | 10.583 cm |
| 96 | 3.125 in | 7.938 cm |
| 150 | 2.000 in | 5.080 cm |
| 300 | 1.000 in | 2.540 cm |
Frequently asked questions
How many pixels are in one centimeter?
It depends on PPI. At 96 PPI there are about 37.8 pixels per centimeter; at 300 PPI there are about 118.1.
Why does a web image not have a fixed centimeter size?
Browsers and screens can display the same pixel image at different physical sizes depending on CSS, scaling and display density.