{
  "id": "bowling-score",
  "version": "d7258ebbb529",
  "status": "published",
  "name": "Bowling Score Calculator",
  "question": "What is my bowling score?",
  "summary": "Scores a ten-pin bowling game from its rolls, with strikes, spares and the tenth frame by the USBC rules, frame by frame, for a full game or one in progress.",
  "category": "sports",
  "subcategory": "scoring",
  "url": "https://www.acalculator.org/sports/bowling-score-calculator",
  "markdown": "https://www.acalculator.org/sports/bowling-score-calculator.md",
  "kind": "function",
  "method": "Open frame = its pins. Strike = 10 + the pins of the next two rolls. Spare = 10 + the pins of the next roll. The tenth frame = its pins, with two bonus rolls after a strike or one after a spare. The score is the running total of the frames.",
  "assumptions": [
    "Rolls are typed in order: X is a strike, / a spare, - a miss, F a foul (0 pins), a digit its pins; a separate word 10 is ten pins.",
    "A frame whose bonus rolls are not thrown yet is not scored, and neither is any frame after it.",
    "The highest possible final score assumes every later roll knocks down every pin left standing."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "r": {
        "title": "Rolls",
        "description": "Every roll of the game in order: X for a strike, / for a spare, - for a miss, F for a foul, or the pins as a digit.",
        "type": "string",
        "maxLength": 200
      }
    }
  },
  "outputs": {
    "total": {
      "label": "Score",
      "description": "The running total after the last frame that can be scored.",
      "format": "integer"
    },
    "status": {
      "label": "Game",
      "description": "Complete after the tenth frame, or how many frames are scored so far.",
      "format": "text"
    },
    "frames": {
      "label": "Frame by frame",
      "description": "Each frame’s rolls and the running total; a frame still waiting for its bonus rolls shows a dash.",
      "format": "text"
    },
    "best": {
      "label": "Highest possible final score",
      "description": "The final score if every roll still to come knocks down all the pins standing.",
      "format": "integer"
    },
    "strikes": {
      "label": "Strikes",
      "description": "Rolls that knocked down a full rack of 10 pins.",
      "format": "integer"
    },
    "spares": {
      "label": "Spares",
      "description": "Racks cleared by the second roll.",
      "format": "integer"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "r": "X 7/ 9- X X X 8/ 9- X XX7"
    },
    "outputs": {
      "total": 211,
      "status": "Complete",
      "frames": "1: X = 20; 2: 7 / = 39; 3: 9 - = 48; 4: X = 78; 5: X = 106; 6: X = 126; 7: 8 / = 145; 8: 9 - = 154; 9: X = 184; 10: X X 7 = 211",
      "best": 211,
      "strikes": 7,
      "spares": 2
    },
    "text": "Your bowling score is 211 (Complete)."
  },
  "examples": [
    {
      "given": {
        "r": "X 7/ 9- X X X 8/ 9- X XX7"
      },
      "expect": {
        "total": 211,
        "status": "Complete",
        "frames": "1: X = 20; 2: 7 / = 39; 3: 9 - = 48; 4: X = 78; 5: X = 106; 6: X = 126; 7: 8 / = 145; 8: 9 - = 154; 9: X = 184; 10: X X 7 = 211",
        "strikes": 7,
        "spares": 2
      },
      "source": "hand calculation in content.mdx; United States Bowling Congress, Playing Rules 2024–2025, rules 1a (a game is 10 frames), 2a (strike: 10 plus the next two deliveries) and 3a (spare: 10 plus the next delivery), https://bowl.com/getmedia/cabf49db-8cc5-4ce4-abc0-dfca1a1d7706/071724_USBC-Playing-Rules.pdf; Wikipedia, Ten-pin bowling, Scoring (traditional scoring; a perfect game is 300), https://en.wikipedia.org/wiki/Ten-pin_bowling"
    },
    {
      "given": {
        "r": "XXXXXXXXXXXX"
      },
      "expect": {
        "total": 300,
        "best": 300,
        "strikes": 12,
        "spares": 0
      },
      "source": "Wikipedia, Ten-pin bowling, Scoring (traditional scoring; a perfect game is 300), https://en.wikipedia.org/wiki/Ten-pin_bowling (the maximum score is 300, twelve strikes in a row); United States Bowling Congress, Playing Rules 2024–2025, rules 1a (a game is 10 frames), 2a (strike: 10 plus the next two deliveries) and 3a (spare: 10 plus the next delivery), https://bowl.com/getmedia/cabf49db-8cc5-4ce4-abc0-dfca1a1d7706/071724_USBC-Playing-Rules.pdf"
    },
    {
      "given": {
        "r": "X 36"
      },
      "expect": {
        "total": 28,
        "status": "In progress: 2 of 10 frames scored"
      },
      "source": "Wikipedia, Ten-pin bowling, Scoring (traditional scoring; a perfect game is 300), https://en.wikipedia.org/wiki/Ten-pin_bowling (frame 1: 10 + 3 + 6 = 19; frame 2: 9; total 28)"
    },
    {
      "given": {
        "r": "7/ 42"
      },
      "expect": {
        "total": 20
      },
      "source": "Wikipedia, Ten-pin bowling, Scoring (traditional scoring; a perfect game is 300), https://en.wikipedia.org/wiki/Ten-pin_bowling (frame 1: 10 + 4 = 14; frame 2: 6; total 20)"
    },
    {
      "given": {
        "r": "9/ 9/ 9/ 9/ 9/ 9/ 9/ 9/ 9/ 9/9"
      },
      "expect": {
        "total": 190,
        "spares": 10
      },
      "source": "hand calculation in content.mdx: each frame 10 + 9 = 19, × 10 = 190; United States Bowling Congress, Playing Rules 2024–2025, rules 1a (a game is 10 frames), 2a (strike: 10 plus the next two deliveries) and 3a (spare: 10 plus the next delivery), https://bowl.com/getmedia/cabf49db-8cc5-4ce4-abc0-dfca1a1d7706/071724_USBC-Playing-Rules.pdf"
    }
  ],
  "sources": [
    "United States Bowling Congress, Playing Rules 2024–2025: rule 1a (a game is 10 frames; two deliveries in frames 1 to 9 unless a strike), rule 2a (strike: 10 plus the next two deliveries; three deliveries in the 10th frame after a strike), rule 3a (spare: 10 plus the next delivery). https://bowl.com/getmedia/cabf49db-8cc5-4ce4-abc0-dfca1a1d7706/071724_USBC-Playing-Rules.pdf (retrieved 2026-10-02)",
    "Wikipedia, Ten-pin bowling, Scoring (traditional scoring, the strike and spare examples, and the perfect game of 300). https://en.wikipedia.org/wiki/Ten-pin_bowling (retrieved 2026-10-02)"
  ],
  "related": [
    "golf-handicap",
    "win-percentage",
    "era"
  ],
  "changelog": []
}
