How to convert inches to centimeters
Multiply inches by 2.54. The international inch is defined as exactly 2.54 centimeters.
cm = inches × 2.541 inch = exactly 2.54 cm.
Convert 12 in to cm
Apply the conversion rule to 12 inches. Using the default settings, the result is 30.48 cm.
in to cm conversion table
These pre-calculated values use the same formula and default settings as the converter above.
| inches (in) | centimeters (cm) |
|---|---|
| 1 in | 2.54 cm |
| 2 in | 5.08 cm |
| 3 in | 7.62 cm |
| 4 in | 10.16 cm |
| 5 in | 12.7 cm |
| 6 in | 15.24 cm |
| 8 in | 20.32 cm |
| 10 in | 25.4 cm |
| 12 in | 30.48 cm |
| 18 in | 45.72 cm |
| 24 in | 60.96 cm |
| 36 in | 91.44 cm |
| 48 in | 121.92 cm |
Code and calculation snippets
Reuse the same conversion in a stylesheet or application. Keep contextual font sizes configurable when working with relative CSS units.
const centimeters = inches * 2.54;centimeters = inches * 2.54Using the result accurately
Match the displayed precision to the source measurement. A dimension given to the nearest inch normally should not be reported to many decimal places in centimeters.
The mathematical factor is exact, but real-world measurements may include tolerance and rounding that the converter cannot infer.
Reference: NIST Guide to the SI: conversion factors.