"Average" usually means the mean: add everything up and divide by how many there are. But when some values count more than others, or a few extreme values distort the picture, other kinds of average give a fairer answer. Our average calculator gives the mean, median, sum and count of a list, plus a weighted average if you supply weights. This guide explains each one and when to use it.
How to use the calculator
- Numbers: type or paste the values, separated by commas, spaces or new lines.
- Weights (optional): one weight per number, in the same order.
With the default scores 85, 92, 78, 90:
- Average (mean): 86.25
- Median: 87.5
- Sum: 345
- Count: 4
The mean
345 ÷ 4 = 86.25. The mean uses every value, which makes it a good summary when the data is fairly even. Its weakness is sensitivity to outliers: one very large or small value pulls it a long way.
The median
The median is the middle value once the data is sorted. With an even count, it is the average of the two middle values.
Sorted: 78, 85, 90, 92. The two middle values are 85 and 90, so the median is (85 + 90) ÷ 2 = 87.5.
Why it matters: in a street where four houses sell for $300,000 and one for $3 million, the mean price is $840,000, but the median is $300,000. The median describes the typical house far better. That is why house prices and incomes are usually reported as medians.
The weighted average
When values have different importance, multiply each by its weight, add them up, and divide by the total weight.
Course grade example: homework 85 (30%), midterm 92 (30%), final 78 (40%).
(85 × 0.3 + 92 × 0.3 + 78 × 0.4) ÷ (0.3 + 0.3 + 0.4) = (25.5 + 27.6 + 31.2) ÷ 1 = 84.3
The simple mean of the three scores is 85, but the weighted average is lower because the weakest score carries the most weight. The grade calculator and GPA calculator apply weighting to coursework.
Weights do not need to add up to 1 or 100. Credit hours (3, 4, 3) or quantities work just as well, because the formula divides by the total weight.
More weighted average examples
Average price paid. You buy 100 shares at $20 and 50 at $26. The simple mean of the prices is $23, but your average cost per share is (100 × 20 + 50 × 26) ÷ 150 = $22.
Average speed. Driving 60 km at 60 km/h and 60 km at 30 km/h does not average 45 km/h. Time taken is 1 hour plus 2 hours, so the average speed is 120 ÷ 3 = 40 km/h. Speeds should be weighted by time, not distance. The speed calculator works through these.
Which average should I use?
| Situation | Best average |
|---|---|
| Even data with no outliers | Mean |
| Skewed data (incomes, house prices) | Median |
| Values of unequal importance | Weighted average |
| Most common category | Mode |
| Growth rates and returns | Geometric mean |
The mean, median, mode and range calculator adds the mode and a frequency table, and the statistics calculator includes the geometric mean and standard deviation.
Finding a missing value
If you know the target average, you can work out what you need. To average 85 over five tests when the first four total 345, you need 85 × 5 − 345 = 80 on the fifth.
Common pitfalls
- Averaging averages: two classes averaging 80 (10 students) and 90 (30 students) do not average 85 overall. Weighted by students, it is 87.5.
- Averaging percentages: a 50% rise followed by a 50% fall is not a net 0%; it is a 25% loss. The percentage calculator and percentage guide explain why.
- Including blanks as zeros: leave missing values out rather than entering 0.
Frequently asked questions
What is the difference between mean and average?
In everyday use they are the same thing. Strictly, "average" can refer to the mean, median or mode, while "mean" is specifically the sum divided by the count.
How do I enter weights?
List one weight for each number, in the same order and separated the same way. Percentages, decimals or counts all work.
Do weights need to add up to 100?
No. The calculator divides by the total of the weights, so any positive weights work.
When is the median better than the mean?
When the data is skewed or has outliers, such as incomes or house prices. The median is not pulled by extreme values.
Try it yourself
Run your own numbers with our free tool: Average calculator. No sign-up, and it works on any device.