About this calculator
The mean, median and mode are the three common measures of the “centre” of a data set. The mean is the ordinary average; the median is the middle value when the data are sorted, so it is not pulled by a few extreme values; the mode is the value that occurs most often. Together with the minimum, maximum and range they describe a set of measurements, test scores, cycle times or any other data.
For the spread of the data (standard deviation and variance), use the Standard Deviation & Variance calculator.
Formula
x̄ = (Σ xi) ÷ n
Median: sort the values. For odd n it is the middle value; for even n the average of the two middle values.
Mode: the value(s) with the highest count. If two or more different values all occur equally often, there is no mode.
Range = xmax − xmin
Worked example
Data: 12, 15, 11, 15, 18, 20, 15, 14, 11, 19 (n = 10).
- Sum = 150, mean = 150 ÷ 10 = 15
- Sorted: 11, 11, 12, 14, 15, 15, 15, 18, 19, 20 → median = (15 + 15) ÷ 2 = 15
- 15 appears 3 times → mode = 15
- Range = 20 − 11 = 9
Assumptions and limitations
- Values are separated by commas, spaces or semicolons, so a decimal comma such as 2,5 is read as two values (2 and 5). Use a dot for decimals.
- Values are compared exactly for the mode: 2 and 2.0 are the same value, 2 and 2.0001 are not.
- The sum uses compensated (Neumaier) summation to keep full precision for long lists. Results are shown to 10 significant figures.
References
- Montgomery, D. C. & Runger, G. C. Applied Statistics and Probability for Engineers — descriptive statistics.
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.1 (measures of location).
