{
  "id": "miles-to-km",
  "version": "f4de5d752cf4",
  "status": "published",
  "name": "Miles to Km Converter",
  "question": "How to convert miles to km?",
  "summary": "Converts miles (mi) to kilometers (km) and back, with the exact unit definitions.",
  "category": "convert",
  "subcategory": "length",
  "url": "https://www.acalculator.org/convert/miles-to-km",
  "markdown": "https://www.acalculator.org/convert/miles-to-km.md",
  "kind": "formulas",
  "method": "km = mi × 1.609344",
  "assumptions": [
    "1 mile = 1.609344 kilometers, from the exact definitions in NIST SP 811.",
    "Exact on the typed decimals: at most 6 decimal places (6 significant digits below 0.0001), rounded half up; an answer of 1 billion or more shows at most 15 significant digits."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "value": {
        "title": "Miles (mi)",
        "description": "The amount in miles to convert.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000000000
      },
      "result": {
        "title": "Kilometers (km)",
        "description": "The same amount in kilometers.",
        "type": "number",
        "minimum": 0,
        "maximum": 1609344000000
      }
    }
  },
  "solve": {
    "fillAny": 1,
    "variables": [
      "value",
      "result"
    ],
    "inputsOnly": []
  },
  "outputs": {
    "value": {
      "label": "Miles (mi)",
      "description": "The amount in miles to convert.",
      "format": "number"
    },
    "result": {
      "label": "Kilometers (km)",
      "description": "The amount in kilometers.",
      "format": "number"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "value": 1
    },
    "outputs": {
      "result": 1.609344
    },
    "text": "1 mi = 1.609344 km."
  },
  "examples": [
    {
      "given": {
        "value": 1
      },
      "expect": {
        "result": 1.609344
      },
      "source": "exact unit definitions in NIST SP 811 (2008), Appendix B.8"
    },
    {
      "given": {
        "value": 26.2
      },
      "expect": {
        "result": 42.1648128
      },
      "source": "exact unit definitions in NIST SP 811 (2008), Appendix B.8"
    },
    {
      "given": {
        "result": 42.1648128
      },
      "expect": {
        "value": 26.2
      },
      "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: Factors for Units Listed Alphabetically (bold factors are exact), retrieved 2026-10-18. https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b8",
    "NIST, U.S. Survey Foot: Revised Unit Conversion Factors: 1 acre = 43,560 ft² = 4,046.856 422 4 m² and 1 mile = 5,280 ft = 1,609.344 m, exact with the international foot, retrieved 2026-10-18. https://www.nist.gov/pml/us-surveyfoot/revised-unit-conversion-factors"
  ],
  "related": [
    "km-to-miles",
    "feet-to-miles",
    "miles-to-steps"
  ],
  "changelog": []
}
