{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/ideal-weight-calculator/schema.json",
  "title": "Ideal Weight Calculator inputs",
  "description": "Compare the Robinson, Miller, Devine, and Hamwi ideal-body-weight formulas and the healthy BMI weight range.",
  "type": "object",
  "properties": {
    "unitSystem": {
      "title": "Units",
      "type": "string",
      "default": "imperial",
      "enum": [
        "metric",
        "imperial"
      ],
      "x-optionLabels": {
        "metric": "Metric",
        "imperial": "Imperial"
      }
    },
    "sex": {
      "title": "Sex used by equation",
      "type": "string",
      "default": "male",
      "enum": [
        "male",
        "female"
      ],
      "x-optionLabels": {
        "male": "Male",
        "female": "Female"
      }
    },
    "heightCm": {
      "title": "Height",
      "type": "number",
      "default": 178,
      "minimum": 100,
      "maximum": 250,
      "x-step": 0.1,
      "x-suffix": "cm",
      "x-showWhen": {
        "field": "unitSystem",
        "equals": "metric"
      }
    },
    "feet": {
      "title": "Height feet",
      "type": "number",
      "default": 5,
      "minimum": 4,
      "maximum": 8,
      "x-step": 1,
      "multipleOf": 1,
      "x-suffix": "ft",
      "x-showWhen": {
        "field": "unitSystem",
        "equals": "imperial"
      }
    },
    "inches": {
      "title": "Height inches",
      "type": "number",
      "default": 10,
      "minimum": 0,
      "maximum": 11.9,
      "x-step": 0.1,
      "x-suffix": "in",
      "x-showWhen": {
        "field": "unitSystem",
        "equals": "imperial"
      }
    }
  },
  "required": [
    "unitSystem",
    "sex"
  ],
  "allOf": [
    {
      "if": {
        "properties": {
          "unitSystem": {
            "const": "metric"
          }
        },
        "required": [
          "unitSystem"
        ]
      },
      "then": {
        "required": [
          "heightCm"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "unitSystem": {
            "const": "imperial"
          }
        },
        "required": [
          "unitSystem"
        ]
      },
      "then": {
        "required": [
          "feet"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "unitSystem": {
            "const": "imperial"
          }
        },
        "required": [
          "unitSystem"
        ]
      },
      "then": {
        "required": [
          "inches"
        ]
      }
    }
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "2.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/ideal-weight-calculator/",
    "queryExample": "https://askcalculators.com/calculator/ideal-weight-calculator/?unitSystem=imperial&sex=male&feet=5&inches=10",
    "migrationStatus": "migrated",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "migratedDate": "2026-08-25",
    "formula": {
      "expression": "Each ideal-body-weight equation starts with a sex-specific 5-foot baseline and adds a formula-specific amount for every inch above 5 feet."
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/ideal-weight-calculator.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "2.0.0",
      "referenceCoverage": "references-listed",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "2026-08-25",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "average": {
        "title": "Average formula result",
        "type": "string",
        "x-format": "text",
        "x-primary": true
      },
      "devine": {
        "title": "Devine formula",
        "type": "string",
        "x-format": "text"
      },
      "robinson": {
        "title": "Robinson formula",
        "type": "string",
        "x-format": "text"
      },
      "miller": {
        "title": "Miller formula",
        "type": "string",
        "x-format": "text"
      },
      "hamwi": {
        "title": "Hamwi formula",
        "type": "string",
        "x-format": "text"
      },
      "healthyRange": {
        "title": "BMI healthy-weight range",
        "type": "string",
        "x-format": "text"
      }
    }
  }
}
