Mean, Median, Mode, Range Calculator

Calculate central tendency and dispersion from any data set.

Mean, Median, Mode, Range Calculator

Result
Mean (Average)22.142857142857
Median23
Range36
Mode38, 23, each appeared 2 times
Geometric Mean16.412764443111
Largest38
Smallest2
Sum155
Count7
Sorted Data Set: 2, 10, 21, 23, 23, 38, 38
Column Chart of the Values

Please provide numbers separated by comma to calculate.

Complete Guide & Reference

1. Overview

This calculator computes the most common descriptive statistics: mean, median, mode, and range, along with geometric mean, sum, count, minimum and maximum values. These are the fundamental measures used to summarize and understand a set of numerical data.

2. Mean (Arithmetic Average)

The mean is the most widely used measure of central tendency. It is calculated by summing all values and dividing by the number of values. The mean uses every value in the data set, which makes it a reliable measure, but it is sensitive to extreme outliers.

x̄ = Σx / n = (x₁ + x₂ + ... + xₙ) / n

where Σx is the sum of all values and n is the total count of values.

Example: Data set {2, 10, 21, 23, 23, 38, 38}

3. Median

The median is the middle value of an ordered data set. It divides the data into two equal halves. Unlike the mean, the median is not affected by extreme outliers, making it a robust measure of central tendency for skewed distributions.

Odd number of values

Median = value at position (n + 1) / 2

Even number of values

Median = (value at n/2 + value at n/2 + 1) / 2

Example: Sorted data {2, 10, 21, 23, 23, 38, 38}

4. Mode

The mode is the value that appears most frequently in a data set. A data set may have:

Example: Data set {2, 10, 21, 23, 23, 38, 38}

5. Range

The range is the simplest measure of dispersion. It is the difference between the largest and smallest values. While easy to compute, it only uses two data points and is very sensitive to outliers.

Range = Maximum value − Minimum value

Example:

6. Geometric Mean

The geometric mean is the n-th root of the product of n values. It is used for growth rates, investment returns, ratios, and percentages. The geometric mean is always less than or equal to the arithmetic mean, with equality only when all values are identical.

GM = (x₁ × x₂ × x₃ × ... × xₙ)^(1/n)

Important: All values must be positive. Zero or negative values produce invalid results.

7. Sum & Count

8. How to Use This Calculator

  1. Enter your numbers in the text box, separated by commas.
  2. You can also use spaces, tabs, or newlines as separators.
  3. Click the Calculate button to compute all statistics.
  4. View results in the result table and the column chart.
  5. The sorted data set is displayed for verification.
  6. Click Clear to reset all inputs and results.

9. Column Chart Explanation

The bar chart displays each value in the order you entered them. This visual representation helps you quickly see:

10. When to Use Which Measure

MeasureBest ForAdvantageDisadvantage
MeanSymmetric distributions, numerical dataUses all data, most preciseAffected by outliers
MedianSkewed data, ordinal dataRobust to outliersIgnores most values
ModeCategorical or discrete dataEasy to understandMay not exist or be unique
RangeQuick estimate of spreadSimple to calculateOnly uses two values
Geometric MeanGrowth rates, ratios, percentagesHandles multiplicative dataRequires positive values

11. Real-World Applications

12. Important Notes

13. Related Statistical Concepts

14. References

1. Triola, Mario F. Elementary Statistics. Pearson Education. 2019.
2. Moore, David S., McCabe, George P., and Craig, Bruce A. Introduction to the Practice of Statistics. W.H. Freeman. 2017.
3. DeGroot, Morris H. and Schervish, Mark J. Probability and Statistics. Pearson Education. 2012.
4. Wackerly, Dennis D., Mendenhall, William, and Scheaffer, Richard L. Mathematical Statistics with Applications. Cengage Learning. 2014.
5. Snedecor, George W. and Cochran, William G. Statistical Methods. Iowa State University Press. 1989.
6. NIST/SEMATECH. e-Handbook of Statistical Methods. National Institute of Standards and Technology. 2012.