{
  "schemaVersion": 1,
  "slug": "steps-to-miles-calculator",
  "category": "health",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "6f3fa31a5478061c7964f3db718bda08a3c925eec0ff0aef99876b824b30aa37",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/steps-to-miles-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "km = N × 0.415h ÷ 100000; mi = km ÷ 1.609344",
    "vars": [
      [
        "N",
        "Steps"
      ],
      [
        "h",
        "Height (cm)"
      ],
      [
        "w",
        "Body weight (kg)"
      ]
    ],
    "note": "Estimated stride length = height × 0.415; distance = steps × stride length. Calories use steps × body weight × 0.0005 as a rough heuristic, not a measured energy expenditure."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "CDC — Physical activity, intensity and individual variation",
        "url": "https://www.cdc.gov/physical-activity-basics/measuring/index.html"
      }
    ],
    "referenceRole": "context",
    "implementationHash": "6f3fa31a5478061c7964f3db718bda08a3c925eec0ff0aef99876b824b30aa37",
    "basis": "km = N × 0.415h ÷ 100000; mi = km ÷ 1.609344",
    "limitations": "The references provide context and limitations. They do not validate this page’s illustrative multipliers, lookup values or predictions."
  },
  "contract": {
    "compute": "const stride = height*0.415; const km = steps*stride/100000; return { km, miles: km/1.609344, strideLength: stride, calories: steps*weight*0.0005 };",
    "inputs": [
      {
        "name": "steps",
        "type": "number",
        "default": 10000,
        "min": 0,
        "max": 1000000,
        "step": 100
      },
      {
        "name": "height",
        "type": "number",
        "default": 170,
        "min": 100,
        "max": 250,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "weight",
        "type": "number",
        "default": 70,
        "min": 20,
        "max": 400,
        "step": 0.5,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "km",
        "precision": 2,
        "unit": "km"
      },
      {
        "name": "miles",
        "precision": 2,
        "unit": "mi"
      },
      {
        "name": "strideLength",
        "precision": 1,
        "unit": "cm"
      },
      {
        "name": "calories",
        "precision": 0,
        "unit": "kcal"
      }
    ],
    "interpret": null
  }
}
