Convert px to cm
1px = 0.026458cm. Both are absolute CSS units, so this ratio is fixed — the root font size does not affect it.
Guide & FAQFormula · PX to CM conversion table · About px · About cm · Which unit should you use? · Frequently asked questions
Formula
cm = px × 0.026458
px = cm × 37.7953
Both units are absolute in CSS, so this ratio never changes regardless of font size or user settings.
PX to CM conversion table
| px | cm |
|---|---|
| 1px | 0.026458cm |
| 10px | 0.264583cm |
| 50px | 1.3229cm |
| 100px | 2.6458cm |
| 150px | 3.9688cm |
| 200px | 5.2917cm |
| 250px | 6.6146cm |
| 300px | 7.9375cm |
| 400px | 10.5833cm |
| 500px | 13.2292cm |
| 600px | 15.875cm |
| 800px | 21.1667cm |
| 1000px | 26.4583cm |
| 1080px | 28.575cm |
| 1200px | 31.75cm |
| 1500px | 39.6875cm |
| 1920px | 50.8cm |
About px
The CSS pixel is the reference unit of the web. It is not a physical device pixel — it is an angular measure standardised at 1/96th of an inch, which the browser scales for device pixel ratio and zoom.
About cm
One centimetre is 96/2.54 ≈ 37.795 CSS pixels. Useful in print stylesheets, misleading on screen.
Which unit should you use?
| Property | Recommended unit | Why |
|---|---|---|
| Font size | rem | Scales with the user's browser font-size preference, which px ignores — an accessibility requirement. |
| Padding and margin | rem or em | rem for a consistent global rhythm; em when the spacing should track the component's own text size. |
| Borders and hairlines | px | You almost always want exactly one crisp pixel, not a value that scales. |
| Media query breakpoints | em | Historically the most reliable across browsers when the user zooms. |
| Print stylesheets | pt, cm, mm | These map to real physical measurements on paper. |
Frequently asked questions
What is 16px in cm?
16px equals 0.423333cm, and that does not change with the font size because both units are absolute.
How do I convert px to cm?
Multiply the px value by 0.026458. Going the other way, multiply the cm value by 37.7953.
Does browser zoom change the result?
No. Both units are absolute in CSS and keep the same ratio at any zoom level, though the rendered size on screen changes.
Why does CSS use 96 pixels per inch?
The 96 figure is a historical convention from early desktop displays that became the fixed CSS reference. It has nothing to do with your monitor's real pixel density — the browser scales CSS pixels to physical ones for you.