Statistics & graphs · SL/HL

Mean, median, mode & range

Summarize a dataset with centre and spread.

Your values

Number formats & units

Use decimal dots in datasets. Single values also accept decimal commas and scientific notation such as 1.2e-3 or 1.2 × 10⁻³.

Mean, Median, Mode & Range Calculator inputs

Calculated locally. No account or input upload.

Result & working

Example

The calculator is loading. The worked example is also shown below.

Copy & export

Formula & example

The relationship

xˉ=∑ixin\bar x=\frac{\sum_i x_i}n
range=xmax⁡−xmin⁡\text{range}=x_{\max}-x_{\min}
What the variables mean
SymbolMeaning
medianMiddle value after sorting.
mode\text{mode}Most frequent value(s), if any repeat.

Worked example

Data
12.1, 11.8, 12.4, 12.0, 11.9, 12.0

mean = 12.03333

Follow the example steps
  1. n = 6
  2. mean = Σx/n = 72.2 / 6 = 12.03333
  3. median = 12
  4. range = 12.4 − 11.8 = 0.6

Common mistakes

An extreme value affects the mean more than the median.

Incorrect approach

1, 2, 100: median = (1 + 2 + 100)/3

Correct approach

median = 2; mean ≈ 34.33

More checks before you submit
  • The mean can be sensitive to skew and extreme values.
Method notes

Use summary statistics only after checking the raw data for transcription errors and biologically meaningful outliers.