Math for Sports Stats: From Batting Averages to Advanced Analytics in 2026
Sports are an applied math classroom. Every box score, every team ranking, every fantasy league is built on calculations that most fans use without thinking. And in 2026, advanced analytics have made math literacy almost mandatory for any serious sports conversation.
This guide covers the math behind the most important stats in baseball, basketball, football, and soccer. Each section explains the formula, gives a worked example, and notes where the stat falls short.
Baseball: The Math Capital of Sports
Baseball stats are the deepest in sports. The basics are simple; the modern analytics are complex.
Batting Average
\[\text{BA} = \frac{\text{Hits}}{\text{At Bats}}\]
150 hits in 500 at bats: 150/500 = 0.300. A “three-hundred hitter.”
Limitations: doesn’t reward walks, doesn’t distinguish singles from home runs.
On-Base Percentage (OBP)
\[\text{OBP} = \frac{\text{Hits} + \text{Walks} + \text{HBP}}{\text{At Bats} + \text{Walks} + \text{HBP} + \text{Sacrifice Flies}}\]
150 hits, 60 walks, 5 HBP, 500 ABs, 5 sacrifice flies. OBP = (150 + 60 + 5) / (500 + 60 + 5 + 5) = 215 / 570 = 0.377.
OBP captures how often a batter reaches base, walks included. Better than BA.
Slugging Percentage (SLG)
\[\text{SLG} = \frac{\text{Total Bases}}{\text{At Bats}}\]
Singles = 1 base, doubles = 2, triples = 3, home runs = 4. Total bases is the weighted sum.
80 singles, 30 doubles, 5 triples, 25 HRs in 500 ABs. Total bases = 80 + 60 + 15 + 100 = 255. SLG = 255 / 500 = 0.510.
OPS (On-Base Plus Slugging)
\[\text{OPS} = \text{OBP} + \text{SLG}\]
Simple sum, but a great single-number hitter rating. Above 0.800 is good; above 1.000 is elite.
ERA (Earned Run Average)
\[\text{ERA} = \frac{\text{Earned Runs} \times 9}{\text{Innings Pitched}}\]
Earned runs per nine innings, the standard pitcher’s stat.
30 earned runs in 180 innings. ERA = 30 × 9 / 180 = 1.50. Elite.
WHIP (Walks plus Hits per Inning Pitched)
\[\text{WHIP} = \frac{\text{Walks} + \text{Hits}}{\text{Innings Pitched}}\]
30 walks, 150 hits in 180 innings. WHIP = 180 / 180 = 1.00. Elite.
Basketball: From Box Scores to Analytics
Field Goal Percentage
\[\text{FG\%} = \frac{\text{Field Goals Made}}{\text{Field Goals Attempted}}\]

Simple but doesn’t account for shot value.
True Shooting Percentage (TS%)
\[\text{TS\%} = \frac{\text{Points}}{2 \times (\text{FGA} + 0.44 \times \text{FTA})}\]
Includes 3-point shooting (worth more) and free throws (with the 0.44 factor representing expected number of possessions per free throw attempt).
1,500 points on 1,100 FGA and 400 FTA. TS% = 1,500 / (2 × (1,100 + 0.44 × 400)) = 1,500 / (2 × 1,276) = 1,500 / 2,552 ≈ 0.588.
A TS% of 58.8% is elite.
Effective Field Goal Percentage (eFG%)
\[\text{eFG\%} = \frac{\text{FGM} + 0.5 \times \text{3PM}}{\text{FGA}}\]
Adjusts for 3-pointers being worth more, without including free throws.
Plus/Minus
The simplest impact stat: the team’s score change while the player is on the floor.
A player on the floor for 30 minutes, team scores 60 and allows 50 during that span. Plus/Minus = 60 − 50 = +10.
Plus/Minus has noise (depends on teammates), but over a full season it’s informative.
Football: The Most Complicated Math
Passer Rating (NFL Formula)
The notorious NFL passer rating combines four components, each capped at 2.375 and floored at 0:
\[\text{Component 1} = \left(\frac{\text{Comp}}{\text{Att}} – 0.30\right) \times 5\]
\[\text{Component 2} = \left(\frac{\text{Yds}}{\text{Att}} – 3\right) \times 0.25\]
\[\text{Component 3} = \left(\frac{\text{TD}}{\text{Att}}\right) \times 20\]
\[\text{Component 4} = 2.375 – \left(\frac{\text{Int}}{\text{Att}}\right) \times 25\]
Each component is bounded [0, 2.375]. Sum, divide by 6, multiply by 100.
A perfect rating is 158.3.
Worked Example
A QB: 300 completions on 450 attempts for 3,500 yards, 25 TDs, 10 INTs.
- Component 1: (300/450 − 0.30) × 5 = (0.667 − 0.30) × 5 = 1.835.
- Component 2: (3,500/450 − 3) × 0.25 = (7.78 − 3) × 0.25 = 1.195.
- Component 3: (25/450) × 20 = 0.0556 × 20 = 1.111.
- Component 4: 2.375 − (10/450) × 25 = 2.375 − 0.556 = 1.819.
Sum: 5.960. Divide by 6: 0.993. Multiply by 100: 99.3.
A rating of 99.3 is excellent.
Yards Per Attempt (Y/A)
Simpler: total yards / pass attempts. Above 7.5 is good; above 8.5 is elite.
Yards from Scrimmage
Rushing yards + receiving yards. The simplest total-impact stat for running backs and pass-catching weapons.
Soccer: Advanced Stats Move to Center Stage
Goals per Game
\[\text{Goals per Game} = \frac{\text{Goals}}{\text{Games}}\]
Pure scoring rate.
Expected Goals (xG)
A predictive metric based on shot quality. Each shot is assigned a probability of becoming a goal based on location, defender pressure, and shot type.
A shot from the penalty spot has xG ≈ 0.78. A long-range shot has xG ≈ 0.03.
A team’s total xG over a game predicts how many goals they “should have” scored. Comparing xG to actual goals reveals luck or finishing skill.
Goals Against Average (Goalkeepers)
\[\text{GAA} = \frac{\text{Goals Allowed}}{\text{Games Played}}\]
Or in some leagues: per 90 minutes. Lower is better.
Cross-Sport Concepts
Per-Game vs. Per-Minute / Per-Possession
Modern analytics adjust for opportunity. A basketball player who scored 30 points in 45 minutes (low usage) is more efficient than one who scored 30 in 35 minutes if their teammates are similar.

Per-minute or per-possession stats give a cleaner picture of efficiency. Pace-adjusted stats compare apples to apples.
Win Probability
A predictive metric showing the probability a team wins given the current game state.
Down 7 with 2 minutes left and a 20-yard line possession: ~25% win probability.
Win probability lets fans contextualize “how big was that play?”
ELO Ratings
Used in chess, tennis, NFL Power Rankings, and FIFA rankings. Each team has a rating; the difference predicts win probability.
Expected score = 1 / (1 + 10^((R_opp − R_self)/400)).
If team A is rated 1,800 and team B is 1,600: Expected A score = 1 / (1 + 10^((1,600 − 1,800)/400)) = 1 / (1 + 10^(−0.5)) = 1 / 1.316 ≈ 0.76.
Team A has a 76% expected win probability.
What These Stats Miss
No single stat tells you everything. Context matters:
- Batting average tells you about hits but not power.
- ERA depends on team defense.
- Plus/Minus depends on teammates.
- Passer rating doesn’t include sacks or rushing.
- xG doesn’t account for finishing skill.
Smart fans combine multiple stats and apply human judgment.
Common Mistakes Fans Make
- Citing single-game stats as predictive. Sample sizes matter.
- Comparing stats across eras. Rules change; raw numbers don’t translate.
- Treating Plus/Minus as definitive. It’s a noisy stat in single-game samples.
- Ignoring pace. A team scoring 110 in 90 possessions is more efficient than one scoring 115 in 105.
- Overweighting xG. It’s a tool, not a verdict.
Frequently Asked Questions
What jobs combine math and sports? Many careers mix math and sports, including sports data analyst, sports statistician, performance analyst, scouting analyst, sports economist and broadcast stats researcher. Teams use these experts to judge players with numbers like on-base percentage, true shooting percentage or expected goals. A background in statistics, probability and data tools such as spreadsheets, SQL or Python is the usual starting point.
What are some fun sports math activities? Good sports math activities include calculating a favorite player’s batting average (hits ÷ at bats), tracking a basketball team’s free-throw percentage over a week, or finding a pitcher’s ERA (earned runs × 9 ÷ innings pitched). Students can also graph points per game, compare averages between players, or build a fantasy league scoring table. These turn fractions, decimals and percentages into real decisions.
Are there math sports games online? Yes, many free online math games use sports themes, such as basketball shooting games where each correct answer earns a shot, or soccer games that practice multiplication facts. For older students, sports stats sites are a great real-world tool: pick a player, pull their numbers and calculate stats like slugging percentage (total bases ÷ at bats) or OPS to see how the formulas work.
What math is required for sports management? Sports management programs usually require college algebra and statistics, and many add accounting, economics and business finance courses. In the job, you use math to set ticket prices, build budgets, read attendance data and evaluate player contracts. Comfort with percentages, averages and spreadsheets matters most, and understanding stats like win percentage helps you talk with coaches and analysts.
Closing Thought
Sports stats are an entry point into statistical reasoning. Master the formulas above and you’ll watch games with more depth. The analytics revolution that started with baseball has touched every sport, math literacy is no longer optional for a serious fan.
For more statistical thinking, see our Statistics worksheets (resource currently unavailable) and our full Math Topics library. When you are ready for a structured workbook, our Statistics collection covers data analysis and probability in depth.
Related to This Article
More math articles
- Oklahoma OSTP Grade 5 Math: 48 Free Single-Page Printables, One Skill Each, Answer Keys Included
- Differential Association and Social Learning
- Free Grade 4 English Worksheets for Tennessee Students
- Measurement, Instruments, and Safety
- 10 Most Common CHSPE Math Questions
- Quick Quotient Queries: How to Estimate Division in Real-World Scenarios
- How to Find the Constant of Variation
- FREE 5th Grade ACT Aspire Math Practice Test
- How to Learn Properties of Logarithms
- Words for Conflict and Cooperation












What people say about "Math for Sports Stats and Analytics"?
No one replied yet.