How the average calculator works
Type a list of numbers to get the mean, median, mode, range, count, sum and geometric mean in one go. Switch to the weighted average when some values count more than others, such as test scores worth different shares.
Formula
Mean = sum ÷ count. Median = middle value of the sorted list (the mean of the two middle values for an even count). Mode = the value seen most often. Weighted average = Σ(value × weight) ÷ Σweight. Geometric mean = (x₁ × x₂ × … × xₙ)^(1/n).
- 1
Add the numbers and divide by the count
3 + 7 + 7 + 2 + 9 + 10 + 4 + 6 = 48, and there are 8 numbers, so the mean is 48 ÷ 8 = 6.
- 2
Sort them to find the median
Sorted: 2, 3, 4, 6, 7, 7, 9, 10. With an even count the median is the mean of the two middle values, 6 and 7: 6.5.
- 3
Find the mode and the range
7 is the only value that appears twice, so it is the mode. The range is 10 − 2 = 8.
- 4
Take the geometric mean
All values are positive, so the 8th root of their product 635,040 gives a geometric mean of 5.3131.
Worked example
The calculator opens with these values
- Kind of average
- Mean, median and mode
- Numbers
- 3, 7, 7, 2, 9, 10, 4, 6
Average (mean)
6
How one extreme value moves the mean
The mean uses every value, so a single very high or very low one pulls it along. The median only looks at the middle of the sorted list, so it stays put. Here one expensive house changes the mean a lot and the median not at all.
| Prices | Mean | Median |
|---|---|---|
| 240, 255, 270, 285, 300 | 270 | 270 |
| 240, 255, 270, 285, 450 | 300 | 270 |
| 240, 255, 270, 285, 900 | 390 | 270 |
| 240, 255, 270, 285, 3000 | 810 | 270 |
Which average to use
Each average answers a slightly different question, so pick the one that matches yours.
- Mean: when the values are spread fairly evenly, such as daily temperatures or the scores in one class.
- Median: when a few values are extreme, which is why incomes and home prices are usually reported as medians.
- Mode: for categories and sizes, such as the shoe size a shop sells most often.
- Weighted mean: when values count differently, such as exams worth different shares of a grade.
- Geometric mean: for growth rates and returns. A gain of 50% followed by a loss of 50% averages 0% with the ordinary mean, but you end with 75% of what you started with. The geometric mean of 1.5 and 0.5 is 0.866, a change of -13.4% a year.
Working out the score you need
To reach a target average, multiply the target by the number of scores you will have, then subtract the sum of the scores you already have. Needed score = target × (count + 1) − current sum.
With test scores of 82, 75 and 90 (a sum of 247) and a target average of 85 over four tests, you need 85 × 4 − 247 = 340 − 247 = 93 on the fourth test. Check it above: the mean of 82, 75, 90 and 93 is 85.
Common questions
What is the difference between mean, median and mode?
The mean is the sum divided by the count. The median is the middle value once the numbers are sorted, so one extreme value barely moves it. The mode is the value that appears most often, and a list can have several modes or none.
When should I use a weighted average?
When the values do not count equally: a final exam worth 50% of a grade, courses with different credits, or prices bought in different quantities. Each value is multiplied by its weight, and the total is divided by the sum of the weights.
What is the geometric mean used for?
For values that multiply together, such as growth rates or investment returns over several years. It is always at most the ordinary mean, and it is defined only when every value is above zero.
Do the weights have to add up to 100?
No. The calculator divides by the total weight, so weights of 1, 2 and 3 work as well as 20%, 30% and 50%.
Related calculators
Standard Deviation
Calculate standard deviation and variance of a dataset
Grade Calculator
Final exam score you need and your weighted course grade
GPA Calculator
Calculate your semester and cumulative GPA
Percentage Calculator
Calculate percentages, increases, and decreases