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

Mean6.85714
Median7

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

SymbolMeaning
listData (space or comma separated)
meanMean
medianMedian

More formulas in this category

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