Convert centimeters to pixels or pixels to centimeters using 96 PPI for CSS or a custom resolution, and solve image PPI from physical size and pixel dimensions.
cm To Pixel Formula
The following formula is used to calculate the conversion from centimeters to pixels.
Variables:
- PX is the size in pixels
- CM is the size in centimeters
- PPI is the pixel density of the image or target output (pixels per inch)
To calculate the size in pixels, multiply the size in centimeters by the resolution of the screen or image (PPI), then divide the result by 2.54 (the number of centimeters in an inch).
| Centimeters (cm) | Pixels at 72 PPI | Pixels at 96 PPI | Pixels at 150 PPI | Pixels at 300 PPI | Pixels at 600 PPI |
|---|---|---|---|---|---|
| 0.5 | 14 | 19 | 30 | 59 | 118 |
| 1 | 28 | 38 | 59 | 118 | 236 |
| 2 | 57 | 76 | 118 | 236 | 472 |
| 2.54 | 72 | 96 | 150 | 300 | 600 |
| 3 | 85 | 113 | 177 | 354 | 709 |
| 3.5 | 99 | 132 | 207 | 413 | 827 |
| 4 | 113 | 151 | 236 | 472 | 945 |
| 5 | 142 | 189 | 295 | 591 | 1181 |
| 6 | 170 | 227 | 354 | 709 | 1417 |
| 7.5 | 213 | 283 | 443 | 886 | 1772 |
| 8 | 227 | 302 | 472 | 945 | 1890 |
| 10 | 283 | 378 | 591 | 1181 | 2362 |
| 12 | 340 | 454 | 709 | 1417 | 2835 |
| 15 | 425 | 567 | 886 | 1772 | 3543 |
| 20 | 567 | 756 | 1181 | 2362 | 4724 |
| 21 | 595 | 794 | 1240 | 2480 | 4961 |
| 25 | 709 | 945 | 1476 | 2953 | 5906 |
| 28 | 794 | 1058 | 1654 | 3307 | 6614 |
| 30 | 850 | 1134 | 1772 | 3543 | 7087 |
| 40 | 1134 | 1512 | 2362 | 4724 | 9449 |
| Pixels are calculated as px = cm ร PPI รท 2.54. Values rounded to the nearest pixel. Note: 2.54 cm = 1 inch. | |||||
What is cm To Pixel?
cm to Pixel is a conversion method used to change the measurement of a digital image from centimeters to pixels. This is often necessary because while physical sizes (like centimeters) are used in the real world, digital images are measured in pixels on screens. The conversion rate can vary based on the resolution or PPI (dots per inch) of the screen or image. For example, an image that is 1 cm on a 300 PPI screen would be approximately 118 pixels.
How to Calculate cm To Pixel?
The following steps outline how to calculate the cm To Pixel using the formula: PX = CM * PPI / 2.54.
- First, determine the size in centimeters (CM).
- Next, determine the resolution of the screen or image (PPI).
- Next, use the formula PX = CM * PPI / 2.54 to calculate the size in pixels (PX).
- Finally, calculate the cm To Pixel.
- After inserting the variables and calculating the result, check your answer with the calculator above.
Example Problem :
Use the following variables as an example problem to test your knowledge.
size in centimeters (CM) = 10
resolution of the screen or image (PPI) = 300
Calculator Change Log:
- Current calculator: choose pixels, centimetres or pixel density; enter the target PPI, with 96 as the CSS reference.
