{
  "id": "steps-to-miles",
  "version": "c90428b23142",
  "status": "published",
  "name": "Steps to Miles Converter",
  "question": "How do I convert steps to miles?",
  "summary": "Converts a number of walking steps to miles or kilometers from your step length, or finds the steps for a distance.",
  "category": "convert",
  "subcategory": "units",
  "url": "https://www.acalculator.org/convert/steps-to-miles",
  "markdown": "https://www.acalculator.org/convert/steps-to-miles.md",
  "kind": "formulas",
  "method": "distance = steps × step length. Steps per mile = 5,280 ft ÷ step length.",
  "assumptions": [
    "Every step has the same length. Measure yours: walk 20 steps, measure the distance, and divide by 20.",
    "The default step length of 2.5 ft is inside the usual adult walking range of about 2.1 to 2.5 ft (Healthline).",
    "1 mile is 5,280 feet (1,609.344 m) and 1 foot is 0.3048 m exactly (NIST SP 811)."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "steps": {
        "title": "Steps",
        "description": "The number of steps walked, as a step counter shows it.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000000
      },
      "step": {
        "title": "Step length",
        "description": "The distance from one heel to the next heel as you walk.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 3
      },
      "distance": {
        "title": "Distance",
        "description": "The distance walked.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "minimum": 0,
        "maximum": 1000000000
      }
    }
  },
  "solve": {
    "fillAny": 2,
    "variables": [
      "steps",
      "step",
      "distance"
    ],
    "inputsOnly": []
  },
  "outputs": {
    "steps": {
      "label": "Steps",
      "description": "The number of steps walked, as a step counter shows it.",
      "format": "number"
    },
    "step": {
      "label": "Step length",
      "description": "The distance from one heel to the next heel as you walk.",
      "format": "quantity"
    },
    "distance": {
      "label": "Distance",
      "description": "The distance walked.",
      "format": "quantity"
    },
    "perMile": {
      "label": "Steps per mile",
      "description": "How many steps of this length make one mile (5,280 feet).",
      "format": "integer"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "steps": 10000,
      "step": 0.762
    },
    "outputs": {
      "distance": 7620,
      "perMile": 2112
    },
    "text": "10,000 steps of 2.5 ft is 7,620 m."
  },
  "examples": [
    {
      "given": {
        "steps": 10000,
        "step": 0.762
      },
      "expect": {
        "distance": 7620,
        "perMile": 2112
      },
      "source": "hand calculation in content.mdx: 2.5 ft = 0.762 m; 10,000 × 0.762 m = 7,620 m (4.73 mi); 5,280 ft ÷ 2.5 ft = 2,112 steps per mile"
    },
    {
      "given": {
        "distance": 1609.344,
        "step": 0.762
      },
      "expect": {
        "steps": 2112
      },
      "source": "hand calculation in content.mdx: 1 mile = 5,280 ft = 1,609.344 m (NIST SP 811); 5,280 ÷ 2.5 = 2,112 steps"
    },
    {
      "given": {
        "steps": 2000,
        "distance": 1609.344
      },
      "expect": {
        "step": 0.804672
      },
      "source": "hand calculation in content.mdx: 1,609.344 m ÷ 2,000 = 0.804672 m (2.64 ft)"
    }
  ],
  "sources": [
    "NIST SP 811 (2008), Appendix B.8: 1 ft = 0.3048 m, 1 mi = 5,280 ft = 1,609.344 m. https://www.nist.gov/pml/special-publication-811",
    "Healthline, \"What Is the Average Stride Length?\": typical adult walking step of about 2.1 to 2.5 ft. https://www.healthline.com/health/stride-length"
  ],
  "related": [],
  "changelog": []
}
