Mean and Median
The mean is the sum divided by the count; the median is the middle value in sorted order.
mean = sum ÷ count
With an even count, the median is the average of the two middle values.
One extreme value pulls the mean a lot but barely moves the median.
Calculator
Change a value and the result and picture update instantly.
Result
Mean
Median
Animated picture
The picture follows your values. Some points and shapes can be dragged.
Use in game development
To find a “typical” play time or clear time without a few extreme records skewing it, look at the median.
Code example (JavaScript)
const mean = xs.reduce((a, b) => a + b, 0) / xs.length;
What the symbols mean
| Symbol | Meaning |
|---|---|
list | Data (space or comma separated) |
mean | Mean |
median | Median |
More formulas in this category
- Variance and Standard Deviation
- Permutations and Combinations
- Binomial Distribution
- Probability of at Least One Success (Drop Rates)
- Expected Value
- Normal Distribution
Frequently asked questions
- What is the formula for Mean and Median?
- The formula for Mean and Median is mean = sum ÷ count. The mean is the sum divided by the count; the median is the middle value in sorted order.
Math Formula Quiz Probability & Statistics
Sources
Checked: 2026-11-29