Average Calculator: Mean, Median and Mode

Find the mean, median, modes and spread of a list, or calculate a weighted average. Compare the centre and distribution of your values. Use the Test Grade Calculator for a single test score or the Percentage Calculator for percentage calculations.

Your details

Mode

Separate entries with commas, newlines or semicolons. With a newline, semicolon or comma followed by a space, commas within 1,800 mark thousands. Empty entries are ignored. Up to 10,000 values.

Your averagesMean
5
Median
4.5
Mode(s)
4
Range
7
Minimum
2
Maximum
9
Count
8
Sum
40
Population standard deviation
2
Sample standard deviation
2.1381
Geometric mean
4.6032
Harmonic mean
4.2017507295
Sorted list
2, 4, 4, 4, 5, 5, 7, 9
Working
(2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 5
29
Mean 5Median 4.5

Sum, mean and weighted mean use exact fractions internally. Results show up to 10 decimal places; standard deviations and geometric means are approximate to 4 decimal places.

How the averages are calculated

Mean = sum ÷ count; weighted mean = sum(value × weight) ÷ sum(weights)

  • Add the values and divide by their count to find the mean.
  • Sort the list to find the median. For an even count, average the two middle values.
  • Find the most frequent values for the modes. Unique values give no mode.
  • Subtract the minimum from the maximum for the range.
  • For weighted averages, divide the weighted sum by the total weight.

Worked example: For 2, 4, 4, 4, 5, 5, 7 and 9, the sum is 40 and the mean is 5. The median is 4.5 and the mode is 4. Population standard deviation is 2; sample standard deviation is about 2.1381.

Example averages

ValuesMeanMedianSpecial average
2, 4, 4, 4, 5, 5, 7, 954.5Not applicable
10, 20, 302020Not applicable
1, 2, 3, 4, 100223Not applicable
40, 605050Harmonic: 48
Grades 80:20, 90:30, 70:50Not applicableNot applicableWeighted: 78

Swipe the table sideways to see the rest.

Things to consider

  • Extreme values can pull the mean away from the median.
  • Weights may be counts, proportions or percentages. They need not total 100.
  • Use population deviation for the whole group and sample deviation for a sample.
  • Harmonic speed averages assume equal distances, not equal travel times.

Frequently asked questions

What is the difference between mean, median and mode?

The mean is the sum divided by the count. The median is the middle of a sorted list. The mode is the most common value; tied values are all listed, and a list of unique values has no mode.

When should I use the median?

The median is often useful for skewed data such as incomes or house prices, where a few extreme values can pull the mean up or down. It describes the middle observation, not the total spread.

How do I calculate a weighted average?

Multiply each value by its weight, add the products and divide by the sum of weights. For grades 80:20, 90:30 and 70:50, the result is 78. Portfolio weights work the same way. The weights need not total 100. The Test Grade Calculator handles single scores.

What is population vs sample standard deviation?

Both describe spread around the mean. Population deviation divides the sum of squared differences by n. Sample deviation divides by n − 1 to estimate the spread of a larger population from a sample. Sample deviation is undefined for one value.

When is geometric mean useful for growth rates?

Geometric mean combines positive multiplicative factors. Convert growth rates to factors first: 10% becomes 1.10 and −10% becomes 0.90. Their geometric mean minus 1 gives the average rate per period. All factors must be greater than 0.

When should I use harmonic mean for average speed?

Use it for speeds over equal distances. Travelling equal distances at 40 and 60 gives a harmonic average speed of 48. For equal travel times, use the arithmetic mean instead. This calculator requires non-zero values with the same sign.

Results are estimates for general information only, not financial, medical or professional advice.