Skip to content
DeviceCheckHub

Average Calculator

Type or paste numbers to get the average (mean), median, mode, range, quartiles and standard deviation, or switch to a weighted average of values and weights. The working is shown.

Kind of average

Average (mean)

–
Median
88
Mode
92 (appears 2 times)
Range
25 (70 to 95)
Count
7
Sum
600
Quartiles (Q1 and Q3)
81.5 and 92
Interquartile range (IQR)
10.5
Possible outliers
None (all within 65.75 to 107.75)
Standard deviation (sample)
8.920281866
Standard deviation (population)
8.258576247
Variance (sample)
79.57142857
Variance (population)
68.20408163
Geometric mean
85.29299355
Harmonic mean
84.84846883

Mean = (85 + 92 + 78 + 92 + 88 + 95 + 70) ÷ 7 = 600 ÷ 7 = 85.71428571

Sorted: 70, 78, 85, 88, 92, 92, 95

Average of 7 numbers: 85.71428571

How to use the average calculator

  1. Choose Average of a list for ordinary numbers, or Weighted average when some values count for more than others.
  2. Type your numbers in the box, separated by commas, spaces or new lines, or paste a column straight from a spreadsheet. For a weighted average, put a value and its weight on each line, or paste two columns.
  3. The average appears straight away, together with the median, mode, range, quartiles, standard deviation, variance and other means.
  4. Check the working line underneath to see how the average was calculated, and the sorted list to see where the median comes from.

Negative numbers and decimals work. Anything that isn’t a number is left out, and the calculator tells you what it skipped. Your lists are kept in this browser only, so they are still there if you reload the page; nothing is sent anywhere.

The mean: what most people call the average

The mean is the sum of the values divided by how many values there are. For the example scores 85, 92, 78, 92, 88, 95 and 70, the sum is 600 and there are 7 scores, so the mean is 600 ÷ 7 ≈ 85.71. The mean uses every value, which makes it a good summary when the numbers are fairly evenly spread. Its weakness is that one very large or very small value pulls it a long way: if one score of 70 had been a 0 instead, the mean would drop by 10 points, to 75.71.

The median: the middle value

To find the median, sort the numbers and take the one in the middle. In the example, the sorted scores are 70, 78, 85, 88, 92, 92 and 95, and the middle (fourth) value is 88. When there is an even number of values, the median is the mean of the two middle ones. The median isn’t affected by extreme values, so it is often a better “typical” figure for things like house prices or incomes, where a few very large values would make the mean misleading. That is why news reports usually quote median household income rather than the mean.

The mode: the most common value

The mode is the value that appears most often; in the example, 92 appears twice. A list can have more than one mode, such as 2, 2, 5, 5 and 9, which has modes 2 and 5, or no mode at all if no number repeats. The mode is most useful for counts and categories, such as the most common shoe size sold in a store, where an average size of 9.37 wouldn’t be much help.

Range and standard deviation

An average on its own doesn’t say how spread out the numbers are. The range is the simplest measure: the largest value minus the smallest, 95 − 70 = 25 in the example. The standard deviation measures how far values typically are from the mean. A small standard deviation means the numbers are close together; a large one means they vary a lot. Two classes can both average 80 on a test, but in one class most students scored between 75 and 85, while in the other the scores ran from 40 to 100.

There are two versions. The population standard deviation divides by the number of values, n, and is used when you have the whole group. The sample standard deviation divides by n − 1 and is used when your numbers are a sample from a bigger group, because a sample tends to underestimate the spread; this adjustment is called Bessel’s correction. Spreadsheets use the same two versions: STDEV.S (or STDEV) for a sample and STDEV.P for a population.

Quartiles, IQR and outliers

Quartiles split the sorted list into four parts. A quarter of the values are below the first quartile (Q1), half are below the median, and three quarters are below the third quartile (Q3). For the example scores, Q1 is 81.5 and Q3 is 92. The interquartile range (IQR) is Q3 − Q1 = 10.5: the spread of the middle half of the values, which, unlike the range, isn’t thrown off by one extreme value.

The IQR also gives a common rule for spotting outliers, known as Tukey’s fences: a value more than 1.5 × IQR below Q1 or above Q3 is a possible outlier. For the example, that means anything below 81.5 − 15.75 = 65.75 or above 92 + 15.75 = 107.75, so none of the scores is flagged. Had one score been typed as 9.5 instead of 95, the calculator would list it, which is a quick way to catch typing mistakes. The rule needs at least 4 values.

There are several accepted ways to calculate quartiles. This calculator uses linear interpolation, the same method as Excel’s QUARTILE.INC and Google Sheets’ QUARTILE, so you can check its results in a spreadsheet. Many textbooks and TI graphing calculators instead take the median of the lower and upper halves of the list; for the 7 example scores that gives Q1 = 78 rather than 81.5. Both are correct, so use the method your class or report asks for.

Variance

The variance is the standard deviation squared: the average of the squared distances from the mean. For the example scores, the sample variance is about 79.57 and the population variance about 68.2. Its units are squared (points², or dollars²), which makes it harder to read than the standard deviation, but it is what many statistics formulas use. In a spreadsheet, VAR.S gives the sample variance and VAR.P the population variance.

Geometric mean

The geometric mean multiplies the values together and takes the nth root. It is the right average for growth rates and ratios. If an investment grows by 50% one year and falls by 50% the next, the ordinary mean of the growth factors 1.5 and 0.5 is 1, which suggests no change, but you actually end up with 75% of your money. The geometric mean, √(1.5 × 0.5) ≈ 0.866, correctly shows an average fall of about 13.4% a year. It only works for positive numbers.

Harmonic mean

The harmonic mean is the number of values divided by the sum of their reciprocals. It is the right average for rates over equal distances, such as speeds. If you drive 60 miles at 30 mph and the next 60 miles at 60 mph, the ordinary mean says 45 mph, but the trip takes 2 hours plus 1 hour, so your average speed is 120 ÷ 3 = 40 mph, which is exactly the harmonic mean of 30 and 60. For positive numbers, the harmonic mean is never larger than the geometric mean, which is never larger than the ordinary mean.

Averaging averages and percentages

A common mistake is to average numbers that are already averages or percentages when the groups are different sizes. Suppose one class of 10 students averaged 90 on a test and another class of 30 averaged 70. The mean of 90 and 70 is 80, but the true average of all 40 students is (10 × 90 + 30 × 70) ÷ 40 = 75, because the bigger class counts for more. The same applies to percentages: if you scored 9 out of 10 on one quiz (90%) and 20 out of 40 on another (50%), your overall score is 29 out of 50, which is 58%, not the 70% you get by averaging the two percentages. In these cases, go back to the totals, or use a weighted average.

Weighted average

A weighted average gives some values more say than others. Multiply each value by its weight, add up the results, and divide by the total of the weights. Suppose homework counts for 20% of a grade, the midterm for 30% and the final exam for 50%, and you scored 85, 92 and 78. The weighted average is (85 × 20 + 92 × 30 + 78 × 50) ÷ (20 + 30 + 50) = 8,360 ÷ 100 = 83.6, lower than the plain mean of 85 because the final, your lowest score, counts the most.

To use it, choose Weighted average and type one value and its weight on each line, such as 85 20%. A comma, tab, colon or space between them all work, so two columns copied from a spreadsheet paste straight in. The weights don’t need to add up to 100: only their sizes compared with each other matter, so 1, 1 and 2 give the same answer as 25%, 25% and 50%. If you only have some of your grades so far, enter the ones you have and the result is your average over the work done. The calculator also shows each value’s share of the total weight and the unweighted mean for comparison.

Other common uses are a GPA, where each grade is weighted by the course credits; the average price paid for shares bought at different prices, weighted by the number of shares; and the class example above, where each class average is weighted by its number of students: (90 × 10 + 70 × 30) ÷ 40 = 75. In a spreadsheet, the same calculation is =SUMPRODUCT(values, weights) / SUM(weights).

Outliers

An outlier is a value far from the rest, such as a typing mistake (950 instead of 95) or a genuinely unusual result. Outliers change the mean and the standard deviation a lot, but barely move the median. If the mean and median are far apart, or the calculator lists possible outliers, look at the sorted list for values at either end that don’t belong. Fix any mistakes, but don’t remove a real value just because it is inconvenient; instead, report the median alongside the mean, which gives readers a fairer picture.

Everyday uses

For percentages and percentage change, try the percentage calculator.

Frequently asked questions

How do you calculate an average?

Add all the numbers and divide by how many there are. The average of 85, 92 and 78 is (85 + 92 + 78) ÷ 3 = 255 ÷ 3 = 85. This kind of average is called the mean.

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 the numbers are sorted. The mode is the value that appears most often. For 2, 3, 3, 4 and 18, the mean is 6, the median is 3 and the mode is 3.

How do I find the median of an even number of values?

Sort the numbers and take the mean of the two middle values. For 3, 5, 8 and 10, the two middle values are 5 and 8, so the median is 6.5.

Which standard deviation should I use?

Use the sample standard deviation when your numbers are a sample from a larger group, such as 20 students out of a whole school, which is the usual case. Use the population standard deviation when you have every value in the group.

Can I paste numbers from a spreadsheet?

Yes. Copy a column or row from Excel or Google Sheets and paste it into the box. Numbers can be separated by new lines, tabs, spaces, commas or semicolons. Don’t use commas inside numbers: type 1250, not 1,250.

How do I calculate a weighted average?

Multiply each value by its weight, add the results, and divide by the total weight. For scores of 85, 92 and 78 weighted 20%, 30% and 50%, the weighted average is (85 × 20 + 92 × 30 + 78 × 50) ÷ 100 = 83.6. Choose Weighted average above the box and type a value and its weight on each line.

Do the weights have to add up to 100?

No. Only the sizes of the weights compared with each other matter, so weights of 1, 1 and 2 give the same result as 25%, 25% and 50%. Credits, hours, quantities and percentages all work as weights.

Why are my quartiles different from my textbook?

There are several accepted ways to find quartiles. This calculator uses the same method as Excel’s QUARTILE.INC and Google Sheets’ QUARTILE. Many textbooks and TI calculators split the sorted list into a lower and an upper half and take the median of each, which can give slightly different values for small lists.

Last updated · About DeviceCheckHub