Average Calculator

Mean, median, mode, range, sum and standard deviation of any list of numbers.

Separate with commas, spaces or new lines. Up to 5,000 numbers.

Average (mean)

18

The sum of 6 numbers divided by 6.

Median (middle value)
15.5
Mode (most common)
None, every value appears once
Count
6
Sum
108
Smallest
4
Largest
42
Range
38
Standard deviation (population)
12.315302
Standard deviation (sample)
13.490738
Variance (sample)
182

The mean of 6 numbers is 18 and the median is 15.5.

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

Paste or type your numbers, separated by commas, spaces or new lines. The average people usually mean is the mean: add everything up and divide by how many numbers there are.

The median is the middle value once the numbers are sorted. With an even count it is the mean of the two middle numbers. The mode is the value that appears most often. If every value appears once there is no mode, and if several tie, all of them are shown. The range is the largest minus the smallest.

The standard deviation tells you how spread out the numbers are. The population version divides by n and is for when your list is everything. The sample version divides by n − 1 and is for when your list is a sample of something bigger. Spreadsheets call them STDEV.P and STDEV.S.

Check it by hand: for 4, 8, 15, 16, 23 and 42 the sum is 108 and there are 6 numbers, so the mean is 108 ÷ 6 = 18. With 6 numbers the median is the average of the 3rd and 4th, (15 + 16) ÷ 2 = 15.5. The range is 42 − 4 = 38. For the spread, the squared distances from 18 are 196, 100, 9, 4, 25 and 576, which add up to 910. Divide by 5 for the sample variance, 182, whose square root is 13.49. Divide by 6 instead for the population variance, 151.67, with a deviation of 12.32.

Mean = sum ÷ n
Median = middle of the sorted list
Range = largest − smallest
Population variance = Σ(x − mean)² ÷ n; sample variance = Σ(x − mean)² ÷ (n − 1)
Standard deviation = √variance

Worked example

For 4, 8, 15, 16, 23, 42: the sum is 108 and there are 6 numbers, so the mean is 108 ÷ 6 = 18. The sorted middle two numbers are 15 and 16, so the median is 15.5. Nothing repeats, so there is no mode. The range is 42 − 4 = 38.

The population standard deviation is 12.3153 and the sample standard deviation is 13.4907.

Good to know

  • This is the simple (arithmetic) mean. It does not do weighted averages, geometric means or moving averages.
  • The mean is pulled by very large or small values. The median is often a better "typical" value for incomes or house prices.
  • Numbers are read as plain decimals. A comma separates numbers, so type 1234.5 and not 1,234.5. Percent signs and currency symbols should be removed.

Questions people ask

How do I calculate the average of a set of numbers?

Add all the numbers together and divide by how many there are. The average of 4, 8 and 12 is (4 + 8 + 12) ÷ 3 = 8.

What is the difference between mean, median and mode?

The mean is the sum divided by the count. The median is the middle value when sorted. The mode is the value that appears most often. They can all be different for the same list.

How do I find the median?

Sort the numbers and take the middle one. With an even count, take the mean of the two middle numbers.

When should I use the sample standard deviation?

Use it when your numbers are only a sample taken from a larger group. Use the population version when your list is the whole group.

Can there be more than one mode?

Yes. If two values tie for most common, both are modes. The tool lists them all.

What is the average of 4, 8, 15, 16, 23 and 42?

18. The sum is 108 and there are 6 values. The median is 15.5 and there is no mode, because every value appears once.

Part of the guide: Math and study calculators: percentages, fractions, GPA and everyday sums

Formulas and text last checked on 14 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.