Mean, Median, Mode Calculator

Get the mean, median, mode and range of your numbers in one go — with the sorted data and how each one is found.

Mean22
Median23
Mode23
Range53

Step by step

  1. Mean: add the values and divide by the count: x̄ = 330 ÷ 15 = 22
  2. Sort the data: 3, 5, 7, 12, 13, 14, 20, 23, 23, 23, 23, 29, 39, 40, 56
  3. The median is the middle value (position 8): 23
  4. Mode: the most frequent value (each appears 4 times): 23
  5. Range = maximum − minimum = 56 − 3 = 53
mean01020304050
values mean box plot (Q1–Q3, median) outlier
Count (n)15
Sum330
Mean22
Median23
Mode23 (appears 4 times)
Minimum3
Maximum56
Range53
Q1 (first quartile)12
Q3 (third quartile)29
Interquartile range (IQR)17
Sample standard deviation (s)14.5062
Population standard deviation (σ)14.0143
Sample variance (s²)210.4286
Population variance (σ²)196.4
Standard error of the mean3.7455
Coefficient of variation65.94%
Mean absolute deviation10.6667
Sum of squares (Σ(x − x̄)²)2946
Outliers (1.5 × IQR rule)56
Sorted data

3, 5, 7, 12, 13, 14, 20, 23, 23, 23, 23, 29, 39, 40, 56

How to find each one

  • Mean: add the values and divide by the count. Guide
  • Median: sort the values; take the middle one, or the average of the two middle ones if the count is even. Guide
  • Mode: the value that appears most often. There can be no mode or several. Guide
  • Range: largest minus smallest. Guide

Which should I use?

The mean uses every value but is pulled by extremes; the median is the better “typical” value for skewed data such as incomes; the mode suits categories and repeated values (shoe sizes, most common answer). Reporting the mean and median together shows whether the data is skewed.

Frequently asked questions

How do you find the mean, median and mode?

Mean: sum ÷ count. Median: middle of the sorted list. Mode: most frequent value.

What if no number repeats?

Then the data has no mode.

Can there be two modes?

Yes — the data is bimodal, and both values are modes.

What is the median of an even number of values?

The average of the two middle values after sorting.

Last reviewed November 2026. Results are rounded to 4 decimal places; all math runs in your browser.