Average Calculator
Paste a list of numbers to get the mean, median, mode, range, sum and standard deviation instantly.
Three kinds of average
- Mean is what most people call "the average": add all the values and divide by how many there are.
- Median is the middle value once the list is sorted. With an even count, it is the mean of the two middle values.
- Mode is the value that appears most often. A list can have more than one mode, or none.
For 12, 15, 18, 18, 21, 24, 30: the sum is 138, so the mean is 138 ÷ 7 = 19.71. The median is the 4th value, 18. The mode is also 18, and the range is 30 − 12 = 18.
Mean or median?
The mean is pulled toward extreme values; the median is not. That is why house prices and incomes are usually reported as medians: a few very high values would make the mean misleading. If the mean and median are far apart, your data is skewed.
Standard deviation
Standard deviation measures how spread out the numbers are around the mean. A small value means the numbers are clustered together; a large value means they are spread out.
σ = √( Σ(x − mean)² ÷ N ) s = √( Σ(x − mean)² ÷ (N − 1) )
Use the population version (σ, divide by N) when your list contains every value you care about. Use the sample version (s, divide by N − 1) when your list is a sample drawn from a larger group, as in most surveys and experiments.
Geometric mean
For growth rates and ratios, the geometric mean is more appropriate than the arithmetic mean. It multiplies the values and takes the Nth root, and is shown when all your numbers are positive.
Weighted average
When some values count more than others, multiply each value by its weight, add the results and divide by the sum of the weights. This is how course grades and GPAs are calculated. Tick "Weighted average" and enter the weights in the same order as the numbers; they can be percentages, credits or any other relative sizes.
Homework 85 (20% of the grade), midterm 92 (30%) and final 78 (50%): (85 × 20 + 92 × 30 + 78 × 50) ÷ 100 = 1,700 + 2,760 + 3,900 = 8,360 ÷ 100 = 83.6. The simple average of the three scores would be 85, because it ignores that the final counts most.
Quartiles and the interquartile range
For four or more numbers the calculator also shows the first and third quartiles. Q1 is the median of the lower half of the sorted list and Q3 the median of the upper half (the middle value is left out when the count is odd). The interquartile range, Q3 − Q1, describes the spread of the middle half of the data and, unlike the range, is not affected by outliers. For the example list above, Q1 = 15, Q3 = 24 and the IQR is 9. Spreadsheet functions such as QUARTILE use slightly different methods, so their results can differ a little.
Frequently asked questions
How do I calculate the average of numbers?
Add all the numbers together and divide the total by how many numbers there are. That gives the arithmetic mean.
When should I use the median instead of the mean?
Use the median when your data has outliers or is skewed, such as incomes or house prices, because it is not affected by extreme values.
What is the difference between sample and population standard deviation?
Population standard deviation divides by N and describes a complete data set. Sample standard deviation divides by N − 1 to correct for bias when estimating from a sample.
Last reviewed November 2026.