{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/circle-calculator/schema.json",
  "title": "Circle Calculator inputs",
  "description": "Provide a radius, diameter, circumference, or area to calculate every main circle measurement.",
  "type": "object",
  "properties": {
    "given": {
      "title": "Known measurement",
      "type": "string",
      "default": "radius",
      "enum": [
        "radius",
        "diameter",
        "circumference",
        "area"
      ],
      "x-optionLabels": {
        "radius": "Radius",
        "diameter": "Diameter",
        "circumference": "Circumference",
        "area": "Area"
      }
    },
    "radius": {
      "title": "Radius",
      "type": "number",
      "default": 10,
      "minimum": 0.000001,
      "x-step": 0.01,
      "x-showWhen": {
        "field": "given",
        "equals": "radius"
      }
    },
    "diameterInput": {
      "title": "Diameter",
      "type": "number",
      "default": 20,
      "minimum": 0.000001,
      "x-step": 0.01,
      "x-showWhen": {
        "field": "given",
        "equals": "diameter"
      }
    },
    "circumferenceInput": {
      "title": "Circumference",
      "type": "number",
      "default": 62.831853,
      "minimum": 0.000001,
      "x-step": 0.01,
      "x-showWhen": {
        "field": "given",
        "equals": "circumference"
      }
    },
    "areaInput": {
      "title": "Area",
      "type": "number",
      "default": 314.159265,
      "minimum": 0.000001,
      "x-step": 0.01,
      "x-showWhen": {
        "field": "given",
        "equals": "area"
      }
    }
  },
  "required": [
    "given"
  ],
  "allOf": [
    {
      "if": {
        "properties": {
          "given": {
            "const": "radius"
          }
        },
        "required": [
          "given"
        ]
      },
      "then": {
        "required": [
          "radius"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "given": {
            "const": "diameter"
          }
        },
        "required": [
          "given"
        ]
      },
      "then": {
        "required": [
          "diameterInput"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "given": {
            "const": "circumference"
          }
        },
        "required": [
          "given"
        ]
      },
      "then": {
        "required": [
          "circumferenceInput"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "given": {
            "const": "area"
          }
        },
        "required": [
          "given"
        ]
      },
      "then": {
        "required": [
          "areaInput"
        ]
      }
    }
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "2.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/circle-calculator/",
    "queryExample": "https://askcalculators.com/calculator/circle-calculator/?given=radius&radius=10",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "D=2R; C=2πR; A=πR²; solve the known measurement for R, then calculate the rest."
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/circle-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": {
      "radiusResult": {
        "title": "Radius",
        "type": "number",
        "x-format": "number",
        "x-digits": 6,
        "x-primary": true
      },
      "diameter": {
        "title": "Diameter",
        "type": "number",
        "x-format": "number",
        "x-digits": 6
      },
      "circumference": {
        "title": "Circumference",
        "type": "number",
        "x-format": "number",
        "x-digits": 6
      },
      "area": {
        "title": "Area",
        "type": "number",
        "x-format": "number",
        "x-digits": 6
      }
    }
  }
}
