{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/roi-calculator/schema.json",
  "title": "ROI Calculator inputs",
  "description": "Calculate profit, total return, return multiple, and optional annualized return.",
  "type": "object",
  "properties": {
    "invested": {
      "title": "Amount invested",
      "type": "number",
      "default": 5000,
      "minimum": 0.01,
      "x-step": 100,
      "multipleOf": 100,
      "x-unit": "currency"
    },
    "finalValue": {
      "title": "Final value",
      "type": "number",
      "default": 7500,
      "minimum": 0,
      "x-step": 100,
      "multipleOf": 100,
      "x-unit": "currency"
    },
    "income": {
      "title": "Income received",
      "type": "number",
      "description": "Optional",
      "minimum": 0,
      "x-step": 10,
      "multipleOf": 10,
      "x-unit": "currency"
    },
    "costs": {
      "title": "Extra costs",
      "type": "number",
      "description": "Optional",
      "minimum": 0,
      "x-step": 10,
      "multipleOf": 10,
      "x-unit": "currency"
    },
    "years": {
      "title": "Holding period in years",
      "type": "number",
      "description": "Optional; needed for annualized ROI",
      "minimum": 0.01,
      "maximum": 100,
      "x-step": 0.1
    }
  },
  "required": [
    "invested",
    "finalValue"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "1.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/roi-calculator/",
    "queryExample": "https://askcalculators.com/calculator/roi-calculator/?invested=5000&finalValue=7500",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "ROI = (Ending value + income − investment − costs) ÷ (investment + costs) × 100",
      "note": "Annualized return uses geometric growth and needs a holding period."
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/roi-calculator.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "1.0.0",
      "referenceCoverage": "references-pending",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "2026-08-18",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "roi": {
        "title": "Return on investment",
        "type": "number",
        "x-format": "percent",
        "x-primary": true
      },
      "profit": {
        "title": "Net profit",
        "type": "number",
        "x-format": "currency"
      },
      "multiple": {
        "title": "Return multiple",
        "type": "number",
        "x-format": "number",
        "x-suffix": "×"
      },
      "annualized": {
        "title": "Annualized return",
        "type": "number",
        "x-format": "percent"
      }
    }
  }
}
