{
  "id": "percentage-to-goal",
  "version": "625f94c22bd5",
  "status": "published",
  "name": "Percent to Goal Calculator",
  "question": "What is my percent to goal?",
  "summary": "Finds how far along you are toward a goal as a percent: progress ÷ goal × 100, with the amount still left, or how far past the goal you are.",
  "category": "math",
  "subcategory": "percentages",
  "url": "https://www.acalculator.org/math/percentage-to-goal",
  "markdown": "https://www.acalculator.org/math/percentage-to-goal.md",
  "kind": "function",
  "method": "Percent to goal = progress ÷ goal × 100. Left = goal − progress (0 once reached); percent left = 100 − percent to goal (0 once reached); past the goal by = progress − goal.",
  "assumptions": [
    "Progress and goal are in the same units; the goal is above 0.",
    "Values are taken exactly as typed; the percents are rounded to 2 decimal places, halves away from zero."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "p": {
        "title": "Progress so far",
        "description": "What you have reached so far, such as sales, money saved or miles run.",
        "type": "number",
        "minimum": -1000000000000000,
        "maximum": 1000000000000000
      },
      "g": {
        "title": "Goal",
        "description": "The target, in the same units as the progress.",
        "type": "number",
        "minimum": 0.000001,
        "maximum": 1000000000000000
      }
    }
  },
  "outputs": {
    "percent": {
      "label": "Percent to goal",
      "description": "Progress ÷ goal × 100, to 2 decimal places.",
      "format": "text"
    },
    "left": {
      "label": "Left to reach the goal",
      "description": "Goal − progress; 0 once the goal is reached.",
      "format": "number"
    },
    "leftPercent": {
      "label": "Percent left",
      "description": "100% minus the percent to goal; 0% once the goal is reached.",
      "format": "text"
    },
    "over": {
      "label": "Past the goal by",
      "description": "Progress − goal, when the progress is above the goal.",
      "format": "number"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "p": 37500,
      "g": 50000
    },
    "outputs": {
      "percent": "75.00%",
      "left": 12500,
      "leftPercent": "25.00%"
    },
    "text": "You are 75.00% of the way to your goal."
  },
  "examples": [
    {
      "given": {
        "p": 37500,
        "g": 50000
      },
      "expect": {
        "percent": "75.00%",
        "left": 12500,
        "leftPercent": "25.00%"
      },
      "source": "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (amount = percent × base, so percent = amount ÷ base), https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent (retrieved 2026-10-05); hand calculation in content.mdx: 37,500 ÷ 50,000 × 100 = 75"
    },
    {
      "given": {
        "p": 2,
        "g": 3
      },
      "expect": {
        "percent": "66.67%",
        "left": 1,
        "leftPercent": "33.33%"
      },
      "source": "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (amount = percent × base, so percent = amount ÷ base), https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent (retrieved 2026-10-05); hand calculation in content.mdx: 2 ÷ 3 × 100 = 66.666…"
    },
    {
      "given": {
        "p": 130,
        "g": 120
      },
      "expect": {
        "percent": "108.33%",
        "left": 0,
        "leftPercent": "0.00%",
        "over": 10
      },
      "source": "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (amount = percent × base, so percent = amount ÷ base), https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent (retrieved 2026-10-05); hand calculation in content.mdx: 130 ÷ 120 × 100 = 108.333…"
    },
    {
      "given": {
        "p": 0.1,
        "g": 0.8
      },
      "expect": {
        "percent": "12.50%",
        "left": 0.7
      },
      "source": "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (amount = percent × base, so percent = amount ÷ base), https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent (retrieved 2026-10-05); hand calculation in content.mdx: 0.1 ÷ 0.8 = 1/8"
    },
    {
      "given": {
        "p": 1,
        "g": 8
      },
      "expect": {
        "percent": "12.50%",
        "leftPercent": "87.50%"
      },
      "source": "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent (amount = percent × base, so percent = amount ÷ base), https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent (retrieved 2026-10-05); hand calculation in content.mdx"
    }
  ],
  "sources": [
    "OpenStax, Prealgebra 2e, §6.2 Solve General Applications of Percent: amount = percent × base, solved for the percent. CC BY 4.0. Retrieved 2026-10-05. https://openstax.org/books/prealgebra-2e/pages/6-2-solve-general-applications-of-percent"
  ],
  "related": [
    "percentage",
    "percentage-change",
    "fraction-to-percentage"
  ],
  "changelog": []
}
