Skip to content

Statistics Calculator: Mean, Median, Mode, Variance and SD

Get the mean, median, mode, range, variance, standard deviation and geometric mean of a data set in one go, with clear explanations of what each statistic tells you.

3 min read

Descriptive statistics turn a list of numbers into a handful of figures that describe it: where the middle is, how spread out the values are and what is typical. Our statistics calculator gives all the standard summary statistics for a data set at once. This guide explains what each one means, how it is calculated and when to use it.

How to use the calculator

Paste or type your numbers separated by commas, spaces or new lines. With the default data 2, 4, 4, 4, 5, 5, 7, 9, the results are:

StatisticValue
Count8
Sum40
Mean5
Median4.5
Mode4
Minimum / maximum2 / 9
Range7
Sample standard deviation2.1381
Population standard deviation2
Sample variance4.5714
Population variance4
Geometric mean4.6032

Measures of the centre

Mean. Add the values and divide by the count: 40 ÷ 8 = 5. The mean uses every value, so it is sensitive to outliers.

Median. Sort the values and take the middle one. With an even count, average the two middle values: (4 + 5) ÷ 2 = 4.5. The median ignores extreme values, which is why it is used for house prices and incomes.

Mode. The most common value: 4 appears three times. A data set can have no mode or several.

Geometric mean. Multiply all the values and take the nth root: ⁸√(2 × 4 × 4 × 4 × 5 × 5 × 7 × 9) ≈ 4.60. It is the right average for growth rates and ratios, such as average investment returns.

The mean, median, mode and range calculator focuses on these with a frequency table, and the average calculator handles weighted averages.

Measures of spread

Range. Maximum minus minimum: 9 − 2 = 7. Easy to compute, but determined by just two values.

Variance. The average squared distance from the mean.

  1. Subtract the mean from each value: −3, −1, −1, −1, 0, 0, 2, 4.
  2. Square them: 9, 1, 1, 1, 0, 0, 4, 16. Sum = 32.
  3. Population variance = 32 ÷ 8 = 4. Sample variance = 32 ÷ 7 = 4.571.

Standard deviation. The square root of the variance, in the same units as the data: √4 = 2 (population) or √4.571 = 2.138 (sample). The standard deviation calculator shows the full table of squared deviations.

Sample or population?

  • Use population statistics when your data includes every member of the group you care about, such as the test scores of every student in one class.
  • Use sample statistics when your data is a subset used to estimate a larger group, such as a survey of 500 voters. Dividing by n − 1 instead of n corrects the tendency of a sample to underestimate spread.

In practice, most real-world data is a sample.

Mean versus median: what the gap tells you

When the mean and median are close, the data is roughly symmetric. When the mean is well above the median, a few large values are pulling it up (right skew), as with salaries. When the mean is below the median, the data is skewed left. In the default data, the mean of 5 is slightly above the median of 4.5 because of the 9.

Spotting outliers

A common rule flags values more than about 2 or 3 standard deviations from the mean. With mean 5 and SD 2.14, any value below about −1.4 or above 11.4 would stand out. The z-score calculator measures exactly how unusual a single value is.

Next steps with your data

Frequently asked questions

Which average should I use?

Use the mean for symmetric data without outliers, the median for skewed data such as incomes, and the mode for categories or the most popular option.

Why are there two standard deviations?

The population SD divides by n, and the sample SD divides by n − 1. Use the sample version when your data is a subset of a larger group.

What is a good standard deviation?

There is no universal good value. It depends on the scale of the data. Compare it with the mean, or use the coefficient of variation (SD ÷ mean).

How should I enter my data?

Separate numbers with commas, spaces or line breaks. You can paste a column straight from a spreadsheet.

Share

Try it yourself

Run your own numbers with our free tool: Statistics calculator. No sign-up, and it works on any device.

Open the calculator