{
  "id": "win-percentage",
  "version": "6934a4d8eceb",
  "status": "published",
  "name": "Win Percentage Calculator",
  "question": "What is my win percentage?",
  "summary": "Computes a team’s winning percentage from wins, losses and ties (a tie counts as half a win), or the wins or losses that give a target percentage.",
  "category": "sports",
  "subcategory": "scoring",
  "url": "https://www.acalculator.org/sports/win-percentage-calculator",
  "markdown": "https://www.acalculator.org/sports/win-percentage-calculator.md",
  "kind": "formulas",
  "method": "win % = (W + T ÷ 2) ÷ (W + L + T) × 100: each tie counts as half a win and half a loss.",
  "assumptions": [
    "A tie counts as half a win and half a loss, as in NFL standings. With no ties this is wins ÷ games, as in MLB and NBA standings.",
    "Wins, losses and ties are from 0 to 1,000,000, and at least one game was played. Solved counts may be fractions; round up to the next whole game for a target.",
    "Leagues that rank by points (the NHL, most soccer leagues) use a points percentage instead, which this calculator does not compute."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "w": {
        "title": "Wins",
        "description": "The number of games won.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000
      },
      "l": {
        "title": "Losses",
        "description": "The number of games lost.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000
      },
      "t": {
        "title": "Ties",
        "description": "The number of games tied (drawn). Enter 0 if there were none.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000
      },
      "pct": {
        "title": "Win percentage",
        "description": "The share of games won, counting each tie as half a win, in percent.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 100
      }
    }
  },
  "solve": {
    "fillAny": 3,
    "variables": [
      "w",
      "l",
      "t",
      "pct"
    ],
    "inputsOnly": []
  },
  "outputs": {
    "wins": {
      "label": "Wins",
      "description": "The number of games won.",
      "format": "number"
    },
    "losses": {
      "label": "Losses",
      "description": "The number of games lost.",
      "format": "number"
    },
    "ties": {
      "label": "Ties",
      "description": "The number of games tied (drawn). Enter 0 if there were none.",
      "format": "number"
    },
    "pct": {
      "label": "Win percentage",
      "description": "The share of games won, counting each tie as half a win, in percent.",
      "format": "percent"
    },
    "decimal": {
      "label": "As in the standings",
      "description": "The same winning percentage as a decimal with three places, the way standings print it (.625).",
      "format": "text"
    },
    "played": {
      "label": "Games played",
      "description": "Wins + losses + ties.",
      "format": "number"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "w": 10,
      "l": 6,
      "t": 0
    },
    "outputs": {
      "pct": 62.5,
      "decimal": ".625",
      "played": 16
    },
    "text": "A record of 10 wins, 6 losses and 0 ties is a win percentage of 62.5%."
  },
  "examples": [
    {
      "given": {
        "w": 10,
        "l": 6,
        "t": 0
      },
      "expect": {
        "pct": 62.5,
        "decimal": ".625",
        "played": 16
      },
      "source": "hand calculation in content.mdx: 10 ÷ 16 = 0.625 = 62.5%"
    },
    {
      "given": {
        "w": 9,
        "l": 7,
        "t": 1
      },
      "expect": {
        "pct": 55.88235294117647,
        "decimal": ".559"
      },
      "source": "NFL tiebreaking procedures (a tie is half a win and half a loss); hand calculation in content.mdx: (9 + 0.5) ÷ 17 = 0.5588"
    },
    {
      "given": {
        "pct": 60,
        "l": 62,
        "t": 0
      },
      "expect": {
        "w": 92.99999999999999
      },
      "source": "hand calculation in content.mdx: W = 0.6 × 62 ÷ (1 − 0.6) = 93",
      "tolerance": 1e-12
    },
    {
      "given": {
        "pct": 75,
        "w": 12,
        "t": 0
      },
      "expect": {
        "l": 4
      },
      "source": "hand calculation in content.mdx: L = 12 ÷ 0.75 − 12 = 4",
      "tolerance": 1e-12
    }
  ],
  "sources": [
    "National Football League, NFL Tiebreaking Procedures: tie games count as one-half win and one-half loss for both clubs. https://www.nfl.com/standings/tie-breaking-procedures"
  ],
  "related": [
    "percentage",
    "one-rep-max"
  ],
  "changelog": []
}
