{
  "id": "inches-to-cm",
  "version": "9339b54b4d7b",
  "status": "published",
  "name": "Inches to Cm Converter",
  "question": "How do I convert inches to cm?",
  "summary": "Converts inches (in) to centimeters (cm) and back, with the exact unit definitions.",
  "category": "convert",
  "subcategory": "units",
  "url": "https://www.acalculator.org/convert/inches-to-cm",
  "markdown": "https://www.acalculator.org/convert/inches-to-cm.md",
  "kind": "formulas",
  "method": "cm = in × 2.54",
  "assumptions": [
    "1 inch = 2.54 centimeters, from the exact definitions in NIST SP 811.",
    "The answer shows at most 6 decimal places; the calculation keeps full precision."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "value": {
        "title": "Inches (in)",
        "description": "The amount in inches to convert.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000000000
      },
      "result": {
        "title": "Centimeters (cm)",
        "description": "The same amount in centimeters.",
        "type": "number",
        "minimum": 0,
        "maximum": 2540000000000
      }
    }
  },
  "solve": {
    "fillAny": 1,
    "variables": [
      "value",
      "result"
    ],
    "inputsOnly": []
  },
  "outputs": {
    "value": {
      "label": "Inches (in)",
      "description": "The amount in inches to convert.",
      "format": "number"
    },
    "result": {
      "label": "Centimeters (cm)",
      "description": "The amount in centimeters.",
      "format": "number"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "value": 1
    },
    "outputs": {
      "result": 2.54
    },
    "text": "1 in = 2.54 cm."
  },
  "examples": [
    {
      "given": {
        "value": 1
      },
      "expect": {
        "result": 2.54
      },
      "source": "exact unit definitions in NIST SP 811 (2008), Appendix B.8"
    },
    {
      "given": {
        "value": 12
      },
      "expect": {
        "result": 30.48
      },
      "source": "exact unit definitions in NIST SP 811 (2008), Appendix B.8"
    },
    {
      "given": {
        "result": 30.48
      },
      "expect": {
        "value": 12
      },
      "source": "exact unit definitions in NIST SP 811 (2008), Appendix B.8"
    }
  ],
  "sources": [
    "NIST SP 811 (2008), Guide for the Use of the International System of Units, Appendix B.8. https://www.nist.gov/pml/special-publication-811"
  ],
  "related": [
    "cm-to-inches",
    "mm-to-inches",
    "inches-to-feet"
  ],
  "changelog": []
}
