Average Calculator

About this calculator

The Average Calculator takes a list of numbers and returns their arithmetic mean, along with the sum, count, median, mode, geometric mean, largest and smallest values and the range. Separate numbers with commas, spaces or new lines.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What is an average?

In everyday language an average is the single number that best summarizes a list of values. Strictly, there are several kinds. The most common is the arithmetic mean, found by adding up the values and dividing by how many there are. The median and mode are other "averages" that answer slightly different questions, and the geometric mean suits growth rates and ratios.

Worked example

Example: Enter the six test scores 4, 8, 15, 16, 23, 42. The sum is 108 and the count is 6, so the average (mean) is 18. The median is 15.5, the range is 38 (42 minus 4), and there is no mode because no value repeats.

Arithmetic mean

Mean = (x1 + x2 + ... + xn) / n

For 10, 20, 30 and 45 the sum is 105 and there are four numbers, so the mean is 105 / 4 = 26.25. The mean uses every value, which makes it sensitive to outliers: replace 45 with 450 and the mean jumps to 127.5 even though three of the four numbers stayed the same.

Median

The median is the middle value after sorting. With an even count, average the two middle numbers. For 10, 20, 30, 45 the middle pair is 20 and 30, so the median is 25. Because it ignores how large the extremes are, the median is the better summary for skewed data such as incomes or house prices.

Mode

The mode is the value that occurs most often. A list can have one mode, several modes when values tie, or none when every value appears once. For 2, 3, 3, 5, 9 the mode is 3.

Geometric mean

Geometric mean = (x1 × x2 × ... × xn)^(1/n)

Multiply the values and take the nth root. It is the right average for quantities that compound, such as annual investment returns, or that are ratios. For 10, 20, 30 and 45 the product is 270,000 and its fourth root is about 22.795, which is lower than the arithmetic mean, as it always is for values that are not all equal. It requires every value to be positive.

Range, largest and smallest

The range is the largest value minus the smallest. It is a quick, crude measure of spread: here 45 - 10 = 35. For a fuller picture of spread, use the standard deviation.

Choosing the right average

SituationBest measure
Symmetric data, no outliersMean
Skewed data or outliersMedian
Most common category or valueMode
Growth rates, ratios, compoundingGeometric mean

Weighted averages

When some values count more than others, as with course grades weighted by credit hours, multiply each value by its weight, add the products, and divide by the total weight. If you need a plain average of a list, this calculator is the quickest route; for weighted grades enter repeated values to reflect the weights.

Tips for entering data

  • Use a period for decimals. Commas separate numbers, so enter 1500 rather than 1,500.
  • Negative numbers are allowed, but the geometric mean needs positive values.
  • Paste a column from a spreadsheet directly; new lines are treated as separators.

Frequently asked questions

How do you calculate the average of a set of numbers?
Add all the numbers together and divide by how many numbers there are. The average of 10, 20, 30 and 45 is 105 / 4 = 26.25.
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, and the mode is the most frequent value.
When should I use the geometric mean?
Use it for values that multiply together over time, such as investment returns or growth factors, or for ratios. All values must be positive.
Can the average be a number that is not in the list?
Yes. The mean is often a value that does not appear in the data, as with 26.25 for 10, 20, 30 and 45.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.