Centimeters to Pixels (cm to px)

Convert centimeters to pixels for web and print design, learn the formula, and use the 96-DPI reference table.

Quick answer: At the standard 96 DPI, multiply the centimeter value by 37.7952756 to get pixels (px = cm × 96 ÷ 2.54). For example, 1 cm = 37.8 px. The exact pixel count depends on the screen or document resolution (DPI/PPI).

Centimeters to pixels formula

The conversion depends on the resolution in dots per inch:

pixels = centimeters × (96 ÷ 2.54) = centimeters × 37.7952756 at 96 DPI

For other resolutions, replace 96 with your DPI. The factor 37.7952756 applies only at the standard 96 DPI used by CSS.

How to convert cm to pixels in 3 steps

  1. Take the length in centimeters (for example, 5 cm at 96 DPI).
  2. Multiply by 37.7952756 → 5 × 37.7952756 = 188.976.
  3. Round as needed → 5 cm ≈ 189 px.

Convert any value instantly. Skip the math and use the live tool.

Open the converter

Worked examples

Centimeter-to-pixel conversions at 96 DPI
Centimeters (cm)Pixels (px) @ 96 DPI
1 cm37.80 px
2 cm75.59 px
3 cm113.39 px
5 cm188.98 px
10 cm377.95 px
15 cm566.93 px
21 cm793.70 px
29.7 cm1122.52 px

Why cm-to-px depends on DPI

Pixels are not a physical length — the number per centimeter depends on the device's pixel density. 96 DPI is the CSS reference; print often uses 300 DPI, so always match the factor to your target resolution.

Frequently asked questions

How do you convert cm to pixels?

At 96 DPI, multiply centimeters by 37.7952756 (px = cm × 96 ÷ 2.54). For example, 1 cm = 37.8 px.

How many pixels is 1 cm?

About 37.8 pixels at the standard 96 DPI; more at higher resolutions.

Does cm-to-pixel depend on DPI?

Yes. Pixels are not physical, so the count per centimeter changes with the device or document DPI/PPI. Use 96 for screens and 300 for print.